/* =====================================================
   NafizAam - Amrapali Mango Landing Page
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #e4f5ee;
  --bg-dark: #c8ecdd;
  --primary: #1a5c2a;
  --primary-dark: #12401c;
  --primary-light: #2e7d32;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --cream: #fefce8;
  --text: #1a2e1f;
  --text-muted: #4b6e55;
  --white: #ffffff;
  --border: #d1e8d7;
  --shadow: 0 4px 24px rgba(26, 92, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 520ms;
  --motion-slider-duration: 780ms;
  --ease-standard: ease;
  --ease-emphasis: cubic-bezier(0.25, 1, 0.5, 1);
  --transition: var(--motion-base) var(--ease-standard);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Hind Siliguri', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

.top-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

.top-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-center {
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  position: relative;
}

.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 92, 42, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta:focus-visible,
.btn-submit:focus-visible,
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.qty-btn:focus-visible,
.back-to-top:focus-visible,
.sticky-order-cta:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.38);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-headline {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

.slider-shell {
  --slider-gap: 1rem;
  --slides-per-view: 3;
  margin: 1.75rem 0;
  position: relative;
  padding-bottom: 2.9rem;
}

.slider-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.slider-track {
  display: flex;
  gap: var(--slider-gap);
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.slider-card {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
  transition: transform var(--motion-base) var(--ease-emphasis),
              opacity var(--motion-base) var(--ease-standard);
}

.slider-arrow {
  position: absolute;
  top: calc(50% - 1.45rem);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(26, 92, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  background: var(--primary);
  color: var(--white);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

.slider-arrow-prev {
  left: -0.35rem;
  transform: translateY(-50%);
}

.slider-arrow-next {
  right: -0.35rem;
  transform: translateY(-50%);
}

.slider-indicators {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 20px rgba(26, 92, 42, 0.12);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(26, 92, 42, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width var(--transition), background var(--transition), transform var(--transition);
}

.slider-dot.active {
  width: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.slider-dot:hover {
  transform: scale(1.08);
}

.slider-dot:focus-visible {
  transform: scale(1.08);
}

.hero-slide {
  display: flex;
}

.hero-img-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary-light);
  aspect-ratio: 1 / 1;
  background: #d3efdf;
  transition: transform var(--motion-base) var(--ease-emphasis),
              box-shadow var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--motion-slow) var(--ease-emphasis);
}

.hero-img-wrap:hover img {
  transform: scale(1.04);
}

.hero-slide.is-active .hero-img-wrap {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(26, 92, 42, 0.18);
  border-color: #3e9b4b;
}

.hero-slide.is-active .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-slide.is-active .hero-img-wrap:hover img {
  transform: scale(1.07);
}

.features {
  background: rgba(255, 255, 255, 0.35);
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.features-text .section-title {
  margin-bottom: 1rem;
}

.feature-list {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li,
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list li::before,
.why-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.features-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow);
}

.features-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.why-buy {
  padding: 3rem 0;
}

.why-list {
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery {
  padding: 3rem 0;
  text-align: center;
}

.review-slider {
  --slides-per-view: 3;
}

.review-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  text-align: left;
  transition: transform var(--motion-base) var(--ease-emphasis),
              box-shadow var(--motion-base) var(--ease-emphasis),
              border-color var(--motion-base) var(--ease-standard),
              background var(--motion-base) var(--ease-standard);
}

.review-card.is-active {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(46, 125, 50, 0.34);
  box-shadow: 0 18px 42px rgba(26, 92, 42, 0.16);
  background: rgba(255, 255, 255, 0.97);
}

.review-card-media {
  flex: 1;
  min-height: 100%;
  background: var(--cream);
  overflow: hidden;
}

.review-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-body {
  display: none;
}

.review-copy-wrap {
  flex: 1;
  display: flex;
}

.review-meta-wrap {
  margin-top: auto;
}

.review-copy {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-meta strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.review-meta span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.order-section {
  padding: 2.5rem 0 4rem;
}

.order-card {
  background: var(--cream);
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(26, 92, 42, 0.12);
}

.order-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed #86efac;
}

.order-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.order-phone span {
  color: var(--accent-dark);
}

.order-reassurance {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.order-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.packages-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.packages-table thead tr {
  background: var(--primary);
  color: var(--white);
}

.packages-table th {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.packages-table th.price-col,
.packages-table td.price-col {
  white-space: nowrap;
  text-align: right;
}

.packages-table td.price-col {
  font-variant-numeric: tabular-nums;
}

.compare-price {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.sale-price {
  color: var(--primary-dark);
  font-weight: 700;
  margin-left: 0.45rem;
}

.packages-table th.qty-col,
.packages-table td.qty-col {
  text-align: center;
}

.pkg-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.pkg-row:last-child {
  border-bottom: none;
}

.pkg-row.selected {
  background: #dcfce7;
}

.pkg-row.is-just-added {
  animation: rowPulse 420ms var(--ease-emphasis);
}

.pkg-row td {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  vertical-align: middle;
}

.pkg-name {
  font-weight: 600;
  color: var(--text);
}

.pkg-option {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.pkg-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex: 0 0 auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0;
  min-height: 32px;
  background: transparent;
  border: none;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.qty-btn:hover {
  background: #eefbf1;
  border-color: rgba(46, 125, 50, 0.18);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 32px;
  padding: 0.03rem 0.16rem;
  border-radius: 5px;
  background: #f1f5f9;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.package-helper {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.package-error {
  margin-bottom: 1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.billing-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.2);
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
  min-height: 70px;
}

.form-field select {
  cursor: pointer;
}

.form-field .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #d32f2f;
  margin-top: 3px;
  min-height: 1em;
}

.submit-error {
  padding: 0;
  margin: 0;
  min-height: 0;
}

.submit-error:empty {
  display: none;
}

.submit-error:not(:empty) {
  display: block;
  padding: 0.7rem 1rem;
  min-height: auto;
}

.form-field input.is-valid,
.form-field select.is-valid,
.form-field textarea.is-valid {
  border-color: #2e7d32;
  background: #f3fff5;
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #d32f2f;
  background: #fff6f6;
}

.order-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 1rem;
}

.order-summary h3 {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.order-items-list {
  display: flex;
  flex-direction: column;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px dashed var(--border);
  transition: background var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-emphasis);
}

.order-item.is-updated {
  background: #f3fff5;
  transform: translateX(4px);
}

.order-empty {
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.order-product-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.order-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.order-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.order-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.order-product-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.order-line.total-line {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: none;
}

.order-line span:last-child {
  font-weight: 700;
  color: var(--primary);
}

.payment-method-box {
  padding: 0.75rem 1rem;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-method-box .cod-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.cod-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 2px var(--primary);
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-submit:not(:disabled):not(.is-loading) {
  animation: orderButtonNudge 600ms var(--ease-emphasis) infinite;
  will-change: transform, background-color;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.btn-submit.is-loading {
  background: linear-gradient(90deg, #1a5c2a, #28763a, #1a5c2a);
  background-size: 200% 100%;
  animation: loadingSweep 1.1s linear infinite;
}

.btn-submit.is-loading:disabled {
  background: linear-gradient(90deg, #1a5c2a, #28763a, #1a5c2a);
  background-size: 200% 100%;
}

.btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--motion-slow) var(--ease-standard),
              transform var(--motion-slow) var(--ease-emphasis);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3.1rem;
  height: 3.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(18, 64, 28, 0.92);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  z-index: 52;
  box-shadow: 0 12px 26px rgba(18, 64, 28, 0.28);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 18px 32px rgba(18, 64, 28, 0.34);
}

.sticky-order-cta {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  min-width: min(20rem, calc(100vw - 2rem));
  padding: 0.9rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  z-index: 50;
  box-shadow: 0 16px 30px rgba(26, 92, 42, 0.22);
}

.sticky-order-cta.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sticky-order-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 20px 36px rgba(18, 64, 28, 0.28);
}

.ty-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
}

.ty-thanks {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.ty-headline {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.ty-sub {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

.ty-phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.purchase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow);
}

.purchase-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.purchase-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.meta-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.meta-item:nth-child(2n) {
  border-right: none;
}

.meta-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.meta-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.purchase-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.purchase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.purchase-table th {
  text-align: left;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--text);
}

.purchase-table th:last-child,
.purchase-table td:last-child {
  text-align: right;
}

.purchase-table td {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
}

.purchase-table tr:last-child td {
  border-bottom: none;
}

.billing-address-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-line;
}

.template-note {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.ty-back-link {
  margin-top: 1rem;
}

.track-page {
  padding-bottom: 4rem;
}

.track-shell {
  padding-bottom: 1rem;
}

.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow);
}

.track-form {
  margin-bottom: 1.5rem;
}

.track-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.55rem;
}

.track-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.track-input-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.74rem 0.9rem;
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.track-input-row input:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.track-not-found {
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: var(--radius);
  background: rgba(245, 158, 11, 0.12);
  padding: 1rem 1.15rem;
  color: var(--text);
}

.track-not-found h2 {
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}

.track-not-found p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.track-result {
  border-top: 1px dashed var(--border);
  padding-top: 1.5rem;
}

.track-status-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.track-kicker {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.track-status-panel h2 {
  color: var(--primary);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.8rem;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--primary-dark);
  padding: 0.42rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.track-meta {
  margin-bottom: 1.5rem;
}

.track-timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.track-step {
  display: grid;
  grid-template-columns: 1.55rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--text-muted);
}

.track-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  margin-top: 0.3rem;
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--bg);
}

.track-step strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.track-step span:not(.track-dot) {
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
}

.track-step.done .track-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.track-step.done strong {
  color: var(--primary);
}

.track-step.active {
  color: var(--text);
}

.track-step.active .track-dot {
  background: var(--accent);
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.is-pulsing {
  animation: valuePulse 360ms var(--ease-emphasis);
}

@keyframes valuePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rowPulse {
  0% {
    box-shadow: 0 0 0 rgba(46, 125, 50, 0);
  }
  50% {
    box-shadow: inset 0 0 0 999px rgba(46, 125, 50, 0.08);
  }
  100% {
    box-shadow: 0 0 0 rgba(46, 125, 50, 0);
  }
}

@keyframes loadingSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes orderButtonNudge {
  0% {
    background: var(--primary);
    transform: translateX(0);
  }
  8% {
    transform: translateX(-4px);
  }
  16% {
    transform: translateX(4px);
  }
  24% {
    transform: translateX(-3px);
  }
  33% {
    background: var(--primary-light);
    transform: translateX(0);
  }
  50% {
    background: var(--primary-light);
    transform: translateX(0);
  }
  58% {
    transform: translateX(4px);
  }
  66% {
    transform: translateX(-4px);
  }
  74% {
    transform: translateX(3px);
  }
  83% {
    background: var(--primary);
    transform: translateX(0);
  }
  100% {
    background: var(--primary);
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-submit:not(:disabled):not(.is-loading) {
    animation: none;
  }
}

@media (max-width: 900px) {
  .slider-shell {
    --slides-per-view: 2;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-image-wrap {
    order: -1;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-section {
    padding: 1.8rem 0 2.6rem;
  }

  .order-card {
    padding: 1.35rem;
  }

  .order-card-header {
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
  }

  .packages-table th,
  .pkg-row td {
    padding: 0.78rem 0.85rem;
  }

  .order-summary {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .slider-shell {
    --slides-per-view: 1;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    top: calc(50% - 1.3rem);
  }

  .slider-arrow-prev {
    left: -0.1rem;
  }

  .slider-arrow-next {
    right: -0.1rem;
  }

  .slider-indicators {
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .order-section {
    padding: 0.95rem 0 1.45rem;
  }

  .order-card {
    padding: 0.78rem;
    border-radius: 16px;
  }

  .order-card-header {
    margin-bottom: 0.8rem;
    padding-bottom: 0.72rem;
  }

  .packages-table th,
  .packages-table td {
    padding: 0.52rem 0.45rem;
    font-size: 0.82rem;
  }

  .pkg-option {
    gap: 0.4rem;
    align-items: flex-start;
  }

  .pkg-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 0.12rem;
  }

  .order-reassurance {
    font-size: 0.88rem;
  }

  .qty-control {
    gap: 0.14rem;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .qty-value {
    min-width: 1.8rem;
    min-height: 30px;
    font-size: 0.68rem;
  }

  .package-helper {
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
  }

  .billing-section h3,
  .order-summary h3 {
    margin-bottom: 0.9rem;
  }

  .form-field {
    margin-bottom: 0.72rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.48rem 0.62rem;
  }

  .purchase-card {
    padding: 1.25rem;
  }

  .track-card {
    padding: 1.25rem;
  }

  .track-input-row {
    grid-template-columns: 1fr;
  }

  .track-input-row .btn-cta {
    width: 100%;
    text-align: center;
  }

  .track-status-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .track-badge {
    width: fit-content;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.95rem;
    width: 2.85rem;
    height: 2.85rem;
  }

  .sticky-order-cta {
    bottom: 0.95rem;
    min-width: min(17rem, calc(100vw - 5.5rem));
  }

  .review-card.is-active,
  .hero-slide.is-active .hero-img-wrap {
    transform: none;
  }

  .purchase-meta {
    grid-template-columns: 1fr;
  }

  .meta-item {
    border-right: none;
  }

  .meta-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .meta-item:last-child {
    border-bottom: none;
  }

  .track-step {
    grid-template-columns: 1.35rem 1fr;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .slider-track {
    transition-duration: var(--motion-slider-duration) !important;
    transition-timing-function: ease !important;
  }

  .hero-slide.is-active .hero-img-wrap,
  .review-card.is-active,
  .order-item.is-updated {
    transform: none;
  }
}

.organicmartbd-template-nafiz-aam .track-input-row {
  grid-template-columns: 1fr 1fr auto;
}

@media (max-width: 560px) {
  .organicmartbd-template-nafiz-aam .track-input-row {
    grid-template-columns: 1fr;
  }
}
