/* ===== Svarnadhara — Luxury Heritage theme ===== */

:root {
  --sd-gold: #C9973F;
  --sd-gold-bright: #E7C67A;
  --sd-gold-dark: #8C6E3A;
  --sd-brown: #120D07;
  --sd-brown-soft: #1D160D;
  --sd-cream: #F7EFDC;
  --sd-cream-soft: #D9CCAC;
  --sd-green: #55632B;
  --sd-serif: "Cormorant Garamond", serif;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

body { font-family: "Poppins", "Segoe UI", Arial, sans-serif; }

/* Scoped to index.html only — other pages keep their existing light
   card-based styling and would lose readability under a dark body
   (e.g. .page-title is dark brown, invisible on a dark background). */
body.sd-page-dark {
  font-weight: 300;
  background: #d9ccac57;
  color: var(--sd-cream);
}
.sd-page-dark h1, .sd-page-dark h2, .sd-page-dark h3, .sd-page-dark h4 {
  font-family: var(--sd-serif); font-weight: 600; letter-spacing: 0;
}

/* NAV */
.sd-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* background: rgba(18,13,7,0.96); */
  background: #d9ccac57;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(231,198,122,0.18);
}
.sd-nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 40px;
}
.sd-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.sd-nav-logo { height: 70px; width: auto; display: block; }
.sd-nav-brand-text {
  font-family: var(--sd-serif);
  font-style: italic;
  font-weight: 600;
  /* color: var(--sd-gold-bright); */
  color: #3a2900;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sd-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.sd-nav-links a {
  /* color: var(--sd-cream-soft); */
  color: #3a2900;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.sd-nav-links a:hover {
   color: var(--sd-gold-bright);
   }
.sd-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}
.sd-nav-user-dropdown { position: relative; }
.sd-nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: #3a2900;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  padding: 6px 2px;
}
.sd-nav-user-caret { color: #3a2900; transition: transform 0.15s ease; flex-shrink: 0; }
.sd-nav-user-dropdown.sd-nav-user-open .sd-nav-user-caret { transform: rotate(180deg); }
.sd-nav-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.25);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.sd-nav-user-dropdown.sd-nav-user-open .sd-nav-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sd-nav-user-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--sd-cream-soft);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: inherit;
  padding: 13px 18px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.sd-nav-user-menu-item:hover { color: var(--sd-gold-bright); background: rgba(231,198,122,0.1); }
.sd-nav-cta {
  padding: 10px 22px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.sd-lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(58,41,0,0.3);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.sd-lang-toggle button {
  background: none;
  border: none;
  color: #3a2900;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
}
.sd-lang-toggle button.active {
  background: var(--sd-gold-bright);
  color: var(--sd-brown);
}
.sd-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sd-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #3a2900;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sd-nav-toggle-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sd-nav-toggle-open span:nth-child(2) { opacity: 0; }
.sd-nav-toggle-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Medium desktop / laptop band: full nav still shows in one row, but
   more tightly packed so it doesn't outgrow common 1024-1300px laptop
   viewports (below 980px the hamburger menu takes over instead). */
@media (max-width: 1300px) and (min-width: 981px) {
  .sd-nav-inner { padding: 12px 20px; gap: 16px; }
  .sd-nav-logo { height: 50px; }
  .sd-nav-brand-text { font-size: 1.4rem; }
  .sd-nav-links { gap: 14px; }
  .sd-nav-links a { font-size: 0.76rem; letter-spacing: 0.03em; }
  .sd-nav-right { gap: 10px; }
  .sd-nav-user-trigger { font-size: 0.76rem; }
  .sd-nav-cta { padding: 8px 14px; font-size: 0.7rem; }
  .sd-lang-toggle button { padding: 4px 8px; font-size: 0.68rem; }
}

@media (max-width: 980px) {
  .sd-nav-inner { padding: 12px 20px; gap: 16px; }
  .sd-nav-logo { height: 50px; }
  .sd-nav-brand-text { font-size: 1.5rem; }
  .sd-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--sd-brown-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(231,198,122,0.18);
  }
  .sd-nav-links.sd-nav-open { max-height: 80vh; overflow-y: auto; }
  .sd-nav-links a {
    padding: 14px 24px;
    border-top: 1px solid rgba(231,198,122,0.1);
    width: 100%;
    text-align: left;
    color: var(--sd-cream-soft);
  }
  .sd-nav-right { gap: 10px; }
  .sd-nav-user-dropdown { display: none; }
  .sd-nav-cta { display: none; }
  .sd-nav-toggle { display: flex; }
  .sd-nav-mobile-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid rgba(231,198,122,0.1);
  }
  .sd-nav-mobile-user .sd-nav-user-name {
    color: var(--sd-cream-soft);
    font-size: 0.85rem;
    font-weight: 600;
  }
  .sd-nav-mobile-user .sd-nav-user-menu-item {
    width: auto;
    padding: 8px 16px;
    border: 1px solid rgba(231,198,122,0.3);
    border-radius: 999px;
    color: var(--sd-gold-bright);
  }
}

@media (min-width: 981px) {
  .sd-nav-mobile-user { display: none; }
}

/* Very narrow phones (iPhone SE and similar ~320px) — the standard
   mobile bar above is still a touch too wide, so trim it further. */
@media (max-width: 360px) {
  .sd-nav-inner { padding: 10px 14px; gap: 10px; }
  .sd-nav-brand { gap: 8px; }
  .sd-nav-logo { height: 38px; }
  .sd-nav-brand-text { font-size: 1.15rem; }
  .sd-nav-right { gap: 6px; }
  .sd-lang-toggle { padding: 2px; }
  .sd-lang-toggle button { padding: 4px 6px; font-size: 0.64rem; }
  .sd-nav-toggle { width: 28px; height: 28px; }
}

/* HERO */
.sd-hero {
  position: relative;
  overflow: hidden;
  background: var(--sd-brown);
  color: var(--sd-cream);
  padding: 110px 20px 100px;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.sd-hero-video-bg { position: absolute; inset: 0; z-index: 0; }
.sd-hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.85);
}
.sd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, #3a2900 0%, #3a29003d 78%);
}
.sd-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}
.sd-hero-blob-1 { width: 320px; height: 320px; background: var(--sd-gold); top: -80px; left: -100px; }
.sd-hero-blob-2 { width: 260px; height: 260px; background: var(--sd-green); bottom: -100px; right: -60px; }

.sd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.sd-hero-rule {
  width: 60px;
  height: 1px;
  background: var(--sd-gold-bright);
  margin: 0 auto 24px;
}
.sd-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sd-gold-bright);
  margin-bottom: 22px;
}
.sd-hero-title {
  font-family: var(--sd-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0 0 20px;
  color: var(--sd-cream);
}
.sd-hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--sd-cream-soft);
  margin: 0 auto 26px;
  max-width: 460px;
}
.sd-quote {
  position: relative;
  margin: 0 auto 32px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--sd-gold);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--sd-cream-soft);
  max-width: 440px;
  text-align: left;
}
.sd-quote-mark {
  color: var(--sd-gold-bright);
  font-size: 1.6rem;
  font-style: normal;
  margin-right: 4px;
  vertical-align: -4px;
}
.sd-hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.sd-hero-badge {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sd-gold-bright), var(--sd-gold));
  color: var(--sd-brown);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.sd-hero-video-note {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  right: 16px;
  font-size: 0.72rem;
  color: rgba(247,239,220,0.4);
}
.sd-hero-seal {
  position: absolute;
    z-index: 2;
    bottom: 40px;
    right: 40px;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    border: 3px solid #ffbe07;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a2900;
    line-height: 1.4;
    background: rgb(231 198 122 / 78%);
}

@media (max-width: 860px) {
  .sd-hero { padding: 100px 20px 90px; min-height: 560px; }
  .sd-hero-sub, .sd-quote { max-width: none; }
  .sd-hero-seal { display: none; }
  .sd-hero-badge { bottom: 18px; font-size: 0.72rem; padding: 8px 16px; }
  .sd-hero-video-note { display: none; }
}

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: linear-gradient(135deg, var(--sd-gold-bright), var(--sd-gold));
  color: var(--sd-brown);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(201,151,63,0.25);
  font-size: 18px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,151,63,0.35); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(231,198,122,0.6);
  color: var(--sd-gold-bright);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(231,198,122,0.1); color: var(--sd-gold-bright); transform: translateY(-2px); box-shadow: none; }

/* WAVE DIVIDERS */
.sd-wave { line-height: 0; margin-top: -1px; }
.sd-wave svg { width: 100%; height: 60px; display: block; }
.sd-wave svg path { 
  /* fill: var(--sd-brown-soft);  */
  fill: #694900;

}
.sd-wave-flip { transform: scaleY(-1); }

/* TRUST BAR */
.sd-trustbar {
   /* background: var(--sd-brown-soft);  */
   background: #694900;
   border-bottom: 1px solid rgba(231,198,122,0.12); }
.sd-trustbar-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 20px;
}
.sd-trust-item {
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sd-cream-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.sd-trust-item:hover { transform: translateY(-2px); color: var(--sd-gold-bright); }

/* PROMISE BLOCK */
.sd-promise {
  max-width: 720px;
  margin: 64px auto;
  text-align: center;
  padding: 0 20px;
}
.sd-promise h2 {
  font-style: italic;
  /* color: var(--sd-cream); */
  color: #3a2900;
  font-size: 2rem;
  margin-bottom: 18px;
}
.sd-promise p { 
  /* color: var(--sd-cream-soft); */
  color: #3a2900;
   font-size: 1.02rem; font-weight: 300; line-height: 1.85; }

/* ORGANIC / SECTION WRAPPER */
.sd-organic-band {
  position: relative; 
  /* background: var(--sd-brown);  */
  background: #332400;
  overflow: hidden; }
.sd-leaf { position: absolute; font-size: 4rem; opacity: 0.06; pointer-events: none; }
.sd-leaf-1 { top: 10%; left: -20px; transform: rotate(-15deg); }
.sd-leaf-2 { bottom: 5%; right: -10px; transform: rotate(200deg); font-size: 5rem; }

.sd-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(231,198,122,0.1);
  border: 1px solid rgba(231,198,122,0.25);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* SECTIONS (cards on dark bg) */
.sd-section {
  /* padding: 48px; */
  margin: 40px auto;
  max-width: 900px;
  /* background: var(--sd-brown-soft); */
  /* background:#76450042; */
  background: #3a2900;
  border: 1px solid rgba(231,198,122,0.14);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.sd-section h2 { font-style: italic; color: var(--sd-cream); margin-top: 0; }
.sd-section-sub { max-width: 560px; margin-bottom: 32px; color: var(--sd-cream-soft) !important; }

.sd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sd-point {
  padding: 18px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sd-point:hover { background: rgba(231,198,122,0.05); transform: translateY(-3px); }
.sd-point h3 { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--sd-gold-bright); margin-bottom: 8px; font-size: 1rem; }
.sd-point p.muted { color: var(--sd-cream-soft) !important; }

/* PROCESS */
.sd-process { list-style: none; margin: 0; padding: 0; }
.sd-process li {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(231,198,122,0.12);
}
.sd-process li:last-child { border-bottom: none; }
.sd-step-num {
  font-family: var(--sd-serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sd-gold-bright);
  min-width: 44px;
}
.sd-process h3 { font-family: "Poppins", sans-serif; font-weight: 600; margin: 0 0 4px; color: var(--sd-cream); font-size: 1rem; }
.sd-process p.muted { color: var(--sd-cream-soft) !important; }

/* CTA */
.sd-cta {
  text-align: center;
  padding: 56px 40px;
  margin: 40px auto 60px;
  max-width: 900px;
  background: linear-gradient(135deg, #654800, #674b06ed);
  border: 1px solid rgba(231,198,122,0.25);
}
.sd-cta h2 { font-style: italic; color: var(--sd-cream); }
.sd-cta p.muted { color: var(--sd-cream-soft) !important; }

/* FOOTER */
.sd-footer {
  background: #4a2900;
  color: var(--sd-cream-soft);
  margin-top: 40px;
  border-top: 1px solid rgba(231,198,122,0.12);
}
.sd-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}
.sd-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-img { height: 70px; width: auto; display: block; }
.sd-logo-text { font-family: var(--sd-serif); font-style: italic; font-size: 1.9rem; font-weight: 600; color: var(--sd-gold-bright); }
.sd-footer-tagline { max-width: 320px; margin-bottom: 16px; color: var(--sd-cream-soft) !important; }
.sd-footer-address { font-size: 0.88rem; line-height: 1.8; color: #9C8C6C; }

.sd-footer h4 {
  font-family: "Poppins", sans-serif;
  color: var(--sd-cream);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}
.sd-footer-links ul { list-style: none; margin: 0; padding: 0; }
.sd-footer-links li { margin-bottom: 10px; }
.sd-footer-links a,
.sd-footer-bottom a { color: #9C8C6C; text-decoration: none; font-size: 0.9rem; }
.sd-footer-links a:hover { color: var(--sd-gold-bright); }

.sd-social-icons { display: flex; gap: 12px; }
.sd-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(231,198,122,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-cream-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.sd-social-icons a:hover {
  background: var(--sd-gold-bright);
  border-color: var(--sd-gold-bright);
  color: var(--sd-brown);
  transform: translateY(-2px);
}

.sd-footer-bottom {
  border-top: 1px solid rgba(231,198,122,0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #6E6248;
}

/* PRODUCTS (homepage) */
.sd-products-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.sd-products-section h2 { font-style: italic; color: #3a2900; margin-top: 0; }
.sd-products-section .sd-section-sub { margin-left: auto; margin-right: auto; color: #3a2900 !important; opacity: 0.75; }
.sd-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}
.sd-product-card {
  display: block;
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.16);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.sd-product-card:hover { transform: translateY(-4px); border-color: rgba(231,198,122,0.4); }
.sd-product-card img, .sd-product-card-fallback {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: var(--sd-brown);
}
.sd-product-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.sd-product-card-body { padding: 18px; }
.sd-product-card-body h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--sd-cream);
  margin: 0 0 8px;
}
.sd-product-card-price { color: var(--sd-gold-bright); font-weight: 700; font-size: 1.05rem; }
.sd-products-empty { color: #3a2900; padding: 20px; opacity: 0.75; }

/* TRUST / MARKETING */
.sd-trust-marketing {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 20px;
}
.sd-trust-marketing-media {
  border-radius: 4px;
  overflow: hidden;
  border: 5px solid rgb(141 98 0 / 92%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
}
.sd-trust-marketing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-trust-marketing-text .sd-eyebrow { color: var(--sd-gold-dark); }
.sd-trust-marketing-text h2 { font-style: italic; color: #3a2900; margin: 0 0 16px; font-size: 2rem; }
.sd-trust-marketing-text p.muted { color: #3a2900 !important; opacity: 0.75; margin-bottom: 30px; }
.sd-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sd-badge-item { text-align: center; }
.sd-badge-item img { width: 60px; height: 60px; margin-bottom: 10px; }
.sd-badge-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3a2900;
  opacity: 0.8;
  line-height: 1.35;
}

/* ===== Shared inner pages: products / product detail / cart / auth forms / profile =====
   These pages still use the old plain markup classes from style.css (.card,
   .product-grid, .form-card, etc). Rather than touch that markup, we reskin
   those same class names here, scoped to body.sd-page-dark so index.html is
   unaffected. .card is explicitly excluded from .sd-section/.sd-cta (index.html
   reuses "card" on those) so this doesn't bleed into the homepage sections. */
body.sd-page-dark .container { padding-top: 48px; }

body.sd-page-dark .page-title {
  font-family: var(--sd-serif);
  font-style: italic;
  font-weight: 600;
  color: #3a2900;
  font-size: 2rem;
  margin-bottom: 24px;
}

body.sd-page-dark .card:not(.sd-section):not(.sd-cta) {
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.16);
  border-radius: 4px;
  padding: 28px;
  color: var(--sd-cream-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
body.sd-page-dark .card:not(.sd-section):not(.sd-cta) h2 { color: var(--sd-cream); margin-top: 0; }
body.sd-page-dark .form-card { max-width: 460px; margin: 40px auto; }
body.sd-page-dark .form-card .page-title { color: var(--sd-cream); }

body.sd-page-dark label { color: #3a2900; opacity: 0.8; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: uppercase; }
body.sd-page-dark .card label { color: var(--sd-cream-soft); opacity: 1; }

/* Inputs sitting directly on the light body (e.g. product search/filter bar) */
body.sd-page-dark input,
body.sd-page-dark select,
body.sd-page-dark textarea {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(58,41,0,0.2);
  color: #3a2900;
  border-radius: 4px;
}
body.sd-page-dark input::placeholder,
body.sd-page-dark textarea::placeholder { color: rgba(58,41,0,0.45); }
body.sd-page-dark input:focus,
body.sd-page-dark select:focus,
body.sd-page-dark textarea:focus {
  outline: 2px solid var(--sd-gold);
  outline-offset: 1px;
  border-color: var(--sd-gold);
}
body.sd-page-dark input:disabled { opacity: 0.5; }

/* Inputs inside a dark card (login/register/profile/checkout forms) */
body.sd-page-dark .card input,
body.sd-page-dark .card select,
body.sd-page-dark .card textarea {
  background: rgba(247,239,220,0.06);
  border: 1px solid rgba(231,198,122,0.25);
  color: var(--sd-cream);
}
body.sd-page-dark .card input::placeholder,
body.sd-page-dark .card textarea::placeholder { color: rgba(247,239,220,0.4); }

body.sd-page-dark .card .muted { color: var(--sd-cream-soft); opacity: 0.75; }
body.sd-page-dark .card a { color: var(--sd-gold-bright); }

body.sd-page-dark .alert-error { background: rgba(192,57,43,0.08); color: #A3261A; border: 1px solid rgba(192,57,43,0.25); }
body.sd-page-dark .alert-success { background: rgba(85,99,43,0.1); color: #45551D; border: 1px solid rgba(85,99,43,0.3); }
body.sd-page-dark .card .alert-error { background: rgba(192,57,43,0.14); color: #E8887C; border-color: rgba(192,57,43,0.35); }
body.sd-page-dark .card .alert-success { background: rgba(85,99,43,0.16); color: #9FBE6C; border-color: rgba(85,99,43,0.35); }

body.sd-page-dark .empty-state { color: #3a2900; opacity: 0.75; padding: 60px 20px; text-align: center; }
body.sd-page-dark .empty-state a { color: var(--sd-gold-dark); font-weight: 600; }
body.sd-page-dark .card .empty-state { color: var(--sd-cream-soft); opacity: 0.85; }
body.sd-page-dark .card .empty-state a { color: var(--sd-gold-bright); }

/* Product filters */
.sd-product-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sd-product-search { flex: 1; min-width: 220px; }
.sd-product-category { min-width: 180px; cursor: pointer; }

/* Product listing grid */
body.sd-page-dark .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
body.sd-page-dark .product-card {
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.16);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}
body.sd-page-dark .product-card:hover { transform: translateY(-4px); border-color: rgba(231,198,122,0.4); box-shadow: 0 16px 34px rgba(0,0,0,0.3); }
body.sd-page-dark .product-thumb-fallback { background: var(--sd-brown); }
body.sd-page-dark .product-card-body h3 { color: var(--sd-cream); font-family: "Poppins", sans-serif; font-weight: 600; }
body.sd-page-dark .product-price { color: var(--sd-gold-bright); }
body.sd-page-dark .product-stock { color: var(--sd-cream-soft); opacity: 0.65; }
.product-unit { font-size: 0.78em; font-weight: 400; opacity: 0.75; }
.sd-product-card-price .product-unit { color: var(--sd-cream-soft); }

/* Cart */
body.sd-page-dark .cart-row { border-bottom: 1px solid rgba(231,198,122,0.14); }
body.sd-page-dark .cart-row strong { color: var(--sd-cream); }
body.sd-page-dark .cart-total-row { color: var(--sd-cream); border-top: 1px solid rgba(231,198,122,0.25); margin-top: 4px; }

body.sd-page-dark .btn-secondary { background: transparent; border: 1px solid rgba(58,41,0,0.3); color: #3a2900; box-shadow: none; }
body.sd-page-dark .btn-secondary:hover { background: rgba(58,41,0,0.08); }
body.sd-page-dark .card .btn-secondary { border-color: rgba(231,198,122,0.35); color: var(--sd-gold-bright); }
body.sd-page-dark .card .btn-secondary:hover { background: rgba(231,198,122,0.1); }

/* Checkout */
body.sd-page-dark .card:not(.sd-section):not(.sd-cta) h3 { color: var(--sd-cream); margin-top: 0; }
.sd-checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.sd-checkout-summary .cart-row { padding: 12px 0; }
.sd-coupon-row { display: flex; gap: 8px; margin-top: 16px; }
.sd-coupon-row input { flex: 1; }

/* Admin product photos */
.sd-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.sd-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(231,198,122,0.2);
}
.sd-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(18,13,7,0.75);
  color: var(--sd-cream);
  border: 1px solid rgba(231,198,122,0.3);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-photo-remove:hover { background: #c0392b; border-color: #c0392b; }

/* Product detail gallery */
.sd-gallery { width: 320px; max-width: 100%; }
.sd-gallery-main {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sd-brown);
}
.sd-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18,13,7,0.6);
  color: var(--sd-cream);
  border: 1px solid rgba(231,198,122,0.3);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.sd-gallery-prev { left: 8px; }
.sd-gallery-next { right: 8px; }
.sd-gallery-arrow:hover { background: var(--sd-gold-bright); color: var(--sd-brown); }
.sd-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sd-gallery-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.sd-gallery-thumb:hover { opacity: 1; }
.sd-gallery-thumb.active { opacity: 1; border-color: var(--sd-gold-bright); }
.sd-order-confirmation { margin-top: 20px; }

.sd-payment-notice {
  background: rgba(201,151,63,0.1);
  border: 1px solid rgba(201,151,63,0.3);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 18px 0;
}
.sd-payment-notice strong { color: var(--sd-gold-bright); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sd-payment-notice p { color: var(--sd-cream-soft); font-size: 0.88rem; margin: 8px 0 0; line-height: 1.55; }
.sd-payment-notice .sd-payment-contact a { color: var(--sd-gold-bright); font-weight: 600; text-decoration: none; }
.sd-payment-notice .sd-payment-contact a:hover { text-decoration: underline; }

/* Order history (profile page) */
body.sd-page-dark .sd-orders-card { margin-top: 28px; }
.sd-order-block { padding: 18px 0; border-bottom: 1px solid rgba(231,198,122,0.14); }
.sd-order-block:last-child { border-bottom: none; }
.sd-order-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
body.sd-page-dark .sd-order-block-header strong { color: var(--sd-cream); }
.sd-order-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.sd-order-status-pending { background: rgba(201,151,63,0.18); color: var(--sd-gold-bright); }
.sd-order-status-confirmed { background: rgba(85,99,43,0.2); color: #9FBE6C; }
.sd-order-status-shipped { background: rgba(85,99,43,0.2); color: #9FBE6C; }
.sd-order-status-delivered { background: rgba(85,99,43,0.28); color: #9FBE6C; }
.sd-order-status-cancelled { background: rgba(192,57,43,0.2); color: #E8887C; }

/* Admin panel */
body.sd-page-dark .sd-admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
body.sd-page-dark .sd-admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.16);
  border-radius: 6px;
  padding: 10px;
  position: sticky;
  top: 20px;
}
body.sd-page-dark .sd-admin-sidebar a {
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--sd-cream-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
body.sd-page-dark .sd-admin-sidebar a:hover { background: rgba(231,198,122,0.08); color: var(--sd-cream); }
body.sd-page-dark .sd-admin-sidebar a.active { background: var(--sd-gold-bright); color: var(--sd-brown); font-weight: 700; }

body.sd-page-dark .sd-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
body.sd-page-dark .sd-stat-card {
  background: var(--sd-brown-soft);
  border: 1px solid rgba(231,198,122,0.16);
  border-radius: 6px;
  padding: 18px 20px;
}
body.sd-page-dark .sd-stat-card .sd-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sd-cream-soft); opacity: 0.75; }
body.sd-page-dark .sd-stat-card .sd-stat-value { font-size: 1.7rem; font-weight: 700; color: var(--sd-gold-bright); margin-top: 6px; font-family: var(--sd-serif); }
body.sd-page-dark .sd-stat-card.sd-stat-warn .sd-stat-value { color: #E8887C; }

body.sd-page-dark table { background: transparent; border-collapse: collapse; width: 100%; }
body.sd-page-dark th, body.sd-page-dark td {
  border-bottom: 1px solid rgba(231,198,122,0.14);
  color: var(--sd-cream-soft);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.88rem;
}
body.sd-page-dark th { background: rgba(231,198,122,0.06); color: var(--sd-gold-bright); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
body.sd-page-dark tr:last-child td { border-bottom: none; }

@media (max-width: 780px) {
  body.sd-page-dark .sd-admin-layout { grid-template-columns: 1fr; min-width: 0; }
  body.sd-page-dark .sd-admin-layout > * { min-width: 0; }
  body.sd-page-dark .sd-admin-sidebar { position: static; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.sd-page-dark .sd-admin-sidebar a { white-space: nowrap; }
  body.sd-page-dark .sd-stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .sd-footer-inner { grid-template-columns: 1fr 1fr; }
  .sd-footer-brand { grid-column: 1 / -1; }
  .sd-trust-marketing { grid-template-columns: 1fr; padding: 50px 20px; gap: 36px; }
  .sd-checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sd-grid-3 { grid-template-columns: 1fr; }
  .sd-section { padding: 30px 22px; margin: 28px auto; }
  .sd-footer-inner { grid-template-columns: 1fr; padding: 44px 20px 32px; }
  .sd-promise { margin: 44px auto; }
  .sd-promise h2 { font-size: 1.6rem; }
  .sd-cta { padding: 40px 24px; }
  .sd-process li { gap: 16px; }
  .sd-products-section { margin: 44px auto; }
  .sd-badge-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
