/* Layered product surfaces use the existing RYTLEFT colour and typography tokens. */
.ryt-category-section,.ryt-hot-selling{padding:24px;border:1px solid var(--ryt-line);border-radius:28px;background:var(--ryt-paper);box-shadow:0 12px 32px -24px rgba(17,17,17,.28)}
.ryt-editorial-card{padding:0;border-radius:22px;overflow:hidden;box-shadow:0 8px 20px -16px rgba(17,17,17,.3)}
.ryt-editorial-card__media{border-radius:20px; background:var(--ryt-stone)}
.ryt-editorial-card__media.ryt-fit-contain{aspect-ratio:1}
.ryt-editorial-card__media.ryt-fit-contain img{height:100%;border-radius:0}
.ryt-editorial-card__info{padding:14px 54px 14px 14px;min-height:76px}
.ryt-editorial-card__add{right:6px;top:10px}
.ryt-editorial-card__images{max-width:calc(100% - 16px);overflow-x:auto}
.ryt-editorial-card__images button{flex:none}
.ryt-category-card{box-shadow:0 8px 24px -18px rgba(17,17,17,.35)}
.ryt-category-section__filter :is(select,button){border-radius:16px}
.ryt-product-detail .product_title,.single-product .summary .product_title{font:600 clamp(24px,2.6vw,36px)/1.15 'Space Grotesk',sans-serif;letter-spacing:-.035em;overflow-wrap:anywhere;margin:0 0 16px}
.ryt-product-detail .price ins,.single-product .summary .price ins{text-decoration:none;color:var(--ryt-red);font-weight:600}
.ryt-product-detail .price del,.single-product .summary .price del{font-size:.75em;color:var(--ryt-muted)}
.ryt-product-detail .woocommerce-product-details__short-description,.single-product .woocommerce-product-details__short-description{font:14px/1.75 Inter,sans-serif;color:var(--ryt-muted);margin:16px 0 22px}
.ryt-product-detail .single_add_to_cart_button,.single-product .summary .single_add_to_cart_button{background:var(--ryt-red)!important;box-shadow:0 8px 20px -8px rgba(184,0,18,.45)}
.ryt-product-detail :is(select,input),.single-product .summary :is(select,input){max-width:100%}
/* Keep WooCommerce's native gallery, zoom, swipe, thumbnails and variation image updates. */
body.rytleft-theme .ryt-product-detail>.woocommerce-product-gallery,body.single-product.rytleft-theme .ryt-wc-content div.product>.woocommerce-product-gallery{float:none;width:100%;min-width:0;margin:0}
.ryt-product-detail .woocommerce-product-gallery .flex-viewport,.single-product .woocommerce-product-gallery .flex-viewport{border:1px solid var(--ryt-line);border-radius:24px;background:var(--ryt-stone);box-shadow:0 10px 28px -20px rgba(17,17,17,.3)}
.ryt-product-detail .woocommerce-product-gallery__image,.single-product .woocommerce-product-gallery__image{border-radius:24px;overflow:hidden}
.ryt-product-detail .woocommerce-product-gallery__image img:not(.zoomImg),.single-product .woocommerce-product-gallery__image img:not(.zoomImg){display:block;width:100%;height:auto;object-fit:contain;margin:0}
.ryt-product-detail .woocommerce-product-gallery__image>a,.single-product .woocommerce-product-gallery__image>a{display:block}
body.rytleft-theme .woocommerce-product-gallery .flex-control-thumbs{display:flex;gap:10px;overflow-x:auto;scrollbar-width:thin;margin:12px 0 0;padding:2px;list-style:none}
body.rytleft-theme .woocommerce-product-gallery .flex-control-thumbs li{float:none;flex:0 0 64px;width:64px;margin:0;overflow:hidden;border-radius:12px}
body.rytleft-theme .woocommerce-product-gallery .flex-control-thumbs img{display:block;width:64px;height:64px;object-fit:contain;border:2px solid transparent;border-radius:12px;opacity:.65;cursor:pointer}
body.rytleft-theme .woocommerce-product-gallery .flex-control-thumbs img.flex-active{border-color:var(--ryt-red);opacity:1}
body.rytleft-theme .woocommerce-product-gallery .flex-control-thumbs img:focus-visible{outline:2px solid var(--ryt-red);outline-offset:-2px}
body.rytleft-theme .woocommerce-product-gallery .woocommerce-product-gallery__trigger{z-index:3;top:12px;right:12px;background:var(--ryt-paper);border:1px solid var(--ryt-line);box-shadow:0 4px 12px rgba(17,17,17,.12)}
/* Product page keeps the core template and all summary/add-to-cart hooks. */
body.single-product .ryt-wc-content{max-width:1344px}
body.single-product .ryt-wc-content div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start}
body.single-product .ryt-wc-content div.product:before,body.single-product .ryt-wc-content div.product:after{display:none}
body.single-product .ryt-wc-content div.product>.summary{float:none;width:100%;min-width:0;margin:0;padding:28px;border:1px solid var(--ryt-line);border-radius:28px;background:var(--ryt-paper);box-shadow:0 12px 30px -22px rgba(17,17,17,.3)}
body.single-product div.product>.ryt-product-panels,body.single-product div.product>:is(.related,.upsells){grid-column:1/-1;min-width:0}
body.single-product .woocommerce-breadcrumb{color:var(--ryt-muted);font:11px/1.7 'JetBrains Mono',monospace;margin-bottom:22px}
.ryt-product-panels{display:grid;gap:12px;clear:both}
.ryt-product-panel{border:1px solid var(--ryt-line);border-radius:20px;background:var(--ryt-paper);box-shadow:0 8px 24px -20px rgba(17,17,17,.3);scroll-margin-top:110px;min-width:0}
.ryt-product-panel>summary{display:flex;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;list-style:none;font:600 14px/1.5 'Space Grotesk',sans-serif}
.ryt-product-panel>summary::-webkit-details-marker{display:none}
.ryt-product-panel>summary:after{content:'+';font-size:20px;line-height:1}
.ryt-product-panel[open]>summary:after{content:'−'}
.ryt-product-panel__body{padding:0 24px 24px;font:14px/1.8 Inter,sans-serif;overflow-wrap:anywhere}
.ryt-product-panel__body h2{display:none}
.ryt-product-panel__body a{color:var(--ryt-red);text-decoration:underline;text-underline-offset:3px}
.ryt-product-panel__body p{margin-bottom:12px}
.ryt-product-panel__body :is(table,input,textarea){max-width:100%}
body.dark-mode :is(.ryt-category-section,.ryt-hot-selling,.ryt-editorial-card,.ryt-product-panel){box-shadow:0 12px 30px -22px rgba(0,0,0,.6)}
.pswp{z-index:110}
@media(max-width:767px){
 .ryt-category-section,.ryt-hot-selling{padding:16px 12px;border-radius:22px}
 body.single-product .ryt-wc-content div.product{grid-template-columns:minmax(0,1fr);gap:20px}
 body.single-product .ryt-wc-content div.product>.summary{padding:22px 18px;border-radius:24px}
 .ryt-product-panel>summary{padding:18px;font-size:13px}
 .ryt-product-panel__body{padding:0 18px 18px}
 .ryt-product-panel__body #reviews #comments ol.commentlist{padding:0}
 .ryt-editorial-card{border-radius:18px}.ryt-editorial-card__media{border-radius:16px}
 .ryt-editorial-card__info{padding-left:10px;padding-bottom:10px}
}

body.single-product div.product>.onsale{background:var(--ryt-red);color:#fff;border-radius:999px;z-index:4}
/* Related products are native WooCommerce cards, within the same product surface. */
body.single-product .related.products{padding:24px;border:1px solid var(--ryt-line);border-radius:28px;background:var(--ryt-paper);box-shadow:0 12px 30px -22px rgba(17,17,17,.3)}
body.single-product .related.products>h2{margin:0 0 22px;font:600 24px/1.2 'Space Grotesk',sans-serif}
body.single-product .related.products ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0}
body.single-product .related.products ul.products:before,body.single-product .related.products ul.products:after{display:none}
body.single-product .related.products ul.products li.product{float:none;display:block;width:100%;margin:0;padding:0 0 16px;border:1px solid var(--ryt-line);border-radius:20px;overflow:hidden;box-shadow:0 8px 20px -16px rgba(17,17,17,.3)}
body.single-product .related.products li.product .woocommerce-loop-product__title,body.single-product .related.products li.product .price{padding-inline:14px;color:var(--ryt-ink)}
body.single-product .related.products li.product .button{margin:8px 12px 0;padding:12px 14px}
@media(max-width:767px){body.single-product .related.products{padding:16px 12px;border-radius:22px}body.single-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:359px){body.single-product .related.products ul.products{grid-template-columns:minmax(0,1fr)}}
/* Native WooCommerce regular/sale prices; no synthetic reference prices. */
.ryt-editorial-card__price del,.woocommerce .price del,.ryt-search-price del{font-size:.85em;color:var(--ryt-muted);opacity:.8;margin-right:4px;display:inline-block}
.ryt-editorial-card__price ins,.woocommerce .price ins,.ryt-search-price ins{font-weight:600;color:var(--ryt-ink);text-decoration:none;display:inline-block}
.ryt-editorial-card__price .amount,.ryt-search-price .amount{white-space:nowrap}
.ryt-editorial-card{cursor:pointer}
body.single-product .summary .stock,body.single-product .summary .woocommerce-variation-availability{display:block}
body.single-product div.product>.ryt-discovery{grid-column:1/-1;min-width:0;padding:24px;border:1px solid var(--ryt-line);border-radius:28px;background:var(--ryt-paper);box-shadow:0 12px 30px -22px rgba(17,17,17,.3)}
.ryt-discovery h2{margin:0 0 22px;font:600 26px/1.2 'Space Grotesk',sans-serif}.ryt-discovery-status{margin:18px 0 0;color:var(--ryt-muted);font-size:12px}.ryt-discovery-more{border:1px solid var(--ryt-line);margin-top:16px}.ryt-discovery-more[aria-busy=true]{opacity:.6;pointer-events:none}.ryt-discovery [hidden]{display:none!important}
@media(max-width:767px){body.single-product div.product>.ryt-discovery{padding:16px 12px;border-radius:22px}.ryt-discovery h2{font-size:23px}}
