/* Shared accessible product components. Only loaded on a product page. */
body[data-product-layout] .theme-product-summary { display: contents; }
body[data-product-layout] .store-product-page { padding: 0 !important; overflow: visible !important; }
body[data-product-layout] .store-product-page .product-detail-layout { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
body[data-product-layout] .product-detail-layout > * { min-width: 0; }
body[data-product-layout] .product-summary-header { grid-area: heading; padding: 0; }
body[data-product-layout] .product-gallery { grid-area: gallery; }
body[data-product-layout] .theme-purchase-panel { grid-area: purchase; padding: 0; gap: 1.3rem; }
body[data-product-layout] .store-product-page .product-long-details { display: block; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: transparent; gap: 1rem; }
body[data-product-layout] .product-long-details [hidden] { display: none !important; }
body[data-product-layout] .theme-details-group { min-width: 0; width: 100%; }
body[data-product-layout] [data-theme-detail-section] { padding: 1.4rem 0; margin: 0 !important; border: 0; background: transparent; box-shadow: none; }
body[data-product-layout] .theme-detail-tabs { display: flex; gap: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--color-border); scrollbar-width: thin; }
body[data-product-layout] .theme-detail-tabs button { flex-shrink: 0; min-height: 48px; padding: .8rem 0; border-bottom: 2px solid transparent; color: var(--color-text-secondary); font-size: .85rem; }
body[data-product-layout] .theme-detail-tabs button[aria-selected="true"] { border-color: var(--color-primary); color: var(--color-text-primary); font-weight: 650; }
body[data-product-layout] .theme-details-group details { border-bottom: 1px solid var(--color-border); }
body[data-product-layout] .theme-details-group summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 1rem; font-weight: 600; list-style: none; }
body[data-product-layout] .theme-details-group summary::-webkit-details-marker { display: none; }
body[data-product-layout] .theme-details-group summary::after { content: '+'; font-weight: 400; font-size: 1.4rem; }
body[data-product-layout] .theme-details-group details[open] > summary::after { content: '−'; }
body[data-product-layout] .theme-product-navigation { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.7rem; padding: .5rem 0; border-bottom: 1px solid var(--color-border); }
body[data-product-layout] .theme-product-navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
body[data-product-layout] :is(#theme-product-details, #theme-product-purchase) { scroll-margin-top: 8rem; }
body[data-product-layout] .theme-product-quantity { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: .85rem; }
body[data-product-layout] .theme-product-quantity[hidden] { display: none; }
body[data-product-layout] .theme-product-quantity > div { display: flex; border: 1px solid var(--color-border); border-radius: var(--theme-radius); overflow: hidden; }
body[data-product-layout] .theme-product-quantity button { width: 44px; min-height: 44px; background: var(--color-background-tertiary); font-size: 1.2rem; }
body[data-product-layout] .theme-product-quantity input { width: 3rem; min-width: 0; border: 0; text-align: center; padding: 0; background: var(--color-background-secondary); color: var(--color-text-primary); -moz-appearance: textfield; }
body[data-product-layout] .theme-product-quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
body[data-product-layout] .theme-photo-wall { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
body[data-product-layout] .theme-photo-wall:empty { display: none; }
body[data-product-layout] .theme-photo-wall button { position: relative; aspect-ratio: .85; overflow: hidden; background: var(--color-background-tertiary); border-radius: var(--theme-radius); }
body[data-product-layout] .theme-photo-wall img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
body[data-product-layout] .theme-photo-wall span { position: absolute; bottom: .75rem; left: .75rem; padding: .25rem .5rem; background: var(--color-background-secondary); font-size: .7rem; }
body[data-product-layout] .theme-product-intro { font-size: .9rem; line-height: 1.8; color: var(--color-text-secondary); margin-top: 1rem; }
body[data-product-layout] .product-code-inline { margin-top: 1.5rem; }
body[data-product-layout]:not([data-product-layout="marketplace"]):not([data-product-layout="clara"]) .store-product-page .product-gallery { display: block; }
body[data-product-layout]:not([data-product-layout="marketplace"]):not([data-product-layout="clara"]) .store-product-page #thumbnails-container { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden !important; scroll-snap-type: x proximity; }
body[data-product-layout] .store-product-page .product-gallery-thumbnails { margin-top: .75rem; }
body[data-product-layout] :is(.theme-detail-tabs button, .theme-product-navigation a, .theme-details-group summary, .theme-product-quantity button, .theme-photo-wall button):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
body[data-product-layout] .theme-mobile-purchase { display: none; }
body[data-product-layout]:has(#cart-sidebar.open) .theme-mobile-purchase { display: none !important; }
@media (min-width: 1024px) {
 body[data-product-layout] .store-product-page .product-detail-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); grid-template-areas: 'gallery heading' 'gallery purchase' 'details details'; grid-template-rows: auto 1fr auto; align-items: start; gap: 1.75rem 3rem !important; }
 body[data-product-layout] .store-product-page .product-gallery { --store-gallery-height: clamp(25rem,39vw,38rem); }
 body:is([data-product-layout="galeria"], [data-product-layout="maison"], [data-product-layout="aurea"], [data-product-layout="estudio"]) .store-product-page .product-detail-layout { grid-template-rows: auto auto 1fr; }
 body:is([data-product-layout="galeria"], [data-product-layout="maison"], [data-product-layout="aurea"], [data-product-layout="estudio"]) .store-product-page .product-gallery { grid-row: 1 / 4; }
}
@media (max-width: 1023px) {
 body[data-product-layout] .store-product-page .product-detail-layout { display: flex; flex-direction: column; gap: 1.5rem !important; }
 body[data-product-layout] .product-summary-header { order: 0; }
 body[data-product-layout] .product-gallery { order: 1; width: 100%; }
 body[data-product-layout] .theme-purchase-panel { order: 2; }
 body[data-product-layout] .product-long-details { order: 3; }
 body[data-product-layout] .theme-photo-wall { display: none; }
 body[data-product-layout] .theme-product-navigation { margin-bottom: 1rem; gap: 1.5rem; }
 body[data-product-layout] .theme-purchase-panel { position: static !important; }
}
@media (max-width: 600px) {
 body[data-product-layout] .store-product-page .product-summary-header h1 { font-size: 1.65rem !important; }
 body[data-product-layout] .theme-detail-tabs { gap: 1rem; }
 body[data-product-layout] .theme-detail-tabs button { font-size: .78rem; }
 body[data-product-layout] .product-long-details { padding-top: .5rem; }
 body[data-product-layout] .theme-product-specifications .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body[data-product-layout] .theme-mobile-purchase:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem max(.8rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-background-secondary); box-shadow: 0 -5px 20px #00000008; }
 body[data-product-layout] .theme-mobile-purchase > span { font-size: 1.2rem; font-weight: 650; white-space: nowrap; }
 body[data-product-layout] .theme-mobile-purchase button { padding: .75rem 1rem; min-height: 44px; border-radius: var(--theme-radius); background: var(--color-primary); color: var(--color-on-primary); font-size: .8rem; font-weight: 650; }
 body[data-product-layout] .theme-mobile-purchase button:disabled { opacity: .55; }
 body[data-product-layout].theme-mobile-purchase-visible .floating-cart-btn { bottom: 6rem; }
 body[data-product-layout] .store-footer { padding-bottom: 6rem; }
}
