/* Refined storefront surfaces and interactive product photography. */
.cs-storefront .product-card { border-radius: 20px 20px 10px 10px; overflow: hidden; }
.cs-storefront .product-card .card-body { padding: 20px; }
.product-card-kicker { color: #8b7049; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.cs-storefront .product-card.is-premium .product-card-kicker { color: #dfbd81; }
.cs-storefront .cs-collection-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.cs-storefront .cs-collection { border-radius: 18px 18px 8px 8px; }
.cs-storefront .cs-collection:nth-child(-n+2) { grid-column: span 2; display: grid; grid-template-columns: 55% 45%; align-items: center; }
.cs-storefront .cs-collection:nth-child(-n+2) .cs-collection-body { padding-left: 24px; }
.cs-collection-index { display: block; font: italic 28px var(--display); color: #b99255; margin-bottom: 10px; opacity: .8; }
.cs-storefront .home-content .trend-lead { background: #0c251e; border-radius: 18px; }
.cs-storefront .trend-lead-image { max-height: 340px; }
.cs-storefront .trend-lead-copy { padding: 24px; }
.cs-storefront .trend-lead-copy strong, .cs-storefront .trend-lead-copy h3 { color: #fff3df; }
.cs-storefront .trend-lead-copy > small, .cs-storefront .trend-lead-copy > span:first-child { color: #d6bd91; }
.cs-storefront .home-content .trend-lead .trend-meta b { color: #f5d59b; }
.trend-explore { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid #d8b47944; color: #f5d59b; font-size: 12px; }
.trend-maker { display: block; font-size: 9px; letter-spacing: .1em; color: #8b7049; text-transform: uppercase; margin-bottom: 6px; }
.cs-storefront .home-content .trend-tile { border-radius: 12px; }
.cs-storefront .trend-tile-image { max-width: 110px; }
.cs-storefront .home-content .cs-post > a { border-radius: 18px 18px 8px 8px; }
.cs-post-excerpt { font-size: 13px; line-height: 1.7; color: #786b58; }
.cs-post-read { display: flex; justify-content: space-between; color: #215e46; font-size: 12px; font-weight: 600; margin-top: 14px; }
.cs-storefront .cs-reviews-summary { background: linear-gradient(140deg,#215e46,#0c251e); border-radius: 18px; padding: 28px; }
.cs-storefront .cs-reviews-summary h2 { color: #fff3df; }
.cs-storefront .cs-reviews-summary p { color: #d0dbcc; }
.cs-review-total { display: flex; align-items: center; gap: 12px; color: #f5d59b; margin: 20px 0; }
.cs-review-total strong { font: 36px var(--display); }
.cs-review-total span { font-size: 12px; }
.cs-storefront .home-content .cs-review-card { border-radius: 18px 18px 6px 6px; }
.cs-storefront .cs-partner-logo { background: #fffdf8; }
.cs-storefront .cs-partner-body { border-top: 1px solid #d8bb84; padding-top: 22px; }
.cs-storefront .product-detail-panel { border-radius: 18px; border-top: 3px solid #215e46; padding: 26px; box-shadow: 0 18px 48px -32px #0c251e66; }
.cs-storefront .product-detail-panel h1 { font-size: clamp(26px,2.5vw,36px); line-height: 1.2; }
.cs-storefront .product-price-panel { background: #edf2eb; border: 1px solid #dbe5d7; border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.cs-storefront #price-current { color: #0c251e; font-size: 36px; }
.cs-storefront #add-to-cart-btn { background: linear-gradient(120deg,#215e46,#0c251e); border-color: #215e46; border-radius: 10px; color: #fff3df; }
.cs-storefront .product-assurance-list { gap: 16px; padding: 18px 0; }
.cs-storefront .product-assurance-list > span { font-size: 13px; }
.cs-storefront .product-partner { border-radius: 12px; }
.cs-storefront .product-overview > div:first-child { contain: none; }
.cs-storefront #product-gallery { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) 80px; gap: 12px; height: 590px; padding: 16px; border-radius: 18px; background: #faf7f0; }
.cs-storefront #product-gallery .gallery-open { grid-row: 1; grid-column: 1; min-height: 0; height: 100%; }
.cs-storefront #product-gallery .gallery-open img { width: 100%; height: 100%; object-fit: contain; }
.cs-storefront #product-gallery .gallery-thumbnails { grid-row: 2; grid-column: 1; display: flex; flex-direction: row; overflow-x: auto; gap: 10px; height: 80px; }
.cs-storefront #product-gallery .gallery-thumbnails button { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; }
.product-zoom-open { overflow: hidden; }
.cs-storefront .product-zoom { width: min(1400px,94vw); max-width: 94vw; height: 92dvh; max-height: 92dvh; padding: 18px; border: 1px solid #a88a56; border-radius: 18px; background: #0c251e; color: #fff3df; overflow: hidden; }
.cs-storefront .product-zoom[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; gap: 12px; }
.product-zoom::backdrop { background: #06140fe0; backdrop-filter: blur(8px); }
.cs-storefront .zoom-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0; }
.zoom-heading { min-width: 0; }
.zoom-heading > span { display: block; color: #d6b779; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; margin-bottom: 5px; }
.zoom-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #fff3df; }
.zoom-tools { display: flex; flex: none; gap: 6px; }
.cs-storefront .product-zoom button { background: #ffffff0b; color: #f6d79d; border: 1px solid #d9b97d55; border-radius: 8px; min-width: 42px; height: 42px; padding: 8px; }
.cs-storefront .product-zoom button:disabled { opacity: .35; }
.cs-storefront .product-zoom button:focus-visible { outline: 2px solid #f6d79d; outline-offset: 2px; }
.cs-storefront .product-zoom button:hover:not(:disabled) { background: #d9b97d22; }
.cs-storefront .zoom-stage { display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: 10px; background: #faf8f3; touch-action: none; cursor: zoom-in; padding: 0; }
.cs-storefront .zoom-stage img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; user-select: none; transition: none; }
.zoom-stage.is-enlarged { cursor: grab; }
.zoom-stage.is-dragging { cursor: grabbing; }
.zoom-stage.is-loading img { opacity: .4; }
.zoom-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.zoom-footer p { margin: 0; font-size: 11px; color: #c5cfbf; }
.cs-storefront .zoom-controls { display: flex; align-items: center; gap: 16px; padding: 0; margin: 0; color: #fff3df; }
.zoom-thumbnails { display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding: 3px; }
.cs-storefront .zoom-thumbnails button { flex: 0 0 64px; width: 64px; height: 56px; background: #fffdf6; padding: 3px; }
.cs-storefront .zoom-thumbnails button[aria-pressed=true] { outline: 2px solid #e5bc73; outline-offset: 1px; }
.zoom-thumbnails img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
@media(min-width:992px) {
 .cs-storefront .product-overview > .col-lg-5 { width: auto; }
 .cs-storefront .product-overview > .col-lg-7 { width: auto; }
 .cs-storefront #product-gallery { position: sticky; top: 140px; }
}
@media(max-width:767px) {
 .cs-storefront .cs-collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .cs-collection-index { font-size: 22px; margin-bottom: 5px; }
 .cs-storefront .product-card .card-body { padding: 12px; }
 .product-card-kicker { font-size: 8px; }
 .cs-storefront #product-gallery { height: 440px; }
 .cs-storefront .product-detail-panel { padding: 20px; }
 .cs-storefront .product-zoom { padding: 10px; width: 96vw; max-width: 96vw; height: 94dvh; max-height: 94dvh; }
 .cs-storefront .zoom-toolbar { flex-wrap: wrap; gap: 10px; }
 .zoom-heading { width: 100%; }
 .zoom-tools { width: 100%; }
 #zoom-close { margin-left: auto; }
 .zoom-footer { flex-direction: column-reverse; gap: 7px; }
 .zoom-footer p { font-size: 9px; text-align: center; }
 .cs-storefront .zoom-thumbnails button { flex-basis: 48px; height: 44px; }
}
@media(max-width:575px) {
 .cs-storefront #product-gallery { height: 390px !important; grid-template-columns: minmax(0,1fr) !important; grid-template-rows: minmax(0,1fr) 64px; }
 .cs-storefront #product-gallery .gallery-thumbnails { height: 64px; }
 .cs-storefront #product-gallery .gallery-thumbnails button { width: 56px; height: 56px; flex-basis: 56px; }
}
.cs-storefront .cs-post-excerpt, .cs-storefront .cs-post-read { margin: 0 20px 18px; }
/* Equal-size journal cards keep photographs compact at every breakpoint. */
.cs-storefront .cs-journal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.cs-storefront .cs-journal-grid .cs-post { min-width: 0; }
.cs-storefront .cs-journal-grid .cs-post > a { display: flex; flex-direction: column; padding: 0; }
.cs-storefront .cs-journal-grid .cs-post-media { flex: none; height: 180px; min-height: 0; max-height: 180px; aspect-ratio: auto; margin: 10px 10px 0; }
.cs-storefront .cs-journal-grid .cs-post-media img { width: 100%; height: 100%; object-fit: cover; }
.cs-storefront .cs-journal-grid .cs-post h3 { font-size: 19px; line-height: 1.4; }
.cs-storefront .cs-journal-grid .cs-post-kicker { font-size: 9px; letter-spacing: .08em; }
.cs-storefront .cs-journal-grid .cs-post-read { margin: 0 20px 18px; }
@media(max-width:1199px) {
 .cs-storefront .cs-journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:575px) {
 .cs-storefront .cs-journal-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .cs-storefront .cs-journal-grid .cs-post > a { display: grid; grid-template-columns: 100px minmax(0,1fr); grid-template-rows: auto auto auto auto; gap: 5px 12px; padding: 12px; }
 .cs-storefront .cs-journal-grid .cs-post-media { grid-column: 1; grid-row: 1 / 5; width: 100px; height: 112px; max-height: 112px; margin: 0; }
 .cs-storefront .cs-journal-grid .cs-post-kicker, .cs-storefront .cs-journal-grid .cs-post h3,
 .cs-storefront .cs-journal-grid .cs-post time, .cs-storefront .cs-journal-grid .cs-post-read { grid-column: 2; margin: 0; padding: 0; }
 .cs-storefront .cs-journal-grid .cs-post h3 { font-size: 15px; }
 .cs-storefront .cs-journal-grid .cs-post time { font-size: 10px; border: 0; }
 .cs-storefront .cs-journal-grid .cs-post-read { font-size: 11px; }
}
.cs-storefront .home-content .cs-partner { border-radius: 18px 18px 8px 8px; }
.cs-storefront .cs-partner-body h3 small { background: #efe3cc; padding: 5px 8px; border-radius: 5px; font-size: 9px; }
/* Match legacy layout specificity so gallery tracks keep their intended size. */
.cs-storefront .product-overview #product-gallery { height: 590px; grid-template-columns: minmax(0,1fr) !important; grid-template-rows: minmax(0,1fr) 80px; }
.cs-storefront .product-overview #product-gallery .gallery-thumbnails { overflow-x: auto; overflow-y: hidden; mask-image: none; -webkit-mask-image: none; }
.cs-storefront .product-overview #product-gallery .gallery-open { width: 100%; }
.cs-storefront .product-overview #product-gallery .gallery-open img { width: 100% !important; height: 100% !important; }
.cs-storefront .product-overview #add-to-cart-btn { background: linear-gradient(120deg,#215e46,#0c251e) !important; border-color: #215e46 !important; border-radius: 10px !important; }
@media(min-width:992px) {
 .cs-storefront .product-overview > .col-lg-5 { flex: 0 0 54%; max-width: auto; }
 .cs-storefront .product-overview > .col-lg-7 { flex: 0 0 46%; max-width: auto; }
}
@media(max-width:991px) { .cs-storefront .product-overview #product-gallery { height: 440px; } }
@media(max-width:575px) { .cs-storefront .product-overview #product-gallery { height: 390px !important; grid-template-rows: minmax(0,1fr) 64px; } }

.cs-storefront .product-zoom { background: #0c251e !important; }
.cs-storefront .product-zoom .zoom-toolbar button, .cs-storefront .product-zoom .zoom-controls button { background: #ffffff0b !important; color: #f6d79d !important; border-radius: 8px; }
.cs-storefront .product-overview > div { max-width: none; width: auto; }

/* Partner polish: preserve the existing grid, logo order and card structure. */
.cs-storefront .home-content .cs-partner {
    background: linear-gradient(155deg, #fffefa, #f8f5ee);
    border-color: #ded4bf;
    box-shadow: 0 8px 28px -18px #254b3c55, inset 0 1px #fff;
    overflow: hidden;
}
.cs-storefront .home-content .cs-partner-logo {
    background: radial-gradient(ellipse at center, #fff, #f5f3eb);
    border: 1px solid #e9e3d6;
    border-radius: 12px;
    box-shadow: inset 0 1px #fff;
}
.cs-storefront .home-content .cs-partner-body { border-top: 0; }
.cs-storefront .home-content .cs-partner-body h3 { color: #173d2e; letter-spacing: -.02em; }
.cs-storefront .home-content .cs-partner-body h3 small {
    background: #edf1e8; color: #44634e; border: 1px solid #d8e0d1;
    border-radius: 5px; padding: 5px 8px; letter-spacing: .1em;
}
.cs-storefront .home-content .cs-partner-body p { color: #6b675a; line-height: 1.65; }
.cs-storefront .home-content .cs-partner-links { border-top: 1px solid #e5ddcc; padding-top: 16px; }
.cs-storefront .home-content .cs-partner-links a:not(.cs-partner-site) {
    background: #e9eee3; color: #244b3b; border: 1px solid #d8e0cc; border-radius: 8px;
}
.cs-storefront .home-content .cs-partner-links a:not(.cs-partner-site):hover { background: #215e46; color: #fff7e6 !important; }
.cs-storefront .home-content .cs-partner-links .cs-partner-site { color: #756b58; font-size: 12px; }
.cs-storefront .home-content .cs-partner:hover { border-color: #bda16d; box-shadow: 0 16px 32px -20px #254b3c66; }

/* ================= product videos ================= */
/* the player takes the photo's place (same grid cell). While a video plays the gallery drops its fixed
   height and grows to the video's own shape (portrait phone videos too), capped by the screen height */
.cs-storefront .product-overview > div:first-child:has(#product-gallery.is-playing-video) { contain: none; }
.cs-storefront .product-overview #product-gallery.is-playing-video { height: auto !important; grid-template-rows: auto auto !important; position: relative; top: auto; }
.cs-storefront #product-gallery .gallery-video {
    grid-row: 1; grid-column: 1; position: relative; width: 100%; min-width: 0;
    display: flex; justify-content: center; border-radius: 14px; overflow: hidden; background: #120d09;
}
.cs-storefront #product-gallery .gallery-video iframe {
    display: block; border: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 80vh;
}
.cs-storefront #product-gallery .gallery-video video {
    display: block; width: 100%; height: auto; max-height: min(82vh, 820px); object-fit: contain; background: #120d09;
}
.cs-storefront #product-gallery .gallery-video-title {
    position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); margin: 0;
    padding: 5px 11px; border-radius: 99px; background: #241a12d9; color: #fff3df;
    font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}

/* "▶ Video" over the photo */
.cs-storefront #product-gallery .gallery-video-badge {
    position: absolute; left: 14px; bottom: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px;
    background: #241a12e6; color: #fff3df; font-size: 13px; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 8px 20px -10px #241a12aa; cursor: pointer; transition: background .2s, transform .2s;
}
.cs-storefront #product-gallery .gallery-video-badge:hover,
.cs-storefront #product-gallery .gallery-video-badge:focus-visible { background: #a4572a; transform: translateY(-1px); outline: none; }
.cs-storefront .gallery-video-badge-icon,
.cs-storefront .product-video-badge {
    position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1d49f;
}
.cs-storefront .gallery-video-badge-icon::after,
.cs-storefront .product-video-badge::after {
    content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #241a12;
}

/* video thumbnails: a clear round ▶ and a "VIDEO" tag, also when there is no poster picture */
.cs-storefront #product-gallery .gallery-thumbnails button.is-video {
    position: relative; overflow: hidden; padding: 0 !important; background: linear-gradient(150deg, #3a2a1d, #1c140e) !important;
}
.cs-storefront #product-gallery .gallery-thumbnails button.is-video img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.cs-storefront #product-gallery .gallery-play {
    position: absolute; left: 50%; top: 42%; width: 26px; height: 26px; transform: translate(-50%, -50%);
    border-radius: 50%; background: #f1d49f; box-shadow: 0 2px 8px #0006;
}
.cs-storefront #product-gallery .gallery-play::after {
    content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #241a12;
}
.cs-storefront #product-gallery .gallery-play-label {
    position: absolute; left: 0; right: 0; bottom: 4px; text-align: center;
    color: #fff3df; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 2px #000a;
}

/* product cards: a small ▶ in the photo's corner when the product has a video */
.cs-storefront .product-image-link .product-video-badge {
    position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 32px; height: 32px;
    background: #f1d49f; box-shadow: 0 0 0 3px #fff9, 0 6px 14px -6px #241a12aa;
}

@media (max-width: 575px) {
    .cs-storefront #product-gallery .gallery-video-badge { left: 10px; bottom: 10px; font-size: 12px; padding: 5px 12px 5px 5px; }
    .cs-storefront #product-gallery .gallery-video-badge-icon { width: 24px; height: 24px; }
    .cs-storefront .product-image-link .product-video-badge { right: 8px; bottom: 8px; width: 28px; height: 28px; }
}
