/* Above-the-fold product layout and gallery critical styles. */
.sp-container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.pp-layout { display: flex; flex-direction: column; padding-bottom: 0; }
.sp-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 0; }
.sp-grid > * { min-width: 0; }
.sp-gallery { position: relative; }
.sp-image-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 280px; overflow: hidden; border-radius: 12px; background: #f8f9fa; border: 1px solid #f1f5f9; box-shadow: 0 6px 24px rgba(0,0,0,0.16); contain: layout style paint; }
.sp-image-wrap img, .sp-image-wrap #dz-main-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sp-image-wrap #dz-main-image { z-index: 2; }
.sp-badge-discount, .sp-badge-out { position: absolute; z-index: 3; }
.sp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; }
.sp-thumb-item { width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border-radius: 8px; }
.sp-thumb-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-info { display: flex; flex-direction: column; gap: 16px; }
.pp-layout .sp-image-wrap { min-height: 320px; }
@media (min-width: 768px) { .sp-container { padding: 32px 24px 80px; } .sp-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .pp-layout .sp-image-wrap { min-height: 400px; } }
@media (max-width: 380px) { .sp-container { padding: 16px 12px 40px; } .sp-image-wrap { border-radius: 8px; } .sp-thumb-item { width: 56px; height: 56px; } }

/* === Landing above-the-fold (mirrors product.css final values; async-safe) === */
.lp-content-area { width: 100% !important; max-width: 100% !important; }
.lp-content-area img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block; margin: 0 auto; object-fit: cover; }
.lp-content-area p, .lp-content-area h1, .lp-content-area h2, .lp-content-area h3, .lp-content-area h4, .lp-content-area h5, .lp-content-area h6 { text-align: center; }
.lp-img-wrap { display: block; width: 100%; line-height: 0; font-size: 0; overflow: hidden; margin: 1.5rem 0; contain: layout style; }
.lp-img-wrap img { width: 100% !important; height: auto !important; display: block !important; vertical-align: bottom; }
@media (min-width: 768px) { .lp-content-area { font-size: 1.25rem; } }