/* RED20-V14-FINAL-POLISH-20260902
   UI/UX-only polish + requested default COD selection in checkout template.
   - Explore More = image-only promo cards, one native horizontal row (6.5 desktop / 3.5 mobile)
   - Home mobile Categories = 4 full circle cards + half next, full-frame artwork
   - Cart / Checkout order summary = compact, aligned, non-technical
   - Theme/color/dark-mode controls hidden
   - Open-in-app sheet removed by include-script.php
*/
:root{--r20:#ff5a00;--r20-ink:#20242a;--r20-muted:#737a84;--r20-line:#e8ebef;--r20-soft:#f6f7f9;--r20-green:#16844a}

/* =========================================================
   REMOVE THEME / DARK MODE UI
   ========================================================= */
html body #colors-switcher,
html body .darkmode-toggle,
html body .darkmode-layer,
html body .darkmode-background{display:none!important}

/* =========================================================
   HOME CATEGORY STRIP
   Mobile target: 4 full + half next, native horizontal swipe.
   ========================================================= */
html body .category-section{
  background:#fff!important;border:0!important;border-radius:16px!important;
  box-shadow:none!important;padding:10px 10px 12px!important;overflow:hidden!important;
}
html body .category-section .category-section-title{margin:0 0 8px!important}
html body .category-section .category-section-title h3{
  color:var(--r20-ink)!important;font-size:21px!important;line-height:1.2!important;
  font-weight:900!important;text-align:left!important;margin:0!important;
}
html body .category-section>.conatiner-fluid>.row,
html body .category-section>.container-fluid>.row{
  display:block!important;margin:0!important;padding:0!important;max-width:none!important;
}
html body .category-section ul.d-flex{
  display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;
  align-items:flex-start!important;gap:12px!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:3px 22px 5px 1px!important;overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y pinch-zoom!important;
  scrollbar-width:none!important;scroll-snap-type:x proximity!important;
}
html body .category-section ul.d-flex::-webkit-scrollbar{display:none!important}
html body .category-section ul.d-flex li{
  flex:0 0 98px!important;width:98px!important;min-width:98px!important;max-width:98px!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important;
  box-shadow:none!important;scroll-snap-align:start!important;
}
html body .category-section ul.d-flex li>div{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important}
html body .category-section ul.d-flex li>div>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;
  padding:0!important;margin:0 auto!important;border-radius:50%!important;overflow:hidden!important;
  background:#f3f4f5!important;border:1px solid #e7e9ed!important;box-shadow:0 3px 10px rgba(25,30,38,.045)!important;
}
html body .category-section ul.d-flex li>div>a img{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;border-radius:50%!important;padding:0!important;margin:0!important;
}
html body .category-section ul.d-flex li h4{
  width:100%!important;margin:7px 0 0!important;padding:0 2px!important;font-size:11px!important;line-height:1.2!important;
  font-weight:750!important;color:var(--r20-ink)!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}

/* =========================================================
   EXPLORE MORE — match supplied reference: image is the card.
   No colour panel, no white inner pad, no label under artwork.
   ========================================================= */
html body .red20-explore-section{
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  padding:10px 0 14px!important;margin-top:10px!important;overflow:hidden!important;
}
html body .red20-explore-section .red20-section-head{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;
  padding:0 4px 8px!important;margin:0!important;
}
html body .red20-explore-section .red20-section-head h2{
  margin:0!important;font-size:28px!important;line-height:1.05!important;font-weight:950!important;color:#111!important;
}
html body .red20-explore-section .red20-section-head h2 strong{color:#f20d13!important}
html body .red20-explore-section .red20-section-head p{display:none!important}
html body .red20-explore-scroll{
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:14px!important;
  width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 34px 8px 1px!important;
  scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y pinch-zoom!important;
  scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain!important;
}
html body .red20-explore-scroll::-webkit-scrollbar{display:none!important}
html body .red20-explore-card{
  flex:0 0 calc((100% - 84px)/6.5)!important;width:calc((100% - 84px)/6.5)!important;
  min-width:calc((100% - 84px)/6.5)!important;max-width:calc((100% - 84px)/6.5)!important;
  display:block!important;padding:0!important;margin:0!important;border:0!important;border-radius:15px!important;
  background:transparent!important;box-shadow:none!important;overflow:hidden!important;scroll-snap-align:start!important;
}
html body .red20-explore-card .red20-explore-image{
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/4!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:15px!important;
  background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
html body .red20-explore-card .red20-explore-image img{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;border-radius:15px!important;padding:0!important;margin:0!important;
  transition:transform .18s ease!important;
}
html body .red20-explore-card:hover .red20-explore-image{transform:none!important;box-shadow:none!important}
html body .red20-explore-card:hover .red20-explore-image img{transform:scale(1.025)!important}
html body .red20-explore-name{display:none!important}

/* =========================================================
   CART — simple and aligned on both viewport types.
   ========================================================= */
html body .red20-cart-page .row{align-items:flex-start!important}
html body .red20-cart-page .col-xl-8,
html body .red20-cart-page .col-xl-4{background:transparent!important}
html body .red20-cart-page .cart-table-wrapper,
html body .red20-cart-page .cart-product-summary{
  background:#fff!important;border:1px solid var(--r20-line)!important;border-radius:16px!important;
  box-shadow:0 3px 14px rgba(25,30,36,.035)!important;
}
html body .red20-cart-page .cart-table-wrapper{padding:12px!important}
html body .red20-cart-page .cart-product-summary{padding:17px!important;position:sticky!important;top:102px!important}
html body .red20-cart-page .cart-product-summary h3{font-size:18px!important;font-weight:900!important;margin:0 0 3px!important;color:var(--r20-ink)!important}
html body .red20-cart-page .red20-summary-help{font-size:11px!important;line-height:1.4!important;color:var(--r20-muted)!important;margin-bottom:12px!important}
html body .red20-cart-page .cart-products-table td{vertical-align:middle!important}
html body .red20-cart-page .total-price td{font-size:19px!important;font-weight:950!important;color:var(--r20-ink)!important;border-top:1px solid var(--r20-line)!important;padding-top:14px!important}
html body .red20-cart-page #checkout .block{width:100%!important;min-height:50px!important;border-radius:12px!important;font-size:14px!important;font-weight:900!important}

/* =========================================================
   CHECKOUT — compact order summary + one visible delivery line.
   Legacy COD/non-COD fields remain in DOM for checkout.js.
   ========================================================= */
html body .red20-checkout-page .checkout-order-wrapper{
  background:#fff!important;border:1px solid var(--r20-line)!important;border-radius:17px!important;
  box-shadow:0 4px 18px rgba(25,30,36,.045)!important;padding:16px!important;position:sticky!important;top:102px!important;
}
html body .red20-checkout-page .checkout-title h1{
  font-size:19px!important;line-height:1.2!important;font-weight:950!important;color:var(--r20-ink)!important;margin:0 0 4px!important;
}
html body .red20-checkout-page .product-checkout-title h2,
html body .red20-checkout-page .product-checkout-title a{font-size:11px!important;font-weight:750!important;color:var(--r20-muted)!important;text-decoration:none!important}
html body .red20-checkout-page .product-checkout{margin-top:9px!important}
html body .red20-checkout-page .product-checkout .border-line{
  padding:9px 0!important;margin:0!important;border-bottom:1px solid #f0f1f3!important;
}
html body .red20-checkout-page .product-checkout .product-wrap{
  display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%!important;
}
html body .red20-checkout-page .product-checkout .widget-image{width:64px!important;height:64px!important;margin:0!important}
html body .red20-checkout-page .product-checkout .widget-image img{
  display:block!important;width:64px!important;height:64px!important;object-fit:contain!important;border:1px solid #eff1f3!important;
  border-radius:11px!important;background:#fff!important;padding:3px!important;
}
html body .red20-checkout-page .product-checkout .product-info{min-width:0!important;text-align:left!important}
html body .red20-checkout-page .product-checkout .product-title{
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  font-size:12px!important;line-height:1.28!important;font-weight:800!important;color:var(--r20-ink)!important;text-decoration:none!important;
}
html body .red20-checkout-page .product-checkout .qty{font-size:10.5px!important;margin-top:4px!important}
html body .red20-checkout-page .product-checkout .item-price{font-size:12px!important;font-weight:900!important;color:var(--r20-ink)!important;white-space:nowrap!important}
html body .red20-checkout-page .red20-item-tax-detail{display:none!important}
html body .red20-checkout-page .red20-legacy-delivery-row{display:none!important}
html body .red20-checkout-page .cart-total-price{margin-top:6px!important}
html body .red20-checkout-page .cart-products-table{margin:0!important;width:100%!important}
html body .red20-checkout-page .cart-products-table tbody tr:not(.red20-legacy-delivery-row),
html body .red20-checkout-page .cart-products-table tfoot tr{
  border-bottom:1px solid #f1f2f4!important;
}
html body .red20-checkout-page .cart-products-table td{
  border:0!important;padding:9px 2px!important;font-size:12px!important;color:var(--r20-muted)!important;vertical-align:middle!important;
}
html body .red20-checkout-page .cart-products-table td:last-child{text-align:right!important;color:var(--r20-ink)!important;font-weight:800!important}
html body .red20-checkout-page .red20-simple-delivery-row td{color:var(--r20-ink)!important}
html body .red20-summary-label{display:inline-flex!important;align-items:center!important;gap:7px!important}
html body .red20-summary-label i{color:var(--r20)!important}
html body .red20-checkout-page .red20-wallet-summary-row{display:none}
html body .red20-checkout-page .total-price td{
  padding-top:14px!important;border-top:1px solid var(--r20-line)!important;border-bottom:0!important;
  font-size:18px!important;font-weight:950!important;color:var(--r20-ink)!important;
}
html body .red20-checkout-page #place_order_btn{
  width:100%!important;min-height:52px!important;margin-top:10px!important;border-radius:12px!important;
  font-size:15px!important;font-weight:950!important;box-shadow:0 6px 18px rgba(255,90,0,.18)!important;
}

/* Payment cards — COD is selected by default in checkout.php. */
html body .red20-checkout-page .payment-methods tr{transition:border-color .15s ease,background .15s ease,box-shadow .15s ease!important}
html body .red20-checkout-page .payment-methods tr:has(#cod:checked){border-color:var(--r20)!important;background:#fff7f2!important;box-shadow:0 0 0 2px rgba(255,90,0,.08)!important}

/* =========================================================
   MOBILE
   ========================================================= */
@media(max-width:767.98px){
  html body .category-section{padding:8px 0 10px 8px!important;border-radius:13px!important}
  html body .category-section .category-section-title{padding-right:8px!important;margin-bottom:7px!important}
  html body .category-section .category-section-title h3{font-size:18px!important}
  html body .category-section ul.d-flex{gap:7px!important;padding:2px 18px 4px 0!important}
  html body .category-section ul.d-flex li{
    /* 4 complete cards + half of the fifth as a swipe cue */
    flex:0 0 calc((100vw - 44px)/4.5)!important;width:calc((100vw - 44px)/4.5)!important;
    min-width:calc((100vw - 44px)/4.5)!important;max-width:calc((100vw - 44px)/4.5)!important;
  }
  html body .category-section ul.d-flex li>div>a{
    width:min(68px,calc((100vw - 58px)/4.5))!important;height:min(68px,calc((100vw - 58px)/4.5))!important;
    min-width:0!important;min-height:0!important;border:1px solid #eceef0!important;
  }
  html body .category-section ul.d-flex li h4{font-size:9px!important;margin-top:5px!important;padding:0!important}

  html body .red20-explore-section{padding:7px 0 10px 8px!important;margin-top:4px!important}
  html body .red20-explore-section .red20-section-head{padding:0 8px 7px 0!important}
  html body .red20-explore-section .red20-section-head h2{font-size:21px!important}
  html body .red20-explore-actions .red20-native-arrow{display:none!important}
  html body .red20-explore-scroll{gap:8px!important;padding:1px 18px 6px 0!important}
  html body .red20-explore-card{
    flex:0 0 calc((100vw - 42px)/3.5)!important;width:calc((100vw - 42px)/3.5)!important;
    min-width:calc((100vw - 42px)/3.5)!important;max-width:calc((100vw - 42px)/3.5)!important;border-radius:11px!important;
  }
  html body .red20-explore-card .red20-explore-image,
  html body .red20-explore-card .red20-explore-image img{border-radius:11px!important}

  html body .red20-cart-page .col-xl-8,
  html body .red20-cart-page .col-xl-4,
  html body .red20-checkout-page .col-xl-8,
  html body .red20-checkout-page .col-xl-4{margin-top:10px!important}
  html body .red20-cart-page .cart-table-wrapper{padding:7px!important;border-radius:13px!important}
  html body .red20-cart-page .cart-product-summary{position:static!important;padding:14px!important;border-radius:13px!important}

  html body .red20-checkout-page .checkout-order-wrapper{position:static!important;padding:12px!important;border-radius:13px!important}
  html body .red20-checkout-page .checkout-title h1{font-size:17px!important}
  html body .red20-checkout-page .product-checkout .product-wrap{grid-template-columns:58px minmax(0,1fr) auto!important;gap:8px!important}
  html body .red20-checkout-page .product-checkout .widget-image,
  html body .red20-checkout-page .product-checkout .widget-image img{width:58px!important;height:58px!important}
  html body .red20-checkout-page .product-checkout .product-title{font-size:11px!important}
  html body .red20-checkout-page .product-checkout .item-price{font-size:11px!important}
  html body .red20-checkout-page .cart-products-table td{padding:8px 1px!important;font-size:11.5px!important}
  html body .red20-checkout-page .total-price td{font-size:17px!important}
  html body .red20-checkout-page #place_order_btn{position:sticky!important;bottom:72px!important;z-index:8!important;min-height:54px!important}
}
