﻿/* ===================================================
   LAYOUT: STANDARD (default / classic)
   Applied when data-layout is absent or 'layout-classic'
   All structural component styles — theme-agnostic
   Uses var(--*) tokens defined by active theme
   =================================================== */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; color: var(--dark); }
a { color: var(--primary); transition: color var(--transition), text-decoration-color var(--transition); }
a:hover { color: var(--primary-darker); text-decoration-color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { max-width: 1240px; }

/* Override Bootstrap utility classes to respect theme */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ---------- Top Notification Bar ---------- */
.top-bar {
  background: var(--primary-darker);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  height: 40px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  height: 100%;
}
.top-bar .row {
  height: 100%;
  align-items: center;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  transition: background var(--transition);
  height: 100%;
}
.top-bar a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.top-bar-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.top-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
/* Top bar social icons */
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0;
}
.top-bar-social a {
  padding: .5rem .75rem;
  font-size: .85rem;
}

/* Top bar cart count */
.top-bar-cart-link {
  font-weight: 600;
}
.top-bar-cart-count {
  font-weight: 700;
  color: rgba(255,255,255,.95);
}

/* ---------- Header ---------- */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  gap: 1.5rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -.02em;
}

/* Header-left (used by fashion layout only, hidden by default) */
.header-left { display: none; }

/* Search toggle (used by fashion layout only, hidden by default) */
.search-toggle-btn { display: none; }

/* Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header-search-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .6rem 1rem .6rem 2.8rem;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.header-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12);
  background: #fff;
}
.header-search-btn {
  position: absolute;
  left: .4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.header-search-btn:hover { background: var(--primary-dark); }

/* Action Buttons */
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.header-action-btn:hover { background: rgba(var(--primary-rgb),.12); color: var(--primary); }
.cart-btn { background: var(--primary); color: #fff; }
.cart-btn:hover { background: var(--primary-dark); color: #fff; }
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  font-family: var(--font-body);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Main Nav ---------- */
.main-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.main-nav .container {
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .25rem;
  align-items: center;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: .65rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: transparent;
  color: var(--primary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 2.2rem);
}

/* Mega Dropdown */
.dropdown {
  position: relative;
}
.mega-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 600px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
}
.dropdown:hover .mega-dropdown { display: block; }
.mega-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .8rem .5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
  gap: .4rem;
}
.mega-item:hover { background: rgba(var(--primary-rgb),.08); color: var(--primary); }
.mega-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.mega-item-label { font-weight: 600; font-size: .85rem; font-family: var(--font-heading); }
.nav-link.dropdown-toggle::after { display: none; }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transform: translateX(-105%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: #fff;
}
.mobile-logo { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.mobile-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem; padding: .25rem; }
.mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--primary-lighter); color: var(--primary); }

/* Overlay */
.mobile-menu + .mobile-overlay,
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1500;
}
.mobile-overlay.active { display: block; }

/* ---------- Flash Messages ---------- */
.alert { border-radius: var(--radius); border: none; font-weight: 500; }

/* ---------- Main Content ---------- */
main { min-height: 60vh; }

/* ---------- HERO Section ---------- */
.hero {
  position: relative;
  height: 55vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-home, none) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0 3rem; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .3rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
  color: var(--white);
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 1.75rem;
  max-width: 520px;
  font-weight: 400;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .8rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 6px 24px rgba(var(--primary-rgb),.45);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-hero-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb),.5);
}
.btn-hero-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  padding: .75rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-hero-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  position: relative;
  display: inline-block;
  letter-spacing: -.02em;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.section-title-center {
  text-align: center;
  display: block;
}
.section-title-center::after { left: 50%; transform: translateX(-50%); }
.section-subtitle { color: var(--text-muted); margin-top: .35rem; font-size: .92rem; }

/* ---------- Category Grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-link {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 5/4;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.category-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--primary);
}
.category-link:hover,
.category-link:hover .category-link-name,
.category-link:hover .category-link-count {
  color: #fff;
}
.category-link-bg {
  position: absolute;
  inset: 0;
}
.category-link-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,0) 60%);
  z-index: 1;
}
.category-link-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
}
.category-link-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: #fff !important;
}
.category-link-count { font-size: .8rem; opacity: .85; color: #fff !important; }

/* Category card gradient variations — theme-aware */
.cat-bg-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
}
.cat-bg-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}
.cat-bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.cat-bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Dynamic category fallback gradients — 8 rotating palettes for categories without images */
.cat-bg-dynamic1 { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.cat-bg-dynamic2 { background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%); }
.cat-bg-dynamic3 { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.cat-bg-dynamic4 { background: linear-gradient(135deg, #ea580c 0%, #f97316 100%); }
.cat-bg-dynamic5 { background: radial-gradient(circle at 30% 40%, #ec4899, #be185d); }
.cat-bg-dynamic6 { background: radial-gradient(circle at 70% 30%, #6366f1, #4338ca); }
.cat-bg-dynamic7 { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.cat-bg-dynamic8 { background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%); }

/* Category card with background-image (for categories with uploaded images) */
.category-link-bg[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
}

/* Category banner card backgrounds â€” theme-aware */
.cat-banner-primary {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.8), rgba(var(--primary-darker-rgb),.9)), var(--primary);
}
.cat-banner-accent {
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.8), rgba(var(--primary-rgb),.9)), var(--accent);
}
.cat-banner-warning {
  background: linear-gradient(135deg, rgba(245,158,11,.8), rgba(217,119,6,.9)), #f59e0b;
}
.cat-banner-success {
  background: linear-gradient(135deg, rgba(16,185,129,.8), rgba(5,150,105,.9)), #10b981;
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--primary);
}

/* Prevent hover translateY from clipping top border inside overflow-hidden parents */
#featuredTrack {
  padding-top: 5px;
}
.product-card-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 5;
}
.product-card-tag {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 3px;
}
.product-card-img {
  background: var(--bg);
  padding-top: 120%; /* taller aspect ratio for fashion layout */
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  padding: .85rem .9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.product-card-category {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.product-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.25;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a { text-decoration: none; color: var(--dark); }
.product-card-title a:hover { color: var(--primary); }
.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  white-space: nowrap;
}
.product-price .old-price {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: .4rem;
}
.product-price .new-price { color: var(--primary); }
.product-price .pix-price { font-size: .78rem; color: var(--success); font-weight: 600; display: block; }

/* Add to cart button (circle) */
.btn-add-cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); color: #fff; transform: scale(1.1); }
.btn-add-cart:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* ---------- Feature / Trust Banner ---------- */
.trust-banner {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0 !important;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
}
.trust-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0;
}
.trust-item h6 {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-heading);
}
.trust-item small { font-size: .72rem; }

/* ---------- Carousel (Swiper-style) ---------- */
.carousel-section { padding: 3rem 0; background: var(--bg); }
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
}
.carousel-nav {
  display: flex;
  gap: .5rem;
}
.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Reviews / Testimonials ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--warning); font-size: .85rem; }
.review-text { font-style: italic; color: var(--text-muted); margin: .75rem 0; }
.review-author strong { color: var(--dark); }
.review-date { font-size: .75rem; color: var(--text-muted); }

/* ---------- Newsletter ---------- */
.footer-newsletter {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
  background: var(--dark);
}
.footer-newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.footer-newsletter-text {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
}
.footer-newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: .5rem;
}
.footer-newsletter-form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  border-radius: 4px;
  transition: border-color var(--transition);
}
.footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,.35);
}
.footer-newsletter-form input:focus {
  border-color: var(--primary);
}
.footer-newsletter-form button {
  padding: .85rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.footer-newsletter-form button:hover {
  background: var(--primary-dark);
}

/* ---------- Search overlay (fashion layout only, hidden by default) ---------- */
.search-overlay { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 0;
  margin-top: 3rem;
}
.footer-top { padding: 3rem 0 2rem; }
.footer-brand {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}
.footer-desc { max-width: 360px; font-size: .9rem; }
.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.footer-heading {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { margin-bottom: .5rem; }
.footer-link-list a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-link-list a:hover { color: #fff; padding-left: .3rem; }

/* Seals */
.footer-seals { padding: 1.5rem 0; background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.seals-strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.seal-item { display: flex; align-items: center; gap: .75rem; }
.seal-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.seal-text { font-size: .8rem; }
.seal-text .fw-bold { color: #fff; font-size: .8rem; }

/* Payment & Social */
.payment-icons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.payment-icon { color: rgba(255,255,255,.6); transition: color var(--transition); }
.payment-icon:hover { color: #fff; }
.pix-icon {
  background: var(--success);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 4px;
  letter-spacing: .05em;
}
.social-icons-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: .95rem;
  transition: all var(--transition);
}
.social-icon-btn:hover { background: var(--primary); color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 1rem 0;
  font-size: .8rem;
}
.footer-copy { color: rgba(255,255,255,.5); }
.footer-copy a { color: rgba(255,255,255,.5); }
.footer-copy a:hover { color: #fff; }

/* Override text-muted inside dark footer for readability */
.site-footer .text-muted {
  color: rgba(255,255,255,.55) !important;
}

/* Footer Links Section */
.footer-links-section { padding: 2.5rem 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  font-family: var(--font-body);
  border-color: var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12);
}
.form-control.bg-light { background: var(--bg); }

/* ---------- Page Hero (about, contact, etc.) ---------- */
.page-hero {
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-home, none) center/cover no-repeat;
  color: #fff;
  height: 55vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* ── Per-page hero backgrounds (layout-standard) ── */
.about-hero {
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-about, none) center/cover no-repeat !important;
}
.contact-page-hero {
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-contact, none) center/cover no-repeat !important;
}
.checkout-hero {
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-checkout, none) center/cover no-repeat !important;
}
.cart-hero-gradient {
  background: linear-gradient(135deg, rgba(var(--primary-darker-rgb),.88) 0%, rgba(var(--dark-rgb),.9) 100%),
              var(--hero-bg-cart, none) center/cover no-repeat !important;
}
.page-hero .badge {
  background: rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
}
.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: var(--white);
}

/* ---------- Card enhancements ---------- */
.card {
  border-radius: var(--radius);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card.rounded-4 { border-radius: var(--radius); }

/* ---------- Pagination ---------- */
.pagination .page-link {
  border: none;
  color: var(--text-muted);
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all var(--transition);
}
.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--primary);
  color: #fff;
}
.pagination .page-item.disabled .page-link { color: #cbd5e1; }

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 100%);
}
.auth-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  border: none;
  max-width: 480px;
  margin: 0 auto;
}
.auth-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.input-group-text {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-muted);
}

/* ---------- Cart page ---------- */
.cart-qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}
.cart-qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon {
  width: 80px; height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
}

/* ---------- Coupon Input ---------- */
.coupon-wrapper {
  display: flex;
  gap: .5rem;
}
.coupon-wrapper .form-control { flex: 1; }

/* ---------- Checkout Steps ---------- */
.checkout-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}
.checkout-step-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.checkout-step-label { font-weight: 700; font-family: var(--font-heading); }

/* ===================================================
   RESPONSIVE — Comprehensive breakpoints
   All device sizes covered: XS, SM, MD (tablet), LG+
   Desktop styles unchanged — only mobile/tablet adjustments
   =================================================== */

/* ════════════════════════════════════════════
   EXTRA SMALL — ≤575.98px (phones portrait)
   ════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  /* Container */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Prevent Bootstrap row negative margins overflow */
  .row { margin-left: 0; margin-right: 0; }
  .row > [class*="col-"] { padding-left: .5rem; padding-right: .5rem; }

  /* Top bar — compact stacked */
  .top-bar { height: auto; padding: .4rem 0; font-size: .68rem; }
  .top-bar .d-flex.justify-content-between { flex-direction: column; gap: .2rem; }
  .top-bar-social { justify-content: center; }
  .top-bar-links { justify-content: center; flex-wrap: wrap; }
  .top-bar a { padding: .2rem .4rem; font-size: .65rem; }

  /* Header */
  .header-inner { gap: .6rem; padding: .45rem 0; }
  .logo-text { font-size: 1.05rem; }
  .logo-icon { width: 28px; height: 28px; font-size: .85rem; }

  /* Hero */
  .hero { height: 42vh; }
  .hero-content { padding: 1.5rem 1rem 1.25rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .82rem; margin-bottom: 1.25rem; }
  .hero-btns { flex-direction: column; gap: .5rem; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; padding: .65rem 1.25rem; font-size: .82rem; }
  .hero-badge { font-size: .62rem; padding: .25rem .7rem; }

  /* Page hero */
  .page-hero { height: 32vh; }
  .page-hero .hero-content { padding: 1.25rem 1rem; }
  .page-hero .hero-title { font-size: 1.4rem; }

  /* Section spacing */
  .section-padding { padding: 2rem 0; }
  .section-title { font-size: 1.2rem; margin-bottom: 1.25rem; }
  .section-subtitle { font-size: .8rem; }

  /* Category grid */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .category-link { aspect-ratio: 4/3; }
  .category-link-content { padding: .6rem; }
  .category-link-name { font-size: .8rem; }

  /* Product cards */
  .product-card-img { padding-top: 100%; }
  .product-card-body { padding: .55rem .45rem; }
  .product-card-title { font-size: .78rem; }
  .product-card-category { font-size: .62rem; }
  .product-price { font-size: .82rem; }
  .btn-add-cart { width: 32px; height: 32px; }

  /* Trust banner */
  .trust-banner { padding: 1rem 0 !important; }
  .trust-item h6 { font-size: .68rem; }
  .trust-item small { font-size: .65rem; }
  .trust-icon { width: 34px; height: 34px; font-size: .95rem; }

  /* Product list grid card */
  .product-grid-card .product-placeholder { height: 150px; }
  .product-grid-card .card-body { padding: .75rem; }
  .product-grid-card h5 { font-size: .82rem; }
  .results-bar { flex-direction: column; gap: .5rem; padding: .65rem .8rem; }

  /* Product detail */
  .product-detail-page { padding: 1rem !important; }
  .product-main-img { height: 300px; }
  .buy-box-price { font-size: 1.4rem; }
  .buy-box { padding: .9rem; }
  .btn-add-cart-large { padding: .7rem 1.25rem; font-size: .85rem; }
  .product-detail-thumb { aspect-ratio: 1; }
  .qty-selector button { width: 32px; height: 32px; }
  .qty-selector input { width: 42px; height: 32px; }
  .product-breadcrumb { font-size: .75rem; }

  /* Cart */
  .cart-page { padding: 1rem !important; }
  .cart-thumb { width: 52px; height: 52px; }
  .cart-table td { padding: .65rem .2rem; }
  .qty-circle-btn { width: 26px; height: 26px; font-size: .7rem; }
  .order-summary-card { padding: 1.25rem !important; }

  /* Checkout */
  .checkout-card, .order-sidebar { padding: 1.25rem !important; }
  .step-indicator { gap: .25rem; margin-bottom: 1rem; }
  .step-dot { width: 26px; height: 26px; font-size: .72rem; }
  .checkout-step { gap: .5rem; margin-bottom: 1.25rem; }
  .payment-option { padding: .75rem 1rem; }

  /* Auth pages */
  .auth-page { min-height: auto; padding: 2rem 0; }
  .auth-card { padding: 1.5rem 1.1rem; border-radius: .75rem; max-width: 100%; }
  .auth-icon { width: 42px; height: 42px; font-size: 1.1rem; }

  /* About page */
  .stat-card-inner { padding: 1.25rem .75rem; }
  .stat-card-inner h2 { font-size: 1.6rem !important; }
  .value-icon-box { width: 44px; height: 44px; font-size: 1.2rem; }

  /* Contact page */
  .contact-card { padding: 1.15rem; }
  .contact-form-card { padding: 1.25rem; }
  .contact-icon-circle { width: 46px; height: 46px; font-size: 1.1rem; }

  /* Footer */
  .footer-top { padding: 1.75rem 0 1.25rem; }
  .footer-brand { font-size: 1.05rem; }
  .footer-newsletter { padding: 1.75rem 0; }
  .footer-newsletter-form { flex-direction: column; max-width: 100%; }
  .footer-newsletter-form button { width: 100%; }
  .footer-links-section { padding: 1.25rem 0; }
  .footer-bottom { text-align: center; }
  .footer-bottom .d-flex { flex-direction: column; gap: .35rem; }
  .seals-strip { flex-direction: column; align-items: center; gap: .6rem; }
  .seal-item { gap: .5rem; }
  .seal-icon { width: 32px; height: 32px; font-size: .8rem; }
  .footer-contact-list { gap: .5rem; }

  /* WhatsApp float */
  .whatsapp-float { width: 42px; height: 42px; bottom: .75rem; right: .75rem; font-size: 1.3rem; }

  /* Customer sidebar */
  .customer-sidebar-wrap { position: static; margin-bottom: 1rem; }

  /* Admin */
  .stat-icon { font-size: 1.4rem; width: 34px; height: 34px; }
  .admin-navbar .nav-link { font-size: .78rem; padding: .4rem .6rem; }

  /* Forms */
  .form-control, .form-select { font-size: .82rem; padding: .45rem .6rem; }
  .form-label { font-size: .78rem; }

  /* Modals */
  .confirm-modal { padding: 1.25rem 1rem; width: 94%; }
  .confirm-modal-icon { width: 42px; height: 42px; font-size: 1rem; }
  .confirm-modal h5 { font-size: 1rem; }
  .confirm-modal p { font-size: .82rem; }
  .confirm-modal-actions { flex-direction: column; }
  .confirm-modal-actions .btn { width: 100%; }

  /* Empty state */
  .empty-state { padding: 1.75rem .75rem; }
  .empty-state-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .empty-state h4 { font-size: 1rem; }
  .empty-state p { font-size: .82rem; }

  /* Pagination */
  .pagination .page-link { width: 30px; height: 30px; font-size: .75rem; }

  /* Role discount banner */
  .role-discount-banner-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .role-discount-banner-text { font-size: .78rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: .75rem; }

  /* Buttons */
  .btn-primary, .btn-outline-primary { font-size: .8rem; padding: .5rem 1rem; }

  /* Coupon box */
  .coupon-box form { flex-direction: column; }
  .coupon-box form button { width: 100%; }

  /* Cart page — product cell stacking */
  .cart-table .product-cell { flex-direction: column; align-items: flex-start; gap: .5rem; }

  /* Newsletter section */
  .footer-newsletter-title { font-size: 1.05rem; }
  .footer-newsletter-text { font-size: .78rem; }

  /* Payment methods badges */
  .badge.bg-light.text-dark { font-size: .65rem; }

  /* About story section */
  .ratio-4x3 { --bs-aspect-ratio: 75%; }
}

/* ════════════════════════════════════════════
   SMALL — 576px-767.98px (phones landscape)
   ════════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero { height: 48vh; }
  .hero-title { font-size: 1.8rem; }
  .page-hero { height: 38vh; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-main-img { height: 380px; }
}

/* ════════════════════════════════════════════
   SMALL & BELOW — ≤767.98px (shared mobile)
   ════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Header */
  .header-search { display: none !important; }
  .header-actions .header-action-btn.d-none.d-md-flex { display: none !important; }
  .mobile-menu-toggle { display: flex; }

  /* Top bar — hide favorites, compact links */
  .top-bar-links a.d-none.d-md-inline-flex { display: none !important; }
  .top-bar-links { gap: 0; }
  .top-bar-links a { padding: .2rem .35rem; font-size: .68rem; }

  /* Main nav hidden */
  .main-nav { display: none !important; }

  /* Hero */
  .hero-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }

  /* Category grid — always 2 columns */
  .category-grid { grid-template-columns: repeat(2, 1fr); }

  /* Carousel nav hidden on mobile */
  .carousel-nav { display: none !important; }

  /* Featured carousel — enable native horizontal swipe on mobile */
  #featuredCarousel {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  #featuredCarousel::-webkit-scrollbar { display: none; }
  #featuredCarousel { scrollbar-width: none; }
  #featuredTrack {
    scroll-snap-align: start;
    padding-right: 2rem;
  }

  /* Product list — filter sidebar becomes stacked (not sticky) */
  .filter-sidebar { position: static; margin-bottom: 1.5rem; }

  /* Product detail main image */
  .product-main-img { height: 360px; }

  /* Customer sidebar */
  .customer-sidebar-wrap { position: static; }

  /* Seals */
  .seals-strip { flex-direction: column; align-items: center; text-align: center; gap: .85rem; }

  /* Footer */
  .footer-contact-list { flex-direction: column; gap: .65rem; }
  .footer-top .row { text-align: center; }
  .footer-desc { max-width: 100%; }
  .footer-heading { margin-top: .75rem; }

  /* Cart — product cell more compact */
  .cart-table .product-cell { gap: .75rem; }
  .cart-table td { padding: .7rem .3rem; font-size: .82rem; }

  /* Checkout sidebar */
  .order-sidebar { position: static; }

  /* Contact page */
  .contact-form-card { padding: 1.25rem; }

  /* Pagination wrap */
  .pagination { flex-wrap: wrap; justify-content: center; }

  /* Step indicator */
  .step-indicator { margin-bottom: 1.25rem; }

  /* Auth */
  .auth-card { max-width: 420px; }

  /* Order summary cards on cart/checkout */
  .order-summary-card { position: static; margin-top: 1.25rem; }

  /* Product list results bar */
  .results-bar { padding: .7rem .85rem; }

  /* Trust banner — items use col-6 which is already set in HTML */
  .trust-banner .col-6.col-md-3 { margin-bottom: .75rem; }
}

/* ════════════════════════════════════════════
   TABLET — 768px-991.98px
   ════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Header */
  .header-search { max-width: 280px; }
  .logo-text { font-size: 1.15rem; }

  /* Hero */
  .hero { height: 45vh; }
  .page-hero { height: 38vh; }

  /* Category grid — 3 columns */
  .category-grid { grid-template-columns: repeat(3, 1fr); }

  /* Product cards */
  .product-card-img { padding-top: 110%; }
  .product-card-title { font-size: .8rem; }
  .product-card-body { padding: .7rem .6rem; }

  /* Product detail */
  .product-main-img { height: 420px; }

  /* Cart */
  .cart-thumb { width: 62px; height: 62px; }

  /* Admin sidebar */
  .sidebar-stats-card { font-size: .78rem; }
  .list-group-item { padding: .55rem .75rem !important; font-size: .82rem; }

  /* Navigation */
  .nav-link { padding: .5rem .7rem; font-size: .7rem; }
  .nav-list { gap: .15rem; }

  /* Mega dropdown */
  .mega-dropdown { min-width: 440px; }

  /* Footer seals */
  .seal-item { gap: .5rem; }
  .seal-icon { width: 34px; height: 34px; font-size: .85rem; }
  .seal-text small { font-size: .68rem; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }

  /* Customer sidebar links */
  .sidebar-link { padding: .4rem .35rem; font-size: .76rem; }

  /* Checkout sidebar */
  .order-sidebar { position: static; }

  /* Product grid cards */
  .product-grid-card .product-placeholder { height: 180px; }

  /* Auth */
  .auth-card { max-width: 440px; }

  /* Filter sidebar */
  .filter-sidebar { font-size: .82rem; }
  .filter-sidebar .form-label { font-size: .7rem; }
}

/* ════════════════════════════════════════════
   DESKTOP & UP — ≥768px (hide mobile menu)
   ════════════════════════════════════════════ */
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ════════════════════════════════════════════
   LARGE DESKTOP — ≥992px (sticky sidebars)
   ════════════════════════════════════════════ */
@media (min-width: 992px) {
  .filter-sidebar { position: sticky; top: 5.5rem; }
  .customer-sidebar-wrap { position: sticky; top: 5.5rem; }
  .order-summary,
  .order-sidebar,
  .order-summary-card { position: sticky; top: 5.5rem; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Mobile Filter Toggle ---------- */
.filter-sidebar-collapsible .filter-sidebar-toggle {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.filter-sidebar-collapsible .filter-sidebar-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition);
  font-size: .75rem;
  color: var(--primary);
}
.filter-sidebar-open .filter-sidebar-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}
@media (max-width: 991.98px) {
  .filter-sidebar-collapsible .filter-sidebar-content {
    display: none;
  }
  .filter-sidebar-open .filter-sidebar-content {
    display: block;
  }
}

/* ---------- Admin Sidebar Mobile Toggle ---------- */
.admin-sidebar-toggle {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.admin-sidebar-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition);
  font-size: .7rem;
  opacity: .7;
}
.admin-sidebar-collapsed .admin-sidebar-toggle::after {
  transform: translateY(-50%) rotate(-90deg);
}
@media (max-width: 991.98px) {
  .admin-sidebar-nav-item {
    display: none;
  }
  .admin-sidebar-collapsed .admin-sidebar-nav-item {
    display: block;
  }
  .sidebar-section-label {
    display: none;
  }
  .admin-sidebar-collapsed .sidebar-section-label {
    display: block;
  }
}

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
.section-padding { padding: 4rem 0; }
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--bg); }
.border-top-purple { border-top: 3px solid var(--primary); }

/* ---------- Product detail ---------- */

::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
.section-padding { padding: 4rem 0; }
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--bg); }
.border-top-purple { border-top: 3px solid var(--primary); }

/* ---------- Product detail ---------- */
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.product-detail-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  aspect-ratio: 1;
  padding: 0;
  background: none;
}
.product-detail-thumb.active,
.product-detail-thumb:hover { border-color: var(--primary); }
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--primary-lighter);
  border-radius: var(--radius);
}
.feature-box-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  transition: transform var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); }
.contact-info-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Video embed wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* About page stats */
.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  height: 100%;
  border: none;
}

/* Order tracking */
.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
.tracking-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}
.tracking-step.done:not(:last-child)::before { background: var(--primary); }
.tracking-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--text-muted);
  z-index: 1;
}
.tracking-step.done .tracking-dot { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Category Banner Cards ---------- */
.category-banner-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.category-banner-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.category-banner-body { padding: 1.25rem; }

/* ---------- Whatsapp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 999;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== PRODUCT LIST PAGE ========== */
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
.section-padding { padding: 4rem 0; }
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--bg); }
.border-top-purple { border-top: 3px solid var(--primary); }

/* ---------- Product detail ---------- */

::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---------- Section spacing ---------- */
.section-padding { padding: 4rem 0; }
.section-bg-white { background: var(--white); }
.section-bg-light { background: var(--bg); }
.border-top-purple { border-top: 3px solid var(--primary); }

/* ---------- Product detail ---------- */
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.product-detail-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  aspect-ratio: 1;
  padding: 0;
  background: none;
}
.product-detail-thumb.active,
.product-detail-thumb:hover { border-color: var(--primary); }
.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--primary-lighter);
  border-radius: var(--radius);
}
.feature-box-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  transition: transform var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); }
.contact-info-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Video embed wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* About page stats */
.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  height: 100%;
  border: none;
}

/* Order tracking */
.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
.tracking-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}
.tracking-step.done:not(:last-child)::before { background: var(--primary); }
.tracking-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--text-muted);
  z-index: 1;
}
.tracking-step.done .tracking-dot { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Category Banner Cards ---------- */
.category-banner-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.category-banner-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.category-banner-body { padding: 1.25rem; }

/* ---------- Whatsapp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 999;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== PRODUCT LIST PAGE ========== */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 5.5rem;
}
.filter-sidebar .card { border: none; box-shadow: none; }
.filter-sidebar .form-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.product-grid-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-grid-card .product-placeholder { height: 200px; background: var(--bg); }
.product-grid-card .card-body { padding: 1rem; }
.product-grid-card .product-card-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: .3rem;
}
.product-grid-card h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-grid-card h5 a { color: inherit; text-decoration: none; }
.product-grid-card h5 a:hover { color: var(--primary); }
.results-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: .85rem 1.1rem;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-main-img {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  height: 520px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--primary); }
.buy-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.buy-box-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--dark);
}
.buy-box-price .pix {
  font-size: .85rem;
  font-weight: 600;
  color: var(--success);
  display: block;
}
.buy-box-price .old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: .5rem;
}
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ---------- Customer Sidebar ---------- */
.customer-sidebar-wrap {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 5.5rem;
}
.sidebar-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto .5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-link:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}
.sidebar-link-active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ---------- Admin Navbar ---------- */
.admin-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.admin-navbar .nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: .85rem;
  transition: color var(--transition);
}
.admin-navbar .nav-link:hover,
.admin-navbar .nav-link.active {
  color: var(--primary);
}
.admin-navbar .navbar-toggler {
  border-color: var(--border);
}

/* ---------- Admin Sidebar ---------- */
.sidebar-header-dark {
  background: var(--primary-darker);
}
.sidebar-link-active-custom {
  background: var(--primary) !important;
  color: #fff !important;
}
.sidebar-section-label {
  background: var(--bg);
}
.sidebar-section-label small {
  color: var(--text-muted);
}
.sidebar-stats-card {
  background: var(--primary);
}

/* ---------- Admin Dashboard: Activity & Stat Icons ---------- */
.activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
}
.stat-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Error Pages ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center; justify-content: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}
.error-page-icon {
  font-size: 5rem;
  color: var(--primary);
  opacity: .2;
  margin-bottom: 1rem;
}

.qty-selector button {
  width: 38px; height: 38px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.qty-selector button:hover { background: var(--primary-dark); }
.qty-selector input {
  width: 50px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--dark);
  outline: none;
}
.btn-add-cart-large {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}
.btn-add-cart-large:hover { background: var(--primary-dark); color: #fff; }

/* ========== CART & CHECKOUT ========== */
.cart-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cart-item-row { border-bottom: 1px solid var(--border); }
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  font-size: .9rem;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--dark);
  border-top: 2px solid var(--border);
  padding-top: 1rem;
  margin-top: .5rem;
}
.summary-row.discount { color: var(--success); }
.coupon-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
}
.checkout-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ========== UTILITY: Feature Check Icons ========== */
.feature-check-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== UTILITY: Product placeholder icon ========== */
.product-placeholder-icon {
  color: var(--primary);
  opacity: .4;
}

/* ========== UTILITY: Category view-all link ========== */
.category-view-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.category-view-all:hover {
  color: var(--primary-dark);
}

/* ========== UTILITY: Small icon action button ========== */
.icon-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.icon-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== UTILITY: Badge action buttons (product images) ========== */
.badge-action-btn {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .7rem;
}
.image-thumb .badge.rounded-circle {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .65rem;
}

/* ===================================================
   PAGE-SPECIFIC STYLES
   =================================================== */

/* â”€â”€ About Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-card-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; height: 100%; border: none;
}
.value-icon-box {
  width: 56px; height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}

/* â”€â”€ Contact Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.contact-icon-circle {
  width: 64px; height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  transition: all .2s ease;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
  text-align: center;
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card:hover .contact-icon-circle { background: var(--primary); color: #fff; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

/* â”€â”€ Checkout Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.step-indicator {
  display: flex; gap: .5rem; align-items: center; margin-bottom: 2rem;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: .85rem;
  background: var(--border); color: var(--text-muted);
  transition: all .2s ease;
}
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); }
.checkout-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky; top: 5.5rem;
}
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-light); }

/* â”€â”€ Cart Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cart-table thead th {
  font-family: var(--font-heading);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  padding-bottom: .75rem;
}
.cart-table td { vertical-align: middle; padding: 1rem .75rem; }
.cart-table .product-cell { display: flex; align-items: center; gap: 1rem; }
.cart-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qty-circle-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: all .2s ease;
  font-size: .8rem;
}
.qty-circle-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.text-val { font-weight: 700; min-width: 24px; text-align: center; }
.order-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky; top: 5.5rem;
}

/* â”€â”€ Admin Settings Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.theme-card {
  border: 3px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
}
.theme-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99,102,241,.15);
  transform: translateY(-2px);
}
.theme-card.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
}
.theme-card-body {
  padding: 0.9rem 0.75rem;
}
.theme-check-icon {
  display: none;
}
.theme-card.active .theme-check-icon {
  display: block;
}

/* Theme preview miniatures */
.theme-preview {
  height: 80px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}
.tp-header {
  height: 18px;
  background: var(--primary-darker);
}
.tp-body {
  display: flex;
  height: 46px;
  padding: 4px 6px;
  gap: 4px;
}
.tp-block {
  flex: 1;
  border-radius: 4px;
}
.tp-primary { background: var(--primary); }
.tp-accent { background: var(--accent); }
.tp-footer {
  height: 16px;
  background: var(--dark);
}

/* Theme 1 (Purple) — hardcoded so it doesn't bleed from other themes */
.theme1-preview .tp-header { background: #5a2c6d; }
.theme1-preview .tp-body  { background: #f9f8fb; }
.theme1-preview .tp-primary { background: #7a3f90; }
.theme1-preview .tp-accent  { background: #af44bb; }
.theme1-preview .tp-footer { background: #1e1b2e; }

.theme2-preview .tp-header { background: #020617; }
.theme2-preview .tp-body { background: #0f172a; }
.theme2-preview .tp-primary { background: #6366f1; }
.theme2-preview .tp-accent { background: #818cf8; }
.theme2-preview .tp-footer { background: #1e293b; }

.theme3-preview .tp-header { background: #242933; }
.theme3-preview .tp-body { background: #2e3440; }
.theme3-preview .tp-primary { background: #88c0d0; }
.theme3-preview .tp-accent { background: #81a1c1; }
.theme3-preview .tp-footer { background: #3b4252; }

.theme4-preview .tp-header { background: #232a2e; }
.theme4-preview .tp-body { background: #2d353b; }
.theme4-preview .tp-primary { background: #83c092; }
.theme4-preview .tp-accent { background: #7fbbb3; }
.theme4-preview .tp-footer { background: #343f44; }

/* Layout preview miniatures */
.layout-preview {
  height: 130px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  background: var(--bg);
  position: relative;
}
.lp-header {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.lp-logo {
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 4px;
  flex-shrink: 0;
}
.lp-search {
  flex: 1;
  height: 16px;
  background: var(--border);
  border-radius: 10px;
}
.lp-actions {
  display: flex;
  gap: 4px;
}
.lp-icon {
  width: 16px; height: 16px;
  background: #cbd5e1;
  border-radius: 50%;
}
.lp-nav {
  height: 14px;
  background: var(--primary-darker);
}
.lp-content {
  padding: 8px;
}
.lp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lp-card {
  height: 36px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.layout-fashion-preview .fashion-header {
  justify-content: space-between;
}
.layout-fashion-preview .lp-logo {
  width: 30px;
}
.layout-fashion-preview .lp-hero {
  height: 20px;
  background: linear-gradient(135deg, rgba(var(--dark-rgb),.8), rgba(var(--primary-darker-rgb),.6));
  display: flex;
  align-items: center;
  padding: 2px 8px;
}
.lp-hero-text {
  width: 50%;
  height: 6px;
  background: rgba(255,255,255,.4);
  border-radius: 3px;
}

/* Color swatch */
.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid rgba(0,0,0,.15);
}

/* Color picker input */
.form-control-color {
  width: 44px;
  padding: 4px;
  cursor: pointer;
  border-radius: 0.375rem 0 0 0.375rem;
}

/* Preview cards transition */
.preview-card {
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
}

/* Breadcrumb */
.breadcrumb-item a {
  text-decoration: none;
  color: var(--primary);
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Save button pulse on hover */
#saveSettingsBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb),.35);
  transition: all 0.2s ease;
}

/* Toast */
.settings-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  min-width: 300px;
}

/* ========== CUSTOM CONFIRM MODAL ========== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.confirm-overlay.active {
  opacity: 1;
  visibility: visible;
}
.confirm-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2rem 1.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(.92) translateY(12px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.confirm-overlay.active .confirm-modal {
  transform: scale(1) translateY(0);
}
.confirm-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: #fef2f2;
  color: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.confirm-modal h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}
.confirm-modal p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.confirm-modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
}
.confirm-modal-actions .btn {
  min-width: 110px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: .5rem 1.25rem;
  font-size: .875rem;
}

/* ========== ROLE DISCOUNT BANNER ========== */
.role-discount-banner {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  padding: .65rem 0;
  position: relative;
  z-index: 1020;
  animation: roleDiscountSlideIn .4s ease;
}
@keyframes roleDiscountSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.role-discount-banner-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.role-discount-banner-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  animation: roleDiscountPulse 2s ease-in-out infinite;
}
@keyframes roleDiscountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.role-discount-banner-text {
  font-size: .9rem;
  flex: 1;
  min-width: 0;
}
.role-discount-banner-text strong {
  font-family: var(--font-heading);
  letter-spacing: .02em;
}
.role-discount-category-badge {
  background: rgba(255,255,255,.25);
  padding: .1rem .5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: .8rem;
  white-space: nowrap;
}
.role-discount-banner-details {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.role-discount-banner-details .badge {
  font-size: .72rem;
  font-weight: 600;
}
.role-discount-banner-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  font-size: .8rem;
}
.role-discount-banner-close:hover {
  background: rgba(255,255,255,.35);
}

/* ========== ROLE DISCOUNT PRODUCT CARD BADGE ========== */
.role-discount-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: .35rem;
  z-index: 2;
  font-family: var(--font-heading);
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(5,150,105,.35);
}

/* ========== ROLE DISCOUNT DISPLAY ON PRODUCT DETAIL ========== */
.role-discount-box {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: .75rem;
}
.role-discount-box i {
  color: #059669;
}
.role-discount-price-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: .85rem;
  margin-left: .5rem;
}
.role-discount-price-final {
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
  font-family: var(--font-heading);
}

/* ========== ROLE DISCOUNT ON ORDER SUMMARY (cart/checkout) ========== */
.summary-row.role-discount {
  color: #059669;
  font-weight: 600;
  background: #ecfdf5;
  padding: .35rem .75rem;
  border-radius: .5rem;
  margin: .25rem 0;
}
.summary-row.role-discount span:last-child {
  color: #059669;
}
.role-discount-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #059669;
  color: #fff;
  border-radius: 50%;
  font-size: .55rem;
  margin-left: .3rem;
  cursor: help;
}

