/* Premium E-Commerce Design System (Vanilla CSS) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.08);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  --text-main: #0f172a;
  --text-muted: #64748b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --font-family: 'Outfit', sans-serif;
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.04);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --btn-secondary-bg: rgba(0, 0, 0, 0.05);
  --btn-secondary-bg-hover: rgba(0, 0, 0, 0.1);
  --img-bg: #f1f5f9;
  --border-light: rgba(0, 0, 0, 0.05);
  --bg-control: rgba(0, 0, 0, 0.02);
  --bg-control-focus: rgba(0, 0, 0, 0.04);
  --timeline-line: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-bg-hover: rgba(255, 255, 255, 0.1);
  --img-bg: #182235;
  --border-light: rgba(255, 255, 255, 0.05);
  --bg-control: rgba(255, 255, 255, 0.02);
  --bg-control-focus: rgba(255, 255, 255, 0.05);
  --timeline-line: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth Page Entry Animation */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.6;
  animation: pageFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--btn-secondary-bg-hover);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Header & Navigation Bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5%;
  border-bottom: 1px solid var(--border-glass);
  gap: 1rem;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-glass);
}

/* Nav Menu (Desktop) */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: var(--btn-secondary-bg-hover);
  transform: scale(1.05);
}

/* Nav Item & Link */
.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.nav-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.nav-item:hover > .nav-link .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu (Desktop) */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  border-radius: 14px;
  list-style: none;
  padding: 0.5rem;
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 105;
}

/* Hover bridge to prevent closing on gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

@media (min-width: 901px) {
  .nav-item:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  position: relative;
}

.dropdown-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.dropdown-link:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

/* Submenu (Child Dropdown) */
.submenu {
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  min-width: 200px;
  border-radius: 14px;
  list-style: none;
  padding: 0.5rem;
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Hover bridge for submenu */
.submenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 8px;
  background: transparent;
}

.dropdown-item:hover > .submenu {
  display: block;
}

/* Mobile-only elements (hidden by default on desktop) */
.mobile-only {
  display: none !important;
}

/* Nav Actions (Cart, Auth, Social) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cart-icon-btn, .user-profile-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-btn:hover, .user-profile-btn:hover {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Social Icons in navbar */
.social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE NAVBAR (slide-out drawer)
   ══════════════════════════════════════════════ */

/* Mobile overlay backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  header.glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-secondary) !important;
    z-index: 201; /* Stack header and its menu drawer above nav-overlay */
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-glass);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    z-index: 200;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Disable inherited glassmorphism blur context to ensure text and buttons remain crisp and sharp */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Mobile drawer header */
  .nav-menu::before {
    content: 'MENU';
    display: block;
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
  }

  /* Close button inside drawer */
  .mobile-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 201;
    transition: var(--transition-smooth);
  }

  .mobile-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
  }

  .nav-menu.active ~ .mobile-close-btn,
  .nav-menu.active + .mobile-close-btn {
    display: flex;
  }

  /* Mobile nav links */
  .nav-menu .nav-item {
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-menu .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-menu .nav-link:hover {
    background: rgba(6, 182, 212, 0.06);
    padding-left: 1.75rem;
  }

  /* Mobile Dropdown */
  .nav-menu .dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    display: none;
    opacity: 1;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-glass);
  }

  .nav-item.mobile-open > .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-link {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-radius: 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
  }

  /* Mobile submenu */
  .nav-menu .submenu {
    position: static;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none;
  }

  .dropdown-item.mobile-open > .submenu {
    display: block;
  }

  /* Hide social icons and auth buttons from the main top navbar row on mobile (since they are now in the slide-out menu drawer) */
  .nav-actions .social-icons,
  .nav-actions #auth-actions {
    display: none !important;
  }

  /* Show mobile-only items inside the mobile drawer */
  .nav-menu .mobile-only {
    display: block !important;
  }

  .nav-menu .nav-auth-username span {
    color: var(--accent-cyan) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 1.25rem 1.5rem 0.5rem !important;
    border-bottom: none !important;
    background: transparent !important;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.6rem 4%;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-img {
    height: 34px;
    width: 34px;
  }

  .cart-icon-btn, .user-profile-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* Hero Section */
.hero-section {
  padding: 5rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 50vh;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Products Section */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.main-content {
  padding: 3rem 5%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card Entry Animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Card */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.09), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
  animation: cardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) ease-out forwards;
}

[data-theme="dark"] .product-card {
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 35px -5px rgba(6, 182, 212, 0.22), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-img-container {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--img-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

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

.product-card-details {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem; /* Reduced gap between name and price row */
  line-height: 1.3;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.product-name:hover {
  color: var(--accent-cyan);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Product Detail Page Layout */
.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.detail-img-box {
  border-radius: 24px;
  overflow: hidden;
  height: 480px;
  background: var(--img-bg);
  border: 1px solid var(--border-glass);
}

.detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-name {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.detail-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Attribute Selectors (Size & Color) */
.attribute-section {
  margin-bottom: 2rem;
}

.attribute-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.size-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-chip {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--btn-secondary-bg);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.size-chip:hover, .size-chip.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.color-selector {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.color-dot:hover, .color-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  border-color: #fff;
}

/* Quantity Counter */
.qty-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}

.qty-value {
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 45px;
  text-align: center;
}

/* Shopping Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  box-shadow: var(--shadow-premium);
  z-index: 200;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.cart-drawer.active {
  right: 0;
  background: #e2e5eb !important;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.close-cart-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-cart-btn:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--img-bg);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cart-item-meta span {
  margin-right: 8px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

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

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 190;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

/* Category Filter Layout */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .category-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-filters {
  padding: 1.5rem;
  border-radius: 20px;
  height: fit-content;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 0.6rem;
}

.filter-item label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

/* Auth Cards */
.auth-wrapper {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 440px;
  max-width: 90%;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.auth-tab.active {
  color: var(--text-main);
  border-bottom: 3px solid var(--accent-cyan);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-control);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: var(--bg-control-focus);
}

/* Order Pages & Dashboard */
.orders-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.order-card {
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.order-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.order-id {
  font-size: 1.15rem;
  font-weight: 700;
}

.order-date {
  color: var(--text-muted);
}

.order-status-badge {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-shipped { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.status-delivered { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-cancelled { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.order-items-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-item-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--img-bg);
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-info-text {
  display: flex;
  flex-direction: column;
}

.order-item-title {
  font-weight: 600;
}

.order-item-attributes {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Timeline status styling */
.timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--timeline-line);
  z-index: 1;
  transform: translateY(-50%);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--timeline-line);
  transition: var(--transition-smooth);
}

.timeline-step.active .timeline-dot {
  background: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-label {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.active .timeline-label {
  color: var(--accent-cyan);
}

/* Admin Orders Management Table */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  margin-top: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.admin-table th {
  background: var(--bg-control);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.admin-table tr:hover {
  background: var(--bg-control);
}

.select-status {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-status:focus {
  border-color: var(--accent-cyan);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 5%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5rem;
}

footer span {
  color: var(--accent-cyan);
}

/* Dynamic theme custom overrides */
.status-processing {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.theme-toggle-btn:hover {
  color: var(--accent-cyan) !important;
  transform: scale(1.15);
}

/* Custom search input override for themes */
#search-input {
  border: 1px solid var(--border-glass) !important;
  background: var(--bg-control) !important;
  color: var(--text-main) !important;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT MODAL & PRINT STYLING
   ═══════════════════════════════════════════════════════ */
.checkout-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.checkout-modal-overlay.active {
  display: flex;
}
.checkout-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-premium);
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
  padding: 2rem;
  position: relative;
  color: var(--text-main);
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.checkout-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-muted);
  cursor: pointer;
}
.checkout-modal-close:hover {
  color: var(--danger);
}
.admin-order-details-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  font-size: 0.9rem;
}
.admin-order-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.admin-order-details-table th, .admin-order-details-table td {
  padding: 6px 8px;
  border-bottom: 1px dashed var(--border-glass);
  font-size: 0.85rem;
}
.admin-order-details-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}

/* Print Slip Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #print-slip-area, #print-slip-area * {
    visibility: visible;
  }
  #print-slip-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
    padding: 20px;
  }
  .no-print {
    display: none !important;
  }
}
.order-card,.product-card{
box-shadow: 0 4px 15px rgb(139 133 133 / 22%);
}

.social-icons a {
    text-decoration: none;
    margin: 0 4px;
}

.social-icons a i {
    color: #1fa0db;
    font-size: 18px;
    transition: 0.3s;
}

.social-icons a:hover i {
    color: #0d6efd;
    transform: scale(1.2);
}

.slide-price{
  color:white !important;
}
.product-detail-desc{
    white-space: pre-wrap;
}
.prev,.next{
      background: #5176ec !important;
}

/* ── Web Notifications UI ── */
.notif-wrapper {
  position: relative;
  display: inline-block;
}
.notif-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 4px;
}
.notif-btn:hover {
  background: var(--btn-secondary-bg-hover);
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  max-height: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.notif-dropdown.show {
  display: flex;
}
.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
}
.notif-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.notif-mark-all:hover {
  text-decoration: underline;
}
.notif-list {
  overflow-y: auto;
  max-height: 360px;
  display: flex;
  flex-direction: column;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.notif-item:hover {
  background: var(--btn-secondary-bg);
}
.notif-item.unread {
  background: rgba(6, 182, 212, 0.05);
}
.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.notif-item-content {
  flex: 1;
}
.notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.notif-item-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.notif-item-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  margin-top: 6px;
  flex-shrink: 0;
}
.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

