/* ==========================================================================
   Affhaat Premium Design System v36.1
   Customer Website + Mobile first redesign
   Inspired by provided mockups (clean SaaS light + vibrant mobile product UI)
   UI only — no business logic changes
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --af-coral:        #FF6B5E;
  --af-coral-dark:   #E85A4F;
  --af-coral-soft:   rgba(255, 107, 94, 0.12);
  --af-orange:       #FF7A45;
  --af-purple:       #7B5CFF;
  --af-gradient:     linear-gradient(135deg, #FF7A45 0%, #FF6B5E 45%, #7B5CFF 100%);
  --af-gradient-btn: linear-gradient(135deg, #FF7A45 0%, #FF6B5E 100%);

  /* Neutrals */
  --af-navy:         #0F2439;
  --af-navy-2:       #172F4D;
  --af-ink:          #1A2433;
  --af-muted:        #6B7A90;
  --af-line:         #E8EEF5;
  --af-surface:      #FFFFFF;
  --af-bg:           #F4F7FB;
  --af-green:        #1DB88E;
  --af-green-soft:   rgba(29, 184, 142, 0.12);

  /* Radius & Shadow */
  --af-radius:       16px;
  --af-radius-sm:    12px;
  --af-radius-xs:    10px;
  --af-radius-pill:  999px;
  --af-shadow:       0 4px 20px rgba(15, 36, 57, 0.06);
  --af-shadow-md:    0 8px 28px rgba(15, 36, 57, 0.08);
  --af-shadow-lg:    0 16px 48px rgba(15, 36, 57, 0.12);
  --af-shadow-card:  0 2px 12px rgba(15, 36, 57, 0.05);

  /* Typography */
  --af-font:         Inter, "Hind Siliguri", system-ui, -apple-system, sans-serif;
  --af-fw-bold:      700;
  --af-fw-extrabold: 800;
}

/* ---------- 2. Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--af-ink);
  background: var(--af-bg);
  font-family: var(--af-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- 3. Storefront Header (premium light) ---------- */
.site-header,
.main-header,
.header-main,
.nx-header,
header.nx-topbar {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(15, 36, 57, 0.06) !important;
  border-bottom: 1px solid var(--af-line) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-logo,
.header-logo,
.brand-logo,
.nx-logo {
  font-weight: var(--af-fw-extrabold) !important;
  letter-spacing: -0.03em !important;
  color: var(--af-navy) !important;
  font-size: 1.35rem !important;
}

/* Search bar – clean rounded like mockup */
.nx-search,
.header-search,
.search-form,
.nx-search-form {
  background: var(--af-bg) !important;
  border: 1px solid var(--af-line) !important;
  border-radius: var(--af-radius-pill) !important;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-search:focus-within,
.header-search:focus-within,
.search-form:focus-within {
  border-color: var(--af-coral) !important;
  box-shadow: 0 0 0 3px var(--af-coral-soft) !important;
}

.nx-search input,
.header-search input,
.search-form input[type="search"],
.search-form input[type="text"] {
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
}

/* Header action icons */
.nx-action,
.header-actions a,
.h-cart-btn {
  color: var(--af-navy) !important;
  border-radius: var(--af-radius-sm) !important;
  transition: background 0.15s, color 0.15s;
}

.nx-action:hover,
.header-actions a:hover {
  background: var(--af-coral-soft) !important;
  color: var(--af-coral) !important;
}

.nx-badge,
.cart-count,
.badge-count {
  background: var(--af-coral) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  min-width: 18px;
  height: 18px;
  border-radius: var(--af-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Category bar */
.nx-catbar,
.category-bar,
.nav-categories {
  background: #fff !important;
  border-bottom: 1px solid var(--af-line) !important;
}

.nx-catbar a,
.category-bar a {
  font-weight: 600 !important;
  color: var(--af-ink) !important;
  border-radius: var(--af-radius-xs) !important;
  padding: 8px 14px !important;
}

.nx-catbar a:hover,
.category-bar a:hover,
.nx-catbar a.active {
  background: var(--af-coral-soft) !important;
  color: var(--af-coral) !important;
}

/* ---------- 4. Buttons ---------- */
.btn-primary,
.btn.btn-primary,
.button-primary,
.btn-add-cart {
  background: var(--af-gradient-btn) !important;
  border: none !important;
  color: #fff !important;
  border-radius: var(--af-radius-sm) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(255, 107, 94, 0.28) !important;
  padding: 11px 20px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-add-cart:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 94, 0.35) !important;
}

.btn-primary:active,
.btn-add-cart:active {
  transform: translateY(0);
}

.btn-outline,
.btn.btn-outline {
  border: 1.5px solid var(--af-line) !important;
  color: var(--af-ink) !important;
  background: #fff !important;
  border-radius: var(--af-radius-sm) !important;
  font-weight: 600 !important;
}

.btn-outline:hover {
  border-color: var(--af-coral) !important;
  color: var(--af-coral) !important;
  background: var(--af-coral-soft) !important;
}

/* ---------- 5. Homepage Hero & Banner ---------- */
.nx-home-banner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.95fr);
  gap: 18px;
  margin-top: 24px !important;
  margin-bottom: 28px !important;
  align-items: stretch;
}

.hero-slider {
  height: clamp(300px, 31vw, 430px) !important;
  min-height: 300px;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: var(--af-shadow-md);
  background: #ffffff;
}

.hero-overlay {
  background: none !important;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 75%;
  padding: clamp(22px, 4vw, 48px) !important;
  text-align: left !important;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.2vw, 3rem) !important;
  line-height: 1.12;
  font-weight: 850 !important;
  letter-spacing: -0.04em;
  color: #fff !important;
}

.hero-content p {
  font-size: 1.1rem !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
}

.hero-content .btn {
  padding: 13px 24px !important;
  border-radius: var(--af-radius-sm) !important;
  font-weight: 700 !important;
}

.hero-nav {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--af-navy) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.hero-dots {
  bottom: 16px !important;
}

.hero-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45) !important;
}

.hero-dot.active {
  background: #fff !important;
  width: 22px !important;
  border-radius: 4px !important;
}

/* Side promo cards — product photo visible, soft scrim for text */
.nx-ad-card,
.nx-ad-overlay {
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: var(--af-shadow);
  min-height: 170px;
}

.nx-ad-card {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.nx-ad-overlay {
  /* Soft dark bottom scrim only — do NOT paint solid brand gradient over the photo */
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.05) 0%,
      rgba(15, 23, 42, 0.35) 45%,
      rgba(15, 23, 42, 0.78) 100%) !important;
  color: #fff !important;
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.nx-ad-overlay strong {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* Flash sale / New arrivals style banners */
.nx-ad-strip {
  margin: 16px 0;
}

.nx-ad-banner {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--af-shadow-card);
}

/* ---------- 6. Section Titles ---------- */
.nx-section-title,
.section-title,
.home-section-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  color: var(--af-navy) !important;
  margin: 28px 0 16px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-section-title a,
.view-all {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--af-coral) !important;
}

/* ---------- 7. Product Cards (core of the redesign – match 2nd mockup) ---------- */
.product-card,
.card.product-card {
  background: #fff !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: var(--af-shadow-card) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover,
.card.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--af-shadow-md) !important;
  border-color: transparent !important;
}

/* Image area */
.pc-img-wrap {
  display: block;
  position: relative;
  background: linear-gradient(145deg, #F8FAFC 0%, #EEF2F7 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover .pc-img-wrap img {
  transform: scale(1.05);
}

/* Discount badge */
.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--af-coral) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: var(--af-radius-pill) !important;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 107, 94, 0.3);
}

/* Body */
.pc-body {
  padding: 14px 16px 16px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.pc-title {
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  color: var(--af-ink) !important;
}

.pc-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.pc-title a:hover {
  color: var(--af-coral) !important;
}

/* Price row */
.pc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 !important;
}

.pc-amount {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: var(--af-coral) !important;
  letter-spacing: -0.02em;
}

.old-price {
  font-size: 0.85rem !important;
  color: var(--af-muted) !important;
  text-decoration: line-through;
}

.pc-off {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #E85A4F !important;
  background: rgba(255, 107, 94, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
}

.pc-plus {
  font-size: 0.72rem !important;
  color: var(--af-muted) !important;
}

/* Meta */
.pc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem !important;
  color: var(--af-muted) !important;
  margin-top: 2px;
}

.pc-stock {
  color: var(--af-green) !important;
  font-weight: 600;
}

.pc-stock.out {
  color: #E53E3E !important;
}

/* Add to Cart button – full width gradient like mockup */
.pc-actions {
  margin-top: auto;
  padding-top: 10px;
}

.pc-actions .btn-add-cart,
.pc-add-form .btn-add-cart {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
  background: var(--af-gradient-btn) !important;
}

/* Product grid */
.product-grid,
.nx-product-grid,
.products-grid,
.grid-products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px !important;
}

/* ---------- 8. Category / Listing Page ---------- */
.category-header,
.page-header {
  margin-bottom: 20px;
}

.category-header h1,
.page-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--af-navy) !important;
}

/* Filters / sort bar */
.filter-bar,
.sort-bar,
.listing-toolbar {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: var(--af-shadow-card);
}

/* ---------- 9. Product Detail Page ---------- */
.product-detail,
.product-page {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--af-shadow-card);
  border: 1px solid var(--af-line);
}

.product-gallery,
.product-images {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #F8FAFC, #EEF2F7);
}

.product-info h1,
.product-title {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--af-navy) !important;
  line-height: 1.25;
}

.product-price,
.pd-price {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--af-coral) !important;
}

.product-actions .btn-primary,
.pd-add-cart {
  padding: 14px 28px !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
}

/* Quantity selector */
.qty-selector,
.quantity-control {
  border: 1.5px solid var(--af-line);
  border-radius: var(--af-radius-sm);
  overflow: hidden;
}

.qty-selector button,
.quantity-control button {
  background: var(--af-bg) !important;
  border: none !important;
  font-weight: 700;
  color: var(--af-navy);
}

/* ---------- 10. Cart Page ---------- */
.cart-page,
.cart-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cart-item,
.cart-row {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--af-shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item img,
.cart-thumb {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--af-bg);
  padding: 6px;
}

.cart-summary,
.order-summary {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--af-shadow-md);
  position: sticky;
  top: 90px;
}

.cart-summary h3,
.order-summary h3 {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  margin-bottom: 16px;
  color: var(--af-navy);
}

.cart-total,
.summary-total {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--af-coral) !important;
}

/* ---------- 11. Checkout ---------- */
.checkout-page,
.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-section,
.checkout-card {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--af-shadow-card);
}

.checkout-section h3,
.checkout-card h3 {
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: var(--af-navy);
  margin-bottom: 14px;
}

/* Form inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  border: 1.5px solid var(--af-line) !important;
  border-radius: var(--af-radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  background: #fff !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--af-coral) !important;
  box-shadow: 0 0 0 3px var(--af-coral-soft) !important;
  outline: none !important;
}

/* Payment method cards */
.payment-method,
.pay-option {
  border: 1.5px solid var(--af-line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.payment-method:hover,
.pay-option:hover,
.payment-method.active,
.pay-option.selected {
  border-color: var(--af-coral);
  background: var(--af-coral-soft);
}

/* ---------- 12. Mobile Bottom Navigation feel ---------- */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--af-line);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(15, 36, 57, 0.06);
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--af-muted);
    text-decoration: none;
    padding: 4px 12px;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--af-coral);
  }
}

/* ---------- 13. Responsive adjustments ---------- */
@media (max-width: 900px) {
  .nx-home-banner {
    grid-template-columns: 1fr !important;
  }

  .hero-slider {
    height: clamp(270px, 52vw, 390px) !important;
  }

  .product-grid,
  .nx-product-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
  }

  .pc-body {
    padding: 12px !important;
  }

  .pc-title {
    font-size: 0.88rem !important;
  }

  .pc-amount {
    font-size: 1rem !important;
  }
}

@media (max-width: 600px) {
  .nx-home-banner {
    margin-top: 12px !important;
    gap: 12px !important;
  }

  .hero-slider {
    height: 300px !important;
    min-height: 260px;
    border-radius: 16px !important;
  }

  .hero-content {
    max-width: 94%;
    padding: 20px !important;
  }

  .hero-content h1 {
    font-size: 1.65rem !important;
  }

  .product-grid,
  .nx-product-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card,
  .card.product-card {
    border-radius: 14px !important;
  }

  .pc-img-wrap img {
    padding: 10px;
  }

  .pc-actions .btn-add-cart {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }

  .cart-item,
  .cart-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-summary,
  .order-summary {
    position: static;
  }

  .product-detail,
  .product-page {
    padding: 16px;
    border-radius: 14px;
  }

  .product-info h1,
  .product-title {
    font-size: 1.35rem !important;
  }
}

/* ---------- 14. Utility & Polish ---------- */
.container {
  max-width: 1200px;
}

.card:not(.product-card) {
  border-radius: var(--af-radius) !important;
  border: 1px solid var(--af-line) !important;
  box-shadow: var(--af-shadow-card) !important;
}

.flash-toast,
.alert {
  border-radius: 12px !important;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--af-muted);
}

.empty-state h3 {
  font-weight: 700;
  color: var(--af-navy);
}

.site-footer,
.main-footer,
footer {
  background: var(--af-navy) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 48px;
}

.site-footer a,
.main-footer a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.site-footer a:hover {
  color: #fff !important;
}

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


/* ==========================================================================
   15. ADMIN SHELL — Premium Dashboard (matches Picture 1)
   Dark navy left sidebar + light content workspace
   Left menu hover = orange/coral
   ========================================================================== */

/* Admin body shell */
body.is-admin-shell {
  background: var(--af-bg) !important;
}

body.is-admin-shell .admin-layout,
body.is-admin-shell .admin-shell,
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ----- Left Sidebar (Picture 1 style) ----- */
.admin-sidebar,
aside.admin-sidebar,
.admin-shell > .admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--af-navy) !important;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  border-right: none !important;
  box-shadow: 4px 0 24px rgba(15, 36, 57, 0.15);
}

.admin-sidebar-brand,
.admin-sidebar .brand,
.admin-sidebar-header {
  padding: 22px 20px 18px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-nav {
  padding: 12px 10px 24px;
  flex: 1;
}

/* Nav links */
.admin-nav-link,
.admin-sidebar a.admin-nav-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px !important;
  margin: 2px 0;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s !important;
  border: none !important;
  background: transparent !important;
}

/* HOVER = Orange (user request) */
.admin-nav-link:hover,
.admin-sidebar a.admin-nav-link:hover {
  background: rgba(255, 122, 69, 0.18) !important;
  color: #FF9A6B !important;
}

/* Active state = solid coral/orange */
.admin-nav-link.active,
.admin-sidebar a.admin-nav-link.active {
  background: var(--af-gradient-btn) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 107, 94, 0.35);
}

.admin-nav-ico {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  opacity: 0.9;
}

/* Group buttons */
.admin-nav-group {
  margin: 4px 0;
}

.admin-nav-group-btn {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}

.admin-nav-group-btn:hover {
  background: rgba(255, 122, 69, 0.18) !important;
  color: #FF9A6B !important;
}

.admin-nav-group.open > .admin-nav-group-btn {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.admin-nav-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.admin-nav-group.open .admin-nav-chevron {
  transform: rotate(180deg);
}

/* Sub menu */
.admin-nav-sub {
  display: none;
  padding: 4px 0 6px 12px;
}

.admin-nav-group.open > .admin-nav-sub {
  display: block;
}

.admin-nav-sub a {
  display: block;
  padding: 8px 14px 8px 34px !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

.admin-nav-sub a:hover {
  background: rgba(255, 122, 69, 0.15) !important;
  color: #FF9A6B !important;
}

.admin-nav-sub a.active {
  background: rgba(255, 107, 94, 0.22) !important;
  color: #FFB59A !important;
  font-weight: 650 !important;
}

.nav-badge {
  background: var(--af-coral) !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Deal of the day style promo in sidebar (like pic 1) */
.admin-sidebar .sidebar-promo,
.admin-sidebar .deal-card {
  margin: 16px 12px;
  background: var(--af-gradient);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  text-align: center;
}

/* ----- Main Content Area ----- */
.admin-content,
.admin-main,
.admin-shell .admin-content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 40px !important;
  background: var(--af-bg) !important;
}

body.is-admin-shell .page-title,
.admin-content .page-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--af-navy) !important;
}

/* ----- KPI / Stat Cards (Picture 1 style) ----- */
.grid.grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px !important;
  margin-bottom: 20px;
}

.stat-card,
.card.stat-card {
  background: #fff !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: var(--af-shadow-card) !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--af-shadow-md) !important;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--af-coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: var(--af-navy) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--af-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Mini cards / Business Snapshot */
.nx-mini-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.nx-mini-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-mini-card,
.nx-circle-card {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--af-shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-mini-card strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--af-navy);
}

.nx-mini-card span {
  font-size: 0.8rem;
  color: var(--af-muted);
  font-weight: 600;
}

.nx-mini-card small {
  font-size: 0.75rem;
  color: var(--af-muted);
}

.nx-mini-card-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.nx-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--af-coral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Donut indicators */
.nx-donut {
  --p: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--af-coral) var(--p), var(--af-line) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nx-donut b {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--af-navy);
}

/* Section titles in admin */
.nx-section-title {
  margin: 24px 0 14px !important;
}

.nx-section-title strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--af-navy);
  display: block;
}

.nx-section-title span {
  font-size: 0.85rem;
  color: var(--af-muted);
  font-weight: 500;
}

/* Admin tables */
.admin-content table,
.admin-content .table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--af-line);
  box-shadow: var(--af-shadow-card);
}

.admin-content th {
  background: #F8FAFC !important;
  font-weight: 700 !important;
  color: #536178 !important;
  font-size: 0.76rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--af-line) !important;
}

.admin-content td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf0f5 !important;
  font-size: 0.9rem;
}

.admin-content .btn {
  border-radius: 10px !important;
  font-weight: 700 !important;
}

/* Charts / panels */
.chart-panel,
.admin-panel,
.card.chart-card {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--af-shadow-card);
  margin-bottom: 16px;
}

/* New order alert */
.nx-neworder-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid var(--af-coral);
  background: linear-gradient(135deg, #fff5f3, #fff);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  box-shadow: var(--af-shadow-card);
}

/* Admin responsive */
@media (max-width: 1100px) {
  .grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .nx-mini-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-sidebar,
  aside.admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .grid.grid-4,
  .nx-mini-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .admin-content {
    padding: 16px !important;
  }
}


/* ==========================================================================
   16. HOMEPAGE structural polish (A1)
   ========================================================================== */

.category-section {
  margin-bottom: 32px;
}

.cat-head {
  margin-bottom: 14px;
}

.cat-head .page-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--af-navy) !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

.cat-carousel {
  position: relative;
  /* v38 — a block-level child of the grid column must be allowed to shrink
     below the width of its own content, or it pushes the whole row wide. */
  min-width: 0;
}

.cat-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--af-coral) transparent;
  /* v38 — THIS was the real cause of "the carousel will not scroll".
     A flex item defaults to `min-width: auto`, which means it refuses to
     shrink below the min-content width of its contents. Three 158px cards
     plus gaps and padding = 502px, so the track GREW to 502px inside a
     390px phone: `scrollWidth === clientWidth`, there was nothing to scroll,
     and the extra cards were simply clipped by the page-level guard.
     `min-width: 0` lets the track accept the width it is given — which is
     precisely what creates the overflow that `overflow-x: auto` scrolls. */
  min-width: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* v38 — `smooth` made a mouse drag lag behind the cursor. The arrows still
     animate because they pass { behavior: 'smooth' } to scrollBy(). */
  scroll-behavior: auto;
}

.cat-track::-webkit-scrollbar {
  height: 6px;
}

.cat-track::-webkit-scrollbar-thumb {
  background: var(--af-coral);
  border-radius: 999px;
}

.cat-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.cat-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--af-line);
  box-shadow: var(--af-shadow);
  color: var(--af-navy);
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.cat-nav:hover {
  background: var(--af-coral);
  color: #fff;
  border-color: var(--af-coral);
}

/* v38 — the arrows used to sit 8px OUTSIDE the carousel (`left/right: -8px`).
   The right-hand one therefore stuck 8px past the page edge at every desktop
   width, which is a genuine page-level horizontal overflow. Pulled just
   inside the row instead. */
.cat-nav.prev { left: 4px; }
.cat-nav.next { right: 4px; }

/* Home split layout */
.nx-home-split {
  display: grid;
  /* v38 — `1fr` is shorthand for `minmax(auto, 1fr)`, and that `auto` floor
     is the MIN-CONTENT width of the column. The carousel row (502px wide on
     a 390px phone) raised that floor, so the grid track was laid out 502px
     wide inside a 390px page: every box inside inherited the wrong width and
     the excess was merely clipped. `minmax(0, 1fr)` removes the content
     floor so the column follows the page and the carousel gets a real box. */
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 8px;
}

/* Grid items also default to `min-width: auto`; they must shrink too. */
.nx-home-split > * {
  min-width: 0;
}

.nx-home-main {
  min-width: 0;
}

.nx-home-split.has-rail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
}

.nx-ads-rail {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nx-ads-rail-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--af-muted);
}

.nx-ads-rail-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--af-shadow-card);
  border: 1px solid var(--af-line);
  background: #fff;
}

.nx-ads-rail-card img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .nx-home-split.has-rail {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The sidebar rail becomes a horizontal strip on phones, i.e. it is a
     scroll container in its own right and gets the same treatment as
     .cat-track (v38). */
  .nx-ads-rail {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }
  .nx-ads-rail-card {
    min-width: 160px;
  }
  .cat-item {
    flex: 0 0 170px;
  }
}


/* ==========================================================================
   17. PRODUCT DETAIL page polish (A1)
   ========================================================================== */

.pdp-layout,
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--af-shadow-card);
  margin-bottom: 28px;
}

.pdp-gallery,
.pdp-media {
  background: linear-gradient(145deg, #F8FAFC, #EEF2F7);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.pdp-main-img,
.pdp-main-img img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  max-height: 420px;
}

.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pdp-thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px solid var(--af-line);
  padding: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}

.pdp-thumb-btn.active,
.pdp-thumb-btn:hover {
  border-color: var(--af-coral);
}

.pdp-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-title {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--af-navy) !important;
  line-height: 1.25;
  margin: 0 !important;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.pdp-rating .stars {
  color: #F59E0B;
  letter-spacing: 1px;
}

.pdp-price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 4px;
}

.pdp-price {
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  color: var(--af-coral) !important;
  letter-spacing: -0.02em;
}

.pdp-off-badge {
  background: rgba(255, 107, 94, 0.14);
  color: #E85A4F;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.pdp-price-breakdown {
  width: 100%;
  font-size: 0.85rem;
  color: var(--af-muted);
  margin-top: 4px;
}

.pdp-price-total {
  font-weight: 700;
  color: var(--af-navy);
}

/* Coupons on PDP */
.pdp-coupons {
  background: #FFF9F5;
  border: 1px dashed rgba(255, 107, 94, 0.35);
  border-radius: 14px;
  padding: 14px;
  margin: 8px 0;
}

.pdp-coupons-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--af-navy);
  display: block;
  margin-bottom: 8px;
}

.pdp-coupon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdp-coupon {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pdp-coupon:hover {
  border-color: var(--af-coral);
  background: var(--af-coral-soft);
  color: var(--af-coral);
}

/* Add to cart / buy actions on PDP */
.pdp-actions,
.pdp-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.pdp-actions .btn-primary,
.pdp-buy-row .btn-primary {
  flex: 1;
  min-width: 160px;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
}

/* Responsive PDP */
@media (max-width: 800px) {
  .pdp-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 20px;
  }
  .pdp-title {
    font-size: 1.35rem !important;
  }
  .pdp-price {
    font-size: 1.4rem !important;
  }
}


/* ==========================================================================
   18. Product Detail — actual class names used in product.php
   ========================================================================== */

.pdp {
  max-width: 1180px;
  margin: 0 auto 32px;
}

.pdp-top {
  margin-bottom: 12px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--af-shadow-card);
}

.pdp-gallery.card {
  background: linear-gradient(145deg, #F8FAFC, #EEF2F7) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.pdp-main-wrap {
  position: relative;
  text-align: center;
}

.pdp-main-img {
  max-height: 400px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.pdp-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--af-muted);
}

/* Lightbox */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 57, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox[hidden] {
  display: none !important;
}

.pdp-lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.pdp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.pdp-lb-prev { left: 20px; }
.pdp-lb-next { right: 20px; }

.pdp-lb-count {
  position: absolute;
  bottom: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 18px;
  }
}


/* ==========================================================================
   19. Admin list pages — Orders, Products, Sales (exact match polish)
   ========================================================================== */

/* Filter toolbar cards */
.admin-content .card:has(form),
.admin-content .card form {
  border-radius: 14px !important;
}

.admin-content .card form.flex,
.admin-content form.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-content .card form .form-control {
  min-height: 42px;
}

/* Status badges */
.badge,
span.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.badge-success {
  background: var(--af-green-soft) !important;
  color: var(--af-green) !important;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #D97706 !important;
}

.badge-info {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563EB !important;
}

.badge-danger,
.badge-error {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #DC2626 !important;
}

.badge-secondary {
  background: #F1F5F9 !important;
  color: #64748B !important;
}

/* Table polish */
.admin-content .card:has(table) {
  padding: 0 !important;
  overflow: hidden;
}

.admin-content .table-wrap {
  overflow-x: auto;
}

.admin-content table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.admin-content table.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-content table.table tbody tr {
  transition: background 0.12s;
}

.admin-content table.table tbody tr:hover {
  background: #F8FAFC;
}

.admin-content table.table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Action buttons in tables */
.admin-content td .btn-sm {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  margin: 2px;
}

/* Sales page KPI row */
.admin-content > .grid[style*="grid-template-columns"] {
  gap: 14px !important;
}

.admin-content > .grid .card {
  border-radius: 14px !important;
  box-shadow: var(--af-shadow-card) !important;
  border: 1px solid var(--af-line) !important;
}

.admin-content > .grid .card strong,
.admin-content > .grid .card b {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--af-navy);
  display: block;
}


/* ==========================================================================
   20. Wholesale / POS / Retail screen (ws-* classes)
   ========================================================================== */

.ws-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.ws-hero {
  background: var(--af-gradient);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(255, 107, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ws-hero .page-title {
  color: #fff !important;
  margin: 0 !important;
}

.ws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.ws-main,
.ws-side {
  min-width: 0;
}

.ws-card {
  background: #fff !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px;
  box-shadow: var(--af-shadow-card) !important;
}

.ws-card-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--af-navy) !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--af-line);
}

.ws-card .grid.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Product search / add line items */
.ws-search-box,
.ws-product-search {
  position: relative;
  margin-bottom: 12px;
}

.ws-search-box input,
.ws-product-search input {
  width: 100%;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--af-line) !important;
  font-size: 0.95rem !important;
}

.ws-search-box input:focus {
  border-color: var(--af-coral) !important;
  box-shadow: 0 0 0 3px var(--af-coral-soft) !important;
}

/* Line items table inside POS */
.ws-items table,
.ws-card table {
  width: 100%;
  border-collapse: collapse;
}

.ws-items th,
.ws-card table th {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--af-muted);
  font-weight: 700;
  padding: 10px 8px !important;
  border-bottom: 1px solid var(--af-line);
  background: #F8FAFC;
}

.ws-items td,
.ws-card table td {
  padding: 10px 8px !important;
  border-bottom: 1px solid #edf0f5;
  font-size: 0.9rem;
  vertical-align: middle;
}

.ws-items input[type="number"],
.ws-items input.form-control {
  max-width: 90px;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  text-align: center;
}

/* Totals sidebar sticky */
.ws-side .ws-card {
  position: sticky;
  top: 90px;
}

.ws-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--af-ink);
}

.ws-totals-row.grand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--af-coral);
  border-top: 2px solid var(--af-line);
  margin-top: 8px;
  padding-top: 14px;
}

.ws-side .btn-primary {
  width: 100%;
  padding: 14px !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
  margin-top: 12px;
}

/* Empty line state */
.ws-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--af-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .ws-grid {
    grid-template-columns: 1fr;
  }
  .ws-side .ws-card {
    position: static;
  }
  .ws-card .grid.grid-2 {
    grid-template-columns: 1fr;
  }
  .ws-hero {
    padding: 18px;
  }
}


/* ==========================================================================
   21. Mobile Bottom Navigation (App-style) — Storefront only
   ========================================================================== */

.af-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Show bottom nav on storefront, hide on admin */
  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--af-line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(15, 36, 57, 0.08);
    justify-content: space-around;
    align-items: center;
  }

  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    min-width: 64px;
    text-decoration: none;
    color: var(--af-muted);
    font-size: 0.68rem;
    font-weight: 650;
    border-radius: 12px;
    transition: color 0.15s, background 0.15s;
    position: relative;
  }

  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav a svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav a.active,
  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav a:hover {
    color: var(--af-coral);
    background: var(--af-coral-soft);
  }

  body:not(.is-admin-shell):not(.is-staff-bar) .af-bottom-nav .af-nav-badge {
    position: absolute;
    top: 2px;
    right: 12px;
    background: var(--af-coral);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }

  /* Prevent content from being hidden behind bottom nav */
  body:not(.is-admin-shell):not(.is-staff-bar) {
    padding-bottom: 72px !important;
  }

  body:not(.is-admin-shell):not(.is-staff-bar) .site-footer,
  body:not(.is-admin-shell):not(.is-staff-bar) footer {
    margin-bottom: 0;
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .af-bottom-nav {
    display: none !important;
  }
}


/* ==========================================================================
   22. Order Detail (Admin) — order-head, panels, status pills, totals
   ========================================================================== */

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-panel {
  background: #fff !important;
  border: 1px solid var(--af-line) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: var(--af-shadow-card) !important;
  margin-bottom: 16px;
}

.order-panel h3,
.order-panel > strong:first-child {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--af-navy);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--af-line);
  display: block;
}

/* Key-value list */
.order-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.9rem;
}

.order-kv dt {
  color: var(--af-muted);
  font-weight: 600;
  margin: 0;
}

.order-kv dd {
  margin: 0;
  color: var(--af-ink);
  font-weight: 600;
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.status-pill.is-paid {
  background: var(--af-green-soft);
  color: var(--af-green);
}

.status-pill.is-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
}

.status-pill.is-info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.status-pill.is-failed,
.status-pill.is-refunded {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

/* Form rows for status/payment updates */
.order-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.order-form-row .form-control {
  max-width: 200px;
  min-height: 38px;
}

/* Totals block */
.order-totals {
  max-width: 320px;
  margin-left: auto;
}

.order-totals .flex-between {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.order-grand {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--af-coral) !important;
  border-top: 2px solid var(--af-line);
  margin-top: 8px;
  padding-top: 12px !important;
}

.order-totals .num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.tracking-display {
  background: #F8FAFC;
  border: 1px dashed var(--af-line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Items table on order detail */
.order-panel .table-wrap {
  overflow-x: auto;
}

@media (max-width: 700px) {
  .order-kv {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .order-kv dt {
    margin-top: 8px;
  }
  .order-form-row .form-control {
    max-width: 100%;
    flex: 1;
  }
}


/* ==========================================================================
   23. Inventory / Purchase screens
   ========================================================================== */

/* Inventory sub-nav as pill tabs */
.admin-content > .container > div[style*="display:flex"][style*="gap:8px"],
.admin-content div[style*="display:flex"][style*="gap:8px"][style*="margin-bottom:18px"] {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--af-shadow-card);
  margin-bottom: 20px !important;
}

/* Inventory KPI cards */
.admin-content .container > div[style*="grid-template-columns"] .card {
  border-radius: 14px !important;
  border: 1px solid var(--af-line) !important;
  box-shadow: var(--af-shadow-card) !important;
}

.admin-content .container > div[style*="grid-template-columns"] .card strong {
  font-weight: 800;
  color: var(--af-navy);
}

/* Purchase form cost summary */
.po-cost-summary {
  background: #FFF9F5;
  border: 1px solid rgba(255, 107, 94, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
}

.po-cost-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.po-cost-summary span {
  color: var(--af-muted);
  font-weight: 600;
}

.po-cost-summary strong {
  font-weight: 800;
  color: var(--af-navy);
  font-variant-numeric: tabular-nums;
}

.po-cost-total {
  border-top: 2px solid var(--af-line);
  margin-top: 8px;
  padding-top: 12px !important;
  font-size: 1.15rem !important;
}

.po-cost-total strong {
  color: var(--af-coral) !important;
}

.po-cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Inventory tables */
.admin-content .container .card {
  border-radius: 14px !important;
  border: 1px solid var(--af-line) !important;
  box-shadow: var(--af-shadow-card) !important;
}

.text-success {
  color: var(--af-green) !important;
  font-weight: 700;
}

.text-danger {
  color: #DC2626 !important;
  font-weight: 700;
}


/* ==========================================================================
   24. Print styles — Invoice + general admin print
   ========================================================================== */

@media print {
  body.is-admin-shell .admin-sidebar,
  .admin-sidebar,
  .af-bottom-nav,
  .site-header,
  .nx-header,
  .order-actions,
  .order-form-row,
  .no-print,
  .admin-nav-link,
  button.btn:not(.print-keep) {
    display: none !important;
  }

  body,
  body.is-admin-shell {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-content,
  .admin-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .order-panel,
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .page-title {
    font-size: 1.3rem !important;
  }

  a[href]::after {
    content: none !important;
  }
}


/* ==========================================================================
   25. Dark Theme (data-theme="dark")
   ========================================================================== */

html[data-theme="dark"] {
  --af-ink: #E8EEF5;
  --af-muted: #94A3B8;
  --af-line: #2A3A4F;
  --af-surface: #15263A;
  --af-bg: #0B1826;
  --af-navy: #0A1624;
  --af-navy-2: #122033;
  --af-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --af-shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --af-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--af-bg) !important;
  color: var(--af-ink) !important;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .main-header,
html[data-theme="dark"] .header-main,
html[data-theme="dark"] .nx-header,
html[data-theme="dark"] header.nx-topbar {
  background: #122033 !important;
  border-bottom-color: var(--af-line) !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .site-logo,
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .nx-logo {
  color: #fff !important;
}

html[data-theme="dark"] .nx-search,
html[data-theme="dark"] .header-search,
html[data-theme="dark"] .search-form {
  background: #0B1826 !important;
  border-color: var(--af-line) !important;
}

html[data-theme="dark"] .nx-action {
  color: #E8EEF5 !important;
}

html[data-theme="dark"] .nx-action:hover {
  background: rgba(255, 122, 69, 0.2) !important;
  color: #FF9A6B !important;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card.product-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .order-panel,
html[data-theme="dark"] .ws-card,
html[data-theme="dark"] .af-track-card,
html[data-theme="dark"] .checkout-section,
html[data-theme="dark"] .cart-summary {
  background: var(--af-surface) !important;
  border-color: var(--af-line) !important;
  color: var(--af-ink) !important;
}

html[data-theme="dark"] .pc-img-wrap,
html[data-theme="dark"] .pdp-gallery.card {
  background: linear-gradient(145deg, #1A2B40, #122033) !important;
}

html[data-theme="dark"] .pc-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .pdp-title,
html[data-theme="dark"] .nx-section-title {
  color: #F1F5F9 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0B1826 !important;
  border-color: var(--af-line) !important;
  color: var(--af-ink) !important;
}

html[data-theme="dark"] .admin-content,
html[data-theme="dark"] body.is-admin-shell .admin-content {
  background: var(--af-bg) !important;
}

html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .nx-mini-card,
html[data-theme="dark"] .nx-circle-card {
  background: var(--af-surface) !important;
  border-color: var(--af-line) !important;
}

html[data-theme="dark"] .stat-value,
html[data-theme="dark"] .nx-mini-card strong {
  color: #F1F5F9 !important;
}

html[data-theme="dark"] .admin-content th {
  background: #1A2B40 !important;
  color: #94A3B8 !important;
  border-bottom-color: var(--af-line) !important;
}

html[data-theme="dark"] .admin-content td {
  border-bottom-color: var(--af-line) !important;
  color: var(--af-ink) !important;
}

html[data-theme="dark"] .admin-content table.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .af-bottom-nav {
  background: #122033 !important;
  border-top-color: var(--af-line) !important;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] footer {
  background: #060E18 !important;
}

html[data-theme="dark"] .btn-outline {
  background: transparent !important;
  border-color: var(--af-line) !important;
  color: var(--af-ink) !important;
}

html[data-theme="dark"] .h-cart-dropdown {
  background: var(--af-surface) !important;
  border-color: var(--af-line) !important;
}

/* Theme toggle icons */
.af-theme-toggle {
  border: none !important;
  background: transparent !important;
  cursor: pointer;
}

html[data-theme="dark"] .af-theme-icon-sun { display: none !important; }
html[data-theme="dark"] .af-theme-icon-moon { display: block !important; }


/* ==========================================================================
   26. Customer Order Tracking (timeline like mockup)
   ========================================================================== */

.af-track-page {
  max-width: 820px;
  margin: 28px auto 48px;
}

.af-track-card {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--af-shadow-card);
}

.af-track-hero .page-title {
  margin: 0 0 6px !important;
}

.af-track-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}

.af-track-form .form-control {
  flex: 1;
  min-width: 220px;
}

.af-track-alert {
  margin-top: 16px;
  border-radius: 12px;
}

.af-track-result {
  margin-top: 24px;
  border-top: 1px solid var(--af-line);
  padding-top: 22px;
}

.af-track-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.af-track-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--af-muted);
  margin-bottom: 4px;
}

.af-track-order-no {
  font-size: 1.1rem;
  color: var(--af-navy);
}

/* Vertical timeline */
.af-timeline {
  position: relative;
  padding: 8px 0 8px 8px;
  margin-bottom: 28px;
}

.af-timeline-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}

.af-timeline-step:last-child {
  padding-bottom: 0;
}

.af-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #CBD5E1;
  flex-shrink: 0;
  z-index: 2;
  margin-top: 2px;
}

.af-timeline-line {
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
  z-index: 1;
}

.af-timeline-step.is-done .af-timeline-dot {
  background: var(--af-green);
  box-shadow: 0 0 0 2px var(--af-green);
}

.af-timeline-step.is-done .af-timeline-line {
  background: var(--af-green);
}

.af-timeline-step.is-current .af-timeline-dot {
  background: var(--af-coral);
  box-shadow: 0 0 0 4px var(--af-coral-soft);
  animation: af-pulse 1.6s ease infinite;
}

@keyframes af-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--af-coral-soft); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 94, 0.08); }
}

.af-timeline-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--af-ink);
}

.af-timeline-now {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--af-coral);
}

.af-timeline-done-label {
  font-size: 0.75rem;
  color: var(--af-green);
  font-weight: 600;
}

.af-track-cancelled {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.af-track-items-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 8px 0 12px;
  color: var(--af-navy);
}

.af-track-privacy {
  font-size: 0.8rem;
  margin-top: 20px;
}

html[data-theme="dark"] .af-timeline-dot {
  border-color: var(--af-surface);
  box-shadow: 0 0 0 2px #3A4A5F;
  background: #3A4A5F;
}

html[data-theme="dark"] .af-timeline-line {
  background: #3A4A5F;
}


/* ==========================================================================
   27. Dealer / Wholesale panel accent
   ========================================================================== */

.ws-hero h1.page-title::after {
  content: " · Dealer";
  font-weight: 600;
  opacity: 0.85;
  font-size: 0.85em;
}

/* Dealer quick stats on sales page when present */
.dealer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--af-coral-soft);
  color: var(--af-coral);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}


/* ==========================================================================
   28. Premium Footer redesign
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, #0B1A2B 0%, #071018 100%) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  margin-top: 56px !important;
  padding: 48px 0 0 !important;
  position: relative;
  overflow: hidden;
}

/* Soft coral glow at top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF7A45, #FF6B5E, #7B5CFF);
}

.site-footer .container {
  max-width: 1180px;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 1fr 1.15fr !important;
  gap: 32px 28px !important;
  padding: 0 20px 36px !important;
  align-items: start;
}

/* Brand column */
.footer-brand .footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #fff !important;
  margin-bottom: 14px !important;
}

.footer-brand .footer-logo span:first-child {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: var(--af-gradient-btn) !important;
  box-shadow: 0 6px 18px rgba(255, 107, 94, 0.35) !important;
  font-size: 1.2rem !important;
}

.footer-brand .footer-logo span:last-child {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0 0 18px !important;
  color: #94A3B8 !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

.footer-tagline a {
  color: #CBD5E1 !important;
  text-decoration: none !important;
}

.footer-tagline a:hover {
  color: #FF9A6B !important;
}

/* Contact chips */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #94A3B8;
}

.footer-contact-item strong {
  color: #E2E8F0;
  font-weight: 600;
}

/* Column headings */
.footer-col h4 {
  margin: 0 0 16px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #fff !important;
}

.footer-col > a {
  display: block !important;
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  padding: 5px 0 !important;
  transition: color 0.15s, transform 0.15s !important;
}

.footer-col > a:hover {
  color: #FF9A6B !important;
  transform: translateX(3px);
}

/* Social icons */
.footer-social-label {
  margin: 4px 0 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #E2E8F0 !important;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.footer-social a {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social a[title="Facebook"] { background: #1877F2 !important; }
.footer-social a[title="YouTube"]  { background: #FF0000 !important; }
.footer-social a[title="Twitter"],
.footer-social a[title="X"]        { background: #1DA1F2 !important; }
.footer-social a[title="Instagram"] {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af) !important;
}

/* Payment icons row */
.footer-col .payment-icons,
.footer-col .pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-col .payment-icons img,
.footer-col .pay-icons img,
.footer-col .payment-icons span,
.footer-col .pay-badge {
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Newsletter */
.footer-newsletter p {
  margin: 0 0 14px !important;
  color: #94A3B8 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

.nx-newsletter-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.nx-newsletter-form .form-control,
.nx-newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 12px 16px !important;
  width: 100% !important;
}

.nx-newsletter-form .form-control::placeholder {
  color: #64748B !important;
}

.nx-newsletter-form .form-control:focus {
  border-color: var(--af-coral) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.25) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.nx-newsletter-form .btn-primary {
  width: 100% !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
}

.nx-newsletter-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}

.nx-newsletter-msg.is-ok { color: #4ADE80; }
.nx-newsletter-msg.is-error { color: #F87171; }

/* Divider */
.footer-hr {
  border: none !important;
  height: 1px !important;
  margin: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent) !important;
}

/* Trust strip */
.footer-trust {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px 22px !important;
  padding: 18px 20px !important;
}

.footer-trust-item {
  font-size: 0.8rem !important;
  color: #94A3B8 !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-trust-item strong {
  color: var(--af-coral) !important;
  font-weight: 800;
}

/* Bottom bar */
.footer-bottom {
  text-align: center;
  padding: 16px 20px 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: #64748B !important;
}

/* Responsive footer */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 24px !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 36px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-bottom: 28px !important;
  }
  .footer-trust {
    gap: 10px 14px !important;
  }
  .footer-social a {
    width: 40px !important;
    height: 40px !important;
  }
}


/* ==========================================================================
   29. Category bar + Staff bar + Admin user block (visibility fixes)
   ========================================================================== */

/* Category menu bar — solid background so labels always readable */
.nx-catbar,
.category-bar,
.nav-categories {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--af-line) !important;
  box-shadow: 0 2px 10px rgba(15, 36, 57, 0.04);
}

.nx-catbar-inner,
.category-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  padding: 8px 0;
}

.nx-catbar a,
.category-bar a,
.nx-catbar .nx-cat-item > a {
  color: #1A2433 !important;
  font-weight: 650 !important;
  font-size: 0.88rem !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.nx-catbar a:hover,
.category-bar a:hover,
.nx-catbar a.active {
  background: rgba(255, 107, 94, 0.12) !important;
  color: #E85A4F !important;
}

/* Dark theme: category bar must stay readable */
html[data-theme="dark"] .nx-catbar,
html[data-theme="dark"] .category-bar {
  background: #15263A !important;
  border-bottom-color: #2A3A4F !important;
}

html[data-theme="dark"] .nx-catbar a,
html[data-theme="dark"] .category-bar a {
  color: #E8EEF5 !important;
}

html[data-theme="dark"] .nx-catbar a:hover,
html[data-theme="dark"] .nx-catbar a.active {
  background: rgba(255, 122, 69, 0.2) !important;
  color: #FF9A6B !important;
}

/* Dark theme: category SUBMENU must stay readable
   Brand-unified forces white bg + --af-ink (light in dark mode) = invisible text.
   Force solid dark panel + bright text. */
html[data-theme="dark"] .nx-cat-sub,
html[data-theme="dark"] .nx-cat-subitem,
html[data-theme="dark"] .nx-cat-item .nx-cat-sub {
  background: #1a2b40 !important;
  border: 1px solid #2A3A4F !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  color: #F1F5F9 !important;
}
html[data-theme="dark"] .nx-cat-sub a,
html[data-theme="dark"] .nx-cat-subitem > a,
html[data-theme="dark"] .nx-cat-sub .nx-cat-sub a {
  color: #F1F5F9 !important;
  background: transparent !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme="dark"] .nx-cat-sub a:hover,
html[data-theme="dark"] .nx-cat-subitem:hover > a,
html[data-theme="dark"] .nx-cat-sub a:focus {
  background: rgba(255, 122, 69, 0.22) !important;
  color: #FFB088 !important;
}
html[data-theme="dark"] .nx-cat-link,
html[data-theme="dark"] .nx-catbar .nx-cat-link {
  color: #F1F5F9 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .nav-caret {
  color: #94A3B8 !important;
  opacity: 1 !important;
}
/* Mobile drawer categories in dark mode */
html[data-theme="dark"] .mobile-nav-drawer,
html[data-theme="dark"] #mobileNavDrawer {
  background: #122033 !important;
  color: #F1F5F9 !important;
}
html[data-theme="dark"] .mobile-nav-drawer a,
html[data-theme="dark"] #mobileNavDrawer a {
  color: #F1F5F9 !important;
  opacity: 1 !important;
}



/* Header main row — clear surface */
.nx-header-main,
.site-header .container.nx-header-main {
  background: transparent;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .nx-header {
  background: #0F1F30 !important;
}

html[data-theme="dark"] .header-top {
  background: #0A1624 !important;
  border-bottom: 1px solid #2A3A4F;
}

html[data-theme="dark"] .header-tagline,
html[data-theme="dark"] .header-top-links a {
  color: #94A3B8 !important;
}

/* ----- Staff bar (when admin views storefront) ----- */
.staff-bar {
  background: linear-gradient(90deg, #0F2439 0%, #172F4D 100%) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.staff-bar-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 16px !important;
  flex-wrap: wrap;
}

.staff-bar-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  margin-right: 8px;
}

.staff-bar-brand em {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #FF9A6B !important;
  margin-left: 4px;
  font-size: 0.85em;
}

.staff-bar-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--af-gradient-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.staff-bar-role {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 107, 94, 0.2) !important;
  color: #FFB59A !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-bar-link {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  transition: background 0.15s, color 0.15s;
}

.staff-bar-link:hover {
  background: rgba(255, 122, 69, 0.2) !important;
  color: #FF9A6B !important;
}

.staff-bar-logout {
  color: #FCA5A5 !important;
}

.staff-cart-badge {
  background: var(--af-coral) !important;
  color: #fff !important;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ----- Admin sidebar user block ----- */
.admin-sidebar-head {
  padding: 18px 16px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #fff !important;
}

.admin-sidebar-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--af-gradient-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(255, 107, 94, 0.35);
}

.admin-sidebar-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.admin-sidebar-user {
  padding: 14px 16px 16px !important;
  margin: 0 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-user strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-role-badge {
  display: inline-flex !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 107, 94, 0.22) !important;
  color: #FFB59A !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Product cards on dark theme — ensure readable */
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card.product-card {
  background: #15263A !important;
  border-color: #2A3A4F !important;
}

html[data-theme="dark"] .pc-title a {
  color: #F1F5F9 !important;
}

html[data-theme="dark"] .cat-head .page-title {
  color: #F1F5F9 !important;
}


/* ==========================================================================
   30. Contrast fix + Light footer (no pure black backgrounds)
   User request: clear fonts, no black header/footer bg, fix email gap, keep HR
   ========================================================================== */

:root {
  --af-ink: #0A0A0A;
  --af-muted: #3F3F46;
  --af-bg: #F5F6F8;
  --af-surface: #FFFFFF;
  --af-line: #E4E4E7;
}

body {
  color: #0A0A0A !important;
}

/* Strong readable text on light surfaces */
.pc-title,
.pc-title a,
.page-title,
.pdp-title,
.nx-section-title,
.cat-head .page-title,
h1, h2, h3, h4 {
  color: #0A0A0A !important;
}

.muted,
.pc-meta,
.pc-sold,
.footer-col > a {
  color: #3F3F46 !important;
}

/* Header stays light (not black) */
.site-header,
.main-header,
.nx-header,
header.nx-topbar {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E4E4E7 !important;
}

.header-top {
  background: #FAFAFA !important;
  border-bottom: 1px solid #EEEEF0 !important;
}

.header-tagline,
.header-top-links a {
  color: #3F3F46 !important;
}

.nx-catbar,
.category-bar {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E4E4E7 !important;
}

.nx-catbar a,
.category-bar a {
  color: #0A0A0A !important;
}

/* ----- LIGHT FOOTER (not black) ----- */
.site-footer {
  background: #F4F5F7 !important;
  color: #0A0A0A !important;
  margin-top: 56px !important;
  padding: 48px 0 0 !important;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF7A45, #FF6B5E, #7B5CFF);
  z-index: 2;
}

.site-footer a:hover {
  color: #E85A4F !important;
}

.footer-brand .footer-logo {
  color: #0A0A0A !important;
}

.footer-brand .footer-logo span:last-child {
  color: #0A0A0A !important;
}

.footer-tagline {
  margin: 0 0 12px !important;
  color: #3F3F46 !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

/* Contact list — each field one clean line, no awkward br gaps */
.footer-contact {
  list-style: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact li {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: #0A0A0A !important;
  word-break: break-word;
}

.footer-contact .fc-label {
  display: inline-block;
  min-width: 58px;
  font-weight: 700;
  color: #52525B;
  margin-right: 6px;
}

.footer-contact a {
  color: #0A0A0A !important;
  text-decoration: none !important;
  font-weight: 600;
}

.footer-contact a:hover {
  color: #E85A4F !important;
}

.footer-col h4 {
  color: #0A0A0A !important;
  letter-spacing: 0.06em !important;
}

.footer-col > a {
  color: #27272A !important;
}

.footer-col > a:hover {
  color: #E85A4F !important;
}

.footer-social-label {
  color: #0A0A0A !important;
}

.footer-newsletter p,
.footer-nl-copy {
  color: #3F3F46 !important;
}

.nx-newsletter-form .form-control,
.nx-newsletter-form input[type="email"] {
  background: #FFFFFF !important;
  border: 1.5px solid #D4D4D8 !important;
  color: #0A0A0A !important;
}

.nx-newsletter-form .form-control::placeholder {
  color: #71717A !important;
}

/* HR restored — clear visible divider */
.footer-hr {
  display: block !important;
  border: none !important;
  height: 1px !important;
  margin: 0 !important;
  background: #D4D4D8 !important;
  opacity: 1 !important;
}

.footer-trust-item {
  color: #3F3F46 !important;
}

.footer-trust-item strong {
  color: #E85A4F !important;
}

.footer-bottom {
  border-top: 1px solid #E4E4E7 !important;
  background: #EEEEF0 !important;
}

.footer-bottom p {
  color: #3F3F46 !important;
}

/* Dark theme: keep high contrast when user toggles dark */
html[data-theme="dark"] {
  --af-ink: #F4F4F5;
  --af-muted: #A1A1AA;
  --af-bg: #121212;
  --af-surface: #1C1C1E;
  --af-line: #3F3F46;
}

html[data-theme="dark"] body {
  color: #F4F4F5 !important;
}

html[data-theme="dark"] .site-footer {
  background: #1C1C1E !important;
  color: #F4F4F5 !important;
}

html[data-theme="dark"] .footer-tagline,
html[data-theme="dark"] .footer-contact li,
html[data-theme="dark"] .footer-col > a,
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .footer-social-label,
html[data-theme="dark"] .footer-brand .footer-logo,
html[data-theme="dark"] .footer-brand .footer-logo span:last-child {
  color: #F4F4F5 !important;
}

html[data-theme="dark"] .footer-contact .fc-label {
  color: #A1A1AA !important;
}

html[data-theme="dark"] .footer-hr {
  background: #3F3F46 !important;
}

html[data-theme="dark"] .footer-bottom {
  background: #121212 !important;
  border-top-color: #3F3F46 !important;
}

html[data-theme="dark"] .nx-newsletter-form .form-control {
  background: #121212 !important;
  border-color: #3F3F46 !important;
  color: #F4F4F5 !important;
}

html[data-theme="dark"] .pc-title,
html[data-theme="dark"] .pc-title a,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .pdp-title,
html[data-theme="dark"] .nx-section-title,
html[data-theme="dark"] .cat-head .page-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: #FAFAFA !important;
}


/* ==========================================================================
   31. User correction: do NOT gray the whole page
   - Body = original light blue-gray workspace
   - Header = white, logo badge ORANGE (like footer)
   - Footer = soft light only
   ========================================================================== */

:root {
  --af-ink: #172033;
  --af-muted: #536178;
  --af-bg: #F5F7FB;
  --af-surface: #FFFFFF;
  --af-line: #E6EBF2;
}

body {
  color: var(--af-ink) !important;
  background: var(--af-bg) !important;
}

/* Body / content headings — original ink, not pure forced black on everything */
.pc-title,
.pc-title a,
.page-title,
.pdp-title,
.nx-section-title,
.cat-head .page-title {
  color: var(--af-ink) !important;
}

.muted {
  color: var(--af-muted) !important;
}

/* Header white surface */
.site-header,
.main-header,
.nx-header,
header.nx-topbar {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--af-line) !important;
}

.header-top {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--af-line) !important;
}

.header-tagline,
.header-top-links a {
  color: var(--af-muted) !important;
}

/* Header brand logo badge = ORANGE (match footer) */
.brand-mark,
.site-header .brand-mark,
.nx-header .brand-mark,
.brand .brand-mark,
a.brand .brand-mark {
  background: linear-gradient(135deg, #FF7A45 0%, #FF6B5E 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 107, 94, 0.3) !important;
}

/* Footer logo badge also orange gradient (consistent) */
.footer-brand .footer-logo span:first-child,
.footer-logo > span:first-child {
  background: linear-gradient(135deg, #FF7A45 0%, #FF6B5E 100%) !important;
  color: #fff !important;
}

/* Category bar white */
.nx-catbar,
.category-bar {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--af-line) !important;
}

.nx-catbar a,
.category-bar a {
  color: var(--af-ink) !important;
}

.nx-catbar a:hover,
.nx-catbar a.active {
  color: #E85A4F !important;
  background: rgba(255, 107, 94, 0.1) !important;
}

/* Footer: soft light only — not full-page gray */
.site-footer {
  background: #F0F3F8 !important;
  color: var(--af-ink) !important;
}

.site-footer::before {
  background: linear-gradient(90deg, #FF7A45, #FF6B5E, #7B5CFF) !important;
}

.footer-tagline {
  color: var(--af-muted) !important;
}

.footer-contact li {
  color: var(--af-ink) !important;
}

.footer-contact .fc-label {
  color: var(--af-muted) !important;
}

.footer-col h4,
.footer-social-label,
.footer-brand .footer-logo,
.footer-brand .footer-logo span:last-child {
  color: var(--af-ink) !important;
}

.footer-col > a {
  color: #2A3544 !important;
}

.footer-col > a:hover {
  color: #E85A4F !important;
}

.footer-bottom {
  background: #E8EDF4 !important;
  border-top: 1px solid var(--af-line) !important;
}

.footer-bottom p {
  color: var(--af-muted) !important;
}

.footer-hr {
  background: var(--af-line) !important;
}

.nx-newsletter-form .form-control,
.nx-newsletter-form input[type="email"] {
  background: #FFFFFF !important;
  border: 1.5px solid var(--af-line) !important;
  color: var(--af-ink) !important;
}


/* ==========================================================================
   32. CRITICAL FIX: Admin table text invisible (light text on white rows)
   Always readable product/order tables regardless of dark theme toggle
   ========================================================================== */

body.is-admin-shell .admin-content,
body.is-admin-shell .admin-main {
  color: #172033 !important;
}

body.is-admin-shell .admin-content .page-title {
  color: #0F2439 !important;
}

body.is-admin-shell .admin-content table,
body.is-admin-shell .admin-content .table,
body.is-admin-shell .admin-content .card {
  background: #FFFFFF !important;
  color: #172033 !important;
}

body.is-admin-shell .admin-content table td,
body.is-admin-shell .admin-content .table td {
  color: #172033 !important;
  background: #FFFFFF !important;
}

body.is-admin-shell .admin-content table td strong,
body.is-admin-shell .admin-content table td a,
body.is-admin-shell .admin-content .table td a {
  color: #0F2439 !important;
}

body.is-admin-shell .admin-content table td .muted,
body.is-admin-shell .admin-content .table .muted {
  color: #536178 !important;
}

body.is-admin-shell .admin-content table th,
body.is-admin-shell .admin-content .table th {
  background: #0F2439 !important;
  color: #FFFFFF !important;
  border-bottom-color: #0F2439 !important;
}

/* Even when html[data-theme=dark] is on — keep admin tables readable */
html[data-theme="dark"] body.is-admin-shell .admin-content table,
html[data-theme="dark"] body.is-admin-shell .admin-content .table,
html[data-theme="dark"] body.is-admin-shell .admin-content .card:has(table) {
  background: #FFFFFF !important;
  color: #172033 !important;
}

html[data-theme="dark"] body.is-admin-shell .admin-content table td,
html[data-theme="dark"] body.is-admin-shell .admin-content .table td,
html[data-theme="dark"] body.is-admin-shell .admin-content table td *,
html[data-theme="dark"] body.is-admin-shell .admin-content .table td a,
html[data-theme="dark"] body.is-admin-shell .admin-content .table td strong {
  color: #172033 !important;
}

html[data-theme="dark"] body.is-admin-shell .admin-content table th,
html[data-theme="dark"] body.is-admin-shell .admin-content .table th {
  background: #0F2439 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] body.is-admin-shell .admin-content .page-title {
  color: #F1F5F9 !important;
}

html[data-theme="dark"] body.is-admin-shell .admin-content {
  background: #0B1826 !important;
}

/* Status / stock pills stay visible */
body.is-admin-shell .admin-content .badge,
body.is-admin-shell .admin-content .status-pill {
  font-weight: 700 !important;
}

/* Language switch EN / বাংলা */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid #E2E8F0;
}
.lang-switch-wrap .nx-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748B;
  text-decoration: none;
}
.lang-switch-wrap .nx-lang-toggle.is-active {
  background: linear-gradient(135deg, #FF7A45, #FF6B5E);
  color: #fff;
}


/* ==========================================================================
   46. Header top bar — high contrast, thin; support hours in header
   ========================================================================== */

.header-top {
  background: #0F2439 !important;
  color: #F8FAFC !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  min-height: 28px !important;
  border-bottom: none !important;
}

.header-top-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 28px !important;
  padding: 4px 0 !important;
}

.header-top-left {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px 16px !important;
  min-width: 0 !important;
}

.header-tagline {
  color: #E2E8F0 !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

.header-support-hours {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #FFD0C4 !important;
  font-size: 0.72rem !important;
  white-space: nowrap !important;
}

.header-support-hours .hsh-label {
  color: #94A3B8 !important;
  font-weight: 600 !important;
}

.header-support-hours strong {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.header-top-links {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.header-top-links > a {
  color: #F1F5F9 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

.header-top-links > a:hover {
  color: #FF6B5E !important;
}

/* EN / বাংলা — clear contrast */
.header-top .lang-switch-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 2px !important;
}

.header-top .lang-switch-wrap .nx-lang-toggle {
  color: #CBD5E1 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  min-width: 36px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

.header-top .lang-switch-wrap .nx-lang-toggle.is-active {
  background: linear-gradient(135deg, #FF7A45, #FF6B5E) !important;
  color: #FFFFFF !important;
}

/* Footer tighter + email one line */
.site-footer {
  padding: 28px 0 0 !important;
}

.site-footer .footer-grid {
  gap: 18px 20px !important;
  padding-bottom: 18px !important;
}

.site-footer .footer-contact {
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.site-footer .footer-contact li {
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 6px !important;
  font-size: 0.84rem !important;
}

.site-footer .footer-contact a,
.site-footer .footer-contact .fc-value {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

.site-footer .footer-contact .fc-address .fc-value {
  white-space: normal !important;
  text-overflow: unset !important;
  overflow: visible !important;
}

.site-footer .footer-col > h4,
.site-footer h4 {
  margin: 0 0 8px !important;
}

.site-footer .footer-col ul {
  gap: 6px !important;
}

.site-footer .nx-newsletter-form {
  max-width: 220px !important;
  gap: 6px !important;
}

.site-footer .footer-trust {
  padding: 10px 16px !important;
  gap: 8px 14px !important;
}

.site-footer .footer-bottom {
  padding: 8px 16px 14px !important;
}

@media (max-width: 900px) {
  .header-tagline { display: none !important; }
  .header-support-hours { font-size: 0.68rem !important; }
}


/* ==========================================================================
   47. Global UI/UX tighten — less gap, mockup density, consistent controls
   ========================================================================== */

:root {
  --af-gap-xs: 6px;
  --af-gap-sm: 10px;
  --af-gap-md: 14px;
  --af-gap-lg: 20px;
  --af-radius: 12px;
  --af-radius-sm: 10px;
  --af-coral: #FF6B5E;
  --af-coral-2: #FF7A45;
  --af-navy: #0F2439;
  --af-text: #0F2439;
  --af-muted: #64748B;
  --af-border: #E8EEF5;
  --af-soft: #F8FAFC;
}

/* ---- Layout density ---- */
.container {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.page-title {
  margin: 8px 0 12px !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--af-navy) !important;
}

/* Cards tighter */
.card,
.nx-card,
.product-card,
.checkout-card,
.cart-table-wrap,
.cart-totals-panel,
.order-summary {
  border-radius: var(--af-radius) !important;
  border-color: var(--af-border) !important;
  box-shadow: 0 1px 8px rgba(15, 36, 57, 0.04) !important;
}

.card {
  padding: 14px 16px !important;
}

/* Forms denser */
.form-group {
  margin-bottom: 12px !important;
}

.form-group label {
  margin-bottom: 4px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--af-navy) !important;
}

.form-control,
select.form-control,
textarea.form-control {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: var(--af-radius-sm) !important;
  border: 1px solid #E2E8F0 !important;
  font-size: 0.9rem !important;
  color: var(--af-text) !important;
  background: #fff !important;
}

.form-control:focus {
  border-color: var(--af-coral) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.12) !important;
  outline: none !important;
}

/* Buttons */
.btn,
button.btn {
  border-radius: var(--af-radius-sm) !important;
  font-weight: 700 !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
}

.btn-primary,
.btn-cart-cyan,
.checkout-sticky-btn {
  background: linear-gradient(135deg, var(--af-coral-2), var(--af-coral)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 107, 94, 0.22) !important;
}

/* ---- Header main row denser ---- */
.site-header .header-main,
.nx-header .header-main,
.nx-header-inner {
  min-height: 56px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  gap: 12px !important;
}

.header-top {
  min-height: 26px !important;
}

.header-top-inner {
  min-height: 26px !important;
  padding: 3px 0 !important;
}

/* Nav */
.nx-nav,
.main-nav {
  gap: 4px !important;
}

.nx-nav a,
.main-nav a {
  padding: 6px 10px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

/* ---- Product grid ---- */
.product-grid,
.products-grid,
.nx-product-grid {
  gap: 12px !important;
}

.product-card {
  padding: 10px !important;
}

.product-card .pc-name,
.product-card h3 {
  font-size: 0.9rem !important;
  margin: 6px 0 4px !important;
  line-height: 1.3 !important;
}

/* ---- Cart / Checkout ---- */
.cart-page {
  padding: 14px 12px 40px !important;
}

.cart-head {
  margin-bottom: 12px !important;
}

.cart-table tbody td {
  padding: 10px 12px !important;
}

.checkout-grid {
  gap: 14px !important;
}

.nx-co-section-head {
  margin-bottom: 10px !important;
}

.os-item {
  padding: 8px 0 !important;
  gap: 8px !important;
}

.os-item-thumb {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
}

/* ---- Footer denser ---- */
.site-footer {
  padding: 24px 0 0 !important;
}

.site-footer .footer-grid {
  gap: 16px 18px !important;
  padding-bottom: 14px !important;
}

.site-footer .footer-tagline {
  margin: 0 0 10px !important;
  font-size: 0.84rem !important;
}

.site-footer .footer-contact {
  gap: 5px !important;
  margin-bottom: 8px !important;
}

.site-footer .footer-col ul {
  gap: 5px !important;
}

.site-footer .footer-col > h4,
.site-footer h4 {
  margin: 0 0 6px !important;
}

.site-footer .nx-newsletter-form {
  max-width: 210px !important;
  gap: 6px !important;
}

.site-footer .nx-newsletter-form .form-control,
.site-footer .nx-newsletter-form input[type="email"],
.site-footer .nx-newsletter-form .btn {
  height: 38px !important;
  min-height: 38px !important;
}

.site-footer .footer-trust {
  padding: 8px 12px !important;
  gap: 6px 12px !important;
}

.site-footer .footer-bottom {
  padding: 6px 12px 12px !important;
}

/* ---- Admin ---- */
body.is-admin-shell .admin-topbar {
  min-height: 54px !important;
  padding: 8px 16px !important;
  gap: 10px !important;
}

body.is-admin-shell .admin-content,
.admin-content {
  padding: 14px 16px 24px !important;
}

body.is-admin-shell .admin-sidebar-nav a,
body.is-admin-shell .admin-nav-link {
  padding: 8px 12px !important;
  margin: 2px 8px !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
}

/* KPI cards denser */
.kpi-grid,
.stat-grid,
.dashboard-kpis {
  gap: 12px !important;
}

/* Tables */
table.data-table td,
table.admin-table td,
.admin-content table td {
  padding: 8px 10px !important;
  color: #172033 !important;
}

table.data-table th,
table.admin-table th,
.admin-content table th {
  padding: 8px 10px !important;
}

/* Mobile bottom nav space */
@media (max-width: 720px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .card {
    padding: 12px !important;
  }
  .product-grid,
  .products-grid {
    gap: 10px !important;
  }
}


/* ==========================================================================
   48. Admin topbar HARD restore — search + user ALWAYS visible
   ========================================================================== */

.admin-shell .admin-topbar,
body.is-admin-shell .admin-topbar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 16px !important;
  min-height: 56px !important;
  background: #fff !important;
  border-bottom: 1px solid #E8EEF5 !important;
}

.admin-shell .admin-topbar-search {
  display: block !important;
  flex: 1 1 auto !important;
  max-width: 380px !important;
  min-width: 140px !important;
  margin: 0 8px !important;
}

.admin-shell .admin-topbar-search input {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  padding: 0 14px !important;
  font-size: 0.86rem !important;
  color: #0F2439 !important;
}

.admin-shell .admin-topbar-spacer {
  flex: 1 1 auto !important;
}

.admin-shell .admin-topbar-user {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 3px 10px 3px 3px !important;
  border-radius: 999px !important;
  background: #F8FAFC !important;
  border: 1px solid #E8EEF5 !important;
  max-width: 220px !important;
}

.admin-shell .admin-topbar-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #FF7A45, #FF6B5E) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.admin-shell .admin-topbar-user-meta {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  min-width: 0 !important;
}

.admin-shell .admin-topbar-user-meta strong {
  font-size: 0.82rem !important;
  color: #0F2439 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.admin-shell .admin-topbar-user-meta small {
  font-size: 0.68rem !important;
  color: #64748B !important;
  display: block !important;
}

.admin-shell .admin-topbar-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .admin-shell .admin-topbar-search { max-width: 120px !important; }
  .admin-shell .admin-topbar-user-meta { display: none !important; }
  .admin-shell .admin-topbar-badge { display: none !important; }
}


/* ==========================================================================
   49. Dark theme PDP readability + default light + login header visibility
   ========================================================================== */

/* Product detail — white cards must not get pure white text */
html[data-theme="dark"] .pdp-info,
html[data-theme="dark"] .pdp-buy-box,
html[data-theme="dark"] .product-detail .pdp-info,
html[data-theme="dark"] .pdp-layout > .pdp-info,
html[data-theme="dark"] .product-detail-layout .pdp-info {
  background: #15263A !important;
  color: #F1F5F9 !important;
  border-color: #2A3A4F !important;
}

html[data-theme="dark"] .pdp-title,
html[data-theme="dark"] .product-detail .pdp-title,
html[data-theme="dark"] h1.pdp-title {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .pdp-price,
html[data-theme="dark"] .pdp-price-now,
html[data-theme="dark"] .product-detail .price {
  color: #FF8A75 !important;
}

html[data-theme="dark"] .pdp-info .muted,
html[data-theme="dark"] .pdp-info .text-muted,
html[data-theme="dark"] .pdp-rating,
html[data-theme="dark"] .pdp-meta {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .pdp-variant-box,
html[data-theme="dark"] .variant-picker,
html[data-theme="dark"] .pdp-select-wrap,
html[data-theme="dark"] .pdp-info select,
html[data-theme="dark"] .pdp-info .form-control {
  background: #0B1826 !important;
  border-color: #2A3A4F !important;
  color: #F1F5F9 !important;
}

html[data-theme="dark"] .pdp-info label,
html[data-theme="dark"] .pdp-info .form-group label {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .pdp-share,
html[data-theme="dark"] .pdp-share span,
html[data-theme="dark"] .pdp-info h2,
html[data-theme="dark"] .pdp-info h3 {
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .pdp-trust,
html[data-theme="dark"] .pdp-trust-item,
html[data-theme="dark"] .pdp-benefits {
  color: #CBD5E1 !important;
}

/* If a parent still forces light background, keep text dark for readability */
html[data-theme="dark"] .pdp-info[style*="background:#fff"],
html[data-theme="dark"] .pdp-info[style*="background: #fff"],
html[data-theme="dark"] .pdp-info[style*="background:white"] {
  color: #0F2439 !important;
}
html[data-theme="dark"] .pdp-info[style*="background:#fff"] .pdp-title,
html[data-theme="dark"] .pdp-info[style*="background: #fff"] .pdp-title {
  color: #0F2439 !important;
}

/* Login on desktop — account / user actions must stay visible */
.nx-header-actions,
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.nx-header-actions .nx-action,
.nx-header-actions a.nx-action {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Customer account chip after login */
.nx-header-actions .nx-account,
.nx-user-menu,
.header-user {
  display: inline-flex !important;
  align-items: center !important;
  color: inherit !important;
}

html[data-theme="dark"] .nx-header-actions .nx-action,
html[data-theme="dark"] .nx-header-actions a {
  color: #F1F5F9 !important;
}

/* Don't hide header actions on desktop */
@media (min-width: 992px) {
  .nx-header-actions,
  .header-actions {
    display: flex !important;
  }
  .nx-header-actions .nx-action-label {
    display: none; /* icons only is fine; keep icon visible */
  }
}


/* ==========================================================================
   50. PDP gap fix — gallery bottom empty space + compact stock line
   ========================================================================== */

.pdp {
  margin-bottom: 20px !important;
}

.pdp-grid {
  align-items: start !important; /* left column stops after thumbs — no tall empty gap */
  gap: 20px !important;
  padding: 16px !important;
  border-radius: 16px !important;
}

.pdp-gallery.card {
  padding: 12px !important;
  height: auto !important;
  align-self: start !important;
}

.pdp-main-wrap {
  margin: 0 !important;
  line-height: 0 !important;
}

.pdp-main-img {
  max-height: 360px !important;
  display: block !important;
  margin: 0 auto !important;
}

.pdp-thumbs {
  margin-top: 10px !important;
  gap: 8px !important;
}

.pdp-thumb-btn {
  width: 52px !important;
  height: 52px !important;
  padding: 3px !important;
  border-radius: 8px !important;
}

.pdp-zoom-hint {
  position: static !important;
  display: inline-block !important;
  margin-top: 8px !important;
  width: 100% !important;
  text-align: center !important;
  background: #F8FAFC !important;
  border: 1px solid #E8EEF5 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  font-size: 0.72rem !important;
}

/* Right column denser */
.pdp-info {
  gap: 8px !important;
}

.pdp-title {
  font-size: 1.4rem !important;
  margin: 0 !important;
}

.pdp-price-box {
  margin: 2px 0 !important;
}

.pdp-price {
  font-size: 1.45rem !important;
}

.pdp-variants.card {
  padding: 12px !important;
  margin: 4px 0 !important;
  border-radius: 12px !important;
}

.pdp-variants label {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
}

.variant-live-info {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.variant-live-info > div {
  background: #F8FAFC !important;
  border: 1px solid #E8EEF5 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  text-align: center !important;
}

.variant-live-info span {
  display: block !important;
  font-size: 0.65rem !important;
  color: #94A3B8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.variant-live-info strong {
  font-size: 0.85rem !important;
  color: #0F2439 !important;
}

/* Stock on one compact line */
.pdp-stock {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 2px 0 4px !important;
  min-height: auto !important;
}

.pdp-stock .badge,
.pdp-stock .badge-success,
.pdp-stock .badge-danger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  width: auto !important;
  max-width: 100% !important;
}

.pdp-stock .badge-success {
  background: #DCFCE7 !important;
  color: #15803D !important;
}

.pdp-stock .badge-danger {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
}

/* Qty + buttons tighter */
.pdp-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.pdp-actions .qty-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pdp-actions .qty-wrap input,
.pdp-actions #pdpQty {
  width: 64px !important;
  min-height: 40px !important;
  text-align: center !important;
}

.pdp-actions .btn,
.pdp-actions .btn-buy {
  min-height: 40px !important;
  padding: 8px 16px !important;
}

@media (max-width: 800px) {
  .pdp-grid {
    gap: 14px !important;
    padding: 12px !important;
  }
  .pdp-main-img {
    max-height: 300px !important;
  }
  .variant-live-info {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ==========================================================================
   51. Mobile PDP buy box — Qty + buttons not 4 separate lines
   ========================================================================== */

.pdp-buy-box.card {
  padding: 12px !important;
  margin-top: 6px !important;
  border-radius: 14px !important;
}

.pdp-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

.pdp-actions .qty-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.pdp-actions .qty-wrap label {
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F2439 !important;
  white-space: nowrap !important;
}

.pdp-actions .qty-wrap input,
.pdp-actions #pdpQty {
  width: 64px !important;
  min-height: 42px !important;
  text-align: center !important;
  margin: 0 !important;
}

.pdp-actions .btn-buy,
.pdp-actions .btn {
  min-height: 42px !important;
  flex: 1 1 auto !important;
}

@media (max-width: 700px) {
  .pdp-actions {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "qty cart"
      "buy buy" !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .pdp-actions .qty-wrap {
    grid-area: qty !important;
    flex-direction: row !important;
  }

  .pdp-actions .btn-outline.btn-buy,
  .pdp-actions button.btn-outline {
    grid-area: cart !important;
    width: 100% !important;
    flex: none !important;
  }

  .pdp-actions .btn-primary.btn-buy,
  .pdp-actions button.btn-primary {
    grid-area: buy !important;
    width: 100% !important;
    flex: none !important;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .pdp-actions {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "qty qty"
      "cart buy" !important;
  }
  .pdp-actions .btn-primary.btn-buy,
  .pdp-actions button.btn-primary {
    grid-area: buy !important;
  }
}


/* ==========================================================================
   52. Qty stepper (− 1 +) — modern compact control
   ========================================================================== */

.qty-stepper-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.qty-stepper-wrap .qty-label {
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0F2439 !important;
  white-space: nowrap !important;
}

.qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden !important;
  height: 40px !important;
  box-shadow: 0 1px 2px rgba(15, 36, 57, 0.04) !important;
}

.qty-stepper .qty-btn {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  background: transparent !important;
  color: #0F2439 !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  user-select: none !important;
}

.qty-stepper .qty-btn:hover {
  background: #F8FAFC !important;
  color: #E85A4F !important;
}

.qty-stepper .qty-btn:active {
  background: #F1F5F9 !important;
}

.qty-stepper .qty-input,
.qty-stepper #pdpQty {
  width: 44px !important;
  min-width: 44px !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-left: 1px solid #E8EEF5 !important;
  border-right: 1px solid #E8EEF5 !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #0F2439 !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}

.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.qty-stepper .qty-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 700px) {
  .pdp-actions .qty-stepper-wrap {
    grid-area: qty !important;
  }
  .qty-stepper {
    height: 42px !important;
  }
  .qty-stepper .qty-btn {
    width: 42px !important;
    height: 42px !important;
  }
}

/* ============================================================
   HERO SLIDE — light + FULL image (cover whole card)
   Image fills entire hero; soft white wash on text side only
   so title stays readable without a dark navy wall.
   ============================================================ */
.hero-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #f8fafc !important;
}

/* Minimal wash — only under text, photo almost fully clear */
.hero-slide::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.12) 18%,
      rgba(255, 255, 255, 0) 38%) !important;
  z-index: 1;
  pointer-events: none;
}

.hero-slide .hero-overlay {
  background: none !important;
  position: relative;
  z-index: 2;
}

.hero-slide .hero-content {
  max-width: min(48%, 460px) !important;
}

.hero-slide .hero-content h1 {
  color: #0f172a !important;
  text-shadow: 0 1px 3px rgba(255,255,255,1), 0 0 20px rgba(255,255,255,.85) !important;
}
.hero-slide .hero-content p {
  color: #1e293b !important;
  text-shadow: 0 1px 3px rgba(255,255,255,1), 0 0 16px rgba(255,255,255,.8) !important;
}

@media (max-width: 720px) {
  .hero-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-color: #f8fafc !important;
  }
  .hero-slide::before {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.10) 35%,
        rgba(255, 255, 255, 0) 100%) !important;
  }
  .hero-slide .hero-content {
    max-width: 100% !important;
  }
}



/* HERO LIGHT REINFORCE */
.hero-slider {
  background: #ffffff !important;
  border-bottom: 5px solid #bbf7d0 !important; /* halka green */
  box-shadow: var(--af-shadow-md), inset 0 -5px 0 0 #bbf7d0 !important;
}
.hero-slide-fallback {
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%) !important;
}
.hero-dots {
  bottom: 16px !important;
}
.hero-dot {
  background: rgba(16, 185, 129, 0.35) !important;
}
.hero-dot.active {
  background: #10b981 !important;
  width: 20px !important;
  border-radius: 6px !important;
}

/* ============================================================
   AUTH PAGES — soft light green (FLEX, no grid)
   Desktop: side-by-side via flex. Mobile: column stack.
   ============================================================ */

.auth-page {
  max-width: 920px !important;
  margin: 32px auto 48px !important;
  padding: 0 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.auth-card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border: 1px solid #d8eee4 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15, 118, 110, 0.10) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Kill any earlier grid rules on auth cards */
.auth-card,
section.auth-card,
div.auth-card {
  display: flex !important;
  grid-template-columns: none !important;
}

/* Left brand panel */
.auth-intro,
.auth-card-head {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 0 0 42% !important;
  width: 42% !important;
  max-width: 42% !important;
  box-sizing: border-box !important;
  padding: 42px 32px !important;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 42%, #a7f3d0 100%) !important;
  color: #065f46 !important;
  border-right: 1px solid #bbf7d0 !important;
  border-bottom: none !important;
}

.auth-intro h2,
.auth-card-head h1 {
  color: #064e3b !important;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.03em !important;
}

.auth-intro p,
.auth-card-head p {
  color: #047857 !important;
  line-height: 1.65 !important;
  margin: 0 0 18px !important;
  font-size: 0.95rem !important;
}

.auth-points {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
  display: block !important;
}

.auth-points li {
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  color: #065f46 !important;
  font-size: 0.92rem !important;
  font-weight: 550 !important;
  margin: 0 0 10px !important;
}

.auth-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}

/* Right form panel */
.auth-form-panel,
.auth-card > .auth-form {
  flex: 1 1 58% !important;
  width: auto !important;
  max-width: 58% !important;
  box-sizing: border-box !important;
  padding: 40px 36px !important;
  background: #fff !important;
  min-width: 0 !important; /* prevent flex overflow */
}

.auth-form-panel .page-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 8px !important;
}

.auth-subtitle {
  color: #64748b !important;
  margin: 0 0 22px !important;
}

.auth-form-panel .form-group,
.auth-form .form-group {
  margin-bottom: 16px !important;
}

.auth-form-panel label,
.auth-form label {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.auth-form-panel .form-control,
.auth-form .form-control,
.auth-form-panel input,
.auth-form input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 46px !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  border: 1px solid #d1e7dd !important;
  background: #f8fffb !important;
}

.auth-form-panel .form-control:focus,
.auth-form .form-control:focus,
.auth-form-panel input:focus,
.auth-form input:focus {
  outline: none !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25) !important;
  background: #fff !important;
}

.auth-submit,
.auth-form .btn-primary,
.auth-form-panel .btn-primary,
.auth-form button[type="submit"],
.auth-form-panel button[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
  margin-top: 6px !important;
  border-radius: 12px !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28) !important;
  cursor: pointer !important;
}

.auth-submit:hover,
.auth-form .btn-primary:hover,
.auth-form-panel .btn-primary:hover,
.auth-form button[type="submit"]:hover,
.auth-form-panel button[type="submit"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.auth-links {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 18px !important;
  font-size: 0.9rem !important;
  color: #64748b !important;
}

.auth-links a {
  color: #059669 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.auth-links a:hover {
  color: #047857 !important;
  text-decoration: underline !important;
}

.phone-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
}
.phone-prefix {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  background: #ecfdf5 !important;
  border: 1px solid #d1e7dd !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  color: #065f46 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.phone-input,
.phone-row .form-control {
  flex: 1 1 auto !important;
  border-radius: 0 10px 10px 0 !important;
  min-width: 0 !important;
}

.field-hint {
  margin: 6px 0 0 !important;
  font-size: 0.8rem !important;
  color: #64748b !important;
}

.req { color: #ef4444 !important; }

/* Mobile: stack — no side-by-side */
@media (max-width: 768px) {
  .auth-page {
    margin: 16px auto 32px !important;
    padding: 0 12px !important;
  }
  .auth-card {
    flex-direction: column !important;
    border-radius: 16px !important;
  }
  .auth-intro,
  .auth-card-head {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid #bbf7d0 !important;
  }
  .auth-form-panel,
  .auth-card > .auth-form {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 18px 26px !important;
  }
}


/* ============================================================
   HEADER CATBAR — Option A: soft premium (white + green accent)
   Replaces solid heavy orange strip for a calmer storefront.
   ============================================================ */
.nx-catbar,
.category-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
  /* thin brand accent line */
  border-top: 3px solid #10b981 !important;
}
.nx-catbar-inner,
.category-bar .container {
  background: transparent !important;
  gap: 4px !important;
}
.nx-catbar a,
.category-bar a,
.nx-catbar .nx-cat-link,
.nx-catbar .nx-cat-item > a {
  color: #334155 !important;
  font-weight: 650 !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
.nx-catbar a:hover,
.category-bar a:hover,
.nx-catbar .nx-cat-link:hover,
.nx-catbar .nx-cat-item:hover > a {
  color: #047857 !important;
  background: #ecfdf5 !important;
}
.nx-catbar a.active,
.nx-catbar .nx-cat-link.active,
.category-bar a.active {
  color: #047857 !important;
  background: #d1fae5 !important;
  font-weight: 750 !important;
}
/* dropdown caret on light bar */
.nx-catbar .nav-caret,
.nx-catbar .nx-cat-caret {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
/* Soft orange only as tiny brand wink on hover of Home optional — keep green primary */

/* Search button: soft green (matches login/admin language) */
.nx-search button,
.header-search button,
.nx-search .btn,
form.nx-search button[type="submit"] {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28) !important;
}
.nx-search button:hover,
.header-search button:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
}

/* Dark theme: keep soft dark bar, not solid orange */
html[data-theme="dark"] .nx-catbar,
html[data-theme="dark"] .category-bar {
  background: #122033 !important;
  border-bottom-color: #2A3A4F !important;
  border-top-color: #10b981 !important;
}
html[data-theme="dark"] .nx-catbar a,
html[data-theme="dark"] .category-bar a,
html[data-theme="dark"] .nx-catbar .nx-cat-link {
  color: #E8EEF5 !important;
  background: transparent !important;
}
html[data-theme="dark"] .nx-catbar a:hover,
html[data-theme="dark"] .nx-catbar a.active {
  color: #6ee7b7 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}
