/* ==========================================================================
   THIAFlow E-Commerce Design System & Base Styles
   Target: UASZ Campus, Ziguinchor (Senegal)
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-primary: #FAF7F3;
  --bg-secondary: #F4EFEA;
  --bg-surface: #FFFFFF;
  --bg-dark: #141110;

  --text-primary: #1A1615;
  --text-muted: #6E655F;
  --text-light: #A39B94;
  --text-white: #FFFFFF;

  --accent-coral: #D9583B;
  --accent-coral-hover: #C2472B;
  --accent-coral-light: #FBECE8;
  
  --accent-gold: #C89B3C;
  --accent-gold-light: #FAF3E6;
  
  --accent-sage: #2E7D5E;
  --accent-sage-light: #EBF4F0;

  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5A;
  --whatsapp-light: #E8F8EE;

  --border-light: #EBE5DF;
  --border-medium: #DCD3CB;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 22, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 22, 21, 0.07);
  --shadow-lg: 0 16px 36px rgba(26, 22, 21, 0.12);
  --shadow-float: 0 12px 32px rgba(37, 211, 102, 0.35);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

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

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

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

button {
  cursor: pointer;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 960px;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.heading-xl {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.heading-sm {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

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

.text-accent {
  color: var(--accent-coral);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background-color: var(--accent-coral-light);
  color: var(--accent-coral);
}

.badge-populaire {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
}

.badge-promo {
  background-color: #FEE2E2;
  color: #DC2626;
}

.badge-campus {
  background-color: var(--accent-sage-light);
  color: var(--accent-sage);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--accent-coral);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(217, 88, 59, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 88, 59, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

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

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.btn-dark:hover {
  background-color: #2D2624;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.4);
}

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

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Header & Announcement Bar */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 8px 16px;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.announcement-bar span {
  color: var(--accent-gold);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-coral);
  transition: width var(--transition-fast);
}

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

.nav-link.active {
  font-weight: 700;
  color: var(--accent-coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.header-icon-btn:hover {
  background-color: var(--bg-secondary);
}

.cart-badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent-coral);
  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 var(--bg-surface);
}

/* Burger Button */
.mobile-menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-trigger:hover {
  color: var(--accent-coral);
}

/* Hamburger lines */
.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.burger-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: all var(--transition-fast);
}

.burger-line:nth-child(1) { width: 22px; }
.burger-line:nth-child(2) { width: 15px; }
.burger-line:nth-child(3) { width: 19px; }

.mobile-menu-trigger:hover .burger-line:nth-child(2) {
  width: 22px;
}

/* Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 11, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.67, 0);
  overflow: hidden;
}

.mobile-drawer-overlay.active .mobile-drawer {
  transform: translateX(0);
  transition: transform 0.36s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-campus-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-sage);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-drawer-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Drawer scrollable content */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 20px;
  scrollbar-width: none;
}

.drawer-content::-webkit-scrollbar { display: none; }

.drawer-section {
  margin-bottom: 8px;
}

.drawer-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  padding: 10px 10px 6px;
}

/* Nav list */
.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.drawer-nav-item:hover {
  background: var(--bg-secondary);
}

.drawer-nav-item:active {
  background: var(--border-light);
}

.drawer-nav-item.active {
  background: var(--accent-coral-light);
  color: var(--accent-coral);
}

/* Icon pill */
.drawer-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.drawer-nav-item.active .drawer-item-icon {
  background: var(--accent-coral-light);
  border-color: rgba(217, 88, 59, 0.2);
}

.drawer-item-label {
  flex: 1;
  min-width: 0;
}

.drawer-item-arrow {
  color: var(--border-medium);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.drawer-nav-item:hover .drawer-item-arrow {
  color: var(--text-muted);
  transform: translateX(2px);
}

/* Badges */
.drawer-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.drawer-item-badge.badge-gift {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.drawer-cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--accent-coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav-highlight {
  border: 1px solid #FDE68A;
  background: #FFFBEB;
}

.drawer-nav-highlight:hover {
  background: #FEF3C7;
}

/* Divider */
.drawer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 10px;
}

/* Footer */
.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.drawer-whatsapp-btn {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.drawer-footer-note {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.45;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
  cursor: pointer;
}

.product-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 110%;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}


.product-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-coral);
}

.product-card-old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Modals & Quick View */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(20, 17, 16, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--border-medium);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--whatsapp-green);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.45);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-coral);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 70px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Hero Section Base */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: var(--accent-coral-light);
  color: var(--accent-coral);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-image-badge strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

.hero-image-badge span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Category Grid & Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.5s ease;
}

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

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px;
  background: linear-gradient(to top, rgba(20, 17, 16, 0.9) 0%, rgba(20, 17, 16, 0.4) 60%, transparent 100%);
  color: white;
}

.category-card-lg {
  grid-column: span 7;
}

.category-card-sm {
  grid-column: span 5;
}

/* Lifestyle Campus Section */
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lifestyle-image-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lifestyle-image-col img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* Checkout Page Grid & Cards */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

.checkout-card {
  background: var(--bg-surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.form-row-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

/* Cart Page Grid */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.cart-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  min-width: 0;
}

/* Cart Item Components */
.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto auto;
  grid-template-areas: "img info qty total remove";
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  min-width: 0;
}

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

.cart-item-image {
  grid-area: img;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background-color: var(--bg-body);
}

.cart-item-info {
  grid-area: info;
  min-width: 0;
  overflow: hidden;
}

.cart-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

.cart-item-category {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

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

.cart-item-qty {
  grid-area: qty;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.cart-item-qty-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s ease;
  user-select: none;
}

.cart-item-qty-btn:hover {
  color: var(--accent-coral);
}

.cart-item-qty-val {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 22px;
  text-align: center;
  user-select: none;
}

.cart-item-total {
  grid-area: total;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  min-width: 85px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.cart-item-remove-btn {
  grid-area: remove;
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove-btn:hover {
  color: #E53E3E;
  background: rgba(229, 62, 62, 0.08);
}

/* Shop Page Layout Grid */
.shop-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

