/* Gramo UX fixes (2026-11-09) */
@media (max-width:767px){
  .hero-slider .slide-item,.hero-slider .slide-item a{height:auto!important}
  .hero-slider .slide-item img{height:auto!important;aspect-ratio:900/306;object-fit:cover;width:100%}
  .hero-slider .owl-stage-outer,.hero-slider .owl-stage{height:auto!important}
}/* stop iPhone zoom on form focus */
@media (max-width:767px){input[type=text],input[type=tel],input[type=email],input[type=number],input[type=search],select,textarea{font-size:16px!important}}
/* ===== Homepage: simpler, premium layout (2026-11-09) ===== */
.gramo-trust-bar{margin:14px 0 6px}
.gramo-trust-bar .gtb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#fff;border:1px solid #eef0f4;border-radius:16px;padding:14px 18px;box-shadow:0 6px 24px rgba(15,23,42,.05)}
.gramo-trust-bar .gtb-item{display:flex;align-items:center;gap:12px;min-width:0}
.gramo-trust-bar .gtb-ic{flex:none;width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--primary-color,#ff5900) 10%,#fff);color:var(--primary-color,#ff5900)}
.gramo-trust-bar strong{display:block;font-size:14px;font-weight:700;color:#0f172a;line-height:1.3}
.gramo-trust-bar small{display:block;font-size:12px;color:#64748b;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:767px){
 .gramo-trust-bar{margin:10px 0 2px}
 .gramo-trust-bar .gtb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border-radius:14px}
 .gramo-trust-bar .gtb-ic{width:36px;height:36px;border-radius:10px}
 .gramo-trust-bar strong{font-size:13px}
 .gramo-trust-bar small{font-size:11px}
}
.category-products-section{padding-top:8px}
@media (min-width:992px){
 .category-products-section .category-products-slider{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .category-products-section .category-products-slider>.item:nth-child(n+6){display:none!important}
}
@media (min-width:768px) and (max-width:991px){
 .category-products-section .category-products-slider{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .category-products-section .category-products-slider>.item:nth-child(n+5){display:none!important}
}
@media (max-width:767px){
 .category-products-section .category-products-slider{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:44%!important;overflow-x:auto!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px}
 .category-products-section .category-products-slider::-webkit-scrollbar{display:none}
 .category-products-section .category-products-slider>.item{scroll-snap-align:start}
 .category-products-section .category-products-slider>.item:nth-child(n+11){display:none!important}
}
@media (max-width:767px){
 .gramo-trust-bar .container{padding-left:16px!important;padding-right:16px!important;max-width:100%!important}
 .gramo-trust-bar .gtb-grid{box-sizing:border-box;width:100%;padding:10px;gap:8px 10px}
 .gramo-trust-bar .gtb-item{gap:8px}
 .gramo-trust-bar .gtb-ic{width:32px;height:32px}
 .gramo-trust-bar .gtb-ic svg{width:18px;height:18px}
 .gramo-trust-bar strong{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .gramo-trust-bar small{display:none}
}
/* ===== Mobile app-style homepage (2026-11-09) ===== */
@media (max-width:767px){
 body{background:#f3f4f6!important}
 .gramo-trust-bar{display:none!important}
 .home-hero-wrapper{margin:10px 0 14px!important}
 .home-hero-wrapper .home-hero-row{margin-top:0!important;--bs-gutter-y:0;height:auto!important}
 .home-hero-wrapper .hero-section{height:auto!important;min-height:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;border:0!important}
 .home-hero-wrapper .hero-slider{height:auto!important;border-radius:16px!important;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.08)}
 .home-hero-wrapper .hero-slider .owl-dots{position:absolute;left:0;right:0;bottom:6px;margin:0!important;height:auto!important;line-height:0}
 .home-hero-wrapper .hero-slider .owl-dots .owl-dot span{width:6px!important;height:6px!important;margin:0 3px!important;background:rgba(255,255,255,.7)!important}
 .home-hero-wrapper .hero-slider .owl-dots .owl-dot.active span{width:16px!important;background:#fff!important}
 .super-combo-clean-section{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;margin-bottom:16px!important}
 .super-combo-clean-section img{border-radius:14px!important}
 .flash-products-section,.popular-categories-section,.category-products-section{background:#fff!important;border:0!important;border-radius:18px!important;box-shadow:0 2px 10px rgba(15,23,42,.05)!important;padding:14px 12px!important;margin-bottom:14px!important}
 .flash-sales-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px;margin-bottom:10px!important}
 .flash-sales-subtitle{display:none!important}
 .flash-sales-title{font-size:17px!important;margin:0!important}
 .flash-sales-head a,.flash-sales-head .btn{padding:6px 12px!important;font-size:12px!important;border-radius:999px!important;line-height:1.2!important;white-space:nowrap}
 .popular-categories-section h2,.popular-categories-section h3{font-size:17px!important;margin-bottom:6px!important}
 html body #popular-category-slider.owl-carousel:not(.owl-loaded){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:10px!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:2px}
 html body #popular-category-slider.owl-carousel:not(.owl-loaded)::-webkit-scrollbar{display:none}
 html body #popular-category-slider.owl-carousel:not(.owl-loaded)>.item{flex:0 0 74px!important;width:74px!important;scroll-snap-align:start}
 .popular-categories-section .owl-carousel .item *{border:0!important;box-shadow:none!important;background-color:transparent}
 .popular-categories-section .owl-carousel .item img{width:56px!important;height:56px!important;object-fit:contain;border-radius:50%!important;background:#f3f4f6!important;padding:8px}
 .popular-categories-section .owl-carousel .item{font-size:11px!important;text-align:center;line-height:1.25}
 .category-products-section h2,.category-products-section h3{font-size:17px!important}
}
/* desktop: hero box grows with banner so it never overlaps the banners below */
@media (min-width:768px){.home-hero-wrapper,.home-hero-wrapper .home-hero-row{height:auto!important;min-height:0!important}}
/* small promo banners under hero: 3:1 so the full banner is visible (2026-11-09) */
.eid-banner-link,.eid-banner-link img{height:auto!important;max-height:none!important}
.eid-banner-link img{aspect-ratio:3/1!important;width:100%!important;object-fit:cover!important}
/* hide promo sections when all their banners are switched off in admin */
.major-promo:not(:has(img)),.todays-deal:not(:has(img)),.boxed-banner-section:not(:has(img)){display:none!important}

/* Hot Deals section hidden on homepage (2026-11-09) */
.hot-deal-products-section{display:none!important}

/* ===== v9: mobile footer compact + product sticky bar ===== */
.nf-list li:has(a[href*="/hot-deals"]){display:none!important}
@media (max-width: 767.98px){
  html body footer.nf-footer{padding-top:18px!important;margin-top:16px!important}
  html body footer.nf-footer .nf-container{padding-left:16px!important;padding-right:16px!important;padding-bottom:84px!important}
  html body footer.nf-footer .nf-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px 18px!important;margin:0!important}
  html body footer.nf-footer .nf-col{margin:0!important;padding:0!important;min-width:0!important;width:auto!important;max-width:none!important}
  html body footer.nf-footer .nf-col.nf-about{grid-column:1 / -1!important;display:flex!important;flex-direction:column!important;gap:6px!important;padding-bottom:12px!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
  html body footer.nf-footer .nf-about-text{display:none!important}
  html body footer.nf-footer .nf-logo img{height:26px!important;width:auto!important}
  html body footer.nf-footer .nf-hotline{font-size:15px!important;margin:4px 0 0!important}
  html body footer.nf-footer .nf-address{font-size:12.5px!important;line-height:1.45!important;margin:0!important}
  html body footer.nf-footer .nf-title{font-size:12.5px!important;margin:0 0 6px!important;letter-spacing:.04em!important}
  html body footer.nf-footer .nf-list{margin:0!important;padding:0!important}
  html body footer.nf-footer .nf-list li{margin:0!important;padding:0!important}
  html body footer.nf-footer .nf-list li a{display:block!important;font-size:13px!important;line-height:1.3!important;padding:5px 0!important;min-height:0!important}
  html body footer.nf-footer .nf-col:has(input[type="email"]){grid-column:1 / -1!important;padding-top:10px!important;border-top:1px solid rgba(255,255,255,.08)!important}
  html body footer.nf-footer .nf-col:has(input[type="email"]) form,
  html body footer.nf-footer .nf-col:has(input[type="email"]) .nf-title,
  html body footer.nf-footer .nf-col:has(input[type="email"]) p{display:none!important}
  html body footer.nf-footer .nf-bottom{padding:10px 0 0!important;margin-top:12px!important;font-size:11.5px!important;text-align:center!important}
  html body footer.nf-footer .nf-bottom-inner{justify-content:center!important;text-align:center!important}
}

/* ===== v11: smart sticky order bar ===== */
html body .product-sticky-bar.gx{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;top:auto!important;width:auto!important;height:auto!important;display:flex!important;align-items:center!important;gap:10px!important;padding:8px 8px 8px 8px!important;margin:0!important;background:rgba(255,255,255,.94)!important;-webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;border:1px solid rgba(17,24,39,.07)!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(17,24,39,.18)!important;z-index:9990!important;transform:translateY(160%)!important;opacity:0!important;pointer-events:none!important;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .25s!important}
html body .product-sticky-bar.gx.gx-show{transform:none!important;opacity:1!important;pointer-events:auto!important}
.product-sticky-bar.gx .gx-img{width:42px;height:42px;border-radius:12px;object-fit:cover;border:1px solid #eee;flex-shrink:0;background:#fff}
.product-sticky-bar.gx .gx-info{flex:1;min-width:0;line-height:1.15}
.product-sticky-bar.gx .gx-price{font-weight:800;font-size:17px;color:#ff5a00;white-space:nowrap}
.product-sticky-bar.gx .gx-sub{font-size:11px;color:#16a34a;font-weight:600;white-space:nowrap;margin-top:2px}
.product-sticky-bar.gx .gx-wa{width:44px;height:44px;border-radius:14px;background:#e8f8ee;color:#16a34a;display:flex;align-items:center;justify-content:center;flex-shrink:0;text-decoration:none}
.product-sticky-bar.gx .gx-order{height:44px;padding:0 18px;border:0;border-radius:14px;background:linear-gradient(135deg,#ff7a1a,#ff4d00);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;gap:7px;box-shadow:0 6px 16px rgba(255,90,0,.35);flex-shrink:0;cursor:pointer}
.product-sticky-bar.gx .gx-order:active{transform:scale(.97)}
@media (min-width:1024px){html body .product-sticky-bar.gx{display:none!important}}.product-sticky-bar.gx .gx-sub,.product-sticky-bar.gx .gx-price{overflow:hidden;text-overflow:ellipsis}
.product-sticky-bar.gx .gx-order{padding:0 14px;font-size:14.5px}
@media (max-width:360px){.product-sticky-bar.gx .gx-sub{display:none}}