/* ============================================================
   AFRICAN MARKET STORE - CSS Principal
   ============================================================ */

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

:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-light: #fed7aa;
  --green: #16a34a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--gray-900); background: var(--gray-50); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); border: none; padding: .6rem 1.2rem; border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.btn-secondary:hover { background: var(--gray-300); }
.btn-ghost { background: none; border: none; cursor: pointer; color: var(--gray-600); padding: .5rem; border-radius: 8px; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: 6px; background: var(--gray-200); border: none; cursor: pointer; }
.btn-sm:hover { background: var(--gray-300); }
.btn-sm.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-sm.btn-danger:hover { background: #fca5a5; }
.btn-back { background: var(--gray-200); color: var(--gray-700); padding: .4rem .8rem; border-radius: 8px; font-size: .9rem; }
.btn-back:hover { background: var(--gray-300); }
.full-width { width: 100%; }

/* ============ HEADER ============ */
.site-header { background: white; box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 100; }
.header-top { background: var(--orange); color: white; font-size: .8rem; padding: .4rem 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top-left { display: flex; align-items: center; gap: .5rem; }
.header-top-right { display: flex; align-items: center; gap: 1rem; }
.header-top-right a { color: white; opacity: .9; }
.header-top-right a:hover { opacity: 1; }
.header-main .container { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.site-logo { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.logo-icon { font-size: 1.8rem; }
.logo-icon.large { font-size: 3rem; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--orange); }
.search-form { flex: 1; max-width: 560px; display: flex; gap: 0; }
.search-input { flex: 1; border: 2px solid var(--orange-light); border-right: none; border-radius: var(--radius) 0 0 var(--radius); padding: .6rem 1rem; outline: none; }
.search-input:focus { border-color: var(--orange); }
.search-btn { background: var(--orange); color: white; border: none; border-radius: 0 var(--radius) var(--radius) 0; padding: .6rem 1.2rem; cursor: pointer; font-weight: 600; white-space: nowrap; }
.search-btn:hover { background: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.cart-btn { background: var(--orange); color: white; border: none; border-radius: var(--radius); padding: .6rem 1rem; cursor: pointer; display: flex; align-items: center; gap: .4rem; font-weight: 600; position: relative; }
.cart-btn:hover { background: var(--orange-dark); }
.cart-badge { background: white; color: var(--orange); border-radius: 9999px; font-size: .7rem; font-weight: 700; padding: 2px 6px; min-width: 20px; text-align: center; }
.cart-total { font-size: .85rem; }
.user-menu { position: relative; }
.user-dropdown { display: none; position: absolute; right: 0; top: 100%; background: white; box-shadow: var(--shadow-lg); border-radius: var(--radius); min-width: 180px; z-index: 200; }
.user-dropdown a { display: block; padding: .7rem 1rem; color: var(--gray-700); font-size: .9rem; }
.user-dropdown a:hover { background: var(--gray-50); }
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.mobile-search { display: none; padding: .5rem 0; border-top: 1px solid var(--gray-100); }
.mobile-search .container { display: flex; gap: .5rem; }
.mobile-search input { flex: 1; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .5rem .75rem; }
.mobile-search button { background: var(--orange); color: white; border: none; border-radius: var(--radius); padding: .5rem .75rem; cursor: pointer; }

/* ============ HERO ============ */
.hero-banner { position: relative; overflow: hidden; height: 380px; }
.hero-slides { height: 100%; }
.hero-slide { display: none; height: 100%; align-items: center; padding: 2rem; }
.hero-slide.active { display: flex; }
.hero-content { flex: 1; color: white; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.2); color: white; padding: .3rem .75rem; border-radius: 9999px; font-size: .85rem; margin-bottom: 1rem; }
.hero-content h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: .75rem; }
.hero-content p { font-size: 1rem; opacity: .9; margin-bottom: 1.5rem; }
.btn-hero { display: inline-block; background: white; color: var(--orange); font-weight: 700; padding: .75rem 1.5rem; border-radius: var(--radius); }
.btn-hero:hover { background: var(--orange-light); }
.hero-visual { font-size: 6rem; opacity: .3; }
.hero-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; }
.dot.active { background: white; }

/* ============ CATEGORY CIRCLES ============ */
.category-circles { background: white; padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100); }
.category-circles .container { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.category-circles .container::-webkit-scrollbar { display: none; }
.category-circle { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 70px; cursor: pointer; text-decoration: none; }
.cat-icon { width: 60px; height: 60px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all .2s; border: 2px solid transparent; }
.category-circle:hover .cat-icon, .category-circle.active .cat-icon { background: var(--orange-light); border-color: var(--orange); }
.category-circle span:last-child { font-size: .75rem; font-weight: 500; color: var(--gray-600); text-align: center; }
.category-circle.active span:last-child { color: var(--orange); font-weight: 600; }

/* ============ PROMO BAR ============ */
.promo-bar { background: var(--gray-900); color: white; overflow: hidden; padding: .5rem 0; }
.promo-items { display: flex; gap: 3rem; animation: scroll 20s linear infinite; white-space: nowrap; }
.promo-item { font-size: .85rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ PRODUCT SECTIONS ============ */
.page-content { padding: 2rem 0; }
.product-section { padding: 2rem 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.section-header p { color: var(--gray-600); font-size: .9rem; margin-top: .2rem; }
.btn-viewall { color: var(--orange); font-weight: 600; font-size: .9rem; }
.btn-viewall:hover { text-decoration: underline; }
.results-count { color: var(--gray-600); }

.products-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* ============ PRODUCT CARD ============ */
.product-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.badge { position: absolute; top: .5rem; left: .5rem; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 9999px; }
.badge-low { background: #fef3c7; color: #92400e; }
.badge-out { background: #fee2e2; color: #991b1b; }
.product-info { padding: .75rem; }
.product-category { font-size: .7rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.product-name { font-size: .9rem; font-weight: 600; cursor: pointer; line-height: 1.3; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name:hover { color: var(--orange); }
.product-rating { display: flex; align-items: center; gap: .2rem; margin-bottom: .4rem; }
.star { color: var(--gray-200); font-size: .9rem; }
.star.filled { color: #f59e0b; }
.rating-count { font-size: .75rem; color: var(--gray-600); }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.product-price-group { display: flex; flex-direction: column; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--orange); }
.product-unit { font-size: .7rem; color: var(--gray-600); }
.btn-add-cart { background: var(--orange); color: white; border: none; padding: .4rem .8rem; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-add-cart:hover { background: var(--orange-dark); }
.btn-add-cart.disabled { background: var(--gray-200); color: var(--gray-600); cursor: not-allowed; }

/* ============ FLASH SALE BANNER ============ */
.flash-sale-banner { background: linear-gradient(135deg, #c2410c, #ea580c); padding: 2rem 0; margin: 1rem 0; }
.flash-content { display: flex; align-items: center; gap: 2rem; color: white; }
.flash-icon { font-size: 3rem; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.flash-text h3 { font-size: 1.3rem; font-weight: 700; }
.flash-text p { opacity: .9; }
.btn-flash { background: white; color: var(--orange); font-weight: 700; padding: .6rem 1.5rem; border-radius: var(--radius); white-space: nowrap; margin-left: auto; }
.btn-flash:hover { background: var(--orange-light); }

/* ============ AUTH ============ */
.auth-page { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--gray-100); }
.auth-card { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; margin-top: .5rem; }
.auth-header p { color: var(--gray-600); }
.auth-switch { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--gray-600); }
.auth-switch a { color: var(--orange); font-weight: 600; }
.auth-hint { text-align: center; margin-top: .5rem; font-size: .75rem; color: var(--gray-600); background: var(--gray-100); padding: .5rem; border-radius: 6px; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .3rem; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: 8px;
  padding: .6rem .75rem; outline: none; background: white; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row.three-cols { grid-template-columns: 2fr 1fr 1fr; }

/* ============ ALERTS ============ */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .875rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

/* ============ CART SIDEBAR ============ */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; }
.cart-overlay.open { display: block; }
.cart-sidebar { position: fixed; right: -420px; top: 0; width: 420px; max-width: 100vw; height: 100vh; background: white; z-index: 201; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transition: right .3s ease; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-600); padding: .25rem; border-radius: 6px; }
.close-btn:hover { background: var(--gray-100); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.empty-cart { text-align: center; padding: 3rem 1rem; color: var(--gray-600); display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.empty-cart div { font-size: 3rem; }
.cart-item { display: flex; gap: .75rem; align-items: center; padding: .75rem; background: var(--gray-50); border-radius: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; min-width: 0; }
.item-name { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-unit { font-size: .75rem; color: var(--gray-600); }
.item-price { font-weight: 700; color: var(--orange); font-size: .9rem; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; }
.cart-item-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gray-300); background: white; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty button:hover { border-color: var(--orange); color: var(--orange); }
.cart-item-qty span { font-weight: 700; min-width: 20px; text-align: center; }
.remove-btn { background: none; border: none; cursor: pointer; font-size: 1rem; padding: .25rem; border-radius: 6px; }
.remove-btn:hover { background: #fee2e2; }

.cart-footer { border-top: 1px solid var(--gray-100); padding: 1rem; }
.cart-promo { display: flex; gap: .5rem; margin-bottom: .5rem; }
.promo-input { flex: 1; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; }
.btn-promo { background: var(--gray-900); color: white; border: none; padding: .5rem .75rem; border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.promo-msg { font-size: .8rem; margin-bottom: .5rem; min-height: 1.2rem; }
.promo-msg.success { color: var(--green); }
.promo-msg.error { color: #dc2626; }
.cart-totals { margin-bottom: 1rem; }
.total-row { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .9rem; color: var(--gray-600); }
.total-final { border-top: 1.5px solid var(--gray-200); margin-top: .5rem; padding-top: .5rem; font-size: 1rem; color: var(--gray-900); }
.discount-amount { color: #16a34a; }
.btn-checkout { width: 100%; padding: .85rem; background: var(--orange); color: white; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; }
.btn-checkout:hover { background: var(--orange-dark); }

/* ============ MODALS ============ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; }
.modal-overlay.open { display: block; }
.modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 301; width: 90%; max-width: 580px; max-height: 90vh; flex-direction: column; }
.modal.open { display: flex; }
.product-modal { max-width: 700px; }
.modal-header { padding: 1.25rem; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-body { padding: 1.25rem; overflow-y: auto; }

/* Checkout steps */
.checkout-steps { display: flex; gap: 0; margin-bottom: 1.5rem; border-radius: 8px; overflow: hidden; }
.step { flex: 1; padding: .6rem; text-align: center; background: var(--gray-100); color: var(--gray-600); font-size: .85rem; font-weight: 500; }
.step.active { background: var(--orange); color: white; }

/* Payment options */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.payment-option { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: .6rem .75rem; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.payment-option input { accent-color: var(--orange); }

/* Order summary */
.order-summary { border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.order-sum-header { background: var(--gray-50); padding: .75rem 1rem; font-weight: 600; font-size: .9rem; }
.order-sum-items { padding: .75rem 1rem; }
.sum-item { display: flex; justify-content: space-between; font-size: .875rem; padding: .25rem 0; }
.sum-total { border-top: 1.5px solid var(--gray-200); padding: .75rem 1rem; display: flex; justify-content: space-between; font-weight: 700; }

/* Payment instructions */
.payment-instructions { border: 1px solid var(--orange-light); background: #fff7ed; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.payment-instructions h4 { color: var(--orange-dark); margin-bottom: .5rem; }
.payment-instructions p { font-size: .875rem; color: var(--gray-700); margin-bottom: .25rem; }

/* Orders page */
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card { background: white; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.order-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.order-number { font-family: monospace; font-weight: 700; background: var(--gray-100); padding: .2rem .5rem; border-radius: 4px; }
.order-status { padding: .2rem .6rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #f3e8ff; color: #6b21a8; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-date { color: var(--gray-600); font-size: .85rem; }
.order-info { display: flex; justify-content: space-between; color: var(--gray-600); font-size: .9rem; }
.tracking { font-size: .8rem; color: var(--gray-600); margin-top: .5rem; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-600); }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-col p { font-size: .875rem; line-height: 1.7; color: #9ca3af; }
.footer-col h4 { color: white; font-weight: 600; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul li a { color: #9ca3af; font-size: .875rem; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; font-size: 1.3rem; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: #6b7280; font-size: .875rem; }
.payment-icons { color: #6b7280; font-size: .85rem; }

/* ============ TOAST ============ */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--gray-900); color: white; padding: .75rem 1.25rem; border-radius: var(--radius); font-size: .875rem; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; display: flex; align-items: center; gap: .5rem; max-width: 320px; }
.toast.success { background: #166534; }
.toast.error { background: #991b1b; }
.toast.info { background: #1e40af; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float { position: fixed; bottom: 2rem; left: 1.5rem; width: 56px; height: 56px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-lg); z-index: 150; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .header-main .container { flex-wrap: wrap; }
  .search-form { display: none; }
  .mobile-search { display: block; }
  .hero-banner { height: 280px; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: 1.3rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three-cols { grid-template-columns: 1fr 1fr 1fr; }
  .products-row, .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .flash-content { flex-direction: column; text-align: center; }
  .btn-flash { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cart-sidebar { width: 100%; right: -100%; }
  .payment-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-row, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
}
