/* Rovekai Premium — cards, shop navigation and filters, product page. Colors follow the Rovekai light skin. */

/* ---- product cards ------------------------------------------------------- */
.pcard-media { aspect-ratio: 1 / 1; background: #fff; }
.pcard-media img { object-fit: contain; }
.pcard-title { font-size: 17px; line-height: 1.25; }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; font-size: 13px; color: #6e6e73; }
.rp-dots { display: inline-flex; gap: 4px; }
.rp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.rp-sizes { letter-spacing: .02em; font-weight: 600; color: #1d1d1f; }
.cube-card .rp-meta { justify-content: center; margin: 0 0 6px; color: #b8b6b1; }
.cube-card .rp-sizes { color: #f4f2ee; }
.cube-card .rp-dot { box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); }
/* desktop: hovering a card shows its back and holds it there (the auto front/back switch keeps running elsewhere) */
@media (hover: hover) and (pointer: fine) {
	.shop-flip .pcard:hover .pcard-img-alt { opacity: 1; }
	.shop-flip .pcard:hover .pcard-img:not(.pcard-img-alt) { opacity: 0; }
}
.pcard:focus-within { outline: 3px solid #d70000; outline-offset: 2px; }
.pcard:focus-within .pcard-title a:focus { outline: none; }

/* ---- shop bar ------------------------------------------------------------ */
.shop-wrap .shop-bar { display: block; padding: 12px 0 10px; }
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.rp-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.rp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #d2d2d7; color: #1d1d1f; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; transition: box-shadow .2s, background .2s, color .2s; }
.rp-chip::-webkit-details-marker { display: none; }
.rp-chip:hover { box-shadow: inset 0 0 0 1.5px #1d1d1f; color: #1d1d1f; text-decoration: none; }
.rp-chip.is-on { background: #1d1d1f; color: #fff; box-shadow: none; }
.rp-chip.is-ayiti:not(.is-on)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(180deg, #00209f 50%, #d21034 50%); }
.rp-chip.is-ayiti.is-on { background: #d70000; }
.rp-more { position: relative; }
.rp-more[open] > summary { box-shadow: inset 0 0 0 1.5px #1d1d1f; }
.rp-more-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; display: grid; min-width: 220px; max-height: 60vh; overflow: auto; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); }
.rp-more-list a { display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border-radius: 10px; color: #1d1d1f; font-size: 15px; text-decoration: none; }
.rp-more-list a:hover, .rp-more-list a[aria-current] { background: #f5f5f7; }
.rp-more-list small { color: #6e6e73; }
.rp-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.rp-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff; font: 700 14px/1 inherit; cursor: pointer; }
.rp-filter-btn:hover { background: #d70000; }
.rp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d70000; color: #fff; font-size: 12px; }
.rp-filter-btn:hover .rp-badge { background: #fff; color: #d70000; }
.rp-tools .woocommerce-ordering { margin: 0; }
.rp-tools .woocommerce-ordering select { min-height: 40px; }
.rp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.rp-count { margin: 0; font-size: 14px; color: #48484c; }
.rp-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rp-active a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font-size: 13px; font-weight: 600; text-decoration: none; }
.rp-active a:hover { background: #1d1d1f; color: #fff; }
.rp-active .rp-clear { background: none; color: #c40000; text-decoration: underline; }

/* filter sheet: a side panel on desktop, a bottom sheet on phones */
html.rp-lock { overflow: hidden; }
.rp-sheet, .rp-sg { padding: 0; border: 0; color: #1d1d1f; background: #fff; }
.rp-sheet { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; }
.rp-sheet[open] { display: flex; animation: rp-in-right .35s cubic-bezier(.2, .8, .2, 1); }
.rp-sheet::backdrop, .rp-sg::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rp-form { display: flex; flex-direction: column; width: 100%; height: 100%; }
.rp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e8e8ed; }
.rp-sheet-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-transform: none; }
.rp-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f5f5f7; color: #1d1d1f; font-size: 26px; line-height: 1; cursor: pointer; }
.rp-x:hover { background: #e8e8ed; }
.rp-sheet-body { flex: 1; overflow: auto; padding: 8px 22px 22px; }
.rp-group { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid #f0f0f2; }
.rp-group legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6e6e73; }
.rp-opts, .rp-links { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-opt { position: relative; }
.rp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px #d2d2d7; font-size: 14px; font-weight: 600; cursor: pointer; transition: box-shadow .15s, background .15s; }
.rp-opts-size .rp-opt span { justify-content: center; min-width: 56px; padding: 0 10px; }
.rp-opt input:checked + span { background: #1d1d1f; color: #fff; box-shadow: none; }
.rp-opt input:focus-visible + span { outline: 3px solid #d70000; outline-offset: 2px; }
.rp-opt-color i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.rp-opt-color input:checked + span i { box-shadow: 0 0 0 2px #fff; }
.rp-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font-size: 14px; font-weight: 600; text-decoration: none; }
.rp-links a.is-on, .rp-links a:hover { background: #1d1d1f; color: #fff; }
.rp-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e8e8ed; }
.rp-reset { color: #1d1d1f; font-size: 15px; font-weight: 600; }
.rp-apply { flex: 1; max-width: 240px; min-height: 52px; border: 0; border-radius: 999px; background: #d70000; color: #fff; font: 800 15px/1 inherit; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rp-apply:hover { background: #b30000; }
@keyframes rp-in-right { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rp-in-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (min-width: 735px) {
	.rp-group-cats { display: none; }
}
@media (max-width: 734px) {
	.shop-wrap .shop-bar { position: sticky; top: var(--gnav-h, 48px); z-index: 20; margin: 0 -20px 6px; padding: 10px 20px; background: rgba(236, 237, 237, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
	.rp-bar { gap: 10px; }
	.rp-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
	.rp-cats::-webkit-scrollbar { display: none; }
	.rp-more { display: none; }
	.rp-chip { min-height: 38px; padding: 0 14px; font-size: 13px; }
	.rp-tools .woocommerce-ordering { display: none; }
	.rp-filter-btn { min-height: 38px; padding: 0 14px; }
	.rp-sheet { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 88dvh; border-radius: 22px 22px 0 0; }
	.rp-sheet[open] { animation-name: rp-in-up; }
	.rp-sheet-body .rp-sort { display: block; }
}

/* ---- product page -------------------------------------------------------- */
.pdp .woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pdp .flex-control-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.rp-hide { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.pdp .variations th, .pdp .variations td.label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.pdp .variations th label { font-weight: 700; }
.rp-chosen { font-weight: 500; color: #6e6e73; }
.rp-sg-inline { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: #f5f5f7; color: #1d1d1f; font: 700 13px/1 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rp-sg-inline:hover { background: #1d1d1f; color: #fff; text-decoration: none; }
.rp-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 56px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #d2d2d7; color: #1d1d1f; font: 600 15px/1 inherit; cursor: pointer; transition: box-shadow .15s, background .15s, color .15s; }
.rp-sw-btn:hover { box-shadow: inset 0 0 0 1.5px #1d1d1f; }
.rp-sw-btn[aria-checked="true"] { background: #1d1d1f; color: #fff; box-shadow: none; }
.rp-sw-btn:focus-visible { outline: 3px solid #d70000; outline-offset: 2px; }
.rp-sw-btn.is-off { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.rp-sw-color .rp-sw-btn { padding: 0 16px 0 10px; }
.rp-sw-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.rp-sw-color .rp-sw-btn[aria-checked="true"] .rp-sw-dot { box-shadow: 0 0 0 2px #fff; }
.rp-info { display: grid; margin-top: 8px; border-top: 1px solid #e8e8ed; }
.rp-acc { border-bottom: 1px solid #e8e8ed; }
.rp-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.rp-acc summary::-webkit-details-marker { display: none; }
.rp-acc summary::after { content: "+"; font-size: 22px; font-weight: 400; color: #6e6e73; transition: transform .25s; }
.rp-acc[open] summary::after { transform: rotate(45deg); }
.rp-acc dl { display: grid; gap: 8px; margin: 0 0 16px; }
.rp-acc dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 14px; }
.rp-acc dt { color: #6e6e73; }
.rp-acc dd { margin: 0; }
.rp-acc ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.rp-acc-links { margin: 0 0 16px; font-size: 14px; }
.rp-sg-link { margin: 0 0 16px; padding: 0; border: 0; background: none; color: #c40000; font: 700 14px/1.4 inherit; text-decoration: underline; cursor: pointer; }
/* size guide dialog */
.rp-sg { width: min(760px, calc(100vw - 32px)); max-height: 88dvh; border-radius: 22px; }
.rp-sg[open] { animation: rp-in-up .35s cubic-bezier(.2, .8, .2, 1); }
.rp-sg-inner { padding-bottom: 22px; }
.rp-sg-name { margin: 16px 22px 4px; font-size: 15px; font-weight: 700; }
.rp-sg-note { margin: 0 22px 14px; font-size: 14px; color: #6e6e73; }
.rp-sg-table { margin: 0 22px; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px #e8e8ed; }
.rp-sg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.rp-sg-table td { padding: 10px 8px; border-bottom: 1px solid #f0f0f2; text-align: center; white-space: nowrap; }
.rp-sg-table tr:first-child td { font-weight: 800; background: #f5f5f7; }
.rp-sg-table tr:nth-child(2) td { font-size: 12px; color: #6e6e73; background: #fbfbfd; }
.rp-sg-table td:first-child { position: sticky; left: 0; text-align: left; font-weight: 700; background: #fff; }
.rp-sg-tips { margin: 18px 22px 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.rp-sg-warn { margin: 18px 22px 0; padding: 14px 16px; border-radius: 12px; background: #fff4f4; font-size: 14px; line-height: 1.5; }
@media (max-width: 734px) {
	.rp-sg { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; }
	.rp-acc dl div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-sheet[open], .rp-sg[open] { animation: none; }
}
.rp-sort { display: none; }
.rp-select { clear: both; width: 100%; min-height: 48px; }
@media (max-width: 734px) { .rp-sort { display: block; } }

/* ---- homepage hero: the slogan reads first ------------------------------- */
.rgh-eyebrow { font-size: clamp(14px, 1.25vw, 17px); letter-spacing: .26em; }
@media (min-width: 1200px) { .shop-wrap .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the shop/category title and intro paint at once (they are the largest text on screen: no fade-in) */
.js .shop-hero .reveal { opacity: 1; transform: none; transition: none; }
.rp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* keep the label row the same height before and after the Size Guide button is added */
.pdp .variations th, .pdp .variations td.label { min-height: 36px; }
/* the gallery keeps one square height from the first paint to the last slide (no jump when the slider starts) */
.pdp .woocommerce-product-gallery .flex-viewport { aspect-ratio: 1 / 1; height: auto !important; }
.pdp .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; overflow: hidden; }
.pdp .woocommerce-product-gallery__image img, .pdp .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
.rp-sg-tol { margin: 10px 22px 0; font-size: 13px; color: #6e6e73; }
.rp-sg-how { margin: 18px 22px 0; padding: 16px; border-radius: 12px; background: #f5f5f7; }
.rp-sg-how h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.rp-sg-how-lede { margin: 0 0 10px; font-size: 14px; color: #48484c; }
.rp-sg-how dl { display: grid; gap: 8px; margin: 0; counter-reset: rpm; }
.rp-sg-how dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.rp-sg-how dt { font-weight: 700; counter-increment: rpm; }
.rp-sg-how dt::before { content: counter(rpm) ". "; color: #c40000; }
.rp-sg-how dd { margin: 0; }
@media (max-width: 734px) { .rp-sg-how dl div { grid-template-columns: 1fr; gap: 2px; } }
