/* =========================================================
   RAADHAYE ARTS V4.8 CANONICAL STOREFRONT UI
   Loaded last. One source of truth for hero, product sliders and cards.
========================================================= */

/* ---------- Shared artwork-only hero ---------- */
.rd-media-hero,
.rd-media-hero-slides{width:100%;position:relative;overflow:hidden;background:#f8f4ee}
.rd-media-hero{min-height:0!important;height:auto!important}
.rd-media-hero-slides{aspect-ratio:8/3;isolation:isolate}
.rd-media-hero-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .55s ease,visibility 0s linear .55s!important;z-index:0!important}
.rd-media-hero-slide.is-active{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:1!important;transition:opacity .55s ease,visibility 0s linear 0s!important}
.rd-media-hero-slide picture,.rd-media-hero-slide img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important}
.rd-media-hero-slide img{object-fit:cover!important;object-position:center!important}
.rd-media-hero .rd-shop-hs::after,
.rd-media-hero .rd-hero-shade,
.rd-media-hero .rd-shop-hero-copy,
.rd-media-hero .rd-shop-arrow,
.rd-media-hero .rd-shop-dots,
.rd-media-hero .rd-hero-arrow,
.rd-media-hero .rd-hero-dots{display:none!important}

/* ---------- Product slider sections: edge-to-edge track ---------- */
.rd-pslider,
.rd-shop-product-slider-section{overflow:hidden}
.rd-pslider>.container,
.rd-shop-product-slider-section>.container{width:100%!important;max-width:none!important;margin:0!important;padding-left:clamp(18px,4vw,64px)!important;padding-right:clamp(18px,4vw,64px)!important}
.rd-product-slider-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px;min-width:0}
.rd-product-slider-head>div{min-width:0;flex:1 1 auto}
.rd-product-slider-head h2{margin:4px 0 0;font-size:clamp(28px,3vw,42px);line-height:1.08}
.rd-product-slider-head p{margin:7px 0 0;color:var(--rd-muted);font-size:13px;line-height:1.55;max-width:650px}
.rd-product-slider-head .rd-pill{flex:0 0 auto;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 16px;border:1px solid var(--rd-black);border-radius:999px;background:#fff;color:var(--rd-black);text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;line-height:1}
.rd-product-slider-head .rd-pill svg{width:14px;height:14px;flex:0 0 14px}
.rd-product-slider-head .rd-pill:hover{background:var(--rd-red);border-color:var(--rd-red);color:#fff;transform:translateY(-1px)}
.rd-pslider .rd-slider,
.rd-shop-product-slider-section .rd-slider{width:100%;min-width:0;padding:0!important}
.rd-pslider .rd-track,
.rd-shop-product-slider-section .rd-track{width:100%;display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;padding:4px 0 22px;margin:0;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rd-pslider .rd-track::-webkit-scrollbar,
.rd-shop-product-slider-section .rd-track::-webkit-scrollbar{display:none}
.rd-pslider .rd-track>.product-card,
.rd-shop-product-slider-section .rd-track>.product-card{flex:0 0 calc((100% - 64px)/5)!important;width:calc((100% - 64px)/5)!important;max-width:calc((100% - 64px)/5)!important;min-width:0!important}
.rd-pslider .rd-sl-btn,
.rd-shop-product-slider-section .rd-sl-btn{top:43%;width:42px;height:42px}
.rd-pslider .rd-sl-btn.prev,
.rd-shop-product-slider-section .rd-sl-btn.prev{left:8px}
.rd-pslider .rd-sl-btn.next,
.rd-shop-product-slider-section .rd-sl-btn.next{right:8px}

/* ---------- Product card: compact, aligned and predictable ---------- */
.rd-slider-product-card{border-radius:14px!important;box-shadow:0 5px 18px rgba(14,14,16,.06);transform:none!important}
.rd-slider-product-card:hover{transform:translateY(-4px)!important;box-shadow:0 14px 32px rgba(14,14,16,.11)}
.rd-slider-product-card .pc-img{aspect-ratio:1/1!important;background:#f6f4f1!important}
.rd-slider-product-card .pc-img img{object-fit:contain!important;padding:7px!important}
.rd-slider-product-card .pc-wa{width:34px;height:34px;right:9px;top:9px}
.rd-slider-product-card .pc-wa svg{width:18px;height:18px}
.rd-slider-product-card .pc-view{font-size:11px;padding:7px 12px;bottom:9px}
.rd-slider-product-card .pc-body{padding:11px 11px 12px!important;gap:6px!important;min-width:0}
.rd-slider-product-card h3{font-size:13px!important;line-height:1.35!important;min-height:35px!important;max-height:35px!important;overflow:hidden}
.rd-slider-product-card .price{font-size:14px!important;line-height:1.25;min-height:19px;display:flex;align-items:baseline;gap:3px;white-space:nowrap}
.rd-slider-product-card .price .from{font-size:9.5px!important}
.rd-slider-product-card .pc-actions{display:grid!important;grid-template-columns:88px minmax(0,1fr);gap:6px!important;margin-top:2px!important;min-width:0}
.rd-slider-product-card .rd-qty{width:88px!important;height:36px!important;border-radius:8px!important}
.rd-slider-product-card .rd-qty button{width:25px!important}
.rd-slider-product-card .rd-qty input{width:34px!important;font-size:12px!important}
.rd-slider-product-card .rd-add{height:36px!important;min-height:36px!important;padding:0 8px!important;border-radius:8px!important;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden}
.rd-slider-product-card .rd-add .lbl{justify-content:center;gap:5px;line-height:1}
.rd-slider-product-card .rd-add .lbl b{font-size:10.5px!important;font-weight:700}
.rd-slider-product-card .rd-add .lbl svg{width:14px;height:14px;flex:0 0 14px}

/* ---------- Shop category / inspiration cards ---------- */
.rd-shop-categories .rd-track{gap:14px}
.rd-shop-categories .rd-track>.rd-slide{flex:0 0 calc((100% - 56px)/5)!important;width:calc((100% - 56px)/5)!important;max-width:calc((100% - 56px)/5)!important}
.rd-shop-categories .rd-shop-cat{height:100%;min-width:0}
.rd-shop-inspiration .rd-track{gap:14px}
.rd-shop-inspiration .rd-track>.rd-slide{flex:0 0 calc((100% - 28px)/3)!important;width:calc((100% - 28px)/3)!important;max-width:calc((100% - 28px)/3)!important}

/* ---------- Catalogue grid ---------- */
.rd-catalogue-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
.rd-catalogue-grid .product-card .pc-img{aspect-ratio:1/1!important;background:#f7f5f2}
.rd-catalogue-grid .product-card .pc-img img{object-fit:contain!important;padding:8px!important}
.rd-catalogue-grid .product-card h3{min-height:43px}
.rd-catalogue-grid .product-card .pc-actions{min-width:0}
.rd-catalogue-grid .product-card .rd-add{white-space:nowrap;display:flex;align-items:center;justify-content:center}

/* ---------- Mobile ---------- */
@media(max-width:1100px){
  .rd-pslider .rd-track>.product-card,
  .rd-shop-product-slider-section .rd-track>.product-card{flex-basis:calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important;max-width:calc((100% - 48px)/4)!important}
  .rd-catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .rd-media-hero-slides{aspect-ratio:1122/1402!important}
  .rd-media-hero-slide img{object-fit:contain!important;background:#f8f4ee!important}
  .rd-product-slider-head{align-items:center;gap:12px;margin-bottom:13px}
  .rd-product-slider-head h2{font-size:21px;line-height:1.12}
  .rd-product-slider-head p{display:none}
  .rd-product-slider-head .section-eyebrow{font-size:8.5px;letter-spacing:1.8px}
  .rd-product-slider-head .rd-pill{min-height:34px;padding:7px 10px;font-size:9.5px;gap:4px}
  .rd-product-slider-head .rd-pill svg{width:11px;height:11px}
  .rd-pslider>.container,
  .rd-shop-product-slider-section>.container{padding-left:14px!important;padding-right:14px!important}
  .rd-pslider .rd-track,
  .rd-shop-product-slider-section .rd-track{gap:10px;padding:3px 0 18px}
  .rd-pslider .rd-track>.product-card,
  .rd-shop-product-slider-section .rd-track>.product-card{flex:0 0 calc((100% - 10px)/2)!important;width:calc((100% - 10px)/2)!important;max-width:calc((100% - 10px)/2)!important}
  .rd-pslider .rd-sl-btn,
  .rd-shop-product-slider-section .rd-sl-btn{display:none!important}
  .rd-slider-product-card{border-radius:11px!important}
  .rd-slider-product-card .pc-img{aspect-ratio:1/1!important}
  .rd-slider-product-card .pc-img img{padding:4px!important}
  .rd-slider-product-card .pc-wa{width:28px;height:28px;right:6px;top:6px}
  .rd-slider-product-card .pc-wa svg{width:15px;height:15px}
  .rd-slider-product-card .pc-view{display:none!important}
  .rd-slider-product-card .pc-body{padding:8px 8px 9px!important;gap:5px!important}
  .rd-slider-product-card h3{font-size:11px!important;line-height:1.28!important;min-height:29px!important;max-height:29px!important}
  .rd-slider-product-card .price{font-size:12px!important;min-height:16px}
  .rd-slider-product-card .price .from{font-size:8px!important}
  .rd-slider-product-card .pc-actions{grid-template-columns:1fr!important;gap:5px!important}
  .rd-slider-product-card .rd-qty{width:100%!important;height:30px!important}
  .rd-slider-product-card .rd-qty button{width:24px!important}
  .rd-slider-product-card .rd-qty input{font-size:11px!important}
  .rd-slider-product-card .rd-add{width:100%!important;height:32px!important;min-height:32px!important;padding:0 5px!important}
  .rd-slider-product-card .rd-add .lbl b{font-size:9px!important}
  .rd-slider-product-card .rd-add .lbl svg{width:12px;height:12px}

  .rd-shop-categories .rd-track>.rd-slide{flex:0 0 72%!important;width:72%!important;max-width:72%!important}
  .rd-shop-inspiration .rd-track>.rd-slide{flex:0 0 82%!important;width:82%!important;max-width:82%!important}
  .rd-shop-categories .rd-sl-btn,.rd-shop-inspiration .rd-sl-btn{display:none!important}
  .rd-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .rd-catalogue-grid .product-card{border-radius:11px}
  .rd-catalogue-grid .product-card .pc-body{padding:8px!important;gap:5px}
  .rd-catalogue-grid .product-card h3{font-size:11px;line-height:1.3;min-height:29px}
  .rd-catalogue-grid .product-card .price{font-size:12px}
  .rd-catalogue-grid .product-card .pc-actions{grid-template-columns:1fr!important;gap:5px}
  .rd-catalogue-grid .product-card .rd-qty{width:100%;height:30px}
  .rd-catalogue-grid .product-card .rd-add{height:32px;min-height:32px;padding:0 5px;font-size:9px}
}
@media(max-width:380px){
  .rd-product-slider-head h2{font-size:19px}
  .rd-product-slider-head .rd-pill{font-size:9px;padding-inline:8px}
  .rd-pslider .rd-track>.product-card,
  .rd-shop-product-slider-section .rd-track>.product-card{flex-basis:78%!important;width:78%!important;max-width:78%!important}
}
