/* ============================================================
   Nobo Deal — Modern 3D Design System (nd-modern.css)
   Loaded LAST in layout.jsx — additive layer that overrides
   the legacy islamic theme with a premium, attractive 3D look.
   Palette: emerald (#0b5c43) + gold (#c9a24b) + cream (#faf6ec)
   ============================================================ */

/* ---------- 1. Design tokens (extend theme) ---------- */
:root {
  --nd-emerald-2: #127a68;
  --nd-gold-grad: linear-gradient(135deg, #e3c87e, #c9a24b 55%, #a8842f);
  --nd-emerald-grad: linear-gradient(135deg, #0e6b54, #073b2e 60%, #052d23);
  --nd-rad-lg: 20px;
  --nd-rad-xl: 28px;
  --nd-shadow-3d: 0 2px 4px rgba(5,45,35,.06), 0 12px 28px rgba(5,45,35,.12), 0 28px 60px rgba(5,45,35,.14);
  --nd-shadow-3d-hover: 0 4px 8px rgba(5,45,35,.08), 0 20px 40px rgba(5,45,35,.16), 0 44px 90px rgba(5,45,35,.2);
  --nd-glow-gold: 0 0 0 1px rgba(201,162,75,.35), 0 10px 30px rgba(201,162,75,.28);
  --nd-ease: cubic-bezier(.22,.61,.36,1);
  --nd-transition: all .35s var(--nd-ease);
}

html, body { overflow-x: hidden; }

/* ---------- 2. Header — complete modern rebuild ---------- */

/* ===== Header top (thin emerald strip) ===== */
.nd-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 6px 24px rgba(5,45,35,.14); }
.nd-topbar {
  background: var(--nd-emerald-dark);
  color: #cfe0d8;
  font-size: 12.5px;
  border-bottom: 2px solid var(--nd-gold);
  position: relative;
}
.nd-topbar::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--nd-pattern-light); background-size: 56px 56px;
  opacity: .35; pointer-events: none;
}
.nd-container { max-width: 1560px; margin: 0 auto; padding: 0 20px; }
.nd-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 36px; position: relative;
}
.nd-topbar-contacts { display: flex; align-items: center; gap: 16px; }
.nd-topbar-contacts .ht-item { display: inline-flex; align-items: center; gap: 7px; color: #d9e6df; }
.nd-topbar-contacts .ht-item i { color: var(--nd-gold-bright); font-size: 13px; }
.nd-topbar-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--nd-gold); opacity: .8; }
.nd-topbar-actions { display: flex; align-items: center; gap: 10px; }
.ht-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; transition: var(--nd-transition);
}
.ht-pill-outline { border: 1px solid rgba(201,162,75,.55); color: var(--nd-gold-bright); background: rgba(201,162,75,.08); }
.ht-pill-outline:hover { background: var(--nd-gold); color: #fff; border-color: var(--nd-gold); transform: translateY(-1px); }
.ht-pill-solid { background: var(--nd-gold-grad); color: #fff; box-shadow: 0 4px 12px rgba(201,162,75,.35); }
.ht-pill-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(201,162,75,.45); }

/* ===== Header main (logo + search + actions) ===== */
.nd-header-main { background: #fff; }
.nd-header-row { display: flex; align-items: center; gap: 20px; padding: 12px 0; position: relative; }
.nd-logo { flex: 0 0 auto; display: flex; align-items: center; }
.nd-logo a { display: inline-flex; align-items: center; }
.nd-logo .site-logo { max-height: 52px; width: auto; object-fit: contain; transition: transform .3s ease; }
.nd-logo a:hover .site-logo { transform: scale(1.05) rotate(-1deg); }

/* Search — the star of the header */
.nd-search { flex: 1 1 auto; min-width: 0; }
.nd-search form {
  display: flex; align-items: center; gap: 0;
  background: var(--nd-cream);
  border: 2px solid var(--nd-emerald);
  border-radius: 60px;
  padding: 2px;
  transition: box-shadow .3s ease, border-color .3s ease;
  box-shadow: inset 0 1px 4px rgba(5,45,35,.06);
}
.nd-search form:focus-within {
  border-color: var(--nd-gold);
  box-shadow: 0 0 0 5px rgba(201,162,75,.18), 0 10px 26px rgba(5,45,35,.12);
}
.nd-search input {
  flex: 1 1 auto; min-width: 0; border: none !important; outline: none; box-shadow: none !important;
  background: transparent; padding: 10px 18px;
  font-size: 14.5px; color: var(--nd-ink); font-family: inherit;
}
.nd-search input::placeholder { color: #93a39b; }
.nd-search button {
  flex: 0 0 auto; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--nd-emerald-grad); color: var(--nd-gold-bright);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: var(--nd-transition); box-shadow: 0 4px 12px rgba(7,59,46,.3);
}
.nd-search button:hover { background: var(--nd-gold-grad); color: #fff; transform: scale(1.06); }
.nd-search input:focus { border: none !important; outline: none !important; box-shadow: none !important; }

/* Actions (wishlist / cart) */
.nd-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
/* Account entry icons (Login / Register / Admin) — shown as icon-only
   buttons next to wishlist/cart; the old topbar text pills are gone. */
.nd-desktop-account-actions { display: flex; align-items: center; gap: 2px; }
/* Redundant trailing Account icon (duplicate of Login) — hidden everywhere. */
.nd-actions .nd-primary-account { display: none !important; }
.nd-action-btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 52px; padding: 8px 12px;
  border-radius: 16px; text-decoration: none; color: var(--nd-emerald-deep);
  transition: var(--nd-transition); background: transparent; border: none; cursor: pointer;
}
.nd-action-btn i { font-size: 21px; line-height: 1; transition: transform .3s var(--nd-ease); }
.nd-action-btn .nd-action-label { font-size: 11px; font-weight: 600; color: var(--nd-muted); }
.nd-action-btn:hover { background: var(--nd-cream); }
.nd-action-btn:hover i { transform: translateY(-3px) scale(1.12); color: var(--nd-gold-dark); }
.nd-action-btn:hover .nd-action-label { color: var(--nd-emerald); }
.nd-cart-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 30px; background: var(--nd-gold-grad);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(201,162,75,.55);
  border: 2px solid #fff;
  line-height: 1;
}

/* ===== Header bottom (nav) ===== */
.nd-navbar {
  background: var(--nd-emerald-grad);
  background-image: var(--nd-pattern-light), var(--nd-emerald-grad);
  position: relative;
}

/* Desktop header is intentionally compact: contact details are already
   available in the footer/support area, so keep only account actions here. */
@media (min-width: 768px) {
  /* Keep the navigation visible while the catalog is being browsed. */
  .nd-header { position: fixed; inset: 0 0 auto; width: 100%; }
  .page-wrapper { padding-top: 82px; }
  /* Account entry is now icon-only (Login / Register / Admin) next to
     wishlist/cart — the old topbar text pills were removed. */
  .nd-desktop-account-actions { display: flex; }
  /* Higher specificity than nd-buttons.css `.nd-action-btn { display: inline-flex !important }`
     (loaded later) — this is the duplicate Account icon in the header main row. */
  .nd-header .nd-actions .nd-primary-account,
  .nd-actions .nd-primary-account { display: none !important; }
  .nd-header-row { gap: 12px; padding: 3px 0; }
  .nd-logo .site-logo { max-height: 60px; }
  .nd-action-btn { min-width: 34px; padding: 4px 5px; }
  .nd-action-btn .nd-action-label { display: none !important; }
  .nd-action-btn i { font-size: 17px; }
}

/* Keep desktop promotional tiles visually uniform despite different source
   image aspect ratios. The mobile layout keeps its existing natural sizing. */
@media (min-width: 768px) {
  .nd-home .banner-grid-item { height: 132px; }
  .nd-home .banner-grid-item a,
  .nd-home .banner-grid-item img { display: block; width: 100%; height: 100%; }
  .nd-home .banner-grid-item img { object-fit: cover; }
}
.nd-nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; }
.nav-toggle {
  background: none; border: none; color: var(--nd-gold-bright); font-size: 22px;
  padding: 0; margin: 0; cursor: pointer; display: none;
  width: 46px; height: 46px; flex: 0 0 46px; align-items: center; justify-content: center;
}
#main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
#main-nav > ul > li { position: relative; }
#main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  color: #eef5f1; padding: 15px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; position: relative; transition: color .25s ease, background .25s ease;
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}
#main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 7px; height: 2px;
  background: linear-gradient(90deg, var(--nd-gold-bright), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--nd-ease);
}
#main-nav > ul > li:hover > a, #main-nav > ul > li > a.active {
  background: rgba(201,162,75,.16); color: var(--nd-gold-bright);
}
#main-nav > ul > li:hover > a::after, #main-nav > ul > li > a.active::after { transform: scaleX(1); }
#main-nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border-radius: 0 0 18px 18px;
  border-top: 3px solid var(--nd-gold);
  box-shadow: var(--nd-shadow-3d);
  z-index: 999; padding: 10px 0; max-height: 440px; overflow-y: auto;
  animation: ndDropIn .22s var(--nd-ease);
}
@keyframes ndDropIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#main-nav li.has-dropdown:hover > .dropdown { display: block; }
#main-nav .dropdown li { position: relative; }
#main-nav .dropdown li a {
  display: block; padding: 10px 20px; color: #333; font-size: 13.5px;
  text-decoration: none; border-left: 3px solid transparent; white-space: nowrap;
  transition: all .2s ease;
}
#main-nav .dropdown li a:hover { background: var(--nd-cream); border-left-color: var(--nd-gold); color: var(--nd-emerald-deep); padding-left: 26px; }
#main-nav .submenu {
  display: none; position: absolute; left: 100%; top: -10px; min-width: 230px;
  background: #fff; border-radius: 14px; box-shadow: var(--nd-shadow-3d);
  padding: 10px 0; border-left: 3px solid var(--nd-gold);
}
#main-nav li.has-sub:hover > .submenu { display: block; }
.nd-nav-offer a { color: #ffd700 !important; }

/* ===== Mobile ===== */
@media (max-width: 991.98px) {
  .nd-header-row { gap: 14px; padding: 10px 0; }
  .nd-logo .site-logo { max-height: 46px; }
  .nd-action-btn { min-width: 44px; padding: 6px 8px; }
  .nd-action-label { display: none; }
}
@media (max-width: 767.98px) {
  .nd-header { position: fixed !important; inset: 0 0 auto 0; width: 100%; z-index: 1100; }
  .page-wrapper { padding-top: 60px !important; }
  /* Keep the contact strip to one compact row on phone screens. */
  .nd-container { padding-left: 12px; padding-right: 12px; }
  .nd-topbar-inner { flex-wrap: nowrap; justify-content: space-between; gap: 8px; min-height: 30px; padding: 3px 0; }
  .nd-topbar-contacts { min-width: 0; gap: 0; }
  .nd-topbar-contacts .ht-item { font-size: 10.5px; white-space: nowrap; }
  .nd-topbar-contacts .ht-item i { font-size: 11px; }
  .nd-topbar-contacts .ht-email,
  .nd-topbar-dot { display: none; }
  .nd-topbar-actions { gap: 4px; flex: 0 0 auto; }
  .nd-topbar-actions .ht-pill span { display: none; }
  .nd-topbar-actions .ht-register,
  .nd-topbar-actions .ht-admin { display: none; }
  .ht-pill { padding: 3px 7px; font-size: 11px; }
  .nd-header-row { gap: 6px; padding: 7px 0; }
  .nd-logo .site-logo { max-height: 38px; max-width: 112px; }
  /* Mobile: search sits centered in the main row (space freed by hiding the
     account icons below); on focus the island expands full-width via
     nd-search-island.css. */
  .nd-search.d-none { display: block !important; flex: 1 1 auto; min-width: 0; }
  /* Mobile header: Login/Register/Admin + Tour icons hidden — login/register
     live in the bottom nav (Account), admin is PC-only, tour is in the help
     corner. Wishlist + Cart stay. */
  .nd-actions .nd-desktop-account-actions { display: none !important; }
  .nd-actions .nd-tour-slot { display: none !important; }
  .nd-search form { border-width: 1.5px; padding: 2px; }
  .nd-search input { padding: 6px 10px; font-size: 12px; }
  .nd-search button { width: 32px; height: 32px; font-size: 13px; }
  .nd-mobile-menu-toggle { display: flex; width: 30px; height: 34px; flex: 0 0 30px; font-size: 19px; }
  .nd-actions { gap: 2px; }
  .nd-action-btn { min-width: 34px; padding: 5px 4px; }
  .nd-action-btn i { font-size: 19px; }
  .nd-cart-badge { top: 0; right: 0; min-width: 17px; height: 17px; font-size: 10px; }
  .nd-navbar { position: absolute; top: 100%; left: 0; right: 0; background: transparent; pointer-events: none; }
  .nd-nav-row { min-height: 0; padding: 0; }
  #main-nav { pointer-events: auto; }
  #main-nav {
    display: none; position: absolute; top: 0; left: 0; right: 0;
    background: var(--nd-emerald-deep); box-shadow: 0 18px 34px rgba(5,45,35,.3);
    z-index: 998;
  }
  /* Above the fixed bottom buybar (9990) / bottom nav (9999) so every
     dropdown item stays reachable while the menu is open. */
  #main-nav.open { display: block; z-index: 10050; }
  #main-nav > ul { flex-direction: column; }
  #main-nav > ul > li > a { padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
  #main-nav .dropdown, #main-nav .submenu { position: static; display: none; box-shadow: none; background: rgba(0,0,0,.2); border-radius: 0; max-height: none; border-left: none; }
  #main-nav li.open > .dropdown, #main-nav li.open > .submenu { display: block; }
  #main-nav .dropdown li a, #main-nav .submenu li a { color: #e8f0ec; }
  #main-nav .dropdown li a:hover { background: rgba(201,162,75,.15); border-left-color: var(--nd-gold); }
  .nd-search form { padding: 3px; }
  .nd-search input { padding: 8px 14px; font-size: 13.5px; }
  .nd-search button { width: 38px; height: 38px; }
}

@media (max-width: 767.98px) {
  .nd-search form { border: 1px solid rgba(11,92,67,.38); }
  .nd-search input { border: 0 !important; }
  .nd-hero-control { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
  .nd-hero-control i { font-size: 13px; line-height: 1; }
  .page-wrapper > .breadcrumb-area:first-child { margin-top: 0 !important; }
}

/* ===== Mobile search strip ===== */
.nd-mobile-search {
  background: #fff;
  border-top: 1px solid rgba(226,220,200,.6);
  padding: 10px 16px 14px;
  box-shadow: 0 10px 20px rgba(5,45,35,.08);
}

@media (max-width: 767.98px) {
  .nd-mobile-search { display: none; }
  .nd-topbar { display: none; }
  .nd-header-main { position: relative; }

  /* Glass search treatment: light, compact and readable over the header. */
  .nd-search form {
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(11, 92, 67, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 5px 18px rgba(5,45,35,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nd-search input { color: var(--nd-emerald-deep); }
}

/* Account pages share one polished, responsive surface. */
.nd-auth-section { position: relative; background: linear-gradient(145deg, #f8f5eb 0%, #eef7f2 100%); }
.nd-auth-card {
  overflow: hidden;
  border: 1px solid rgba(11,92,67,.12);
  box-shadow: 0 18px 55px rgba(5,45,35,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nd-auth-head { border-bottom: 1px solid rgba(11,92,67,.08); }
.nd-auth-body .nd-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(11,92,67,.16); border-radius: 12px;
  background: rgba(255,255,255,.7); padding: 2px 12px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nd-auth-body .nd-input .form-control,
.nd-auth-body .nd-input .form-control:focus {
  border: 0 !important; outline: 0 !important; box-shadow: none !important;
  background: transparent !important;
}
.nd-auth-body .nd-input input,
.nd-auth-body .nd-input textarea { min-height: 44px; }
.nd-auth-body .nd-input { box-shadow: none; }
.nd-auth-body .nd-input:focus-within {
  background: rgba(255,255,255,.95); border-color: var(--nd-gold);
  box-shadow: 0 0 0 4px rgba(201,162,75,.14);
}
.nd-auth-body .nd-input i { color: var(--nd-emerald); flex: 0 0 auto; }
.nd-auth-body .nd-input .form-control { border: 0; background: transparent; box-shadow: none; min-width: 0; }

@media (max-width: 575.98px) {
  .nd-auth-section { padding: 22px 10px !important; }
  .nd-auth-card { border-radius: 18px; }
  .nd-auth-head { padding: 22px 18px 4px; }
  .nd-auth-body { padding: 8px 18px 22px; }
  .nd-auth-body .mb-3 { margin-bottom: .8rem !important; }
  .nd-auth-body label { font-size: 12px; margin-bottom: 4px; }
  .nd-auth-body .theme-btn { padding: 11px; }
}
.nd-mobile-search form {
  display: flex; align-items: center; gap: 0;
  background: var(--nd-cream);
  border: 2px solid var(--nd-emerald);
  border-radius: 60px; padding: 3px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.nd-mobile-search form:focus-within { border-color: var(--nd-gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
.nd-mobile-search input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none;
  background: transparent; padding: 9px 16px; font-size: 14px;
  color: var(--nd-ink); font-family: inherit;
}
.nd-mobile-search button {
  flex: 0 0 auto; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--nd-emerald-grad); color: var(--nd-gold-bright);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: var(--nd-transition);
}
.nd-mobile-search button:hover { background: var(--nd-gold-grad); color: #fff; }

/* ---------- 3. 3D effect utilities ---------- */
.nd-3d-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .35s var(--nd-ease), box-shadow .35s var(--nd-ease), border-color .3s ease;
  will-change: transform;
  border-radius: var(--nd-rad-lg);
}
.nd-3d-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 55%);
  opacity: 0; transition: opacity .3s ease; z-index: 2;
}
.nd-3d-card:hover::before { opacity: 1; }
.nd-lift { transition: var(--nd-transition); }
.nd-lift:hover { transform: translateY(-8px); box-shadow: var(--nd-shadow-3d-hover); }
.nd-shine { position: relative; overflow: hidden; }
.nd-shine::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .6s var(--nd-ease); pointer-events: none; z-index: 1;
}
.nd-shine:hover::after { left: 135%; }
.nd-glass {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6);
}
.nd-text-gold {
  background: var(--nd-gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nd-float { animation: ndFloat 5s ease-in-out infinite; }
@keyframes ndFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- 4. Buttons ---------- */
.theme-btn {
  border-radius: 60px !important;
  background: var(--nd-gold-grad) !important;
  box-shadow: 0 8px 22px rgba(201,162,75,.4) !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  padding: 12px 26px !important;
  border: none !important;
  transition: var(--nd-transition) !important;
}
.theme-btn:hover { transform: translateY(-3px) scale(1.02) !important; box-shadow: 0 16px 34px rgba(201,162,75,.5) !important; }
.theme-btn.secondary, .theme-btn.btn-outline {
  background: var(--nd-emerald-grad) !important;
  box-shadow: 0 8px 22px rgba(11,92,67,.35) !important;
}
/* Add-to-Cart / secondary: stays dark w/ white text; hover inverts to white w/ dark text */
.theme-btn.secondary {
  color: #fff !important;
}
.theme-btn.secondary:hover, .theme-btn.btn-outline:hover {
  background: #ffffff !important;
  color: var(--nd-emerald-deep) !important;
  box-shadow: inset 0 0 0 2px var(--nd-emerald), 0 12px 26px rgba(5,45,35,.2) !important;
  transform: translateY(-3px) scale(1.02) !important;
}
.theme-btn.secondary:active, .theme-btn.btn-outline:active { transform: translateY(-1px) scale(.99) !important; }
.theme-btn:active { transform: translateY(-1px) scale(.99) !important; }

/* ---------- 5. Product cards (premium 3D) ---------- */
.tp-product-card.style-6, .product-card, .nd-product-card {
  background: #fff;
  border-radius: var(--nd-rad-lg);
  border: 1px solid rgba(226,220,200,.7);
  box-shadow: var(--nd-shadow-soft);
  overflow: hidden;
  transition: var(--nd-transition);
}
.tp-product-card.style-6:hover {
  transform: translateY(-8px);
  box-shadow: var(--nd-shadow-3d-hover);
  border-color: rgba(201,162,75,.6);
}
.tp-product-card.style-6 .product-media {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fdfbf4, #f4efe0);
}
.tp-product-card.style-6 .product-media img {
  transition: transform .5s var(--nd-ease);
  transform: scale(1.01);
}
.tp-product-card.style-6:hover .product-media img { transform: scale(1.09) rotate(-1deg); }
.tp-product-card.style-6 .product-name a {
  color: var(--nd-ink); font-weight: 600; text-decoration: none;
  transition: color .25s ease;
}
.tp-product-card.style-6 .product-name a:hover { color: var(--nd-emerald); }
.tp-product-card.style-6 .product-price .new-price {
  color: var(--nd-emerald-deep); font-weight: 700; font-size: 17px;
}
.tp-product-card.style-6 .product-price .old-price { color: #a8b3ad; text-decoration: line-through; font-size: 13px; }
.tp-product-card.style-6 .save-label {
  background: rgba(232,182,74,.16); color: #8a6a17;
  border: 1px solid rgba(232,182,74,.55);
  border-radius: 30px; padding: 2px 10px; font-size: 11.5px; font-weight: 700;
}
.tp-product-card.style-6 .product-card-action .theme-btn {
  width: 100%; padding: 10px 18px !important; font-size: 13.5px;
}

/* Desktop cards have enough room for both actions; reserve the larger share
   for the longer Add to Cart label instead of clipping it. */
@media (min-width: 768px) {
  .tp-product-card.style-6 .product-card-action { gap: 7px; }
  .tp-product-card.style-6 .product-card-action .addToCartWithQty {
    flex: 1 1 0; min-width: 0; padding: 10px 6px !important;
    font-size: 12px; letter-spacing: 0; white-space: nowrap;
  }
  .tp-product-card.style-6 .product-card-action .nd-buy-now {
    flex: 1 1 0; min-width: 0; padding: 10px 6px !important;
    font-size: 12px; letter-spacing: 0; white-space: nowrap;
  }
}
/* discount ribbon — gold/amber gradient with dark text (contract scheme);
   the red "Best Selling" badge (.nd-best-badge) below stays red. */
.nd-discount-ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: linear-gradient(135deg, #e8b64a, #c9971f);
  color: #3a2d07; font-size: 11.5px; font-weight: 800;
  padding: 4px 12px; border-radius: 30px;
  box-shadow: 0 5px 14px rgba(201,151,31,.4);
  transform: rotate(-3deg);
}
/* Best Selling flame badge (reference photo 4) — top-right corner */
.nd-best-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #e74c3c, #b71c1c);
  color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 30px;
  box-shadow: 0 5px 14px rgba(192,57,43,.45);
  animation: ndBestIn .5s cubic-bezier(.22,1,.36,1) both;
}
.nd-best-badge i { color: #ffd54f; font-size: 11px; }
@keyframes ndBestIn {
  from { opacity: 0; transform: translateY(-6px) scale(.8); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
  .nd-best-badge { top: 8px; right: 8px; font-size: 9px; padding: 3px 8px; gap: 4px; }
}

/* ---------- 6. Section titles ---------- */
.section-title, .nd-section-title {
  position: relative; font-weight: 700; color: var(--nd-emerald-dark);
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}
/* Global section rhythm (task 1.6): every non-home page section sits in the
   32–48px band. Homepage sections keep their page-level spacing (app/page.jsx). */
.section-padding { padding: 40px 0; }
.nd-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.nd-section-title-wrap { position: relative; }
.nd-section-title-wrap::before {
  content: ""; position: absolute; left: 0; bottom: -10px;
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--nd-gold-grad);
}
.nd-section-title-wrap::after {
  content: ""; position: absolute; left: 68px; bottom: -10px;
  width: 22px; height: 4px; border-radius: 4px;
  background: var(--nd-emerald);
  opacity: .5;
}
.nd-view-all {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--nd-emerald-deep); font-weight: 600; font-size: 13.5px;
  border: 2px solid rgba(201,162,75,.5); background: rgba(201,162,75,.07);
  border-radius: 40px; padding: 8px 18px; text-decoration: none;
  transition: var(--nd-transition);
}
.nd-view-all:hover { background: var(--nd-emerald-grad); color: var(--nd-gold-bright); border-color: var(--nd-emerald); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,92,67,.3); }

/* ---------- 7. Category cards ---------- */
.nd-category-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--nd-rad-lg);
  border: 1px solid rgba(226,220,200,.7);
  padding: 24px 14px; text-decoration: none;
  box-shadow: var(--nd-shadow-soft);
  transition: var(--nd-transition);
  position: relative; overflow: hidden;
}
.nd-category-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,162,75,.14), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.nd-category-card:hover { transform: translateY(-8px); box-shadow: var(--nd-shadow-3d-hover); border-color: rgba(201,162,75,.55); }
.nd-category-card:hover::before { opacity: 1; }
.nd-category-icon {
  width: 74px; height: 74px; border-radius: 22px;
  background: var(--nd-emerald-grad);
  display: flex; align-items: center; justify-content: center;
  color: var(--nd-gold-bright); font-size: 30px;
  box-shadow: 0 10px 24px rgba(7,59,46,.3);
  margin-bottom: 14px;
  transition: var(--nd-transition);
}
.nd-category-card:hover .nd-category-icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 14px 30px rgba(7,59,46,.4); }
.nd-category-name { font-weight: 600; color: var(--nd-ink); font-size: 14.5px; font-family: 'Poppins', 'Hind Siliguri', sans-serif; }
.nd-category-count { font-size: 12px; color: var(--nd-muted); margin-top: 3px; }

/* ---------- 8. Badges & chips ---------- */
.nd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--nd-emerald-grad); color: var(--nd-gold-bright);
  font-size: 12px; font-weight: 700; padding: 6px 14px;
  border-radius: 40px; box-shadow: 0 5px 14px rgba(7,59,46,.28);
}
.nd-badge-gold { background: var(--nd-gold-grad); color: #fff; box-shadow: 0 5px 14px rgba(201,162,75,.4); }
.nd-badge-red { background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; box-shadow: 0 5px 14px rgba(192,57,43,.4); }

/* ---------- 9. Footer ---------- */
.nd-footer {
  background: var(--nd-emerald-dark);
  background-image: var(--nd-pattern-light), linear-gradient(180deg, #052d23, #041f1e);
  color: #b9cdc4;
  position: relative;
}
.nd-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--nd-gold-grad);
}
.nd-footer a { color: #cfe0d8; text-decoration: none; transition: color .25s ease, padding-left .25s ease; }
.nd-footer a:hover { color: var(--nd-gold-bright); padding-left: 4px; }
.nd-footer h4, .nd-footer h5 { color: #fff; font-family: 'Poppins', 'Hind Siliguri', sans-serif; position: relative; padding-bottom: 10px; }
.nd-footer h4::after, .nd-footer h5::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px;
  border-radius: 3px; background: var(--nd-gold-grad);
}
.nd-footer-bottom { border-top: 1px solid rgba(255,255,255,.09); color: #8fa89c; }

/* ---------- 9b. Trust strip ---------- */
.nd-trust-strip {
  background: linear-gradient(135deg, #ffffff, var(--nd-cream));
  border-bottom: 1px solid rgba(226,220,200,.8);
  padding: 22px 0;
  box-shadow: 0 6px 18px rgba(5,45,35,.05);
}
.nd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nd-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(226,220,200,.8);
  border-radius: var(--nd-rad-lg);
  padding: 14px 18px;
  box-shadow: var(--nd-shadow-soft);
  transition: var(--nd-transition);
}
.nd-trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--nd-shadow-3d-hover);
  border-color: rgba(201,162,75,.55);
}
.nd-trust-item > i {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--nd-emerald-grad);
  color: var(--nd-gold-bright);
  font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(7,59,46,.28);
}
.nd-trust-text { display: flex; flex-direction: column; }
.nd-trust-text strong {
  font-size: 14px; color: var(--nd-emerald-dark);
  font-family: 'Poppins', 'Hind Siliguri', sans-serif;
}
.nd-trust-text span { font-size: 12px; color: var(--nd-muted); }
@media (max-width: 991.98px) {
  .nd-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .nd-trust-strip { padding: 14px 0; }
  /* Trust badges wrap 2x2 on phones (never squeeze 4 in one line) */
  .nd-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nd-trust-item { padding: 11px 14px; gap: 10px; }
  .nd-trust-item > i { width: 42px; height: 42px; font-size: 19px; }
  .nd-trust-text strong { font-size: 12.5px; }
  .nd-trust-text span { font-size: 11px; }
}

/* ---------- 10. Hero (modern 3D) ---------- */
.nd-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--nd-emerald-dark);
}
.nd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 12% 8%, rgba(201,162,75,.22), transparent 60%),
    radial-gradient(800px 520px at 90% 85%, rgba(18,122,104,.5), transparent 60%),
    linear-gradient(135deg, #052d23, #0b5c43 55%, #073b2e);
}
.nd-hero-panel {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(201,162,75,.45);
  border-radius: 200px 200px 26px 26px;
  padding: 14px 26px 12px;
  box-shadow: 0 30px 70px rgba(5,45,35,.55);
  position: relative; overflow: hidden;
  max-width: 660px;
}
.nd-hero-panel::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.28), transparent 70%);
  pointer-events: none;
}
.nd-hero-title {
  font-family: 'Amiri', 'Poppins', serif;
  color: #fff; font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.22; text-shadow: 0 4px 20px rgba(0,0,0,.45);
  margin-bottom: 8px;
}
.nd-hero-sub { color: var(--nd-cream); font-size: 13px; line-height: 1.6; }

/* ---------- 11. Animations ---------- */
@keyframes ndPulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,75,.5); } 50% { box-shadow: 0 0 0 12px rgba(201,162,75,0); } }
.nd-pulse-gold { animation: ndPulseGold 2.2s ease-out infinite; }
@keyframes ndShimmer { 0% { background-position: -600px 0; } 100% { background-position: 600px 0; } }
.nd-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 50%, rgba(255,255,255,0) 100%);
  background-size: 600px 100%;
  animation: ndShimmer 2.6s infinite;
}
html.js-enabled [data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
html.js-enabled [data-reveal="up"] { transform: translateY(34px) scale(.985); }
html.js-enabled [data-reveal="left"] { transform: translateX(-38px); }
html.js-enabled [data-reveal="right"] { transform: translateX(38px); }
html.js-enabled [data-reveal="zoom"] { transform: scale(.9); }
[data-reveal] { transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1); }
[data-reveal="left"] { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- 12. Misc fixes ---------- */
/* kill stray dots/markers that come from theme lists */
.header-action, .header-top-inner, .ht-dot { list-style: none; }
.nd-footer ul, .nd-footer li { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; }
/* Uploaded product/brand art should occupy its media box cleanly. Keep
   rounding on the card shell only, never on the actual image pixels. */
.product-media, .product-media-link { display: block; width: 100%; }
.product-media img, .product-media-link img,
.category-img img, .brand-card-arch img, .single-brand img {
  border-radius: 0 !important;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.page-wrapper { min-height: 60vh; }

/* bottom navigation (mobile) polish */
.bottom-navigation {
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(226,220,200,.8);
  box-shadow: 0 -8px 24px rgba(5,45,35,.1);
}
.bottom-navigation a.active { color: var(--nd-emerald); }
.bottom-navigation .cart-badge {
  background: var(--nd-gold-grad); color: #fff;
  box-shadow: 0 3px 8px rgba(201,162,75,.5);
}

/* breadcrumb polish */
.breadcrumb-area {
  background: linear-gradient(135deg, var(--nd-emerald-deep), var(--nd-emerald)) !important;
  position: relative;
}
.breadcrumb-area::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--nd-pattern-light); background-size: 56px 56px; opacity: .4;
  pointer-events: none;
}
.nd-carousel-control {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 34px; height: 34px; border: 1px solid rgba(201,162,75,.55); border-radius: 50%;
  background: #fff; color: var(--nd-emerald-deep); font-size: 24px; line-height: 1;
  box-shadow: 0 6px 16px rgba(5,45,35,.15); cursor: pointer;
}
.nd-auto-carousel .nd-carousel-control {
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--nd-emerald-deep);
  font-size: 0; box-shadow: 0 6px 18px rgba(5,45,35,.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.nd-auto-carousel .nd-carousel-control::before {
  content: ""; width: 10px; height: 10px; display: block;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  margin: auto;
}
.nd-auto-carousel .nd-carousel-prev::before { transform: rotate(-135deg); }
.nd-auto-carousel .nd-carousel-next::before { transform: rotate(45deg); }
.nd-home .category-active, .nd-home .nd-brands-carousel { position: relative; }
.nd-carousel-prev { left: 4px; }
.nd-carousel-next { right: 4px; }
@media (max-width: 767.98px) {
  .breadcrumb-area { margin-top: -68px; }
  .nd-auto-carousel .nd-carousel-control { width: 34px; height: 34px; top: 50%; }
  .nd-auto-carousel .nd-carousel-prev { left: 0; }
  .nd-auto-carousel .nd-carousel-next { right: 0; }
}

/* smooth scrollbar + selection already in theme; ensure focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--nd-gold); outline-offset: 2px; }

/* ---------- 13. Interaction & motion polish ---------- */
html { scroll-behavior: smooth; }
body { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  [data-reveal] { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* Product click "pop" (class added by ProductCard click handler) */
.nd-3d-card.nd-clicked {
  transform: scale(.955) !important;
  transition: transform .12s ease !important;
}
.tp-product-card.style-6 .product-card-action > .theme-btn,
.product-detail-action > .theme-btn { border-radius: 30px !important; min-height: 38px; }

/* Page-load entrance for hero */
@keyframes ndFadeUp {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
.nd-home .slider-content { animation: ndFadeUp .9s var(--nd-ease) both; }
.nd-home .nd-slider-cta .theme-btn { animation: ndFadeUp .9s var(--nd-ease) .25s both; }
/* Shop Now must stay visible with reduced motion (animation is disabled
   there and `both` + opacity:0 would leave the button invisible). */
@media (prefers-reduced-motion: reduce) {
  .nd-home .nd-slider-cta .theme-btn { animation: none; opacity: 1; }
}

/* Section content subtle entrance (CSS-only fallback for scroll reveals) */
.nd-home .category-card, .nd-home .tp-product-card, .nd-home .brand-card {
  transition: transform .45s var(--nd-ease), box-shadow .35s var(--nd-ease), border-color .3s ease, opacity .6s ease;
}

/* Button ripple on click (product card add-to-cart) */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn .nd-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0); pointer-events: none;
  animation: ndRipple .6s ease-out forwards;
}
@keyframes ndRipple { to { transform: scale(4); opacity: 0; } }

/* Price emphasis — photo 3 style: solid dark-green current price,
   grey strikethrough old price, pink/red Save capsule. */
.tp-product-card.style-6 .new-price {
  color: #0a5c3f !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #0a5c3f !important;
  font-size: 17px;
}
.tp-product-card.style-6 .old-price { color: #a8b3ad; text-decoration: line-through; font-size: 13px; }

/* Save label — gold/amber capsule, dark amber text (contract scheme). */
.tp-product-card.style-6 .save-label {
  background: rgba(232,182,74,.16) !important;
  color: #8a6a17 !important;
  border-radius: 30px !important;
  padding: 2px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  border: 1px solid rgba(232,182,74,.55) !important;
}

/* Product media: subtle 3D depth + zoom on hover */
.tp-product-card.style-6 .product-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.35), transparent 55%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 1;
}
.tp-product-card.style-6:hover .product-media::after { opacity: 1; }

/* Discount ribbon bounce-in */
.nd-discount-ribbon { animation: ndRibbonIn .5s var(--nd-ease) both; }
@keyframes ndRibbonIn { from { opacity: 0; transform: rotate(-3deg) scale(.5); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* Scroll progress + back-to-top already themed; make back-to-top float */
#nd-back-top { animation: ndFloat 3.2s ease-in-out infinite; }

/* Cart badge pulse when count changes */
.nd-cart-badge { animation: ndBadgePop .35s var(--nd-ease); }
@keyframes ndBadgePop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (max-width: 575.98px) {
  .tp-product-card { padding: 6px !important; }
  .tp-product-card.style-6 .product-media img { height: 125px !important; }
  .tp-product-card.style-6 .product-details { padding: 8px 8px 10px !important; }
  .tp-product-card.style-6 .product-name { margin-bottom: 5px; }
  .tp-product-card.style-6 .product-card-action .theme-btn { padding: 8px 4px !important; }
  .brand-grid > [class*="col-"]:not(.col-12) { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
  .brand-grid .brand-card-media { height: 142px; }
  .brand-grid .brand-card-body { padding: 16px 16px 20px; }
  .brand-grid .brand-card-name { font-size: 21px !important; }
  .brand-grid .brand-card-tag { font-size: 12px; margin-bottom: 14px; }
  .product-detail-area .container, .product-detail-area .row, .product-detail-area [class*="col-"] { max-width: 100%; }
  .product-detail-area .row { margin-left: 0; margin-right: 0; }
  .product-detail-area [class*="col-"] { padding-left: 0; padding-right: 0; }
  .product-details-content { width: 100%; box-sizing: border-box; padding: 20px 14px !important; }
  .product-detail-title { font-size: 21px !important; line-height: 1.35; overflow-wrap: anywhere; }
  .product-detail-price { gap: 8px; padding: 13px 12px; }
  .product-detail-action { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .product-detail-action > label,
  .product-detail-action > .quantity-selector { flex: 0 0 100%; }
  .product-detail-action > br { display: none; }
  .product-detail-action > .theme-btn,
  .product-detail-action > .theme-btn + .theme-btn {
    flex: 1 1 0; width: auto; min-width: 0; margin-left: 0;
    padding: 11px 6px; font-size: 12px; white-space: nowrap;
  }
}

/* Product detail actions share one compact row on every viewport. */
.product-detail-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-detail-action > label,
.product-detail-action > .quantity-selector { flex: 0 0 100%; }
.product-detail-action > .theme-btn { flex: 1 1 0; min-width: 0; }
.product-detail-action > br { display: none; }
.product-detail-action > .theme-btn,
.product-detail-action > .theme-btn + .theme-btn { margin-left: 0; }
.product-detail-action .buy-now-btn {
  animation: ndBuyNowAttention 3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(201,162,75,.55), 0 10px 24px rgba(201,162,75,.22);
}
@keyframes ndBuyNowAttention {
  0%, 72%, 100% { transform: translateX(0) scale(1); box-shadow: 0 0 0 0 rgba(201,162,75,0), 0 10px 24px rgba(201,162,75,.22); }
  76% { transform: translateX(-3px) scale(1.015); }
  80% { transform: translateX(3px) scale(1.015); }
  84% { transform: translateX(-2px) scale(1.01); box-shadow: 0 0 0 8px rgba(201,162,75,0), 0 10px 28px rgba(201,162,75,.42); }
  88% { transform: translateX(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .product-detail-action .buy-now-btn { animation: none; }
}

/* Product cards reveal themselves from the viewport independently of the
   legacy global reveal script (spec 2.2: 450ms, springy ease, GPU-only). */
.nd-scroll-card {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .3s ease;
  will-change: opacity, transform;
}
.nd-scroll-card.is-scroll-visible {
  opacity: 1 !important;
  transform: none !important;
}
.nd-scroll-card .product-card-action .nd-buy-now {
  background: #0E3B2E !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(14,59,46,.38) !important;
}
.nd-scroll-card .product-card-action .nd-buy-now:hover {
  background: #155843 !important;
  color: #fff !important;
}
@media (prefers-reduced-motion: reduce) {
  .nd-scroll-card, .nd-scroll-card.is-scroll-visible {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* Final responsive action treatment: both actions stay readable even on
   narrow phones, while Buy Now remains the visual primary action. */
.tp-product-card.style-6 .product-card-action {
  display: flex; align-items: stretch; gap: 7px; width: 100%;
}
.tp-product-card.style-6 .product-card-action > .theme-btn {
  flex: 1 1 0; min-width: 0; width: auto !important;
  min-height: 38px; padding: 9px 7px !important;
  font-size: 12px; line-height: 1.1; white-space: nowrap;
}
/* Product-card actions — contract scheme, side by side:
   Add to Cart = transparent pill w/ emerald border + emerald text
   Buy Now     = solid emerald pill w/ white text                 */
.tp-product-card.style-6 .product-card-action .addToCartWithQty {
  background: transparent !important; color: #0E3B2E !important;
  border: 2px solid #0E3B2E !important;
  box-shadow: 0 6px 14px rgba(14,59,46,.18) !important;
}
.tp-product-card.style-6 .product-card-action .addToCartWithQty:hover {
  background: rgba(14,59,46,.08) !important; color: #0E3B2E !important;
  border-color: #0E3B2E !important;
}
.tp-product-card.style-6 .product-card-action .nd-buy-now,
.product-detail-action .buy-now-btn {
  background: #0E3B2E !important; color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(14,59,46,.4) !important;
}
.tp-product-card.style-6 .product-card-action .nd-buy-now:hover,
.product-detail-action .buy-now-btn:hover {
  color: #fff !important;
  background: #155843 !important;
  box-shadow: 0 10px 22px rgba(14,59,46,.5) !important;
}

/* TopSelling horizontal card (.nd-ts-actions in TopSellingCard.jsx) —
   contract green/gold scheme. The rules live in app/page.jsx (not ours),
   so these higher-specificity overrides win the cascade. */
.nd-home .nd-ts-actions .theme-btn.addToCartWithQty {
  background: transparent !important; color: #0E3B2E !important;
  border: 2px solid #0E3B2E !important;
  box-shadow: 0 6px 14px rgba(14,59,46,.18) !important;
}
.nd-home .nd-ts-actions .theme-btn.addToCartWithQty:hover {
  background: rgba(14,59,46,.08) !important; color: #0E3B2E !important;
  border-color: #0E3B2E !important;
}
.nd-home .nd-ts-actions .theme-btn.nd-buy-now {
  background: #0E3B2E !important; color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(14,59,46,.4) !important;
}
.nd-home .nd-ts-actions .theme-btn.nd-buy-now:hover {
  background: #155843 !important; color: #fff !important;
  box-shadow: 0 10px 22px rgba(14,59,46,.5) !important;
}
.nd-home .nd-ts-price .save-label {
  background: rgba(232,182,74,.16) !important; color: #8a6a17 !important;
  border: 1px solid rgba(232,182,74,.55) !important;
}
.nd-auto-carousel .nd-carousel-control {
  border: 1px solid rgba(255,255,255,.76);
  background: rgba(5, 45, 35, .46);
  color: #d8fff2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 6px rgba(79,255,207,.82), 0 0 18px rgba(79,255,207,.4), inset 0 0 12px rgba(255,255,255,.12);
}
.nd-auto-carousel .nd-carousel-control:hover {
  background: rgba(8, 79, 61, .72);
  color: #fff;
  box-shadow: 0 0 10px rgba(79,255,207,1), 0 0 28px rgba(79,255,207,.58), inset 0 0 14px rgba(255,255,255,.2);
}
@media (max-width: 575.98px) {
  .tp-product-card.style-6 .product-card-action {
    gap: 7px; width: calc(100% + 8px); margin-left: -4px;
  }
  .tp-product-card.style-6 .product-card-action > .theme-btn {
    flex-basis: 0; min-height: clamp(37px, 10.5vw, 43px);
    padding: 0 3px !important;
    font-size: clamp(10.5px, 3.2vw, 13px); font-weight: 700 !important;
    letter-spacing: 0 !important;
    border-radius: 999px !important;
  }
  .nd-auto-carousel .nd-carousel-control { width: 32px; height: 32px; }
  .nd-auto-carousel .nd-carousel-prev { left: -2px; }
  .nd-auto-carousel .nd-carousel-next { right: -2px; }
}

/* Final narrow-screen calibration. Keep the controls proportional instead of
   letting the fixed legacy button dimensions dominate small cards. */
@media (max-width: 767.98px) {
  .tp-product-card.style-6 .product-card-action > .theme-btn {
    flex: 1 1 50%; width: 50% !important; min-width: 0;
    min-height: clamp(30px, 9vw, 38px);
    padding: 0 clamp(2px, 1.1vw, 7px) !important;
    font-size: clamp(9px, 2.75vw, 12px);
    line-height: 1; letter-spacing: 0 !important;
  }
  .nd-auto-carousel .nd-carousel-control {
    width: clamp(30px, 9vw, 42px);
    height: clamp(30px, 9vw, 42px);
    background: rgba(255,255,255,.2);
    color: #eafff8;
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: 0 0 0 1px rgba(79,255,207,.2), 0 0 12px rgba(79,255,207,.5);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nd-auto-carousel .nd-carousel-control::before {
    width: clamp(8px, 2.8vw, 11px);
    height: clamp(8px, 2.8vw, 11px);
  }
}

/* Smooth interaction states for the photo-2 style buttons. */
.tp-product-card.style-6 .product-card-action .addToCartWithQty,
.tp-product-card.style-6 .product-card-action .nd-buy-now,
.product-detail-action .buy-now-btn {
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease !important;
}
@media (hover: hover) and (pointer: fine) {
  .tp-product-card.style-6 .product-card-action .addToCartWithQty:hover,
  .tp-product-card.style-6 .product-card-action .nd-buy-now:hover,
  .product-detail-action .buy-now-btn:hover {
    transform: translateY(-2px) !important;
  }
}

/* Authoritative product-card action layout (section-4 spec):
   flex container (gap 8px, wrap) — each button is flex: 1 1 0 so the two
   buttons split the available width equally and shrink together. No fixed
   px width anywhere, so nothing can overflow or overlap the card on narrow
   phones (360 / 390 / 414). Below 360px the pair stacks vertically. */
.tp-product-card.style-6 .product-card-action,
.nd-home .tp-product-card.style-6 .product-card-action {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  width: 100% !important;
  margin: 0 !important;
  align-items: stretch;
}
.tp-product-card.style-6 .product-card-action > .theme-btn,
.nd-home .tp-product-card.style-6 .product-card-action > .theme-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  font-size: clamp(11.5px, 3vw, 13.5px) !important;
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: 0 !important;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Safety net: a label can never visually spill outside its pill */
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Very narrow phones (360px class): slightly tighter label so both buttons
   still share one row without the text touching the card edges. */
@media (max-width: 399.98px) {
  .tp-product-card.style-6 .product-card-action > .theme-btn,
  .nd-home .tp-product-card.style-6 .product-card-action > .theme-btn {
    font-size: 10.5px !important;
    padding: 0 4px !important;
  }
}
@media (max-width: 359.98px) {
  .tp-product-card.style-6 .product-card-action,
  .nd-home .tp-product-card.style-6 .product-card-action {
    flex-direction: column;
  }
  .tp-product-card.style-6 .product-card-action > .theme-btn,
  .nd-home .tp-product-card.style-6 .product-card-action > .theme-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   Product grid consistency (section 2):
   - Every card image is an exact 1:1 square, object-fit: cover —
     no stretched or distorted images, on any page.
   - Grid gap normalization: 16px horizontal / 20px vertical for every
     Bootstrap product grid that holds ProductCards (Home, Shop,
     Collections, Brands, Search, Offers, Wishlist, Related…).
   ============================================================ */
.tp-product-card.style-6 .product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.tp-product-card.style-6 .product-media img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
}
.tp-product-card.style-6 .product-wrap {
  height: 100%;
}
.tp-product-card.style-6 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Uniform grid gutters — 16px horizontal, 20px vertical */
.row:has(> [class*="col-"] > .tp-product-card) {
  margin-left: -8px !important;
  margin-right: -8px !important;
}
.row:has(> [class*="col-"] > .tp-product-card) > [class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-bottom: 20px !important;
}
/* The 20% OFF promo grid follows the same rhythm */
.nd-offer-20-products {
  column-gap: 16px;
  row-gap: 20px;
}

/* ============================================================
   Desktop (≥992px): centered header — logo pinned left, actions
   pinned right, the dynamic-island search pill floats FULL CENTER
   under the screen notch / webcam line; nav row centered too.
   ============================================================ */
@media (min-width: 992px) {
  .nd-header .nd-header-main { position: relative; }
  /* Desktop-only: the logo is 60px here (the 768px block sets 30px, which the
     ≤991.98px block overrides to 46px). Reserve the extra space so the logo
     never slides under the fixed header. */
  .page-wrapper { padding-top: 112px; }
  .nd-header .nd-header-row { position: relative; justify-content: center; padding: 8px 16px; gap: 10px; }
  .nd-header .nd-header-row > .nd-logo {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%); z-index: 6; margin: 0;
  }
  .nd-header .nd-header-row > .nd-actions {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); z-index: 6;
  }
  .nd-header .nd-header-row > .nd-search {
    flex: 0 1 600px;
    margin: 0 auto;
  }
  .nd-header .nd-container.nd-nav-row,
  .nd-header .nd-navbar {
    justify-content: center;
  }
}

/* ===== Active states (nav dropdown/submenu, storefront) ===== */
#main-nav .dropdown li a.active,
#main-nav .submenu li a.active {
  background: var(--nd-cream, #fbf6ea);
  border-left-color: var(--nd-gold, #c9a24b);
  color: var(--nd-emerald-deep, #0b5c43);
  font-weight: 600;
}
@media (max-width: 991.98px) {
  #main-nav .dropdown li a.active,
  #main-nav .submenu li a.active {
    background: rgba(201, 162, 75, .18);
    color: var(--nd-gold-bright, #e8b64a);
  }
}

