/* Qoffa Smart — FreshMart-inspired home refresh */
:root{--fresh-cream:#f7f4ec;--fresh-ink:#17241e;--fresh-green:#1c6b49;--fresh-mint:#dfeee0;--fresh-lime:#d6ed80;--fresh-orange:#f19a57;--fresh-line:rgba(28,107,73,.14);--fresh-shadow:0 28px 70px rgba(25,55,39,.13)}
body.index-page{background:var(--fresh-cream);color:var(--fresh-ink);overflow-x:hidden}
body.index-page #mainHeader{background:rgba(247,244,236,.78);border-bottom:1px solid rgba(28,107,73,.08);backdrop-filter:blur(22px)}
body.index-page .navbar{min-height:88px}body.index-page .logo{font-size:1.18rem;letter-spacing:-.04em}body.index-page .logo-img{width:45px;height:45px;border-radius:15px;box-shadow:0 7px 18px rgba(28,107,73,.12)}
body.index-page .nav-menu{gap:2px}body.index-page .nav-link{font-size:.91rem;color:#506158;padding:10px 13px}body.index-page .nav-link:hover,body.index-page .nav-link.active{background:#fff;color:var(--fresh-green);box-shadow:0 5px 16px rgba(22,60,41,.06)}
body.index-page .cart-btn{background:var(--fresh-green);box-shadow:0 9px 22px rgba(28,107,73,.19)}body.index-page .cart-btn:hover{background:var(--fresh-ink)}

/* Hero / dynamic banner */
body.index-page .banner-carousel{width:min(calc(100% - 32px),1320px);min-height:clamp(500px,66vh,720px);margin:18px auto 0;border-radius:38px;overflow:hidden;position:relative;background:linear-gradient(90deg,rgba(247,244,236,.98) 0%,rgba(247,244,236,.86) 37%,rgba(247,244,236,.06) 70%),url('../images/generated/hero-fresh.png') center/cover no-repeat;box-shadow:var(--fresh-shadow)}
body.index-page .banner-carousel:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 16% 18%,rgba(214,237,128,.43),transparent 22%),linear-gradient(180deg,transparent 72%,rgba(18,45,31,.10))}
body.index-page .banner-carousel:after{content:'100% طازج  •  توصيل سريع  •  بدون تعقيد';position:absolute;right:28px;bottom:25px;padding:10px 15px;border-radius:999px;background:rgba(255,255,255,.72);color:var(--fresh-green);font-size:.78rem;font-weight:800;letter-spacing:.03em;box-shadow:0 9px 22px rgba(25,55,39,.09);animation:freshFloat 4.5s ease-in-out infinite}
body.index-page #bannerSlides:empty:after{content:'منتجات طازجة تصل إلى باب منزلك';position:absolute;right:9%;top:25%;max-width:480px;color:var(--fresh-ink);font-size:clamp(2.4rem,6vw,5.5rem);font-weight:800;line-height:1.08;letter-spacing:-.07em}
body.index-page .banner-slide{height:100%;min-height:clamp(500px,66vh,720px)}body.index-page .banner-slide.active:not(:has(.banner-text)):after{content:'توصيل المنتجات الطازجة مباشرة إلى منزلك';position:absolute;left:7%;right:auto;top:22%;max-width:470px;color:var(--fresh-ink);font-size:clamp(2.4rem,5.8vw,5.7rem);font-weight:800;line-height:1.08;letter-spacing:-.07em;z-index:4;direction:rtl;text-align:left}body.index-page .banner-media{height:100%;aspect-ratio:auto}body.index-page .banner-media img{transition:transform 1.2s cubic-bezier(.2,.8,.2,1)}body.index-page .banner-slide.active .banner-media img{transform:scale(1.025)}
body.index-page .banner-overlay{padding:clamp(28px,6vw,86px);background:linear-gradient(90deg,rgba(247,244,236,.96),rgba(247,244,236,.6) 41%,transparent 76%);align-items:flex-start;justify-content:center;gap:13px}
body.index-page .banner-text{color:var(--fresh-ink);max-width:560px;text-shadow:none}body.index-page .banner-text h2{font-size:clamp(2.6rem,6vw,6rem);line-height:1.05;letter-spacing:-.07em;color:var(--fresh-ink);text-shadow:none;margin:0 0 14px}body.index-page .banner-text h3{color:var(--fresh-green);font-size:.9rem;letter-spacing:.12em;text-transform:uppercase;text-shadow:none}body.index-page .banner-text p{color:#56685d;text-shadow:none;font-size:1.05rem}
body.index-page .banner-btn{background:var(--fresh-green);box-shadow:0 15px 30px rgba(28,107,73,.2)}body.index-page .banner-btn:hover{background:var(--fresh-ink);transform:translateY(-4px)}body.index-page .banner-dots{bottom:22px}body.index-page .banner-dot{border-color:var(--fresh-green)}body.index-page .banner-dot.active{background:var(--fresh-green)}

/* Rhythm and content sections */
body.index-page .highlights-section,body.index-page .delivery-section,body.index-page .how-it-works,body.index-page .featured-products,body.index-page .categories-section,body.index-page .why-us{padding:clamp(68px,9vw,125px) 0}
body.index-page .section-header{text-align:right;max-width:760px;margin:0 0 35px}body.index-page .section-title{font-size:clamp(2.1rem,4.2vw,4.2rem);letter-spacing:-.065em;line-height:1.08;margin:8px 0}body.index-page .section-subtitle{font-size:1rem;color:#68776f}
body.index-page .highlights-section{position:relative}body.index-page .highlights-section:before{content:'FRESH';position:absolute;left:-1%;top:5%;font:800 16vw/.8 'DM Sans',sans-serif;color:rgba(28,107,73,.035);letter-spacing:-.1em;pointer-events:none}
body.index-page .highlights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;position:relative;z-index:1}body.index-page .highlight-card{min-height:210px;padding:28px;border:1px solid var(--fresh-line);border-radius:26px;background:rgba(255,255,255,.62);box-shadow:0 12px 34px rgba(22,60,41,.05);transition:.35s cubic-bezier(.2,.8,.2,1);animation:freshReveal .8s both}body.index-page .highlight-card:nth-child(2){transform:translateY(26px)}body.index-page .highlight-card:hover{transform:translateY(-8px);background:#fff;box-shadow:var(--fresh-shadow)}body.index-page .highlight-card:nth-child(2):hover{transform:translateY(18px)}body.index-page .highlight-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;color:var(--fresh-green);background:var(--fresh-mint);font-size:1.25rem;margin-bottom:25px}body.index-page .highlight-card h3{font-size:1.14rem;line-height:1.35;margin:0 0 8px}body.index-page .highlight-card p{color:#69776f;margin:0}
body.index-page .delivery-section{background:#1a3126;color:#fff;position:relative;overflow:hidden}body.index-page .delivery-section:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,42,29,.96) 0%,rgba(17,42,29,.86) 43%,rgba(17,42,29,.33) 100%),url('../images/generated/delivery-promise.png') center/cover;opacity:.92}body.index-page .delivery-section>*{position:relative;z-index:1}body.index-page .delivery-section .section-title{color:#fff}body.index-page .delivery-section .section-subtitle{color:#b7cdbd}.delivery-cities{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.city-card{padding:22px 18px;border:1px solid rgba(255,255,255,.16);border-radius:22px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);transition:.3s}.city-card:hover{background:var(--fresh-lime);color:var(--fresh-ink);transform:translateY(-6px)}.city-card i{color:var(--fresh-lime);margin-bottom:14px}.city-card:hover i{color:var(--fresh-green)}.delivery-info{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.delivery-info p{margin:0;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.08);color:#d9e9dc;font-size:.9rem}
body.index-page .variable-weight-section{margin:0;border-radius:0;background:linear-gradient(135deg,#ebf4e3,#f7f4ec);padding:80px 0}body.index-page .variable-weight-section h2{font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.06em}body.index-page .vw-card{border:1px solid var(--fresh-line);box-shadow:0 16px 38px rgba(28,107,73,.1);border-radius:26px}body.index-page .vw-card:hover{transform:translateY(-10px) rotate(-.5deg);box-shadow:var(--fresh-shadow)}
body.index-page .how-it-works{background:#fff}body.index-page .steps-container{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}body.index-page .how-it-works .step-card{position:relative;padding:26px 22px;border:0;border-top:1px solid var(--fresh-line);border-radius:0;background:transparent;box-shadow:none;transition:.3s}.how-it-works .step-card:hover{background:var(--fresh-cream);border-radius:20px;transform:translateY(-6px)}body.index-page .step-number{background:var(--fresh-lime);color:var(--fresh-ink);font-size:1.2rem;box-shadow:none}body.index-page .step-icon{color:var(--fresh-green);font-size:1.4rem;margin-bottom:15px}body.index-page .step-card h3{font-size:1.1rem}
body.index-page .featured-products{background:var(--fresh-cream)}body.index-page .featured-products .products-grid{grid-template-columns:repeat(4,1fr);gap:16px}body.index-page .featured-products .product-card{border:1px solid var(--fresh-line);border-radius:28px;background:#fff;box-shadow:0 12px 34px rgba(28,107,73,.07);transition:.4s cubic-bezier(.2,.8,.2,1);position:relative;overflow:hidden;isolation:isolate}body.index-page .featured-products .product-card:before{content:'QOFFA SMART';position:absolute;top:15px;left:15px;z-index:3;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.82);color:var(--fresh-green);font:800 .58rem/.9 'DM Sans',sans-serif;letter-spacing:.08em;backdrop-filter:blur(8px)}body.index-page .featured-products .product-card:after{content:'↗';position:absolute;top:14px;right:14px;z-index:3;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--fresh-lime);color:var(--fresh-ink);font:800 1rem/1 'DM Sans',sans-serif;opacity:0;transform:translateY(6px);transition:.3s}body.index-page .featured-products .product-card:hover{transform:translateY(-10px) rotate(.25deg);box-shadow:var(--fresh-shadow)}body.index-page .featured-products .product-card:hover:after{opacity:1;transform:translateY(0)}body.index-page .featured-products .product-image{height:auto!important;aspect-ratio:1/1;border-radius:0;background:linear-gradient(145deg,#eef6ea,#fbf8f0);overflow:hidden}body.index-page .featured-products .product-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1);mix-blend-mode:multiply}body.index-page .featured-products .product-card:hover .product-image img{transform:scale(1.1) rotate(-2deg)}body.index-page .featured-products .card-content{padding:18px 18px 16px;display:flex;flex-direction:column;gap:7px;min-height:184px}body.index-page .featured-products .brand{font:800 .65rem/.9 'DM Sans',sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#90a29a}body.index-page .featured-products .product-name{min-height:54px;display:flex;flex-direction:column;gap:2px}.featured-products .product-fr{font-size:1.03rem;font-weight:800;line-height:1.25;color:var(--fresh-ink);letter-spacing:-.025em}.featured-products .product-ar{font-size:.9rem;color:#718078;line-height:1.35}.featured-products .unit-badge{display:inline-flex;vertical-align:middle;margin-inline-start:4px;padding:2px 6px;border-radius:999px;background:var(--fresh-mint);color:var(--fresh-green);font-size:.66rem;font-weight:800}.featured-products .price{display:flex;align-items:baseline;gap:5px;margin-top:auto;color:var(--fresh-green);font:800 1.35rem/1 'DM Sans','Tajawal',sans-serif;letter-spacing:-.03em}.featured-products .price span{font:700 .75rem 'Tajawal',sans-serif;color:#75877d}.featured-products .add-to-cart{width:100%;margin-top:6px;padding:11px 12px;border-radius:13px;background:var(--fresh-ink);color:#fff;font-weight:800;transition:.25s;box-shadow:none}.featured-products .add-to-cart:hover{background:var(--fresh-green);transform:translateY(-2px);box-shadow:0 10px 18px rgba(28,107,73,.18)}body.index-page .view-all{text-align:center;margin-top:32px}body.index-page .view-all .btn{padding-inline:24px}
body.index-page .categories-section{background:#fff;position:relative;overflow:hidden}body.index-page .categories-section:before{content:'FRESH MARKET';position:absolute;top:5%;left:-2%;font:800 11vw/.8 'DM Sans',sans-serif;letter-spacing:-.1em;color:rgba(28,107,73,.035);pointer-events:none}body.index-page .categories-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:188px;gap:16px;position:relative;z-index:1}body.index-page .category-card{min-height:0!important;border:1px solid rgba(255,255,255,.35);border-radius:30px;overflow:hidden;box-shadow:0 14px 38px rgba(28,107,73,.1);transition:.45s cubic-bezier(.2,.8,.2,1);position:relative;background:#dfeee0}body.index-page .category-card:first-child{grid-column:span 2;grid-row:span 2}body.index-page .category-card:nth-child(2){grid-column:span 2}body.index-page .category-card:hover{transform:translateY(-9px) scale(1.015);box-shadow:0 28px 62px rgba(28,107,73,.18)}body.index-page .category-image{height:100%;position:absolute;inset:0;overflow:hidden}body.index-page .category-image:before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(28,107,73,.04),rgba(28,107,73,.18));z-index:1;mix-blend-mode:multiply}body.index-page .category-image:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,38,24,.02) 25%,rgba(9,38,24,.88) 100%);z-index:2}body.index-page .category-image img{height:100%;width:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.8,.2,1);filter:saturate(1.05)}body.index-page .category-card:hover .category-image img{transform:scale(1.1) rotate(1.3deg)}body.index-page .category-content{position:relative;z-index:3;align-self:flex-end;padding:24px;color:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;transform:translateY(3px);transition:.35s}.category-card:hover .category-content{transform:translateY(0)}body.index-page .category-content>i{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);backdrop-filter:blur(10px);color:var(--fresh-lime);font-size:1.15rem;transition:.3s}.category-card:hover .category-content>i{background:var(--fresh-lime);color:var(--fresh-green);transform:rotate(-8deg) scale(1.08)}body.index-page .category-content h3{font-size:clamp(1.25rem,2.2vw,1.85rem);line-height:1.15;margin:0;letter-spacing:-.04em}.category-link{display:inline-flex;align-items:center;gap:9px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.18);font-size:.78rem;color:#fff;transition:.3s}.category-link i{font-size:.7rem}.category-card:hover .category-link{background:#fff;color:var(--fresh-green);padding-inline:14px}body.index-page .category-card:nth-child(2) .category-image:before{background:linear-gradient(135deg,rgba(214,237,128,.1),rgba(28,107,73,.22))}body.index-page .category-card:nth-child(3) .category-image:before{background:linear-gradient(135deg,rgba(241,154,87,.12),rgba(28,107,73,.18))}body.index-page .category-card:nth-child(4) .category-image:before{background:linear-gradient(135deg,rgba(207,232,150,.12),rgba(28,107,73,.2))}
body.index-page .why-us{background:linear-gradient(180deg,#fff,#edf5e6)}body.index-page .why-us .features-grid{grid-template-columns:repeat(3,1fr);gap:16px}body.index-page .why-us .feature-card{background:rgba(255,255,255,.72);border:1px solid var(--fresh-line);border-radius:24px;box-shadow:none;transition:.3s}.why-us .feature-card:hover{background:#fff;transform:translateY(-7px);box-shadow:0 16px 38px rgba(28,107,73,.1)}body.index-page .feature-icon{background:var(--fresh-mint);color:var(--fresh-green)}
body.index-page .cta-section{padding:100px 0;background:var(--fresh-green);position:relative;overflow:hidden}body.index-page .cta-section:before{content:'';position:absolute;width:400px;height:400px;border-radius:50%;background:var(--fresh-lime);opacity:.15;left:-120px;top:-170px;animation:freshFloat 6s ease-in-out infinite}body.index-page .cta-section h2{font-size:clamp(2.1rem,4vw,4rem);letter-spacing:-.06em}body.index-page .cta-section .btn-whatsapp{background:var(--fresh-lime);color:var(--fresh-ink)}body.index-page .cta-section .btn-outline{border-color:rgba(255,255,255,.4);color:#fff;background:transparent}
@keyframes freshReveal{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@keyframes freshFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
body.index-page .animate__animated{animation-duration:.85s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}body.index-page .animate__fadeInUp,body.index-page .animate__slideInUp,body.index-page .animate__slideInRight,body.index-page .animate__slideInLeft{animation-name:freshReveal!important}
@media(max-width:900px){body.index-page .banner-carousel{min-height:560px}.highlights-grid,.delivery-cities,.steps-container{grid-template-columns:repeat(2,1fr)}body.index-page .highlight-card:nth-child(2){transform:none}body.index-page .featured-products .products-grid,.why-us .features-grid{grid-template-columns:repeat(2,1fr)}body.index-page .categories-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:190px}body.index-page .category-card:first-child{grid-column:span 2;grid-row:span 2}body.index-page .category-card:nth-child(2){grid-column:span 2}}
@media(max-width:600px){body.index-page .banner-carousel{width:calc(100% - 20px);min-height:600px;border-radius:25px;background-position:62% center}body.index-page .banner-overlay{padding:28px 22px;justify-content:flex-start;padding-top:48px;background:linear-gradient(180deg,rgba(247,244,236,.98) 0%,rgba(247,244,236,.72) 45%,transparent 80%)}body.index-page .banner-text h2{font-size:2.8rem}body.index-page .banner-carousel:after{right:14px;bottom:15px;font-size:.68rem}.highlights-grid,.delivery-cities,.steps-container,.featured-products .products-grid,.why-us .features-grid{grid-template-columns:1fr}body.index-page .categories-grid{grid-template-columns:1fr;grid-auto-rows:260px}body.index-page .category-card:first-child,body.index-page .category-card:nth-child(2){grid-column:auto;grid-row:auto}body.index-page .section-header{text-align:center;margin-inline:auto}.delivery-cities{gap:9px}.city-card{padding:16px}.body.index-page .how-it-works .step-card{border-top:1px solid var(--fresh-line)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Motion refinement — smooth, responsive and GPU-friendly */
body.index-page{
  --motion-spring:cubic-bezier(.16,1,.3,1);
  --motion-soft:cubic-bezier(.22,1,.36,1);
  --motion-snappy:cubic-bezier(.34,1.56,.64,1);
}
body.index-page .product-card,
body.index-page .category-card,
body.index-page .highlight-card,
body.index-page .feature-card,
body.index-page .step-card,
body.index-page .city-card,
body.index-page .add-to-cart,
body.index-page .category-link,
body.index-page .category-content>i{
  backface-visibility:hidden;
  transform:translate3d(0,0,0);
  transition-property:transform,opacity,box-shadow,background-color,border-color,color,filter;
  transition-duration:.55s;
  transition-timing-function:var(--motion-spring);
}
body.index-page .product-card:hover,
body.index-page .category-card:hover,
body.index-page .highlight-card:hover,
body.index-page .feature-card:hover,
body.index-page .step-card:hover,
body.index-page .city-card:hover{
  will-change:transform,box-shadow;
}
body.index-page .product-card .product-image img,
body.index-page .category-card .category-image img,
body.index-page .banner-media img,
body.index-page .banner-media video{
  transform:translate3d(0,0,0) scale(1.001);
  will-change:transform;
}
body.index-page .product-card:hover .product-image img{transform:translate3d(0,-3px,0) scale(1.085) rotate(-1.5deg)}
body.index-page .category-card:hover .category-image img{transform:translate3d(0,-3px,0) scale(1.085) rotate(.8deg)}
body.index-page .banner-slide.active .banner-media img,
body.index-page .banner-slide.active .banner-media video{animation:heroMediaFloat 8s var(--motion-soft) both}
body.index-page .banner-btn,
body.index-page .btn,
body.index-page .cart-btn,
body.index-page .mobile-menu-btn{transition:transform .42s var(--motion-snappy),box-shadow .42s var(--motion-spring),background-color .32s ease,color .32s ease}
body.index-page .banner-btn:hover,
body.index-page .btn:hover{transform:translate3d(0,-4px,0) scale(1.018)}
body.index-page .cart-btn:hover{transform:translate3d(0,-2px,0) scale(1.04)}
body.index-page .add-to-cart:hover{transform:translate3d(0,-3px,0) scale(1.012)}
body.index-page .highlight-card:nth-child(1),body.index-page .category-card:nth-child(1),body.index-page .product-card:nth-child(1){animation-delay:.04s}
body.index-page .highlight-card:nth-child(2),body.index-page .category-card:nth-child(2),body.index-page .product-card:nth-child(2){animation-delay:.10s}
body.index-page .highlight-card:nth-child(3),body.index-page .category-card:nth-child(3),body.index-page .product-card:nth-child(3){animation-delay:.16s}
body.index-page .category-card:nth-child(4),body.index-page .product-card:nth-child(4){animation-delay:.22s}
body.index-page .animate__animated{animation-duration:1.05s;animation-timing-function:var(--motion-soft);animation-fill-mode:both}
body.index-page .animate__fadeInUp,
body.index-page .animate__slideInUp,
body.index-page .animate__slideInRight,
body.index-page .animate__slideInLeft{animation-name:freshRevealPro!important}
@keyframes freshRevealPro{0%{opacity:0;transform:translate3d(0,28px,0) scale(.985)}65%{opacity:1;transform:translate3d(0,-2px,0) scale(1.002)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes heroMediaFloat{0%{transform:scale(1.015)}50%{transform:scale(1.035) translate3d(-4px,-2px,0)}100%{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){body.index-page *,body.index-page *:before,body.index-page *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body.index-page .product-card:hover,body.index-page .category-card:hover,body.index-page .highlight-card:hover,body.index-page .feature-card:hover,body.index-page .step-card:hover,body.index-page .city-card:hover{transform:none!important}}

/* Responsive hardening — stable layouts on all viewport sizes */
body.index-page,body.index-page *{box-sizing:border-box}
body.index-page{width:100%;max-width:100%;overflow-x:hidden}
body.index-page img,body.index-page svg{max-width:100%}
body.index-page video{max-width:100%}
body.index-page .container{width:min(100% - 32px,1320px);margin-inline:auto}
body.index-page .banner-carousel{width:min(100% - 32px,1320px)}
body.index-page .banner-media video,body.index-page .banner-media img{width:100%;height:100%;object-fit:cover}
body.index-page .cart-sidebar{width:min(430px,calc(100vw - 16px));max-width:calc(100vw - 16px)}
body.index-page .cart-header,body.index-page .cart-items,body.index-page .cart-footer{max-width:100%}
@media (max-width:1100px){
  body.index-page .navbar{gap:14px}
  body.index-page .nav-menu{gap:0}
  body.index-page .nav-link{padding-inline:10px}
  body.index-page .featured-products .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  body.index-page .container{width:min(100% - 28px,760px)}
  body.index-page .banner-carousel{width:calc(100% - 24px);min-height:560px}
  body.index-page .banner-slide{min-height:560px}
  body.index-page .banner-overlay{padding:42px 36px}
  body.index-page .banner-slide.active:not(:has(.banner-text)):after{left:6%;top:17%;max-width:48%;font-size:clamp(2.2rem,5.8vw,4.4rem)}
  body.index-page .featured-products .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  body.index-page .featured-products .product-card:before{top:11px;left:11px;font-size:.5rem;padding:5px 7px}
  body.index-page .categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:185px}
  body.index-page .category-card:first-child{grid-column:span 2;grid-row:span 2}
  body.index-page .category-card:nth-child(2){grid-column:span 2}
}
@media (max-width:600px){
  body.index-page .container{width:calc(100% - 24px)}
  body.index-page .navbar{min-height:72px}
  body.index-page .logo-text{font-size:1rem}
  body.index-page .logo-img{width:38px;height:38px}
  body.index-page .nav-actions{gap:7px}
  body.index-page .banner-carousel{width:calc(100% - 16px);min-height:560px;margin-top:8px;border-radius:24px;background-position:66% center}
  body.index-page .banner-slide{min-height:560px}
  body.index-page .banner-overlay{padding:34px 22px;justify-content:flex-start;background:linear-gradient(180deg,rgba(247,244,236,.98) 0%,rgba(247,244,236,.74) 43%,rgba(247,244,236,.06) 79%)}
  body.index-page .banner-slide.active:not(:has(.banner-text)):after{left:22px;right:22px;top:18%;max-width:70%;font-size:clamp(2rem,11vw,3.35rem);line-height:1.03;text-align:right}
  body.index-page .banner-carousel:after{right:12px;bottom:13px;max-width:calc(100% - 24px);font-size:.64rem;white-space:nowrap}
  body.index-page .banner-dots{bottom:15px}
  body.index-page .highlights-section,body.index-page .delivery-section,body.index-page .how-it-works,body.index-page .featured-products,body.index-page .categories-section,body.index-page .why-us{padding:68px 0}
  body.index-page .section-title{font-size:clamp(2rem,9vw,3rem)}
  body.index-page .highlights-grid,body.index-page .delivery-cities,body.index-page .steps-container,body.index-page .why-us .features-grid{grid-template-columns:1fr}
  body.index-page .highlight-card:nth-child(2){transform:none}
  body.index-page .featured-products .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.index-page .featured-products .card-content{padding:13px 12px 12px;min-height:168px;gap:5px}
  body.index-page .featured-products .product-fr{font-size:.88rem}
  body.index-page .featured-products .product-ar{font-size:.78rem}
  body.index-page .featured-products .price{font-size:1.08rem}
  body.index-page .featured-products .price span{font-size:.64rem}
  body.index-page .featured-products .add-to-cart{padding:9px 5px;font-size:.72rem;white-space:nowrap}
  body.index-page .featured-products .product-card:after{width:28px;height:28px;top:10px;right:10px;font-size:.82rem}
  body.index-page .categories-grid{grid-template-columns:1fr;grid-auto-rows:245px;gap:12px}
  body.index-page .category-card:first-child,body.index-page .category-card:nth-child(2){grid-column:auto;grid-row:auto}
  body.index-page .category-content{padding:20px}
  body.index-page .category-content h3{font-size:1.45rem}
  body.index-page .delivery-cities{gap:9px}
  body.index-page .delivery-info{display:grid;grid-template-columns:1fr;gap:8px}
  body.index-page .delivery-info p{font-size:.78rem}
  body.index-page .cart-sidebar{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
  body.index-page .cart-header{padding-inline:16px}
}
@media (max-width:380px){
  body.index-page .container{width:calc(100% - 18px)}
  body.index-page .banner-carousel{min-height:520px}
  body.index-page .banner-slide{min-height:520px}
  body.index-page .banner-slide.active:not(:has(.banner-text)):after{font-size:2rem;max-width:78%}
  body.index-page .featured-products .product-fr{font-size:.8rem}
  body.index-page .featured-products .product-ar{font-size:.7rem}
  body.index-page .featured-products .add-to-cart{font-size:.65rem}
}

/* Final media overflow guard */
body.index-page .banner-media{overflow:hidden;clip-path:inset(0 round 0)}
body.index-page .banner-media video,body.index-page .banner-media img{left:0!important;right:0!important;width:100%!important;max-width:none;object-position:center}
