@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Luxury Boutique Color Tokens */
    --primary: #1e1b18;
    --primary-hover: #383430;
    --primary-light: #f7f1ea;
    --primary-subtle: #f4eae4;
    --accent: #9f4f5d;            /* Deep Rosewood */
    --accent-hover: #833e4a;
    --accent-soft: #fcf2f2;
    --secondary: #b38e5d;          /* Warm Gold */
    --gold: #b38e5d;
    --bg: #fcfbfa;               /* Warm Alabaster */
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.95);
    --text: #1e1b18;
    --text-muted: #78736d;
    --text-light: #a8a29b;
    --border: #ede8e3;
    --border-subtle: #f4f0eb;
    --border-hover: #dfd8d0;
    --border-focus: #9f4f5d;
    --highlight: #9f4f5d;
    
    /* Typography Tokens */
    --font-display: 'Italiana', serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', 'Italiana', serif;
    
    /* Elevation & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.14);
    --shadow-drawer: -10px 0 35px rgba(0, 0, 0, 0.15);
    
    /* Geometry */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Animation */
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ------------------------------------------------------------
   Global Layout Containers & Utility Classes
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.03em;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: -1.25rem auto 2.5rem;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   Modern Sticky Navbar & Navigation
   ------------------------------------------------------------ */
/* ============================================================
   Lily's Luxury Boutique Component Suite
   ============================================================ */

/* Top Trust & Service Bar */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #d6d0c7; text-decoration: none; font-size: 0.74rem; transition: var(--transition-fast); }
.topbar a:hover { color: #fff; }

/* Sticky Header Layout */
header.site-header {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}
.logo-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(159, 79, 93, 0.15);
}

.nav-search {
  position: relative;
  max-width: 520px;
  width: 100%;
}
.nav-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 16px 9px 40px;
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text);
}
.nav-search input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,27,24,0.06);
}
.nav-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-btn {
  background: none;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}
.action-btn:hover { background: var(--bg); border-color: var(--border); color: var(--primary); }
.cart-trigger {
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  padding: 8px 18px;
}
.cart-trigger:hover {
  background: #383430;
  color: #fff;
  border-color: transparent;
}
.cart-trigger .badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
  font-weight: 700;
}

/* =========================================
   COLLAPSIBLE HERO CURTAIN SECTION
   ========================================= */
.collapsible-hero {
  background: linear-gradient(135deg, #f7f1ea 0%, #fbf5f2 50%, #f4eae4 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.45s ease, 
              padding 0.65s ease;
  padding: 44px 24px;
}

.collapsible-hero.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
  border-bottom: none;
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ebdcd5;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.hero-copy p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(30,27,24,0.12);
  text-decoration: none;
}
.btn-hero-cta:hover {
  background: #383430;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30,27,24,0.18);
  color: white;
}
.btn-hero-dismiss {
  background: transparent;
  border: 1px solid #cfc7be;
  color: var(--primary);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-hero-dismiss:hover {
  background: rgba(255,255,255,0.7);
  border-color: var(--primary);
}

.hero-visual-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-img-box {
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-img-box:hover img {
  transform: scale(1.06);
}
.hero-img-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--primary);
}

/* =========================================
   STICKY QUICK-CATEGORY DOCK
   ========================================= */
.catalog-dock {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  position: sticky;
  top: 61px;
  z-index: 80;
}
.dock-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dock-wrapper::-webkit-scrollbar { display: none; }

.category-pills-group {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-pills-group::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: nowrap;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.category-chip:hover, .category-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee5de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.category-chip.active .chip-avatar {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-restore-hero {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition);
}
.btn-restore-hero:hover {
  background: var(--accent);
  color: white;
}

/* =========================================
   LIVE SUB-FILTERING BAR
   ========================================= */
.instant-bar {
  max-width: 1360px;
  margin: 16px auto 8px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.instant-bar strong { color: var(--primary); }
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tags .tag {
  font-size: 0.76rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-tags .tag:hover, .filter-tags .tag.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* =========================================
   PRODUCT CATALOG & GRID
   ========================================= */
.catalog-container {
  max-width: 1360px;
  margin: 12px auto 60px;
  padding: 0 24px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.card-visual {
  position: relative;
  background: #f7f3ee;
  padding-top: 110%;
  overflow: hidden;
}
.card-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .card-visual img {
  transform: scale(1.04);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-gift { background: rgba(255,255,255,0.94); color: var(--accent); border: 1px solid #f2cfd4; }
.tag-hot { background: #1e1b18; color: white; }
.tag-out { background: #ef4444; color: white; }
.tag-low { background: #f59e0b; color: white; }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  color: var(--primary);
}
.fav-btn:hover { background: #fff; color: var(--accent); }
.fav-btn.active { color: #e11d48; }

.card-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.category-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.rating-pill {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
}

.item-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-title:hover { color: var(--accent); }

.pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.current-price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
}
.original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.btn-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-cart:hover { background: #383430; color: white; }
.btn-gift-parcel {
  background: var(--accent-soft);
  border: 1px solid #f2d4d8;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 4px;
  transition: var(--transition);
}
.btn-gift-parcel:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =========================================
   SLIDING CART DRAWER
   ========================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open { right: 0; }

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-header h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.close-drawer { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; font-size: 1.2rem; }

.free-shipping-meter {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 22px;
  font-size: 0.8rem;
}
.meter-bar { height: 6px; background: #e3ded8; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.meter-progress { height: 100%; background: #16a34a; width: 65%; border-radius: 4px; }

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.cart-row img { width: 60px; height: 72px; object-fit: cover; border-radius: 6px; }
.cart-row-info h5 { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.cart-row-info span { font-size: 0.75rem; color: var(--text-muted); display: block; }
.cart-row-price { font-size: 0.88rem; font-weight: 700; margin-top: 4px; }

.drawer-footer {
  padding: 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.drawer-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.total-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.btn-checkout {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  margin-top: 14px;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-checkout:hover { background: #383430; color: white; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual-frame { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-container { grid-template-columns: auto 1fr; gap: 12px; }
  .nav-search { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-copy h1 { font-size: 2.1rem; }
}

.navbar {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all var(--transition-normal);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.navbar .logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.navbar .logo:hover img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.25rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.cart-link {
    position: relative;
    color: var(--primary) !important;
    font-weight: 700 !important;
    background: var(--primary-light) !important;
    padding: 6px 14px !important;
    border-radius: var(--radius-full) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--primary-subtle);
}

.cart-badge {
    background: var(--highlight);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.user-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.86rem;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.user-pill-badge:hover {
    background: #f8fafc !important;
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-subtle);
}

/* Mobile Off-Canvas Drawer Navigation */
@media (max-width: 991px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity var(--transition-normal);
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--surface);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 0.6rem;
        overflow-y: auto;
        transition: right var(--transition-slow);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-drawer-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links a {
        padding: 10px 14px;
        font-size: 0.98rem;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* ------------------------------------------------------------
   Hero Section & Editorial Banners
   ------------------------------------------------------------ */
.hero {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    max-width: 860px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f1f5f9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------
   Buttons & Interactive Micro-States
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background-color: var(--primary);
    color: #ffffff !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25);
    line-height: 1.3;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(219, 39, 119, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-light) !important;
    color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-cta {
    background-color: var(--highlight) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-cta:hover {
    background-color: #dc2626 !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.wish-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.wish-btn:hover {
    transform: scale(1.12);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------
   Product Grid & Elevated Product Cards
   ------------------------------------------------------------ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.card > a, .card a:has(.card-img) {
    display: block;
    line-height: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.card-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    .card-img {
        height: 190px;
    }
}

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

.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.4rem;
    text-align: left;
}

@media (max-width: 640px) {
    .card-body {
        padding: 0.85rem;
        gap: 0.3rem;
    }
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
}

@media (max-width: 640px) {
    .card-title {
        font-size: 0.88rem;
        min-height: 2.3rem;
    }
}

.card-price {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

@media (max-width: 640px) {
    .card-price {
        font-size: 1rem;
    }
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.card-actions .btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.86rem;
}

/* Stock & Status Badges */
.badge-out-of-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    background: rgba(185, 28, 28, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.badge-low-stock-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 8;
    background: rgba(217, 119, 6, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.stock-status {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.stock-status.out-of-stock {
    color: #dc2626;
}

.stock-status.low-stock {
    color: #d97706;
}

.card-out-of-stock .card-img {
    filter: grayscale(0.5) opacity(0.85);
}

.btn-out-of-stock {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ------------------------------------------------------------
   Modern Forms & Input Styling
   ------------------------------------------------------------ */
.form-group {
    margin-bottom: 1.15rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--text);
    background-color: var(--surface);
    outline: none;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px rgba(219, 39, 119, 0.15);
    background-color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* ------------------------------------------------------------
   Cart & Checkout Components
   ------------------------------------------------------------ */
table.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

table.cart-table th,
table.cart-table td {
    padding: 1.15rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.cart-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table.cart-table tr:last-child td {
    border-bottom: none;
}

/* ------------------------------------------------------------
   Footer Layout
   ------------------------------------------------------------ */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 3.5rem 0 1.5rem;
    color: var(--text);
}

footer a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

footer a:hover {
    color: var(--primary);
    transform: translateX(2px);
}


/* ---- Admin Panel Theme ---- */
:root {
    --admin-bg: #f8fafc;
    --admin-surface: #ffffff;
    --admin-primary: #6366f1;
    --admin-primary-light: #e0e7ff;
    --admin-text-main: #0f172a;
    --admin-text-muted: #64748b;
    --admin-border: #e2e8f0;
    --admin-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --admin-radius: 16px;
}

.admin-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--admin-bg);
    font-family: 'Inter', sans-serif;
    color: var(--admin-text-main);
}

/* Beautiful Left Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 4px 0 15px -5px rgba(0,0,0,0.05);
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-logo {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-nav {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.admin-nav a {
    padding: 6px 1.25rem;
    color: var(--admin-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 1rem;
    border-radius: var(--admin-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav a:hover {
    color: var(--admin-text-main);
    background: var(--admin-primary-light);
}

.admin-nav a.active {
    background: var(--admin-primary-light);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

/* Main Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--admin-bg);
}

.admin-page-title { font-size: 1.5rem; font-weight: 700; color: var(--admin-text-main); margin: 0; }
.admin-top-right { display: flex; align-items: center; gap: 20px; }

/* Content Area */
.admin-content { padding: 0 2rem 2rem 2rem; width: 100%; }

/* Metric Cards */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.metric-card { background: var(--admin-surface); border-radius: var(--admin-radius); padding: 1rem; box-shadow: var(--admin-shadow); display: flex; justify-content: space-between; align-items: flex-start; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255,255,255,0.8); }
.metric-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.metric-info h4 { color: var(--admin-text-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; }
.metric-info h2 { color: var(--admin-text-main); font-size: 1.25rem; font-weight: 700; margin: 0; }
.metric-info .trend { font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; display: block; }
.trend.up { color: #16a34a; }
.trend.down { color: #ef4444; }
.metric-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--admin-primary-light); color: var(--admin-primary); display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* Dashboard Cards & Tables */
.dash-card { background: var(--admin-surface); border-radius: var(--admin-radius); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--admin-shadow); border: 1px solid rgba(255,255,255,0.8); }
.dash-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--admin-text-main); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--admin-bg); padding-bottom: 0.75rem; }
/* Excel-Style Admin Panel Tables */
.dash-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    font-size: 0.82rem; 
    font-variant-numeric: tabular-nums; 
    background: #ffffff;
    border: 1px solid #cbd5e1;
}
.dash-table th, .dash-table td { 
    border: 1px solid #cbd5e1 !important; 
    padding: 5px 8px; 
    vertical-align: middle; 
    line-height: 1.35; 
}
.dash-table th { 
    text-align: left; 
    background: #e2e8f0; 
    color: #0f172a; 
    font-weight: 700; 
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; 
    border-bottom: 2px solid #94a3b8 !important;
    position: sticky;
    top: 0;
    z-index: 2;
}
.dash-table td { 
    color: #1e293b; 
    background: #ffffff; 
}
.dash-table tr:nth-child(even) td { 
    background: #f8fafc; 
}
.dash-table tr:hover td { 
    background: #eff6ff !important; 
}
.dash-table .btn, .dash-table button, .dash-table select {
    padding: 3px 7px !important;
    font-size: 0.78rem !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
}
.dash-table .badge {
    padding: 2px 6px !important;
    font-size: 0.74rem !important;
    border-radius: 4px !important;
}

/* Badges */
.badge { padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-gray { background: var(--admin-bg); color: var(--admin-text-muted); }

/* Modals */
.modal { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 2.5rem; border-radius: 16px; width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--admin-border); }
.close-modal { background: var(--admin-bg); border: none; font-size: 1.25rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--admin-text-muted); }

/* Responsive Utilities */
.hide-desktop { display: none !important; }
.show-desktop { display: block !important; }
.hide-mobile { display: block !important; }
.show-mobile { display: none !important; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
.mobile-card-grid { display: none; }

.admin-mobile-header, .admin-overlay, .menu-overlay, .close-menu-btn, .admin-bottom-nav { display: none; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--header-text, var(--text, #1e293b)); padding: 6px 10px; border-radius: 6px; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 1024px), (max-width: 768px) {
    .hide-desktop { display: flex !important; }
    .show-desktop { display: none !important; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
    .mobile-card-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }

    /* Mobile Drawer for Storefront */
    .navbar {
        z-index: 99990 !important;
        padding: 0.5rem 4% !important;
    }
    .navbar .logo img {
        max-height: 40px !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important; /* REQUIRED: Activates z-index */
        z-index: 100000 !important; /* REQUIRED: Forces button above the invisible drawer */
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        color: #0f172a !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        line-height: 1 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .mobile-drawer-header {
        display: flex !important;
    }
    
    .menu-overlay {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99995 !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.22s ease !important;
    }
    .menu-overlay.active {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 1rem 0.85rem 2.5rem 0.85rem !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25) !important;
        z-index: 99999 !important;
        transform: translateX(100%) !important;
        -webkit-transform: translateX(100%) !important;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
        gap: 0 !important;
    }
    .nav-links.active {
        transform: translateX(0) !important;
        -webkit-transform: translateX(0) !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Links inside mobile drawer - compact single-column scrolling */
    .navbar .nav-links a,
    .nav-links a {
        margin: 0 !important;
        text-align: left !important;
        padding: 7px 10px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        width: 100% !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.15s ease !important;
        line-height: 1.25 !important;
    }
    .navbar .nav-links a:last-child,
    .nav-links a:last-child {
        border-bottom: none !important;
    }
    .navbar .nav-links a:hover,
    .navbar .nav-links a.active,
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary, #db2777) !important;
        background: #fdf2f8 !important;
        border-radius: 6px !important;
        padding-left: 12px !important;
    }

    /* Hero adjustments on mobile */
    .hero { min-height: 55vh !important; height: 62vh !important; }
    .hero-top-left { top: 0.5rem !important; left: 1rem !important; }
    .hero-bottom-left { bottom: 0.75rem !important; left: 1rem !important; }
    .hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important; margin-bottom: 0.25rem !important; }
    .hero p { font-size: 0.92rem !important; }

    /* Category Strip - smooth single-row horizontal scrolling */
    .category-strip { 
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important; 
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        flex-wrap: nowrap !important; 
        scrollbar-width: none !important; 
        -ms-overflow-style: none !important; 
        scroll-snap-type: x mandatory !important; 
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding: 0.4rem 0 !important;
    }
    .category-strip::-webkit-scrollbar { display: none !important; }
    .category-strip a { 
        flex: 0 0 auto !important; 
        scroll-snap-align: start !important; 
        padding: 0.45rem 0.85rem !important; 
        font-size: 0.82rem !important; 
        white-space: nowrap !important;
    }

    /* Storefront Cart Tables as Cards */
    .cart-table, .cart-table tbody { display: block; width: 100%; }
    .cart-table thead, .cart-table tr:first-child th { display: none; }
    .cart-table tr { display: block; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); padding: 10px; background: var(--surface); }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: 10px 5px; text-align: right; }
    .cart-table td:last-child { border-bottom: none; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--text-light); text-align: left; flex: 1; margin-right: 10px; font-size: 0.9rem; }
    
    .dash-card { padding: 1rem; border-radius: 12px; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; font-size: 0.95rem; }

    /* Admin Mobile Layout & Header */
    .admin-layout { flex-direction: column !important; width: 100% !important; min-width: 0 !important; }
    .admin-main { width: 100% !important; min-width: 0 !important; flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; }
    .admin-mobile-header { display: flex !important; width: 100% !important; box-sizing: border-box; justify-content: space-between; align-items: center; padding: 0.85rem 1.25rem; background: var(--admin-surface); border-bottom: 1px solid var(--admin-border); position: sticky; top: 0; z-index: 80; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
    .admin-hamburger { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--admin-text-main); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px; position: relative; z-index: 100000; }
    .admin-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(3px); z-index: 105; display: none; }
    .admin-overlay.open { display: block; }

    /* Admin Off-Canvas Sidebar Drawer */
    .admin-sidebar { position: fixed; top: 0; left: -310px; width: 285px; height: 100vh; flex-direction: column; z-index: 110; padding: 0; box-shadow: 6px 0 25px rgba(0,0,0,0.15); overflow-y: auto; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: var(--admin-surface); }
    .admin-sidebar.open { left: 0; }
    .admin-logo { padding: 1.25rem; border-bottom: 1px solid var(--admin-border); width: 100%; justify-content: space-between; font-size: 1.2rem; }
    .admin-nav { flex-direction: column; width: 100%; padding-bottom: 4rem; }
    .admin-nav a { border-bottom: 1px solid var(--admin-border); border-radius: 0; padding: 0.85rem 1.25rem; font-size: 0.95rem; }
    .admin-nav a.active { border-left: 4px solid var(--admin-primary); background: var(--admin-primary-light); }
    .admin-topbar { display: none; }
    
    /* Content Padding with Bottom Navigation Bar Offset */
    .admin-content { padding: 1rem 1rem 5.5rem 1rem; width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .metric-card { padding: 0.85rem; }
    .metric-info h2 { font-size: 1.1rem; }

    /* Mobile Bottom Quick-Action Bar */
    .admin-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 58px; background: var(--admin-surface); border-top: 1px solid var(--admin-border); z-index: 90; display: flex !important; justify-content: space-around; align-items: center; box-shadow: 0 -4px 15px rgba(0,0,0,0.06); padding: 0 4px; box-sizing: border-box; }
    .admin-bottom-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.7rem; font-weight: 600; color: var(--admin-text-muted); text-decoration: none; flex: 1; height: 100%; transition: color 0.15s; }
    .admin-bottom-tab.active { color: var(--admin-primary); font-weight: 700; }
    .admin-bottom-tab .tab-icon { font-size: 1.2rem; line-height: 1; }

    /* Mobile Bottom-Sheet Modals */
    .modal { align-items: flex-end; padding: 0; }
    .modal-content { width: 100% !important; max-width: 100% !important; border-radius: 20px 20px 0 0 !important; margin: 0 !important; max-height: 85vh !important; padding: 1.25rem !important; box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important; animation: slideUpBottom 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
    .modal-header { margin-bottom: 1rem; padding-bottom: 0.75rem; }

    /* Storefront Mobile Product Grid (2 Columns) */
    .container { padding: 0 1rem; margin: 1.5rem auto; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { border-radius: 12px; }
    .card-img { height: 175px; display: block; }
    .card-body { padding: 0.5rem 0.6rem 0.6rem; gap: 0.15rem; }
    .card-title { font-size: 0.88rem; line-height: 1.25; margin-bottom: 0.1rem; }
    .card-price { font-size: 0.92rem; margin-bottom: 0.2rem; }
    .card-actions { gap: 0.35rem; padding-top: 0.15rem; }
    .card-body .btn { padding: 7px 10px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-img { height: 155px; }
    .card-body { padding: 0.45rem 0.5rem 0.55rem; gap: 0.1rem; }
    .card-title { font-size: 0.82rem; line-height: 1.2; margin-bottom: 0.05rem; }
    .card-price { font-size: 0.88rem; margin-bottom: 0.15rem; }
}

@media print {
    @page { size: A4 landscape; margin: 15mm; }
    .navbar, .hide-on-print, .mobile-menu-btn, .admin-mobile-header, .admin-sidebar, .admin-topbar { display: none !important; }
    .admin-layout { display: block; }
    .admin-content, .container { padding: 0 !important; margin: 0 !important; width: 100% !important; background: white !important; }
    table { width: 100% !important; border: 1px solid #ddd; }
    th, td { border: 1px solid #ddd !important; }
    body { background: white !important; color: black !important; }
    * { box-shadow: none !important; text-shadow: none !important; }
}
/* Color Strip Menu */
.category-strip { display: flex; justify-content: center; align-items: center; background: var(--primary); padding: 0; margin: 4px 0 0 0; width: 100%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.category-strip a { padding: 0.85rem 2rem; font-size: 0.9rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; transition: background 0.2s ease; border-right: 1px solid rgba(255,255,255,0.15); }
.category-strip a:last-child { border-right: none; }
.category-strip a:hover, .category-strip a.active { background: rgba(0,0,0,0.2); }

/* Featured Slider */
.featured-slider-container { width: 100%; overflow: hidden; padding: 0; }
.featured-slider {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem; scrollbar-width: none; -ms-overflow-style: none;
}
.featured-slider::-webkit-scrollbar { display: none; }
.featured-slider .card {
    width: 280px; max-width: 75vw; flex: 0 0 auto; scroll-snap-align: start;
}

/* ==========================================================================
   Bulk Upload Ingestion Studio & Dropzone Component
   ========================================================================== */

.bulk-upload-studio {
    width: 100%;
}

.bulk-upload-dropzone {
    background: #f8fafc;
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    user-select: none;
    margin-bottom: 1.5rem;
}

.bulk-upload-dropzone:hover,
.bulk-upload-dropzone:focus-visible {
    border-color: var(--admin-primary, #6366f1);
    background: #f0f4ff;
    transform: translateY(-1px);
}

.bulk-upload-dropzone.is-dragover {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    transform: scale(1.01);
}

.dropzone-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 4px;
}

.dropzone-icon {
    font-size: 2rem;
    line-height: 1;
}

.dropzone-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--admin-text-main, #0f172a);
    margin: 0;
}

.dropzone-subtitle {
    font-size: 0.9rem;
    color: var(--admin-text-muted, #64748b);
    margin: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--admin-primary, #6366f1);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

.dropzone-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.spec-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

/* ---------------- Upload HUD (Heads-Up Display) ---------------- */
.upload-hud-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hud-metrics-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.hud-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.stat-total     { background: #f1f5f9; color: #334155; }
.stat-uploading { background: #e0e7ff; color: #4338ca; }
.stat-success   { background: #dcfce7; color: #15803d; }
.stat-failed    { background: #fee2e2; color: #b91c1c; }

.stat-value {
    font-weight: 800;
    font-size: 0.95rem;
}

.hud-controls-group {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-hud {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-hud-secondary { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
.btn-hud-warning   { background: #fef08a; border-color: #eab308; color: #854d0e; }
.btn-hud-outline   { background: #ffffff; border-color: #cbd5e1; color: #64748b; }
.btn-hud:hover { opacity: 0.88; transform: translateY(-1px); }

.hud-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hud-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
}

.hud-progress-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.hud-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
    border-radius: 5px;
    transition: width 0.2s ease-out;
}

/* ---------------- Live Interactive Thumbnail Gallery ---------------- */
.thumbnail-gallery,
.thumbnail-gallery-wrap {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--admin-border, #e2e8f0);
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.gallery-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--admin-text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-counter-pill {
    background: var(--admin-primary-light, #e0e7ff);
    color: var(--admin-primary, #6366f1);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.gallery-subtitle {
    font-size: 0.84rem;
    color: var(--admin-text-muted, #64748b);
}

.gallery-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-sort-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--admin-text-muted, #64748b);
    font-weight: 600;
}

.gallery-select-input {
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.gallery-select-input:focus {
    border-color: var(--admin-primary, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.gallery-btn-group {
    display: flex;
    gap: 6px;
}

.btn-gallery-tool {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-gallery-tool:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-tool-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.btn-tool-danger:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.btn-tool-outline {
    border-color: #e2e8f0;
    color: #64748b;
}

.gallery-selection-bar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
}

.btn-compact {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
}

.btn-compact.btn-primary {
    background: var(--admin-primary, #6366f1);
    color: #ffffff;
    border-color: var(--admin-primary, #6366f1);
}

.gallery-grid,
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 14px;
    min-height: 80px;
    position: relative;
    transition: all 0.2s ease;
}

/* ---------------- Card Components (thumb-card / upload-card / gallery-card) ---------------- */
.thumb-card,
.upload-card,
.gallery-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.15s ease,
                opacity 0.2s ease;
    user-select: none;
}

.thumb-card:hover,
.upload-card:hover,
.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.gallery-card:focus-within,
.thumb-card:focus-within {
    border-color: var(--admin-primary, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.gallery-card.status-uploading,
.upload-card.status-uploading {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.gallery-card.status-ready,
.gallery-card.status-success,
.upload-card.status-success {
    border-color: #10b981;
}

.gallery-card.status-failed,
.upload-card.status-failed {
    border-color: #ef4444;
    background: #fff5f5;
}

.gallery-card.is-selected {
    border-color: var(--admin-primary, #6366f1);
    background: #f5f3ff;
    box-shadow: 0 0 0 2px var(--admin-primary, #6366f1);
}

.gallery-card.is-dragging,
.upload-card.is-dragging {
    opacity: 0.35 !important;
    transform: scale(0.96) !important;
    border: 2px dashed var(--admin-primary, #6366f1) !important;
    box-shadow: none !important;
}

.card-top-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.card-seq-badge {
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: -0.5px;
}

.gallery-card.status-ready .card-seq-badge,
.gallery-card.status-success .card-seq-badge {
    background: var(--admin-primary-light, #e0e7ff);
    color: var(--admin-primary, #6366f1);
}

.card-chk-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.card-select-chk {
    cursor: pointer;
    accent-color: var(--admin-primary, #6366f1);
    width: 14px;
    height: 14px;
}

.card-btn-delete,
.card-item-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.card-btn-delete:hover,
.card-item-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.card-media-box,
.card-media-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f1f5f9;
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-card:hover .card-thumb-img,
.thumb-card:hover .card-thumb-img {
    transform: scale(1.03);
}

.card-status-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.card-status-badge.badge-pending   { background: rgba(15, 23, 42, 0.75); color: #ffffff; }
.card-status-badge.badge-uploading { background: rgba(99, 102, 241, 0.85); color: #ffffff; }
.card-status-badge.badge-success,
.card-status-badge.badge-ready     { background: rgba(16, 185, 129, 0.9); color: #ffffff; }
.card-status-badge.badge-failed    { background: rgba(239, 68, 68, 0.9); color: #ffffff; }

.card-zoom-trigger {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.15s ease;
    z-index: 3;
}

.gallery-card:hover .card-zoom-trigger,
.gallery-card:focus-within .card-zoom-trigger {
    opacity: 1;
    transform: scale(1);
}

.card-zoom-trigger:hover {
    background: var(--admin-primary, #6366f1);
    transform: scale(1.1);
}

.card-drag-grip {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border-radius: 4px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 3;
}

.gallery-card:hover .card-drag-grip {
    opacity: 1;
}

.card-drag-grip:active {
    cursor: grabbing;
}

.card-mini-progress,
.card-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.25);
    z-index: 4;
}

.card-mini-progress-fill,
.card-progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.1s linear;
}

.card-meta-pane,
.card-meta-wrap {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    background: #ffffff;
}

.card-filename {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.card-specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.meta-chip,
.spec-chip {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.spec-chip.chip-dimensions svg,
.meta-chip.dimensions svg {
    color: #8b5cf6;
}

.spec-chip.chip-filesize,
.meta-chip.filesize {
    color: #475569;
}

.card-error-notice,
.card-error-text {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.2;
}

.btn-card-retry,
.card-retry-btn {
    margin-top: 4px;
    padding: 3px 6px;
    font-size: 0.72rem;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.card-reorder-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.btn-card-nav {
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-card-nav:first-child {
    border-right: 1px solid #f1f5f9;
}

.btn-card-nav:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-card-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.studio-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-cta-success {
    background: #10b981;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-cta-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* ============================================================
   Stock Status & Out-of-Stock Indicators
   ============================================================ */
.badge-out-of-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 5;
    pointer-events: none;
}

.badge-low-stock-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    z-index: 5;
    pointer-events: none;
}

.stock-status {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2px 0 4px 0;
    line-height: 1.2;
}

.stock-status.in-stock {
    color: #16a34a;
}

.stock-status.low-stock {
    color: #d97706;
}

.stock-status.out-of-stock {
    color: #dc2626;
}

.btn-out-of-stock {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.btn-out-of-stock:hover {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    transform: none !important;
}

.card-out-of-stock .card-img {
    filter: grayscale(25%) opacity(0.85);
}

.badge-stock-in {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-stock-low {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-stock-out {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   Order Status Dropdown with Live Color Band
   ============================================================ */
.order-status-dropdown {
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #64748b !important;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.order-status-dropdown:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.order-status-dropdown.status-dropdown-pending {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border-left-color: #f59e0b !important;
    border-color: #fde68a !important;
}

.order-status-dropdown.status-dropdown-processing {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border-left-color: #3b82f6 !important;
    border-color: #bfdbfe !important;
}

.order-status-dropdown.status-dropdown-shipped {
    background-color: #ede9fe !important;
    color: #6b21a8 !important;
    border-left-color: #8b5cf6 !important;
    border-color: #ddd6fe !important;
}

.order-status-dropdown.status-dropdown-delivered,
.order-status-dropdown.status-dropdown-completed {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border-left-color: #10b981 !important;
    border-color: #bbf7d0 !important;
}

.order-status-dropdown.status-dropdown-cancelled {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
    border-color: #fecaca !important;
}

/* ============================================================
   Garment Size Chart & Pattern Sketch Trigger Buttons
   ============================================================ */
.btn-size-sketch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.btn-size-sketch:hover {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.12);
}

.card-size-badge-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-size-badge-btn:hover {
    background: var(--primary, #0284c7);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}



