/* ==========================================================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Palette */
  --sale-gold: #FFCB05;
  --sale-gold-dark: #e5b600;
  --sale-gold-light: #ffeb80;
  --promo-red: #D0021B;
  --promo-red-hover: #b00217;
  --action-blue: #288AD6;
  --action-blue-hover: #1c6fad;
  --primary: #715D00;
  --primary-container: #FFD400;
  --on-primary: #FFFFFF;
  --on-primary-fixed: #231B00;
  --on-primary-fixed-variant: #554500;

  /* Surfaces & Backgrounds */
  --bg-main: #FFF8EF;
  --surface-white: #FFFFFF;
  --surface-container: #F6EDDA;
  --surface-container-high: #F0E7D5;
  --surface-container-highest: #EAE2CF;
  --surface-gray: #F4F4F4;
  --surface-card: #FFFFFF;
  
  /* Text & Border Colors */
  --text-main: #1F1B10;
  --text-muted: #5E5E5E;
  --text-subtle: #8A8578;
  --outline: #D0C6AB;
  --outline-light: #EAE2CF;
  --border-color: #E2E2E2;

  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-drawer: 4px 0 24px rgba(0, 0, 0, 0.15);

  /* Layout & Spacing */
  --header-height-mobile: 60px;
  --header-height-desktop: 72px;
  --sidebar-width: 260px;
  --container-max: 1200px;
  --bottom-nav-height: 64px;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height-mobile);
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 1024px) {
  body {
    padding-top: var(--header-height-desktop);
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  outline: none;
}

ul {
  list-style: none;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   HEADER / TOP APP BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-mobile);
  background: var(--sale-gold);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  transition: height var(--transition-normal), background-color var(--transition-normal);
}

@media (min-width: 1024px) {
  .site-header {
    height: var(--header-height-desktop);
  }
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--on-primary-fixed);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.menu-toggle-btn:hover {
  background-color: var(--primary-container);
}

.menu-toggle-btn:active {
  transform: scale(0.92);
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--on-primary-fixed);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

@media (min-width: 640px) {
  .logo-link {
    font-size: 22px;
  }
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--text-main);
  color: var(--sale-gold);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 42px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface-white);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--action-blue);
  box-shadow: 0 0 0 3px rgba(40, 138, 214, 0.25);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  display: none;
  padding: 2px;
  border-radius: var(--radius-full);
}

.search-clear-btn.active {
  display: block;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  color: var(--on-primary-fixed);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.cart-btn:hover {
  background-color: var(--sale-gold-dark);
}

.desktop-only-inline {
  display: none;
}

@media (min-width: 640px) {
  .desktop-only-inline {
    display: inline;
  }
}

.cart-btn:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--promo-red);
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sale-gold);
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Mobile Search Bar (under header for <768px) */
.mobile-search-bar {
  padding: 10px 16px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .mobile-search-bar {
    display: none;
  }
}

.mobile-search-bar .search-input {
  height: 40px;
  background: var(--surface-white);
  border: 1px solid var(--outline);
}

/* ==========================================================================
   LAYOUT STRUCTURE (Sidebar & Main Area)
   ========================================================================== */
.main-layout {
  display: flex;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px;
  gap: 24px;
}

@media (min-width: 1024px) {
  .main-layout {
    padding: 24px 20px;
  }
}

/* Desktop Navigation Sidebar */
.desktop-sidebar {
  display: none;
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline-light);
  overflow: hidden;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height-desktop) + 20px);
}

@media (min-width: 1024px) {
  .desktop-sidebar {
    display: block;
  }
}

.sidebar-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 1px solid var(--surface-container);
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-menu {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background-color: var(--surface-container);
  color: var(--text-main);
  transform: translateX(4px);
}

.sidebar-link.active {
  background-color: var(--sale-gold-light);
  color: var(--on-primary-fixed);
  font-weight: 700;
}

.sidebar-link .material-symbols-outlined {
  font-size: 20px;
}

/* Main Content Area */
.content-area {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  height: 100%;
  background: var(--surface-white);
  z-index: 1200;
  box-shadow: var(--shadow-drawer);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--sale-gold);
  border-bottom: 1px solid var(--outline);
}

.drawer-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--on-primary-fixed);
}

.drawer-close-btn {
  color: var(--on-primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.drawer-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================================
   HERO BANNERS & PROMOTIONS
   ========================================================================== */
.hero-section {
  margin-bottom: 24px;
}

.hero-main-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform var(--transition-fast);
}

.hero-main-banner:hover {
  transform: scale(1.005);
}

.hero-main-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.promo-banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.promo-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.promo-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CATEGORY / BRAND FILTER PILLS
   ========================================================================== */
.filter-tags-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 16px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tags-container::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  background: var(--surface-white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  border-color: var(--sale-gold-dark);
  background: var(--surface-container-high);
}

.filter-pill.active {
  background: var(--on-primary-fixed);
  color: var(--sale-gold);
  border-color: var(--on-primary-fixed);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   PRODUCT SECTIONS & CARDS
   ========================================================================== */
.product-showcase-section {
  background: var(--sale-gold);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .product-showcase-section {
    padding: 24px;
  }
}

.product-showcase-section.alt-theme {
  background: var(--surface-container-high);
  border: 1px solid var(--outline);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--on-primary-fixed);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 24px;
  }
}

.section-subtitle-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--promo-red);
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: none;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product Card */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sale-gold-dark);
}

/* Card Badges */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  z-index: 2;
}

.card-badge.red {
  background: var(--promo-red);
  color: white;
}

.card-badge.gold {
  background: var(--sale-gold);
  color: var(--on-primary-fixed);
}

.card-badge.blue {
  background: var(--action-blue);
  color: white;
}

/* Product Image Box */
.product-image-box {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.product-image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.06);
}

/* Product Specs Chip */
.product-specs {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-gray);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  width: fit-content;
}

/* Product Name */
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.product-name:hover {
  color: var(--action-blue);
}

/* Pricing */
.product-pricing {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.product-price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--promo-red);
  line-height: 1.2;
}

.product-price-old {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subtle);
  text-decoration: line-through;
}

/* Product Rating */
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-gray);
  padding-top: 6px;
  margin-top: auto;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.rating-star {
  font-size: 13px;
  color: var(--sale-gold-dark);
}

/* Add to cart quick button */
.quick-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface-gray);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  background: var(--sale-gold);
  color: var(--on-primary-fixed);
  transform: scale(1.12);
}

.quick-add-btn:active {
  transform: scale(0.9);
}

.quick-add-btn .material-symbols-outlined {
  font-size: 16px;
}

/* Section Bottom CTA */
.section-footer-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-view-all {
  background: var(--on-primary-fixed);
  color: var(--sale-gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-view-all:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Empty search result message */
.no-results-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.no-results-msg .material-symbols-outlined {
  font-size: 48px;
  color: var(--outline);
  margin-bottom: 8px;
}

/* ==========================================================================
   SHOPPING CART MODAL & DRAWER
   ========================================================================== */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cart-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--surface-white);
  z-index: 2100;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  background: var(--sale-gold);
  border-bottom: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--on-primary-fixed);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  color: var(--on-primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
}

.cart-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface-gray);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--promo-red);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-color);
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--sale-gold-light);
}

.qty-display {
  font-size: 13px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  color: var(--text-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.cart-item-remove:hover {
  color: var(--promo-red);
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}

.cart-empty-state .material-symbols-outlined {
  font-size: 64px;
  color: var(--outline);
}

.cart-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--surface-white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.cart-total-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--promo-red);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--promo-red);
  color: white;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-fast);
}

.btn-checkout:hover {
  background-color: var(--promo-red-hover);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1024px) {
  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}

.toast {
  background: rgba(31, 27, 16, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  animation: toastIn 0.3s ease forwards;
}

.toast .material-symbols-outlined {
  color: var(--sale-gold);
  font-size: 18px;
}

@keyframes toastIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: var(--surface-white);
  border-top: 1px solid var(--outline-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

.bottom-nav-item .material-symbols-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 800;
}

.bottom-nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
  transform: scale(1.1);
}

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--promo-red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface-container-highest);
  color: var(--text-muted);
  border-top: 8px solid var(--surface-container);
  padding: 40px 16px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--action-blue);
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payment-chip {
  background: var(--surface-gray);
  border: 1px solid var(--outline-light);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--surface-gray);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--action-blue);
  color: white;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ==========================================================================
   ADMIN SHORTCUTS & PRO COMPONENTS
   ========================================================================= */
.admin-top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-container);
  color: var(--primary);
  border: 1px solid var(--outline);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.admin-top-link:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.sidebar-admin-box {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--outline-light);
}

.admin-btn-highlight {
  background: var(--surface-container-high) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border: 1px dashed var(--primary) !important;
}

.admin-btn-highlight:hover {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
}

/* Store Empty Notice */
.store-empty-notice {
  grid-column: 1 / -1;
  background: var(--surface-white);
  border: 2px dashed var(--outline);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-empty-notice h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.store-empty-notice p {
  color: var(--text-muted);
  max-width: 500px;
  font-size: 14px;
}

.btn-go-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--action-blue);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
  transition: transform var(--transition-fast);
}

.btn-go-admin:hover {
  background: var(--action-blue-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   STOREFRONT MODAL DIALOGS (CHECKOUT, SUCCESS, SPECS)
   ========================================================================== */
.modal-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-dialog-backdrop.open {
  display: flex;
}

/* Checkout Modal */
.checkout-modal-card {
  background: var(--surface-white);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-icon {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-icon:hover {
  color: var(--text-main);
}

.checkout-form-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.checkout-summary-box {
  background: var(--surface-gray);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.form-field-group {
  margin-bottom: 14px;
}

.form-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-field-group input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-field-group input:focus {
  border-color: var(--action-blue);
}

.payment-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option-card.active {
  border-color: var(--action-blue);
  background: #f0f7ff;
}

.payment-option-card small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.checkout-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-container);
  padding: 14px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-size: 15px;
  font-weight: 700;
}

.checkout-total-banner strong {
  color: var(--promo-red);
  font-size: 20px;
}

.btn-confirm-order {
  width: 100%;
  background: var(--promo-red);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.btn-confirm-order:hover {
  background: var(--promo-red-hover);
}

/* Success Order Modal */
.success-card {
  background: var(--surface-white);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  animation: modalPop 0.25s ease;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon-circle span {
  font-size: 36px;
}

.success-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.success-order-code-box {
  background: var(--surface-gray);
  border: 1px dashed var(--outline);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin: 16px 0;
}

.success-order-code-box strong {
  color: var(--action-blue);
  font-size: 16px;
}

.bank-instructions-box {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  font-size: 13px;
  margin-bottom: 16px;
}

.bank-instructions-box h5 {
  color: var(--action-blue);
  font-size: 14px;
  margin-bottom: 6px;
}

.success-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-continue-shopping {
  background: var(--primary-container);
  color: var(--on-primary-fixed);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

/* Product Detail Modal */
.product-detail-card {
  background: var(--surface-white);
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.product-detail-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-detail-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.product-detail-body {
  padding: 24px;
  overflow-y: auto;
}

.phone-detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .phone-detail-layout {
    grid-template-columns: 1fr;
  }
}

.phone-detail-img-box {
  background: var(--surface-gray);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
}

.phone-detail-img-box img {
  max-height: 100%;
  object-fit: contain;
}

.phone-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.phone-detail-price strong {
  font-size: 22px;
  color: var(--promo-red);
  font-weight: 800;
}

.phone-detail-price del {
  font-size: 14px;
  color: var(--text-subtle);
}

.phone-specs-table {
  background: var(--surface-gray);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 6px;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row span {
  color: var(--text-muted);
}

.spec-row strong {
  color: var(--text-main);
  text-align: right;
  max-width: 60%;
}

.phone-desc-box {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-detail-add-cart {
  width: 100%;
  background: var(--primary-container);
  color: var(--on-primary-fixed);
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-detail-add-cart:hover {
  background: var(--sale-gold-dark);
}
