/* Product media */
.product-gallery
{
    min-width: 0;
}
.gallery-stage
{
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f2f4ec;
}
.gallery-image
{
    display: block;
    width: 100%;
    padding: 0;
    cursor: default;
}
.gallery-image img, .gallery-video-preview > img, .gallery-slide > video
{
    width: 100%;
    height: 520px;
    padding: 36px 40px 62px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.gallery-detail img
{
    transform: scale(1.45);
}
.gallery-image img
{
    display: block;
}
@media (hover: hover) and (pointer: fine)
{
    .gallery-image
    {
        cursor: zoom-in;
    }
    .gallery-image:hover img
    {
        transform: scale(2);
        transform-origin: var(--zoom-origin, center);
    }
}
.gallery-slide
{
    overflow: hidden;
}
.gallery-slide > video
{
    padding: 0;
    background: #17211c;
    mix-blend-mode: normal;
}
.gallery-controls
{
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 4px 6px;
    border-radius: 24px;
    background: var(--surface);
    color: var(--ink);
    font-size: 11px;
}
.gallery-controls .icon-button
{
    width: 30px;
    height: 30px;
}
.gallery-controls button:first-child .icon
{
    transform: rotate(180deg);
}
.gallery-thumbnails
{
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 3px;
}
.gallery-thumbnails button
{
    position: relative;
    flex-shrink: 0;
    width: 78px;
    height: 86px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f5ef;
}
.gallery-thumbnails button[aria-pressed='true']
{
    border: 2px solid var(--green);
}
.gallery-thumbnails img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.gallery-thumbnails button > span
{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #24473e;
    background: #ffffff65;
    border-radius: inherit;
}
.gallery-video-preview
{
    position: relative;
}
.gallery-play
{
    position: absolute;
    inset: 0;
    margin: auto;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 30px #24473e30;
}
.gallery-video-preview p
{
    position: absolute;
    bottom: 65px;
    left: 24px;
    right: 24px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    text-align: center;
    font-size: 12px;
}
.media-lightbox
{
    width: min(900px, calc(100vw - 32px));
    max-width: none;
    padding: 48px 20px 20px;
    background: var(--surface);
}
.media-lightbox > .icon-button
{
    position: absolute;
    top: 10px;
    right: 12px;
}
.media-lightbox > img
{
    width: 100%;
    height: min(75dvh, 800px);
    object-fit: contain;
    background: #f4f5ef;
    border-radius: 8px;
}
.buy-now
{
    width: 100%;
    height: 48px;
    margin-top: 12px;
}
.purchase-row > .button
{
    min-width: 0;
    height: 48px;
}
.purchase-row > .secondary
{
    flex: 0 0 48px;
    padding: 12px;
}
.purchase-row .quantity
{
    display: flex;
    flex: 0 0 72px;
    min-width: 0;
}
.purchase-row label.quantity > input
{
    width: 100%;
    height: 48px;
    margin: 0;
}
.detail-copy
{
    display: grid;
    gap: 24px;
    min-width: 0;
    padding-top: 0;
}
.product-summary h1
{
    max-width: none;
    margin: 12px 0 8px;
    line-height: 1.2;
}
.product-offer
{
    display: grid;
    gap: 14px;
}
.product-offer > p
{
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
}
.detail-price
{
    flex-wrap: wrap;
    margin: 0;
}
.product-purchase
{
    display: grid;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.product-configuration
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.product-configuration .detail-option
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0;
}
.product-configuration dt
{
    flex-basis: 100%;
    color: var(--muted);
    font-size: 12px;
}
.product-configuration dd
{
    min-width: 0;
    max-width: 100%;
    margin: 0;
}
.product-configuration .size-choice
{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    margin: 0;
    padding: 10px 20px;
    border-color: var(--line);
    border-radius: 6px;
    background: var(--sage);
    color: var(--ink);
    font-weight: 500;
    overflow-wrap: anywhere;
}
.product-configuration .size-choice[aria-current='true']
{
    border-color: var(--green);
}
.product-configuration .stock-note
{
    margin: 0;
    white-space: nowrap;
}
.product-purchase .detail-perks
{
    gap: 12px 24px;
    margin: 0;
}
.product-purchase .detail-perks > span
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-purchase .detail-perks .icon
{
    margin: 0;
    flex-shrink: 0;
}
.stock-unavailable
{
    color: var(--muted);
}
.stock-alert-form
{
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--sage);
}
.stock-alert-form > p, .stock-alert-form > label, .stock-alert-form > small
{
    display: block;
    margin-bottom: 12px;
}
.stock-alert-form small
{
    color: var(--muted);
    font-size: 11px;
}
.product-visual > a.stock-alert-link
{
    display: flex;
}

/* Product sections */
.product-activity
{
    margin: 0;
}
.product-activity .engagement-strip
{
    padding: 0;
    border: 0;
    gap: 12px 18px;
}
.product-activity .engagement-strip > span, .product-activity .engagement-strip > a
{
    gap: 6px;
    font-size: 10px;
}
.product-activity .icon
{
    width: 16px;
    height: 16px;
}
.product-review-links
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    font-size: 12px;
}
.product-rating
{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.product-rating .stars
{
    font-size: 17px;
    letter-spacing: 0;
}
.product-review-links > a
{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--muted);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
}
.product-review-links > a[data-write-review]
{
    position: relative;
    padding-left: 16px;
    color: var(--ink);
    font-weight: 500;
}
.product-review-links > a[data-write-review]::before
{
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    border-left: 1px solid var(--line);
}
.product-review-links > a:hover
{
    color: var(--green);
    text-decoration-color: currentColor;
}
.product-information.section-space
{
    margin-top: 48px;
}
.product-tab-list
{
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    gap: 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.product-tab-list button
{
    flex-shrink: 0;
    padding: 18px 3px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
.product-tab-list button[aria-selected='true']
{
    color: var(--ink);
    border-bottom-color: var(--green);
    font-weight: 600;
}
.product-tab-panel
{
    padding: 32px 0;
    min-height: 280px;
    scroll-margin-top: 24px;
}
.product-tab-panel > h2, .product-about-grid h2
{
    margin-bottom: 16px;
    font-size: 24px;
}
.product-tab-panel > p
{
    max-width: 720px;
    margin-bottom: 24px;
    font-size: 14px;
}
.product-tab-panel .discussion.section-space
{
    margin: 0;
}
.product-tab-panel .discussion-heading
{
    margin: 0 0 28px;
}
.product-tab-panel .discussion-tools
{
    width: 100%;
    justify-content: space-between;
}
.product-tab-panel .comment-list
{
    gap: 0;
}
.product-tab-panel .comment-card
{
    padding: 26px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.product-tab-panel .comment-card:first-child
{
    padding-top: 0;
}
.product-tab-panel .comment-form
{
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.product-about-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    align-items: start;
    gap: 60px;
}
.product-about-copy
{
    min-width: 0;
    overflow-wrap: anywhere;
}
.product-about-grid h3
{
    margin-top: 28px;
    margin-bottom: 12px;
}
.product-about-grid p
{
    font-size: 14px;
}
.product-facts
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-content: start;
    gap: 18px;
    padding: 24px;
    margin: 0;
    border-radius: 10px;
    background: var(--sage);
    font-size: 13px;
}
.product-facts dt
{
    color: var(--muted);
    overflow-wrap: anywhere;
}
.product-facts dd
{
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}
.product-guide-steps
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}
.product-guide-steps li
{
    padding: 24px;
    border-radius: 10px;
    background: var(--sage);
}
.product-guide-steps li > span
{
    display: block;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 22px;
}
.product-guide-steps p
{
    margin-top: 12px;
    font-size: 13px;
}
.product-question-list
{
    display: grid;
    gap: 16px;
    margin: 24px 0;
}
.product-question
{
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.product-question h3
{
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.product-question small
{
    display: block;
    margin-top: 12px;
    font-size: 11px;
    color: var(--muted);
}
.product-interaction-form
{
    width: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}
.product-interaction-form > label
{
    margin-bottom: 18px;
}
.interaction-status
{
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

/* Review photos */
.review-photo-field
{
    margin-top: 20px;
}
.review-photo-field small
{
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}
.review-photo-field > strong
{
    font-size: 12px;
}
.review-photo-picker
{
    position: relative;
    margin-top: 8px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.review-photo-picker > span
{
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-photo-picker:focus-within
{
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
label.review-photo-picker > input[type='file']
{
    width: 1px;
    padding: 0;
    margin: 0;
}
.review-photo-previews, .comment-photos
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.review-photo-previews figure
{
    position: relative;
    margin: 0;
}
.review-photo-previews img, .comment-photos img
{
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}
.review-photo-previews button
{
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    font-size: 18px;
}
.comment-photos button
{
    padding: 0;
    border-radius: 8px;
    cursor: zoom-in;
}

/* Continuous brand ribbon */
.brand-ribbon
{
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 24px;
    border-bottom: 1px solid var(--line);
}
.brand-ribbon-heading
{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.brand-ribbon-heading > span
{
    max-width: 100px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .1em;
}
.brand-ribbon-window
{
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.brand-ribbon-window::before, .brand-ribbon-window::after
{
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 56px;
    pointer-events: none;
}
.brand-ribbon-window::before
{
    left: 0;
    background: linear-gradient(to right, var(--canvas), transparent);
}
.brand-ribbon-window::after
{
    right: 0;
    background: linear-gradient(to left, var(--canvas), transparent);
}
.brand-ribbon-track
{
    display: flex;
    width: max-content;
    animation: brand-scroll 36s linear infinite;
}
.brand-ribbon-group
{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: max(1000px, calc(100vw - 250px));
}
.brand-ribbon-group a
{
    padding: 18px 34px;
    color: var(--ink);
    font-size: 26px;
    letter-spacing: -.055em;
    white-space: nowrap;
}
.brand-ribbon-group a:nth-child(3), .brand-ribbon-group a:last-child
{
    font-family: Georgia, serif;
}
.brand-ribbon:hover .brand-ribbon-track
{
    animation-play-state: paused;
}
.brand-ribbon:focus-within .brand-ribbon-track,
.brand-ribbon[data-paused='true'] .brand-ribbon-track
{
    animation: none;
}
.brand-ribbon:focus-within .brand-ribbon-window,
.brand-ribbon[data-paused='true'] .brand-ribbon-window
{
    overflow-x: auto;
    scrollbar-width: none;
}
.brand-ribbon:focus-within .brand-ribbon-group[aria-hidden],
.brand-ribbon[data-paused='true'] .brand-ribbon-group[aria-hidden]
{
    display: none;
}
.brand-ribbon-heading button span
{
    display: flex;
}
.brand-ribbon-heading .brand-play,
.brand-ribbon[data-paused='true'] .brand-pause
{
    display: none;
}
.brand-ribbon[data-paused='true'] .brand-play
{
    display: flex;
}
@keyframes brand-scroll
{
    to
    {
        transform: translateX(-50%);
    }
}

/* Mobile navigation */
.mobile-menu-toggle
{
    display: none;
}
.mobile-menu
{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    margin: 0;
    width: min(380px, 90vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: 24px;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-menu::backdrop
{
    background: #10211c70;
}
.mobile-menu-open
{
    overflow: hidden;
}
.mobile-menu-heading
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.mobile-menu-heading h2
{
    font-size: 24px;
}
.mobile-menu-links > a, .mobile-menu-account a
{
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-block: 10px;
    font-size: 14px;
}
.mobile-menu-links details
{
    padding-block: 12px;
}
.mobile-menu-links summary
{
    font-size: 13px;
}
.mobile-menu-links details a
{
    display: block;
    padding: 11px 8px 11px 24px;
    color: var(--muted);
    font-size: 13px;
}
.mobile-menu-account
{
    border-block: 1px solid var(--line);
    padding-block: 12px;
    margin-top: 12px;
}
.mobile-menu-preferences
{
    margin-top: 24px;
}
.mobile-menu-preferences > span
{
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--muted);
}
.mobile-menu .header-preferences
{
    justify-content: start;
}
@media (max-width: 850px)
{
    .store-header .header-main
    {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 12px;
        height: auto;
        min-height: 0;
        padding-block: 14px;
    }
    .store-header .mobile-menu-toggle
    {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        width: 40px;
        height: 40px;
    }
    .store-header .header-main > .brand
    {
        grid-column: 2;
        grid-row: 1;
        font-size: 28px;
    }
    .store-header .header-actions
    {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
    }
    .store-header .header-actions > a:not(.cart-link),
    .store-header .header-action > span,
    .store-header .header-main > .header-preferences,
    .store-header .store-nav
    {
        display: none;
    }
    .store-header .cart-link
    {
        display: flex;
        min-width: 40px;
        height: 40px;
        justify-content: center;
    }
    .store-header .cart-link > .icon
    {
        width: 22px;
        height: 22px;
    }
    .store-header .search-box
    {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 44px;
        margin: 0;
    }
    .product-detail
    {
        gap: 30px;
    }
    .gallery-image img, .gallery-video-preview > img, .gallery-slide > video
    {
        height: 400px;
        padding: 28px 24px 55px;
    }
    .product-about-grid
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .product-guide-steps
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px)
{
    .product-summary h1
    {
        font-size: 28px;
    }
    .product-review-links
    {
        gap: 0 12px;
        font-size: 11px;
    }
    .product-review-links > a[data-write-review]
    {
        padding-left: 12px;
    }
    .product-activity .engagement-strip
    {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 16px;
    }
    .product-activity .engagement-strip > span, .product-activity .engagement-strip > a
    {
        gap: 6px;
        font-size: 10px;
    }
    .gallery-image img, .gallery-video-preview > img, .gallery-slide > video
    {
        height: 370px;
    }
    .gallery-thumbnails
    {
        gap: 8px;
    }
    .gallery-thumbnails button
    {
        width: 64px;
        height: 72px;
    }
    .product-tab-list
    {
        gap: 18px;
    }
    .product-tab-list button
    {
        font-size: 12px;
    }
    .product-tab-panel
    {
        padding-top: 26px;
    }
    .product-interaction-form
    {
        padding: 18px;
    }
    .brand-ribbon
    {
        display: block;
        padding-block: 18px;
    }
    .brand-ribbon-heading
    {
        justify-content: space-between;
    }
    .brand-ribbon-heading > span
    {
        max-width: none;
    }
    .brand-ribbon-group
    {
        min-width: 900px;
    }
    .brand-ribbon-group a
    {
        font-size: 23px;
        padding-inline: 24px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    .brand-ribbon-track
    {
        animation: none;
    }
    .brand-ribbon-group[aria-hidden], [data-brand-toggle]
    {
        display: none;
    }
    .brand-ribbon-window
    {
        overflow-x: auto;
    }
}

.product-question
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-question header
{
    order: 0;
}
.product-question .admin-reply
{
    order: 1;
    margin: 0;
    padding: 18px;
    background: var(--sage);
    border: 0;
    border-radius: 8px;
}
.product-question .admin-reply p
{
    margin-bottom: 0;
}
.product-question header .eyebrow
{
    margin-bottom: 8px;
}
.product-cart-count
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}
/* Preserve paragraphs in product-specific FAQ answers. */
.product-faq-answer
{
    white-space: pre-line;
}
