/* ============================================================
   Arif Natural Agro Farm — style.css
   Vanilla CSS3 · Mobile-first · No frameworks
   Structure:
   1. Tokens & reset      5. Hero            9. Advance order
   2. Utilities           6. Categories     10. Why us / Stats
   3. Topbar & header     7. Products       11. Testimonials
   4. Navbar              8. Live animals   12. Blog / Footer / Misc
   ============================================================ */

/* ---------- 1. Design tokens & reset ---------- */
:root {
  /* Palette */
  --green-900: #0b3d1c;
  --green-800: #0f5426;
  --green-700: #157a32;
  --green-600: #1a8f3c;
  --green-100: #e6f4ea;
  --green-50:  #f2f9f4;
  --sand-100:  #faf3e3;
  --brown-700: #6b4423;
  --orange-600:#e07b00;
  --red-600:   #d92d20;
  --star:      #f5a623;
  --ink-900:   #1c2420;
  --ink-600:   #4b5563;
  --line:      #e5e7eb;
  --white:     #ffffff;

  /* Type */
  --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif Bengali", "Hind Siliguri", serif;

  /* Layout */
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(15, 84, 38, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 84, 38, 0.15);
  --gap: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-700); }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange-600);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. Utilities ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 999;
  background: var(--green-800); color: var(--white);
  padding: .5rem 1rem; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: var(--white); }

/* Buttons (reusable) */
.btn {
  display: inline-block;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--primary { background: var(--green-600); color: var(--white); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }

.btn--brown { background: var(--brown-700); color: var(--white); }
.btn--brown:hover { background: #55361b; color: var(--white); }

.btn--light { background: var(--white); color: var(--green-800); }

.btn--cart {
  background: var(--green-700); color: var(--white);
  width: 100%; padding: .5rem .75rem; font-size: .9rem;
}
.btn--cart:hover { background: var(--green-800); color: var(--white); }

.btn--outline {
  border: 1.5px solid var(--green-700); color: var(--green-700);
  padding: .4rem 1rem; font-size: .9rem;
}
.btn--outline:hover { background: var(--green-700); color: var(--white); }

.btn--solid {
  background: var(--green-700); color: var(--white);
  padding: .4rem 1rem; font-size: .9rem;
}
.btn--solid:hover { background: var(--green-800); color: var(--white); }

/* Section scaffolding */
.section { padding-block: 3rem; }
.section--alt  { background: var(--green-50); }
.section--tint { background: var(--green-100); }
.section--sand { background: var(--sand-100); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--green-800);
  text-align: center;
  margin-bottom: 1.5rem;
}
.section__title--sm { font-size: 1.2rem; margin-bottom: 1.25rem; }
.section__title span { font-size: .85em; }

.section__sub {
  text-align: center;
  color: var(--ink-600);
  margin: -1rem 0 1.5rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}
.section__head .section__title { text-align: left; flex: 1 1 auto; }

.see-all {
  color: var(--green-700);
  font-weight: 600;
  white-space: nowrap;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* Rating stars */
.rating { color: var(--star); font-size: .85rem; letter-spacing: 1px; }
.rating span { color: var(--ink-600); letter-spacing: 0; }

/* ---------- 3. Topbar & header ---------- */
.topbar {
  background: var(--green-800);
  color: var(--white);
  font-size: .8rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: .4rem;
  flex-wrap: wrap;
}
.topbar__info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__info a:hover { color: #cdeccf; }
.topbar__lang { display: flex; gap: .5rem; align-items: center; }
.topbar__lang a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.topbar__lang a:hover { color: #cdeccf; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: .75rem;
}

/* Brand */
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__logo {
  font-size: 1.6rem;
  background: var(--green-100);
  border-radius: 50%;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { color: var(--green-800); font-size: 1.05rem; }
.brand__text small { color: var(--brown-700); font-size: .62rem; letter-spacing: .06em; }
.brand__text em { color: var(--ink-600); font-size: .62rem; font-style: normal; }

/* Search */
.search {
  flex: 1 1 320px;
  display: flex;
  max-width: 520px;
  border: 2px solid var(--green-700);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.search input {
  flex: 1;
  border: 0;
  padding: .55rem 1rem;
  font: inherit;
  min-width: 0;
}
.search input:focus { outline: none; }
.search button {
  background: var(--green-700);
  color: var(--white);
  padding: 0 1.1rem;
}
.search button:hover { background: var(--green-800); }

/* Header actions */
.header__actions { display: flex; gap: 1.1rem; margin-left: auto; }
.h-action {
  display: flex; flex-direction: column; align-items: center;
  gap: .15rem; font-size: .7rem; color: var(--ink-600);
}
.h-action__icon { position: relative; font-size: 1.25rem; }
.h-action__icon[data-badge]::after {
  content: attr(data-badge);
  position: absolute; top: -6px; right: -10px;
  background: var(--green-700); color: var(--white);
  font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px; line-height: 16px;
  border-radius: 999px; text-align: center; padding-inline: 3px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  width: 24px; height: 3px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 4. Navbar ---------- */
.navbar { background: var(--white); border-top: 1px solid var(--line); }
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .5rem;
}
.cat-btn {
  background: var(--green-700);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.cat-btn:hover { background: var(--green-800); }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.is-active {
  background: var(--green-100);
  color: var(--green-800);
}

.offer-btn {
  background: var(--red-600);
  color: var(--white);
  padding: .45rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.offer-btn:hover { background: #b42318; color: var(--white); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__slides { position: relative; min-height: 550px; }
.hero__slide{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;

    background: var(--slide-img);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }

.hero__content { color: var(--white); padding-block: 3rem; max-width: var(--container); }
.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.title-1{
    color:#0b5d1e;
}

.title-2{
    color:#7b3f00;
}
.hero__content p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 1.5rem;
  color: #000000;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero__art{
    position:absolute;
    right:4%;
    bottom:8%;
    opacity:.9;
    pointer-events:none;
    user-select:none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--green-800);
  font-size: 1.5rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.hero__arrow:hover { background: var(--white); }
.hero__arrow--prev { left: .75rem; }
.hero__arrow--next { right: .75rem; }

.hero__dots {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: .5rem;
  z-index: 5;
}
.hero__dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s ease, transform .15s ease;
}
.hero__dots button[aria-selected="true"] {
  background: var(--white);
  transform: scale(1.25);
}

/* ---------- 6. Categories ---------- */
.categories { padding-block: 1.5rem; }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--gap);
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-600);
  color: var(--green-800);
}
.cat-card__img {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2rem;
}
.cat-card__img--pink  { background: #fdeceb; }
.cat-card__img--green { background: #e8f5e4; }
.cat-card__img--cream { background: #fdf3df; }
.cat-card__img--blue  { background: #e8f1fb; }

/* ---------- 7. Featured products ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.tab {
  padding: .4rem 1.2rem;
  border: 1.5px solid var(--green-700);
  border-radius: 999px;
  color: var(--green-800);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.tab:hover { background: var(--green-100); }
.tab.is-active { background: var(--green-700); color: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.is-hidden { display: none; }

/* NOTE: replace .product-card__media with a real <img> in production.
   The gradient + emoji is a lightweight placeholder. */
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
}
.product-card__media--milk    { background: linear-gradient(135deg,#eef6ff,#dbeafe); }
.product-card__media--egg     { background: linear-gradient(135deg,#fdf6e3,#fbe8c4); }
.product-card__media--veg     { background: linear-gradient(135deg,#e9f7e6,#d3eecb); }
.product-card__media--chicken { background: linear-gradient(135deg,#fdeeee,#fad9d3); }
.product-card__media--honey   { background: linear-gradient(135deg,#fef3d8,#f9ddaa); }

.badge {
  position: absolute;
  top: .6rem; left: .6rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 4px;
  color: var(--white);
}
.badge--sale { background: var(--red-600); }

.product-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:15px;
}

.btn--details{
    flex:1;
    height:44px;
    background:#1B7D32;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.btn--details:hover{
    background:#083d17;
    color:#fff;
}

.btn-cart{
    width:44px;
    height:44px;
    border:1px solid #1B7D32;
    border-radius:8px;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}
.btn-cart i{
    color: #0b5d1e;
    font-size: 18px;
}

.btn-cart:hover{
    background: #1B7D32; 
    border-color: #1B7D32;
}

.btn-cart:hover i{
    color: #ffffff;
}

.wish-btn {
  position: absolute;
  top: .5rem; right: .5rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 1rem;
  display: grid; place-items: center;
  transition: color .15s ease, transform .15s ease;
}
.wish-btn:hover, .wish-btn.is-on { color: var(--red-600); transform: scale(1.1); }

.product-card__body {
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.product-card__body h3 { font-size: .95rem; margin: 0; }
.price { font-size: 1.05rem; color: var(--orange-600); }
.price strong { font-weight: 700; }
.price del { color: var(--ink-600); font-size: .85rem; margin-left: .35rem; }
.product-card__body .btn { margin-top: auto; }

/* ---------- 8. Live animal market ---------- */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.animal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.animal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.animal-card__media {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  font-size: 4rem;
}
.animal-card__media img{
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.animal-card__media--cow1  { background: linear-gradient(135deg,#dcefd4,#a9d29a); }
.animal-card__media--cow2  { background: linear-gradient(135deg,#d4e8ef,#9ac4d2); }
.animal-card__media--goat1 { background: linear-gradient(135deg,#efe6d4,#d2bd9a); }
.animal-card__media--goat2 { background: linear-gradient(135deg,#e6efd4,#bcd29a); }
.animal-card__actions{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.animal-card__body { padding: 1rem; }
.animal-card__body h3{
    font-size:1.08rem;
    margin-bottom:.5rem;
}

.animal-card__body h3 a{
    color:#111;
    text-decoration:none;
    transition:color .3s ease;
}

.animal-card__body h3 a:hover{
    color:#2E7D32;
}

.animal-specs { font-size: .85rem; color: var(--ink-600); margin-bottom: .5rem; }
.animal-specs div { display: flex; gap: .35rem; }
.animal-specs dt { font-weight: 600; }
.animal-specs dd { margin: 0; }

.animal-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: .6rem;
}

/* ---------- 9. Subscription plans ---------- */
.subs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.sub-card{
    background: var(--white);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    padding:0;
    display:flex;
    flex-direction:column;
    box-shadow:var(--shadow);
}

.sub-card{
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.sub-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.sub-card__image{
    width:100%;
    height:220px;
    overflow:hidden;
}

.sub-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.sub-card__body{
    padding:20px;
}

.sub-card__body h3{
    font-size:1.08rem;
    margin-bottom:.5rem;
}

.sub-card__body h3 a{
    color:#111;
    text-decoration:none;
    transition:color .3s ease;
}

.sub-card__body h3 a:hover{
    color:#2E7D32;
}

.sub-card__desc{
    color:#666;
    line-height:1.6;
    margin-bottom:15px;
}

.sub-card__price{
    color:#198754;
    font-weight:700;
    margin-bottom:18px;
}

.sub-card .btn{
    width:100%;
}
/* Fix: the ☑ marker is absolutely positioned, so the list item must be its
   positioning context — otherwise the icons escape the content area. */
.check-list li{
    position: relative;
    padding-left: 1.4rem;
}
  .check-list li::before{
    content: "☑";
    position: absolute;
    left: 0;
    color: var(--green-600);
    font-weight: 700;
}
.sub-card .btn--cart { width: auto; padding-inline: 1.1rem; }

/* ---------- 10. Advance order ---------- */

.advance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.advance-card {
    background: var(--white);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    padding:0;
    display:flex;
    flex-direction:column;
    box-shadow:var(--shadow);
}

.advance-card{
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.advance-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.advance-card__image{
    width:100%;
    height:220px;
    overflow:hidden;
}

.advance-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.advance-card__body{
    padding:20px;
}

.advance-card__body h3{
    font-size:1.08rem;
    margin-bottom:.5rem;
}

.advance-card__body h3 a{
    color:#111;
    text-decoration:none;
    transition:color .3s ease;
}

.advance-card__body h3 a:hover{
    color:#2E7D32;
}

.advance-card__desc{
    color:#666;
    margin:10px 0;
}

.advance-card__price{
    color:#198754;
    font-weight:700;
    margin:15px 0;
}

.advance-card__list{
    color:#666;
    font-size: 0.8rem;
    font-weight:400;
    margin:10px 0;
}


.advance-card .btn{
    width:100%;
}

.advance-cta { text-align: center; margin-top: 1.5rem; }

/* ---------- 11. Why us + Stats ---------- */
.why-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .why-stats { grid-template-columns: 1.1fr 1fr; }
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.why__grid li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    margin-bottom: 25px;
}
.why__icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--green-100);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.why__grid h3 { font-size: .9rem; margin: 0; }
.why__grid p { font-size: .8rem; color: var(--ink-600); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.stats__grid strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green-800);
}
.stats__grid span { font-size: .85rem; color: var(--ink-600); }

/* ---------- 12. Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.t-card figcaption { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.t-card__avatar {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--green-100);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.t-card figcaption strong { display: block; font-size: .95rem; }
.t-card figcaption small { color: var(--ink-600); display: block; }
.t-card blockquote p { font-size: .9rem; color: var(--ink-600); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__media {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  font-size: 3rem;
}
.blog-card__media--cow  { background: linear-gradient(135deg,#dcefd4,#a9d29a); }
.blog-card__media--hen  { background: linear-gradient(135deg,#f9e3cc,#e8b784); }
.blog-card__media--veg  { background: linear-gradient(135deg,#e2f2d8,#b2dc9a); }
.blog-card__media--milk { background: linear-gradient(135deg,#f2f2ee,#dcdcd2); }

.blog-card__body { padding: 1rem; }
.blog-card__body h3 { font-size: .98rem; margin-bottom: .25rem; }
.blog-card__body time { font-size: .8rem; color: var(--ink-600); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: #d9ead9;
  margin-top: 3rem;
}
.footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-block: 2.5rem;
}
.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .8rem;
}
.footer__col ul li { margin-bottom: .45rem; font-size: .9rem; }
.footer__contact { font-style: normal; }

.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small { color: #ffffff; }
.brand--footer .brand__text em{
    color: #ffffff;
    font-style: normal;
}f
.footer__about p { font-size: .9rem; margin-block: .75rem; }

.socials { display: flex; gap: .6rem; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-weight: 700;
  transition: background .15s ease;
}
.socials a:hover { background: var(--green-600); color: var(--white); }

.payments { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.payments li {
  background: var(--white);
  color: var(--ink-900);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding-block: 1rem;
  font-size: .85rem;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateY(8px);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green-800); }

/* Scroll reveal (JS adds .reveal / .reveal.is-in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .h-action__label { display: none; }
  .main-nav a { padding-inline: .6rem; font-size: .92rem; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__info { justify-content: center; gap: .75rem; }

  .header__inner { flex-wrap: wrap; gap: .75rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header__actions { gap: .8rem; }
  .nav-toggle { display: flex; }

  .navbar__inner { flex-wrap: wrap; }
  .cat-btn { display: none; }

  .main-nav {
    display: none;
    flex-basis: 100%;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { border-radius: var(--radius-sm); }

  .offer-btn { margin-left: auto; }

  .hero__slides { min-height: 360px; }
  .hero__art { display: none; }

  .sub-card { flex-direction: column; align-items: center; text-align: center; }
  .check-list li { text-align: left; }

  .section { padding-block: 2.25rem; }
  .section__head { flex-direction: column; align-items: center; }
  .section__head .section__title { text-align: center; }
}

/* Small mobile ≤ 420px */
@media (max-width: 420px) {
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid,
  .animals-grid,
  .testimonials-grid,
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .advance-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ============================================================
   PHASE 2 — Dropdown navigation + inner pages
   Same tokens, shadows, radii and spacing as the homepage.
   Nothing above this line was modified.
   ============================================================ */

/* ---------- Dropdown navigation ---------- */
.main-nav > ul > li { position: relative; }

.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}
.nav-drop-btn:hover,
.has-dropdown:hover > .nav-drop-btn,
.has-dropdown.is-open > .nav-drop-btn {
  background: var(--green-100);
  color: var(--green-800);
}
.caret { font-size: .7em; transition: transform .2s ease; }
.has-dropdown.is-open > .nav-drop-btn .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 80;
  min-width: 235px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.dropdown a:hover {
  background: var(--green-100);
  color: var(--green-800);
  transform: translateX(4px);
}

.dropdown--mega {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem 1.4rem;
  width: min(740px, calc(100vw - 2rem));
  padding: 1.1rem;
}
.mega__group h4 {
  font-size: .88rem;
  color: var(--green-800);
  margin: 0 0 .35rem;
  padding: .25rem .7rem .45rem;
  border-bottom: 1px dashed var(--line);
}
.mega__all {
  grid-column: 1 / -1;
  justify-content: center;
  border-top: 1px solid var(--line);
  margin-top: .15rem;
  padding-top: .7rem;
  font-weight: 700;
  color: var(--green-700);
}

/* Desktop: open on hover / keyboard focus */
@media (min-width: 769px) {
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown,
  .has-dropdown.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile: accordion inside the collapsible menu */
@media (max-width: 768px) {
  .dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--green-100);
    border-radius: 0;
    padding: .1rem 0 .3rem .85rem;
    margin: .15rem 0 .35rem .85rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown.is-open > .dropdown { display: block; }
  .has-dropdown.is-open > .dropdown--mega {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    gap: .5rem;
  }
  .nav-drop-btn { justify-content: space-between; }
}

.login-btn {
  border: 1.5px solid var(--green-700);
  color: var(--green-700);
  padding: .35rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.login-btn:hover { background: var(--green-700); color: var(--white); }

/* ---------- Page banner + breadcrumb ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--green-900), var(--green-700));
  color: var(--white);
  padding-block: 2.75rem;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: .3rem 0 .25rem;
}
.page-banner p { color: #d9ead9; max-width: 62ch; }

.breadcrumb {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #bcd9bc;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 600; }

/* ---------- Image + text split ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split + .split { margin-top: 3rem; }
.split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  box-shadow: var(--shadow);
}
.split__body h2 {
  font-family: var(--font-display);
  color: var(--green-800);
  font-size: 1.4rem;
}
.split__body p { color: var(--ink-600); margin-bottom: .8rem; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
}

/* Placeholder gradients (swap for real <img> in production) */
.ph--green { background: linear-gradient(135deg, #dcefd4, #a9d29a); }
.ph--blue  { background: linear-gradient(135deg, #e8f1fb, #b9d4ef); }
.ph--cream { background: linear-gradient(135deg, #fdf3df, #f4dfae); }
.ph--pink  { background: linear-gradient(135deg, #fdeceb, #f5cbc4); }
.ph--earth { background: linear-gradient(135deg, #efe6d4, #d2bd9a); }

/* Extra product media variants (same style family as homepage) */
.product-card__media--fruit { background: linear-gradient(135deg, #fdeceb, #f9cfc0); }
.product-card__media--cow   { background: linear-gradient(135deg, #dcefd4, #a9d29a); }
.product-card__media--goat  { background: linear-gradient(135deg, #efe6d4, #d2bd9a); }
.product-card__media--duck  { background: linear-gradient(135deg, #e8f1fb, #b9d4ef); }
.product-card__media--fish  { background: linear-gradient(135deg, #dceef4, #9ac9d2); }
.product-card__media--grain { background: linear-gradient(135deg, #fdf6e3, #eeddb0); }

/* ---------- Timeline (Our Story) ---------- */
.timeline { display: grid; gap: 1.1rem; max-width: 760px; margin-inline: auto; }
.timeline li { position: relative; padding-left: 2.3rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: .5rem;
  bottom: -1.1rem;
  width: 2px;
  background: var(--green-100);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: .22rem;
  top: .35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-100);
}
.timeline strong { display: block; color: var(--green-800); }
.timeline p { color: var(--ink-600); font-size: .92rem; }

/* ---------- Icon cards (values / benefits / steps) ---------- */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-card > span { font-size: 2.2rem; display: block; margin-bottom: .45rem; }
.icon-card h3 { font-size: 1rem; color: var(--green-800); margin-bottom: .2rem; }
.icon-card p { font-size: .88rem; color: var(--ink-600); }
.icon-card .step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .5rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--green-100);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
}
.team-card h3 { font-size: 1rem; margin-bottom: .1rem; }
.team-card > p { font-size: .85rem; color: var(--green-700); font-weight: 600; }
.team-card small { color: var(--ink-600); display: block; margin-top: .3rem; }
.team-card .socials { justify-content: center; margin-top: .7rem; }
.team-card .socials a { width: 30px; height: 30px; font-size: .78rem; background: var(--green-100); color: var(--green-800); }
.team-card .socials a:hover { background: var(--green-600); color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--green-800), var(--green-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.35rem;
  margin: 0 0 .15rem;
}
.cta-band p { color: #d9ead9; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- FAQ (accordion) ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-700); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.faq[open] summary { color: var(--green-800); }
.faq[open] summary::after { content: "−"; }
.faq > div { padding: 0 1.25rem 1.1rem; color: var(--ink-600); font-size: .95rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}
.form-note {
  display: none;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: .55rem .9rem;
}
.form-note.is-visible { display: block; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .form-field--full { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr .85fr; } }
.contact-info li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding-block: .55rem;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info .why__icon { font-size: 1.1rem; }
.map-ph {
  margin-top: 2rem;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  border: 1.5px dashed var(--green-600);
  background: var(--green-50);
  color: var(--green-800);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 600;
}

/* ---------- Prose (policies, blog article) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 {
  color: var(--green-800);
  font-size: 1.2rem;
  margin-top: 1.9rem;
}
.prose h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.prose p { color: var(--ink-600); margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; color: var(--ink-600); margin-bottom: .9rem; }
.prose li { margin-bottom: .35rem; }
.updated {
  display: inline-block;
  font-size: .85rem;
  color: var(--ink-600);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .45rem .9rem;
  margin-bottom: 1.25rem;
}

/* ---------- Blog single ---------- */
.post-hero {
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.post-meta {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  color: var(--ink-600);
  font-size: .88rem;
  margin-bottom: 1.1rem;
}
.tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.tags a {
  background: var(--green-100);
  color: var(--green-800);
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.tags a:hover { background: var(--green-700); color: var(--white); }
.author-box { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; }
.author-box .t-card__avatar { width: 60px; height: 60px; font-size: 1.7rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.25rem; }
.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-inline: .5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease;
}
.pagination .is-current { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.pagination a:hover { border-color: var(--green-700); color: var(--green-800); }

/* ============================================================
   PHASE 3 — "All Categories" as the first nav item
   Reuses the original homepage .cat-btn look (green pill, ☰ icon)
   on the mega-menu trigger. No other nav styles changed.
   ============================================================ */
.main-nav .cat-btn.nav-drop-btn {
  background: var(--green-700);
  color: var(--white);
  padding: .5rem 1.1rem;
  gap: .45rem;
  font-weight: 600;
  width: auto;
}
.main-nav .cat-btn.nav-drop-btn:hover,
.main-nav .has-dropdown:hover > .cat-btn.nav-drop-btn,
.main-nav .has-dropdown.is-open > .cat-btn.nav-drop-btn {
  background: var(--green-800);
  color: var(--white);
}

/* Mobile: show it (Phase 1 hid .cat-btn) and behave like the other
   accordion rows inside the collapsible menu */
@media (max-width: 768px) {
  .main-nav .cat-btn.nav-drop-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   PHASE 4 — Account pages, cart, tables + RTL support
   Same tokens as everything above. Nothing earlier modified.
   ============================================================ */

/* ---------- Auth (login / register) ---------- */
.auth-wrap { max-width: 480px; margin-inline: auto; }
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
}
.auth-row a { color: var(--green-700); font-weight: 600; }
.check-inline { display: flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--green-700); }
.auth-alt { text-align: center; margin-top: 1.1rem; font-size: .92rem; color: var(--ink-600); }
.auth-alt a { color: var(--green-700); font-weight: 700; }
.form-note.is-error { color: var(--red-600); background: #fdeceb; border-color: #f5cbc4; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 265px 1fr; } }

.dash-user {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .6rem;
}
.dash-user .t-card__avatar { width: 44px; height: 44px; font-size: 1.2rem; }

.dash-menu ul li { margin-bottom: .15rem; }
.dash-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.dash-menu a:hover { background: var(--green-50); color: var(--green-800); }
.dash-menu a.is-active { background: var(--green-100); color: var(--green-800); font-weight: 700; }
.dash-menu .dm-logout { color: var(--red-600); }
.dash-menu .dm-logout:hover { background: #fdeceb; color: var(--red-600); }

.dash-panel { display: none; }
.dash-panel.is-active { display: block; }
.dash-panel > .icon-cards h3 { font-size: 1.6rem; margin-bottom: .1rem; }

/* ---------- Tables (orders / cart) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  background: var(--green-50);
  color: var(--green-800);
  text-align: start;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }

.pill {
  display: inline-block;
  padding: .12rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill--ok { background: var(--green-100); color: var(--green-800); }
.pill--pending { background: #fdf3df; color: #8a5a22; }
.pill--cancel { background: #fdeceb; color: var(--red-600); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; font-weight: 700; color: var(--green-800); transition: background .15s ease; }
.qty button:hover { background: var(--green-100); }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }

.remove-btn { color: var(--red-600); font-weight: 700; padding: .25rem .5rem; border-radius: var(--radius-sm); }
.remove-btn:hover { background: #fdeceb; }

/* ---------- Cart layout ---------- */
.cart-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1.4fr .6fr; } }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.summary-row--total { border-bottom: 0; font-size: 1.1rem; color: var(--green-800); }
.cart-summary .btn { width: 100%; margin-top: .8rem; }

/* ---------- Lists (wishlist rows / notifications / addresses / payments) ---------- */
.empty-note { display: none; text-align: center; color: var(--ink-600); padding: 1.25rem 0; }
.empty-note.is-visible { display: block; }
.empty-note a { color: var(--green-700); font-weight: 700; }

.notif {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.notif:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.notif.is-unread { background: var(--green-50); border-color: var(--green-100); }
.notif.is-unread p { font-weight: 600; }
.notif > span { font-size: 1.4rem; }
.notif time { display: block; font-size: .78rem; color: var(--ink-600); margin-top: .15rem; }

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
}
.list-row strong { color: var(--green-800); display: block; }
.list-row p { color: var(--ink-600); font-size: .92rem; }

/* ============================================================
   RTL (Arabic) — mirrors physical left/right styles
   ============================================================ */
html[lang="ar"] body,
html[lang="ar"] .section__title,
html[lang="ar"] .page-banner h1,
html[lang="ar"] .cta-band h2 {
  font-family: "Noto Kufi Arabic", "Hind Siliguri", system-ui, sans-serif;
}

[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .main-nav a,
[dir="rtl"] .nav-drop-btn { text-align: right; }
[dir="rtl"] .dropdown { left: auto; right: 0; }
[dir="rtl"] .dropdown a:hover { transform: translateX(-4px); }
[dir="rtl"] .header__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .h-action__icon[data-badge]::after { right: auto; left: -10px; }
[dir="rtl"] .badge { left: auto; right: .6rem; }
[dir="rtl"] .wish-btn { right: auto; left: .5rem; }
[dir="rtl"] .price del { margin-left: 0; margin-right: .35rem; }
[dir="rtl"] .hero__art { right: auto; left: 4%; }
[dir="rtl"] .section__head .section__title { text-align: right; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .timeline li { padding-left: 0; padding-right: 2.3rem; }
[dir="rtl"] .timeline li::before { left: auto; right: .55rem; }
[dir="rtl"] .timeline li::after { left: auto; right: .22rem; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .back-to-top { right: auto; left: 1rem; }
[dir="rtl"] .split__body,
[dir="rtl"] .footer__col { text-align: right; }

@media (max-width: 768px) {
  [dir="rtl"] .offer-btn { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .dropdown {
    border-left: 0;
    border-right: 3px solid var(--green-100);
    padding: .1rem .85rem .3rem 0;
    margin: .15rem .85rem .35rem 0;
  }
}

/* ============================================================
   HEADER AUTH STATE — logged-in user menu
   Additive only: reuses the existing .login-btn pill and
   .dropdown styles. No existing header rules were modified.
   ============================================================ */
.user-menu { position: relative; display: inline-block; }
.user-menu__btn { display: inline-flex; align-items: center; gap: .35rem; }
.user-menu__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu.is-open > .user-menu__btn .caret { transform: rotate(180deg); }
.user-menu > .dropdown { left: auto; right: 0; min-width: 220px; }
[dir="rtl"] .user-menu > .dropdown { right: auto; left: 0; }

/* Ensure hidden Login / My Account stay hidden despite display rules */
[data-login-link][hidden],
[data-account-link][hidden] { display: none !important; }

/* Mobile: keep the user dropdown anchored to the name button
   (it lives outside the collapsible nav accordion) */
@media (max-width: 768px) {
  .user-menu > .dropdown {
    position: absolute;
    left: auto;
    right: 0;
    display: block;
    width: auto;
    min-width: 220px;
    margin: 0;
    padding: .5rem;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }
  .user-menu.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  [dir="rtl"] .user-menu > .dropdown { right: auto; left: 0; }
}

/* ============================================================
   DASHBOARD — "My Subscriptions" compact card
   Additive, scoped classes only. Mirrors .product-card design
   language (rounded corners, border, shadow, hover lift).
   ============================================================ */
.dash-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 290px));
  gap: 1.25rem;
}
.dash-sub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dash-sub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.dash-sub-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef6ff, #dbeafe); /* same as product milk media */
}
.dash-sub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-sub-card__status {
  position: absolute;
  top: .6rem;
  left: .6rem;
  box-shadow: var(--shadow);
}

.dash-sub-card__body {
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.dash-sub-card__body h3 { font-size: 1rem; margin: 0; }

.dash-sub-card__meta { display: grid; gap: .4rem; }
.dash-sub-card__meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  font-size: .85rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: .4rem;
}
.dash-sub-card__meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-sub-card__label { color: var(--green-800); font-weight: 600; white-space: nowrap; }
.dash-sub-card__meta li > span:last-child { text-align: right; color: var(--ink-600); }

.dash-sub-card .btn { width: 100%; text-align: center; }

/* RTL mirroring, consistent with the rest of the site */
[dir="rtl"] .dash-sub-card__status { left: auto; right: .6rem; }
[dir="rtl"] .dash-sub-card__meta li > span:last-child { text-align: left; }
