/* URBN MODA - Modern Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Modern, Sharp, Premium */
  --primary: #1a1a1a;
  --primary-light: #333333;
  --accent: #FF4D4D;
  /* Bold Action Color */
  --accent-hover: #e60000;

  --bg-body: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-dark: #121212;

  --text-main: #1a1a1a;
  --text-muted: #666666;
  --text-light: #f8f9fa;

  --border-color: #e5e5e5;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 1.5rem;
  /* 24px */
  --spacing-lg: 2.5rem;
  /* 40px */
  --spacing-xl: 4rem;
  /* 64px */

  /* Layout */
  --container-width: 1200px;
  --header-height: 120px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Admin Layout */
  --sidebar-width: 280px;
  --sidebar-bg: #1a1a1a;
  --sidebar-text: #ffffff;
  --admin-header-height: 70px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

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

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

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

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background-color: var(--accent);
  color: white;
}

.btn-danger:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.badge-admin {
  background-color: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
}

/* Interactive Badges Animation */
span[onclick].badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  filter: brightness(0.95);
}

span[onclick].badge:active {
  transform: translateY(0) scale(0.98);
}

/* Header & Nav */
header {
  height: 90px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

header .container.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-img {
  height: 130px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-text {
  display: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

@media (max-width: 992px) {
  .logo-img {
    display: none;
  }

  .logo-text {
    display: block;
  }
}



.logo {
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

/* Mobile Nav Items hidden on Desktop */
@media (min-width: 993px) {
  .mobile-nav-item {
    display: none;
  }
}

.mobile-nav-item.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem 0;
  width: 100%;
}

.mobile-nav-item.user-welcome span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

/* Style for all links in mobile menu */
@media (max-width: 992px) {
  .main-nav a {
    font-size: 1.1rem !important;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    color: var(--text-main) !important;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background-color: #f5f5f5;
    color: var(--primary) !important;
  }

  .mobile-nav-item a.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
  }

  .mobile-nav-item a.text-danger:hover {
    background-color: #fff5f5;
  }
}


.main-nav a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link-item {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

/* Main Nav Links */
.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-link-item:hover {
  color: var(--accent);
}

.cart-icon {
  transition: transform 0.2s ease, color 0.2s ease;
  display: block;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-link:hover .cart-icon {
  transform: translateY(-2px);
}

.user-menu-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.user-greeting {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Dashboard Button Style */
.dashboard-btn {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.dashboard-btn:hover {
  background-color: black;
  transform: translateY(-1px);
}

.btn-outline-danger {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

.btn-outline-danger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 2002;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 3001;
  /* Above nav */
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 992px) {
  .mobile-nav-toggle {
    display: block;
    order: 3;
    /* Sandwich Right */
  }

  .logo {
    order: 2;
    /* Logo Center */
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-actions {
    gap: 0.5rem;
    order: 1;
    /* Panel Left */
  }

  .user-menu-group {
    display: none !important;
  }

  .auth-btn {
    display: none !important;
  }

  .user-menu-group {
    border-left: none;
    padding-left: 0;
  }

  .user-greeting {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 100px 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3000;
    /* Ensure it's above chat widget */
    display: block;
    overflow-y: auto;
    /* Handle small screens/landscape */
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.25rem;
    color: var(--text-main);
  }

  .nav-actions .user-greeting {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-actions .auth-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.no-scroll {
  overflow: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  animation-delay: calc(var(--i, 0) * 100ms);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Enhanced Hero Section */
.hero {
  position: relative;
  padding: 5rem 0;
  background-color: var(--bg-dark);
  color: white;
  text-align: center;
  overflow: hidden;

}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 77, 77, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;

  line-height: 1.1;
  background: -webkit-linear-gradient(45deg, #fff, #a3a3a3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.35rem;
  color: #a0a0a0;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.features-section {
  padding: var(--spacing-xl) 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.feature-card {
  padding: var(--spacing-md);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}


.feature-icon-wrapper {
  margin-bottom: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 64px;
  background: rgba(255, 77, 77, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(255, 77, 77, 0.2);
  transform: scale(1.1);
}

.feature-icon-wrapper svg {
  transition: transform 0.3s ease;
}


/* Category Banners */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.cat-banner {
  position: relative;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  text-decoration: none;
  color: white;
}

.cat-banner img {
  position: absolute;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  transition: transform 0.5s ease;
}

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

.cat-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.cat-banner h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Newsletter */
.newsletter-section {
  padding: 5rem 0;
  background: var(--primary);
  color: white;
  text-align: center;
  margin-top: var(--spacing-xl);
}

.newsletter-box {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {

  .features-section {
    padding: var(--spacing-md) 0;
  }

  .features-section .container {
    padding: 0 var(--spacing-xs);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    align-items: start;
  }

  /* Specific fix for small screens (Androids) */
  @media (max-width: 480px) {
    .features-grid {
      gap: 1.5rem;
    }

    .feature-card {
      padding: 1rem;
      flex-direction: row;
      text-align: left;
      gap: 1rem;
    }

    .feature-card h3 {
      font-size: 1rem;
      margin-bottom: 0.25rem;
    }

    .feature-card p {
      font-size: 0.9rem;
      -webkit-line-clamp: unset;
      line-clamp: unset;
    }

    .feature-icon-wrapper {
      width: 40px;
      height: 40px;
      margin-bottom: 0;
    }
  }

  .feature-card {
    padding: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-card h3 {
    font-size: 0.65rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .feature-card p {
    font-size: 0.55rem;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
  }

  .feature-icon-wrapper {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
  }

  .feature-icon-wrapper svg {
    width: 14px;
    height: 14px;
  }

  .category-showcase {
    gap: var(--spacing-md);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }


}

/* Modern Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Force 3 columns */
  gap: 2rem;
  padding: var(--spacing-md) 0;
}

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

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: white;
  border-radius: 0;
  /* Sharp edges for premium feel, or keeping sm radius */
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.05);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 320px;
}

.product-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  margin-bottom: 0;
  border-radius: 0;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 1.2rem;
  text-align: left;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Product Details */
.product-details-container {
  padding: var(--spacing-xl) 1rem;
  /* Added horizontal padding */
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "image header"
    "image info";
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-xl);
}

.product-header {
  grid-area: header;
}

.product-left {
  grid-area: image;
}

.product-detail-info {
  grid-area: info;
}

.product-gallery {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s;
  flex-shrink: 0;
}

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

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

/* Sidebar Variants */
.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.back-link {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  cursor: pointer;
}

.back-link:hover {
  color: var(--primary);
}

.variants-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.variant-thumb {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
}

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

.variant-thumb:hover {
  opacity: 1;
}

.variant-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}


/* Main Content */
.product-detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-height: 600px;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.price-tag {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  display: block;
}

/* Description Section */
.product-description-section {
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.product-description-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

/* Similar Products */
.similar-products-section {
  padding-bottom: var(--spacing-xl);
}

.similar-products-section h3 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.8rem;
}

/* Responsive Details */
@media (max-width: 768px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "image"
      "info";
    gap: var(--spacing-lg);
  }

  .product-sidebar {
    flex-direction: row;
    order: -1;
    margin-bottom: var(--spacing-md);
  }

  .variants-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .back-link {
    display: none;
    /* Hide back link on mobile if prefer space */
  }
}

/* Forms (Login/Register) */
.auth-container {
  max-width: 400px;
  margin: var(--spacing-xl) auto;
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Cart & Checkout */
.cart-container-box {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
}

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

.cart-table th {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  display: block;
}

.cart-item-price,
.cart-item-total {
  font-weight: 500;
}

.cart-item-total {
  font-weight: 700;
  color: var(--primary);
}

/* Quantity Counter */
.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f9f9f9;
  color: var(--text-main);
  font-weight: 600;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #eee;
}

.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 500;
}

.cart-total-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.empty-cart-state {
  padding: 6rem 20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #a0a0a0;
}

.footer-col a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid #333;
  padding-top: var(--spacing-md);
  text-align: center;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
  }

  header .container.header-container {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 0;
  }

  header {
    height: 80px;
    overflow: visible;
  }
}

/* Modern Chatbot Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  font-family: 'Outfit', sans-serif;
}

.chat-toggle {
  width: auto;
  min-width: 140px;
  height: 54px;
  padding: 0 1.5rem;
  border-radius: 27px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(255, 77, 77, 0.3);
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 77, 77, 0.4);
}

.chat-window {
  position: absolute;
  bottom: calc(100% + 1.5rem);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 4rem);
  height: 470px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.chat-widget.open .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #333 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.chat-header .status-dot {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.close-chat {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.message {
  max-width: 80%;
  padding: 0.8rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  animation: messageIn 0.3s ease-out forwards;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 16px rgba(255, 77, 77, 0.2);
}

.chat-input-area {
  padding: 1.2rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chat-input-area input {
  flex: 1;
  border: 1px solid #eee;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-input-area .send-btn {
  background: var(--accent);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-input-area .send-btn:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    height: 450px;
  }

  .chat-toggle {
    min-width: 54px;
    width: 54px;
    padding: 0;
    justify-content: center;
  }

  .chat-toggle span {
    display: none;
  }
}

/* ==========================================================================
   Admin Layout Styles
   ========================================================================== */

.admin-body {
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
  max-width: 180px;
  max-height: 160px;
  object-fit: contain;
  filter: invert(1);
}

.sidebar-nav {
  flex: 1;
  padding: 2rem 0;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
  gap: 1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-left: 4px solid var(--accent);
}

.nav-icon {
  font-size: 1.2rem;
}

.sidebar-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ff4d4d;
  font-weight: 500;
}

.admin-main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-top-bar {
  height: var(--admin-header-height);
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.top-bar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-content-area {
  padding: 2rem;
  flex: 1;
}

/* Responsive Admin Layout */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: none;
    width: 60px;
    z-index: 1000;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.3s ease;
  }

  .admin-sidebar:hover {
    width: 280px;
  }

  .admin-sidebar:not(:hover) .sidebar-logo,
  .admin-sidebar:not(:hover) .nav-label,
  .admin-sidebar:not(:hover) .sidebar-footer span:last-child {
    display: none;
  }

  .admin-sidebar:not(:hover) .sidebar-header {
    padding: 1rem 0.5rem;
    text-align: center;
  }

  .admin-sidebar:not(:hover) .sidebar-nav a {
    justify-content: center;
    padding: 0.8rem 0;
  }

  .admin-sidebar:not(:hover) .nav-icon {
    margin: 0;
  }

  .admin-main-wrapper {
    margin-left: 60px;
  }

  .admin-top-bar {
    padding-left: 2rem;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* New Homepage Sections */

/* About Section */
.about-section {
  padding: var(--spacing-xl) 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured Products Header */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-section {
  padding: var(--spacing-xl) 0;
  background: #f9f9f9;
  margin-top: var(--spacing-xl);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.testimonial-stars {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1617922001439-4a2e6562f328?w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
  color: white;
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-lg);
}

.promo-banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.promo-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .promo-banner h2 {
    font-size: 2rem;
  }
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Category Slider */
.category-slider-section {
  padding: var(--spacing-xl) 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.physics-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.physics-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  pointer-events: none;
}

.category-slider {
  display: flex;
  overflow-x: auto;
  gap: var(--spacing-md);
  padding: 1rem 0 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

/* Emoji Card Styles */
.category-card {
  min-width: 160px;
  height: 120px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.category-card:hover .category-emoji {
  transform: scale(1.2);
}

.category-card h3 {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Desktop Horizontal Layout */
@media (min-width: 1024px) {
  .category-slider {
    flex-wrap: wrap;
    /* Allow wrapping to form rows */
    justify-content: center;
    /* Center items */
    overflow-x: visible;
    /* Disable scroll */
    gap: 1.5rem;
  }

  .category-card {
    min-width: 180px;
    height: auto;
    padding: 1.5rem;
    flex-direction: row;
    /* Horizontal layout: Emoji - Text */
    gap: 1rem;
  }

  .category-emoji {
    margin-bottom: 0;
    font-size: 2.5rem;
  }

  .category-card h3 {
    font-size: 1.1rem;
  }
}

/* Product Carousel Styles */
.products-wrapper {
  position: relative;
  padding: 0 var(--spacing-md);
}

.featured-products-carousel {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  /* Space for shadow/hover */
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.featured-products-carousel::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.featured-products-carousel .product-card {
  min-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  margin: 0;
}

.featured-products-carousel .product-image-container {
  height: 350px;
}

@media (max-width: 768px) {
  .featured-products-carousel {
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .featured-products-carousel .product-card {
    min-width: calc((100% / 3) - 0.5rem) !important;
    flex: 0 0 calc((100% / 3) - 0.5rem) !important;
    scroll-snap-align: center;
  }

  .featured-products-carousel .product-image-container {
    height: 110px !important;
  }

  .featured-products-carousel .product-info {
    padding: 0.5rem;
  }

  .featured-products-carousel .product-category {
    display: none;
  }

  .featured-products-carousel .product-info h3 {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }

  .featured-products-carousel .product-price {
    font-size: 0.75rem;
  }

  .products-wrapper {
    padding: 0 0.5rem;
  }
}

/* --- Cart Page Styles --- */
.cart-hero {
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.cart-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.cart-container-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 3rem;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.cart-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

/* Mobile Cart - Card Layout */
@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
  }

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

  /* Add labels for Price and Total */
  .cart-table td:nth-of-type(2)::before {
    content: "Prix Unitaire";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .cart-table td:nth-of-type(3)::before {
    content: "Quantité";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .cart-table td:nth-of-type(4)::before {
    content: "Total";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  /* Buttons Stack */
  .cart-container-box+div.flex {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-container-box+div.flex a {
    width: 100%;
    text-align: center;
  }
}


.cart-item-image {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cart-item-name {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.cart-item-price,
.cart-item-total {
  font-weight: 500;
  font-size: 1.1rem;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  border: 1px solid var(--border-color);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-value {
  padding: 0 1rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.cart-summary {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.cart-total-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.empty-cart-state {
  padding: 8rem 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
  margin: 4rem 0;
}

.empty-cart-state div {
  font-size: 5rem;
  margin-bottom: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* --- Checkout Page Styles --- */
.checkout-hero {
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.checkout-items-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.checkout-items-list::-webkit-scrollbar {
  width: 4px;
}

.checkout-items-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

/* Coupon & Dynamic Shipping Styles */
.coupon-section {
  transition: all 0.3s ease;
  border: 1px dashed var(--border-color) !important;
}

.coupon-section:focus-within {
  border-color: var(--primary) !important;
  background-color: rgba(0, 0, 0, 0.01) !important;
}

#shipping-display {
  transition: color 0.3s ease;
}

.checkout-summary-section .card {
  position: sticky;
  top: 2rem;
}

/* --- Products Page Styles --- */
.admin-hero {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-container {
  max-width: 1200px;
  margin: -3rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.table-card {
  background: white;
  margin-top: 50px;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.products-hero {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

.filters-sidebar {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: sticky !important;
  top: 110px !important;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

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

.filter-title {
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.filter-list li {
  margin-bottom: 0.5rem;
}

.filter-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.filter-list a:hover {
  color: var(--accent);
}

.active-filter {
  font-weight: bold;
  color: var(--accent) !important;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  color: white;
  text-transform: uppercase;
}

.stock-badge.in-stock {
  background-color: #28a745;
}

.stock-badge.out-stock {
  background-color: #dc3545;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.product-image-container:hover .slider-btn {
  display: flex;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: white;
}

.empty-catalog {
  text-align: center;
  padding: 5rem 2rem;
  background: white;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.empty-catalog-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Mobile Products Styles */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

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

  .mobile-filter-toggle {
    display: flex;
  }

  .filters-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 300px;
    height: 100vh;
    max-height: 100vh;
    z-index: 3000;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transform: none;
    align-self: auto;
  }

  .filters-sidebar.active {
    left: 0 !important;
  }

  .filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
  }

  .filters-overlay.active {
    display: block;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .products-grid .product-card .product-image-container {
    height: 180px !important;
  }

  .products-grid .product-info {
    padding: 0.75rem;
  }

  .products-grid .product-info h3 {
    font-size: 0.85rem;
  }

  .products-grid .product-price {
    font-size: 0.9rem;
  }

  .products-grid .product-category {
    font-size: 0.65rem;
  }
}

/* --- Product Details Page Styles --- */
.price-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.current-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.discount-badge {
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
}

.size-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.size-box {
  border: 1px solid #ddd;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
}

.size-box:hover {
  border-color: #000;
}

.size-box.active {
  border-color: #000;
  background-color: #000;
  color: #fff;
}

.size-box.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f9f9f9;
  border-color: #eee;
  color: #aaa;
  text-decoration: line-through;
}

/* Pd Features Overrides */
.pd-features {
  padding: 2rem 0;
  background: transparent;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.pd-features .features-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.pd-features .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.pd-features .feature-card:hover {
  transform: none;
}

.pd-features .feature-icon-wrapper {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.pd-features .feature-card h3 {
  margin-bottom: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pd-features .feature-card p {
  font-size: 0.7rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .product-detail-info h1 {
    font-size: 2rem !important;
    margin-top: 1rem;
  }

  .current-price {
    font-size: 1.5rem !important;
  }

  .product-gallery {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .gallery-thumb {
    width: 60px !important;
    height: 60px !important;
  }

  .size-boxes-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
  }

  .size-box {
    padding: 8px 5px !important;
    font-size: 0.85rem !important;
  }

  .product-description-section {
    margin-bottom: 3rem;
    padding: var(--spacing-lg) 0;
  }
}

/* Read More Styles */
.description-content {
  position: relative;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.description-content.expanded {
  max-height: 1000px;
}

.description-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, white);
  transition: opacity 0.3s;
}

.description-content.expanded::after {
  opacity: 0;
  pointer-events: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}