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

/* ==========================================
   DESIGN SYSTEM – MARKETPLACE LIGHT THEME
   Inspired by soumari.com / Martfury
   ========================================== */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Core Colors */
  --primary: #e53935;
  --primary-hover: #c62828;
  --primary-light: #ffebee;
  --primary-dark: #b71c1c;

  --secondary: #1565c0;
  --secondary-light: #e3f2fd;

  --accent: #ff6f00;
  --accent-light: #fff3e0;

  /* Backgrounds */
  --bg-page: #f5f6fb;
  --bg-white: #ffffff;
  --bg-gray: #f0f1f6;
  --bg-dark: #1a1f36;
  --bg-footer: #1e2140;

  /* Text */
  --text-dark: #1a1a2e;
  --text-body: #444;
  --text-muted: #888;
  --text-light: #bbb;
  --text-white: #ffffff;

  /* Borders */
  --border: #e0e0e0;
  --border-light: #f0f0f0;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 28px rgba(229, 57, 53, 0.18);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-circle: 50%;

  --container-width: 1280px;
  --header-h: 56px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

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

@media (max-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

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

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

@media (max-width: 480px) {

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

.flex {
  display: flex;
  gap: 16px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.text-red {
  color: var(--primary);
}

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

.section-padding {
  padding: 48px 0;
}

/* ==========================================
   TOP BAR (above header)
   ========================================== */
.top-bar {
  background-color: var(--primary);
  color: var(--text-white);
  font-size: 12.5px;
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left span,
.top-bar-left a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.top-bar-left a:hover {
  color: #fff;
  text-decoration: underline;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar-right a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .top-bar-left span:not(:first-child) {
    display: none;
  }

  .top-bar-right {
    gap: 10px;
  }
}

/* ==========================================
   HEADER MAIN
   ========================================== */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Search Bar */
.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 600px;
}

.header-search input {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search select {
  padding: 10px 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-gray);
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  display: none;
  /* Hidden on mobile, shown on desktop */
}

.header-search button {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.header-search button:hover {
  background: var(--primary-hover);
}

.header-search button svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dark);
  position: relative;
}

.header-action-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-action-btn .action-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* Cart specific */
.cart-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-icon-wrapper:hover {
  background: var(--primary-hover);
}

.cart-icon-wrapper svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.cart-icon {
  fill: #fff;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cart-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.cart-count-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ==========================================
   NAV CATEGORIES BAR
   ========================================== */
.nav-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

/* All Categories button */
.nav-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  border: none;
  flex-shrink: 0;
}

.nav-categories-btn:hover {
  background: var(--primary-hover);
}

.nav-categories-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Nav menu links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--primary);
}

.nav-link-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Mobile hamburger */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--text-dark);
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-dark);
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
  }

  .header-search select {
    display: none;
  }

  .header-action-btn .action-label {
    display: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    z-index: 300;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
  }
}

/* ==========================================
   HERO BANNER
   ========================================== */
.hero {
  background: linear-gradient(120deg, #e53935 0%, #b71c1c 40%, #1a237e 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 340px;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero-content {
  padding: 48px 40px 48px 0;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 32px 0;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center !important;
  }
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
}

.hero-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 440px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-description {
    margin: 0 auto 24px;
  }
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  padding: 20px 0 0 0;
  overflow: hidden;
}

.hero-image-container img {
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .hero-image-container {
    display: none;
  }
}

/* Promo Banner Strip */
.promo-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.promo-strip-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.promo-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.promo-item:last-child {
  border-right: none;
}

.promo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.promo-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.promo-text h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.promo-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

@media (max-width: 900px) {
  .promo-strip-inner {
    flex-wrap: wrap;
  }

  .promo-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .promo-item {
    min-width: 100%;
  }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.section-line {
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.view-all-link:hover {
  background: var(--primary);
  color: #fff;
}

.view-all-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================
   CATEGORY CARDS
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

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

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

@media (max-width: 380px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.12);
  transform: translateY(-3px);
}

.category-icon-box {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: var(--transition);
}

.category-card:hover .category-icon-box {
  background: var(--primary);
  transform: scale(1.08);
}

.category-info h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.category-info p {
  font-size: 10px;
  color: var(--text-muted);
  display: none;
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.product-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: #ddd;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
  letter-spacing: 0.3px;
}

.product-badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  padding: 8px;
}

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

/* Quick action buttons on hover */
.product-image-box .quick-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.06));
  transition: var(--transition);
}

.product-card:hover .quick-actions {
  bottom: 0;
}

.product-details {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #f59e0b;
}

.product-rating .reviews {
  color: var(--text-muted);
  font-size: 11px;
}

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

.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

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

.btn-add-cart-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  flex-shrink: 0;
}

.btn-add-cart-icon:hover {
  background: var(--primary-hover);
  transform: scale(1.08);
}

.btn-add-cart-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-family: var(--font-body);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

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

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

.btn-dark:hover {
  background: #252b4a;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================
   SEARCH BAR (mobile header)
   ========================================== */
.search-bar-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
}

/* ==========================================
   FEATURES / WHY CHOOSE US
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.1);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
  background: var(--primary);
  color: #fff;
}

.feature-icon-wrapper svg {
  fill: currentColor !important;
}

.feature-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ==========================================
   PRODUCTS PAGE – LAYOUT
   ========================================== */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: flex-start;
}

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

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 80px;
}

@media (max-width: 900px) {
  .filter-sidebar {
    position: static;
    top: auto;
  }
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}

.filter-group {
  margin-bottom: 20px;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-label:hover {
  color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Price range */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range-inputs input {
  width: 90px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-dark);
  background: #fff;
}

.price-range-inputs input:focus {
  border-color: var(--primary);
}

/* Products Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.products-count {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-dark);
  background: #fff;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--primary);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  fill: var(--border);
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1.5px solid var(--border-light);
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.detail-image-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-light);
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.detail-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.detail-rating .stars {
  color: #f59e0b;
  font-size: 16px;
}

.detail-rating .count {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-price-box {
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
}

.detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.detail-price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detail-stock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.stock-label {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.divider {
  height: 1px;
  background: var(--border-light);
}

.detail-description {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.detail-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-body);
}

.detail-features-list li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Quantity */
.qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-gray);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-dark);
  transition: var(--transition-fast);
  border: none;
}

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

.qty-input {
  width: 52px;
  height: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-dark);
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

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

.specs-table td {
  padding: 10px 12px;
}

.specs-table td.label {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
  background: var(--bg-gray);
}

.specs-table td.value {
  color: var(--text-dark);
}

/* Tabs */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  padding: 20px 0;
}

.tab-panel.active {
  display: block;
}

/* ==========================================
   CART PAGE
   ========================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: flex-start;
}

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

.cart-table-wrapper {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-gray);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.cart-item:hover {
  background: var(--bg-page);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  object-fit: contain;
  flex-shrink: 0;
  padding: 4px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-name a:hover {
  color: var(--primary);
}

.cart-item-cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.cart-item-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  color: var(--text-muted);
}

.cart-remove-btn:hover {
  background: #fee2e2;
  color: var(--primary);
}

.cart-remove-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cart-summary {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 80px;
}

.cart-summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
}

.summary-row.total .amount {
  color: var(--primary);
  font-size: 20px;
}

/* Shipping zones */
.shipping-zone-select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-dark);
  background: #fff;
  margin-top: 8px;
  cursor: pointer;
}

.shipping-zone-select:focus {
  border-color: var(--primary);
}

/* Checkout form */
.checkout-form-group {
  margin-bottom: 14px;
}

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

.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition-fast);
}

.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

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

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: inline-block;
}

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

.footer-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.8);
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* Payment logos strip */
.payment-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-logo {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ==========================================
   FLASH SALE COUNTDOWN
   ========================================== */
.flash-sale-section {
  background: linear-gradient(135deg, #1a1f36 0%, #2d1b69 100%);
  padding: 32px 0;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.flash-badge {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-block {
  background: #fff;
  color: var(--text-dark);
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  min-width: 44px;
}

.countdown-block span {
  display: block;
}

.countdown-block .num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.countdown-block .lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-sep {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  font-weight: 700;
}

/* ==========================================
   BRAND LOGOS SECTION
   ========================================== */
.brands-strip {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.brands-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-item {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.brand-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================
   TOAST / NOTIFICATION
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  max-width: 340px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s 2.7s ease forwards;
  border-left: 4px solid var(--primary);
}

.toast svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ==========================================
   MISC / PAGE SPACING
   ========================================== */
.page-section {
  padding: 32px 0;
}

.white-box {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   MOBILE & RESPONSIVE REFINEMENTS (NBS SHOP REDESIGN)
   ========================================================================== */

@media (max-width: 768px) {

  /* 1. Top Bar Optimization */
  .top-bar {
    padding: 6px 0;
    font-size: 11.5px;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }

  .top-bar-left span:nth-child(2),
  .top-bar-left span:nth-child(3) {
    display: none !important;
    /* Hide secondary top-bar texts to fit on mobile */
  }

  .top-bar-right {
    display: none !important;
    /* Hide duplicate links */
  }

  /* 2. Responsive Header Row wrapping */
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .logo {
    order: 1;
    font-size: 22px;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 12px;
  }

  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .header-search input {
    padding: 8px 12px;
    font-size: 13px;
  }

  .header-search button {
    padding: 8px 14px;
    font-size: 0;
    /* Hide text 'Rechercher' on mobile, show only icon */
  }

  .header-search button svg {
    margin: 0;
    width: 18px;
    height: 18px;
  }

  /* 3. Floating Mobile Cart Badge */
  .cart-icon-wrapper {
    position: relative;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    background: var(--primary-light);
    color: var(--primary);
  }

  .cart-icon-wrapper svg {
    fill: var(--primary) !important;
    margin: 0;
    width: 22px;
    height: 22px;
  }

  .cart-info {
    position: static;
  }

  .cart-label {
    display: none !important;
  }

  .cart-count-text {
    font-size: 0 !important;
    /* Hide text ' articles' */
  }

  .cart-badge,
  #cart-badge-count {
    display: flex !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: var(--radius-circle) !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2.5px solid #fff !important;
    padding: 0 !important;
  }

  /* 4. Hamburger button display */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
  }

  /* 5. Sticky Bottom Action Buttons in Product Details Page */
  .detail-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    border-top: 1px solid var(--border);
  }

  .detail-actions .btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 13.5px;
    margin: 0;
  }

  body.has-sticky-actions {
    padding-bottom: 72px;
    /* Prevent footer text collision */
  }
}

@media (max-width: 600px) {

  /* 6. Card-based Cart List on Mobile (prevents table overflow) */
  .cart-table-header {
    display: none !important;
    /* Hide grid headers on mobile */
  }

  .cart-item {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    gap: 6px 12px !important;
    padding: 16px !important;
    position: relative !important;
    align-items: start !important;
    border-bottom: 1.5px solid var(--border-light);
  }

  .cart-item-info {
    grid-column: 1 / -1 !important;
    margin-bottom: 6px;
  }

  .cart-item-img {
    grid-column: 1 !important;
    grid-row: 2 / span 3 !important;
    width: 72px !important;
    height: 72px !important;
  }

  .cart-item-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 13.5px !important;
  }

  .cart-item-price::before {
    content: "Prix : ";
    font-weight: 500;
    color: var(--text-muted);
  }

  /* Quantity wrapper */
  .cart-item>div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex;
    justify-content: flex-start;
    margin-top: 2px;
  }

  .cart-item-total {
    grid-column: 2 !important;
    grid-row: 4 !important;
    font-size: 14.5px !important;
    color: var(--primary) !important;
  }

  .cart-item-total::before {
    content: "Total : ";
    font-weight: 500;
    color: var(--text-muted);
  }

  .cart-remove-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: #fee2e2 !important;
    color: var(--primary) !important;
  }

  .cart-layout {
    gap: 16px;
  }

  /* 7. Grid Padding refinements */
  .container {
    padding: 0 16px;
  }

  .grid {
    gap: 12px;
  }

  .section-padding {
    padding: 32px 0;
  }
}

@media (max-width: 480px) {

  /* 8. Extra Compact Product Cards on Mobile (2 columns fit perfectly) */
  .product-image-box {
    height: 140px !important;
    padding: 8px !important;
  }

  .product-details {
    padding: 10px 8px !important;
  }

  .product-name {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-cat {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }

  .product-rating {
    font-size: 11px !important;
    gap: 2px !important;
    margin-bottom: 6px !important;
  }

  .product-rating .reviews {
    display: none;
    /* Hide reviews count on very small screens to fit star rating */
  }

  .product-price {
    font-size: 13.5px !important;
  }

  .btn-add-cart-icon {
    width: 26px !important;
    height: 26px !important;
  }

  .btn-add-cart-icon svg {
    width: 14px;
    height: 14px;
  }

  /* 9. Hero banner button stacking */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0 16px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

/* ==========================================
   CART & DELIVERY CUSTOM ADDITIONS
   ========================================== */

/* Segmented delivery selection buttons */
.delivery-options-container {
  margin-bottom: 20px;
}

.delivery-options-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.delivery-options-selector {
  display: flex;
  gap: 12px;
}

.delivery-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.delivery-type-btn:hover {
  border-color: var(--primary);
  background: var(--bg-page);
}

.delivery-type-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.delivery-type-btn .btn-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.delivery-type-btn .btn-label {
  font-size: 13.5px;
  font-weight: 700;
}

.delivery-type-btn .btn-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.delivery-type-btn.active .btn-desc {
  color: var(--primary-dark);
  opacity: 0.8;
}

/* Conditional visibility transition classes */
.shipping-conditional-fields {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
}

.shipping-conditional-fields.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.shipping-conditional-fields.expanded {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 14px;
}

/* Order summary modal/receipt style */
.order-receipt {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin: 16px 0 24px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 13.5px;
}

.receipt-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  border-bottom: 1.5px dashed var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.receipt-section {
  margin-bottom: 14px;
}

.receipt-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-body);
}

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

.receipt-row strong {
  color: var(--text-dark);
  font-weight: 600;
}

.receipt-items {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.receipt-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
  color: var(--text-dark);
  font-weight: 500;
}

.receipt-item-total {
  font-weight: 600;
  color: var(--text-dark);
}

.receipt-totals {
  border-top: 1.5px dashed var(--border);
  padding-top: 8px;
}

.receipt-totals .receipt-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

.receipt-totals .receipt-row.total span {
  color: var(--primary);
  font-weight: 800;
}

/* Modal customization */
#success-modal .modal-content {
  max-width: 520px;
  padding: 30px;
}