/* Product and catalog experience layered over the base store theme. */
.product-options-link {
    text-align: center;
}

.product-grid,
.product-card,
.product-card .product-body {
    min-width: 0;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .product-image {
    display: grid;
    width: 100%;
    flex: 0 0 280px;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
    padding: 12px;
}

.product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-card .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card .product-body h3 {
    display: -webkit-box;
    height: auto;
    min-height: 3.05em;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .product-meta {
    margin-top: auto;
}

.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.store-pagination a,
.store-pagination > span,
.store-pagination strong {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    font-size: .78rem;
}

.store-pagination a {
    color: #fff;
    transition: .18s ease;
}

.store-pagination a:hover {
    color: #17202b;
    border-color: var(--accent);
    background: var(--accent);
}

.store-pagination strong {
    color: var(--accent2);
}

.store-pagination .is-disabled {
    color: #66778b;
    cursor: not-allowed;
}

.product-detail--enhanced {
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    min-height: auto;
    padding-top: 46px;
    gap: clamp(34px, 5vw, 68px);
    align-items: start;
}

.detail-gallery--enhanced {
    position: sticky;
    top: 100px;
    min-width: 0;
}

.detail-media {
    position: relative;
    display: grid;
    width: 100%;
    height: clamp(430px, 52vw, 620px);
    overflow: hidden;
    place-items: center;
    padding: clamp(20px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 26px;
    background: linear-gradient(145deg, #fff, #eef1f5);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
}

.detail-media::after {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    content: '';
    border-radius: 50%;
    background: rgba(246, 183, 60, .08);
}

.detail-media > img,
.detail-media > video {
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-media > img {
    mix-blend-mode: multiply;
    transition: opacity .18s ease, transform .25s ease;
    cursor: zoom-in;
}

.detail-media > video {
    background: #050b13;
    border-radius: 14px;
}

.detail-media > .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.detail-media__badge {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    padding: 8px 11px;
    color: #173524;
    border: 1px solid #b9e2c8;
    border-radius: 999px;
    background: rgba(236, 253, 245, .94);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.detail-zoom-button {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: rgba(7, 17, 31, .86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    cursor: zoom-in;
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.detail-thumbs {
    display: grid;
    grid-auto-columns: 76px;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 5px;
    scrollbar-width: thin;
}

.detail-thumbs button {
    position: relative;
    width: 76px;
    height: 68px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

.media-type-label,
.video-play-label {
    position: absolute;
    z-index: 2;
    right: 5px;
    bottom: 5px;
    display: grid;
    min-width: 24px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    border-radius: 6px;
    background: rgba(7, 17, 31, .86);
    font-size: .55rem;
    font-weight: 900;
}

.video-play-label {
    inset: 50% auto auto 50%;
    width: 29px;
    height: 29px;
    padding-left: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    font-size: .7rem;
}

.product-zoom-dialog {
    width: min(1120px, calc(100vw - 34px));
    max-width: none;
    height: min(850px, calc(100vh - 34px));
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: #edf4fb;
    border: 1px solid #32445b;
    border-radius: 22px;
    background: #07111f;
    box-shadow: 0 35px 100px rgba(0, 0, 0, .6);
}

.product-zoom-dialog::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(6px);
}

.product-zoom-shell {
    display: grid;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.product-zoom-shell header,
.product-zoom-shell footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-color: #20344d;
}

.product-zoom-shell header {
    border-bottom: 1px solid #20344d;
}

.product-zoom-shell footer {
    border-top: 1px solid #20344d;
}

.product-zoom-shell header > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.product-zoom-shell header span,
.product-zoom-shell footer > span {
    color: var(--muted);
    font-size: .68rem;
}

.product-zoom-shell header strong {
    overflow: hidden;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-zoom-shell button {
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border: 1px solid #31465f;
    border-radius: 9px;
    background: #11243a;
    cursor: pointer;
    font-weight: 800;
}

.product-zoom-shell header button {
    font-size: 1.45rem;
}

.product-zoom-shell footer > div {
    display: flex;
    gap: 7px;
}

.product-zoom-stage {
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    padding: 20px;
    background-color: #f4f6f8;
    background-image: linear-gradient(45deg, #e9edf1 25%, transparent 25%), linear-gradient(-45deg, #e9edf1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9edf1 75%), linear-gradient(-45deg, transparent 75%, #e9edf1 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.product-zoom-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(var(--product-zoom, 1));
    transition: transform .18s ease;
    user-select: none;
}

.detail-thumbs button:hover,
.detail-thumbs button.is-active {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.detail-gallery__note {
    display: grid;
    margin-top: 12px;
    padding: 13px 15px;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(13, 27, 45, .8);
}

.detail-gallery__note strong {
    color: #e7eef8;
    font-size: .78rem;
}

.detail-gallery__note span {
    color: var(--muted);
    font-size: .72rem;
}

.detail-info--enhanced {
    min-width: 0;
    padding-bottom: 60px;
}

.detail-info--enhanced .back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .76rem;
    transition: .18s ease;
}

.detail-info--enhanced .back-link:hover {
    color: #fff;
    border-color: #4b6684;
    background: var(--panel);
}

.detail-info--enhanced h1 {
    overflow-wrap: anywhere;
    margin: 8px 0 22px;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.07;
    letter-spacing: -.045em;
}

.detail-commercial-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-commercial-row small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .72rem;
}

.detail-commercial-row .detail-price {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1;
}

.detail-price span {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .08em;
}

.detail-stock {
    padding: 8px 11px;
    color: #84e4b2;
    border: 1px solid rgba(52, 211, 153, .28);
    border-radius: 999px;
    background: rgba(16, 185, 129, .09);
    font-size: .7rem;
    font-weight: 800;
}

.description-disclosure {
    max-height: none;
    margin: 15px 0 0;
    overflow: hidden;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 27, 45, .55);
}

.description-disclosure summary {
    padding: 13px 15px;
    color: #dce7f4;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
}

.description-disclosure > div {
    max-height: 230px;
    overflow: auto;
    padding: 0 15px 15px;
    font-size: .76rem;
    line-height: 1.65;
}

.variant-picker {
    min-width: 0;
    margin: 25px 0 0;
    padding: 0;
    border: 0;
}

.variant-picker legend {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.variant-picker legend b {
    padding: 5px 8px;
    color: #ffd97e;
    border-radius: 999px;
    background: rgba(246, 183, 60, .11);
    font-size: .6rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.variant-picker > p {
    margin: 7px 0 14px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.5;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.variant-option {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 102px;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    color: #eef4fb;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.variant-option:hover {
    transform: translateY(-2px);
    border-color: #516d8d;
}

.variant-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(246, 183, 60, .11), 0 12px 25px rgba(0, 0, 0, .16);
}

.variant-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.variant-option__check {
    position: absolute;
    z-index: 3;
    top: 7px;
    right: 7px;
    display: none;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #16202b;
    border-radius: 50%;
    background: var(--accent);
    font-size: .7rem;
    font-weight: 900;
}

.variant-option:has(input:checked) .variant-option__check {
    display: grid;
}

.variant-option__image {
    display: grid;
    width: 78px;
    height: 102px;
    place-items: center;
    padding: 6px;
    background: #f5f6f8;
}

.variant-option__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.variant-option__content {
    display: grid;
    min-width: 0;
    padding: 12px 10px;
    gap: 4px;
}

.variant-option__content strong {
    overflow: hidden;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-option__content small {
    color: var(--accent2);
    font-size: .72rem;
    font-weight: 700;
}

.variant-option__content em {
    color: #79dba8;
    font-size: .62rem;
    font-style: normal;
}

.variant-selection-help,
.variant-selection-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    padding: 11px 13px;
    border-radius: 11px;
}

.variant-selection-help {
    color: #ffe7af;
    border: 1px solid rgba(246, 183, 60, .3);
    background: rgba(246, 183, 60, .08);
}

.variant-selection-summary {
    color: #c9f8df;
    border: 1px solid rgba(52, 211, 153, .3);
    background: rgba(16, 185, 129, .08);
}

.variant-selection-help > span,
.variant-selection-summary > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    font-weight: 900;
}

.variant-selection-help strong,
.variant-selection-help small,
.variant-selection-summary small,
.variant-selection-summary strong,
.variant-selection-summary em {
    display: block;
}

.variant-selection-help strong,
.variant-selection-summary strong {
    font-size: .74rem;
}

.variant-selection-help small,
.variant-selection-summary small,
.variant-selection-summary em {
    margin-top: 2px;
    color: var(--muted);
    font-size: .64rem;
    font-style: normal;
}

.detail-add-button {
    width: 100%;
    min-height: 50px;
    margin-top: 13px;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.detail-add-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.detail-add-button:disabled {
    color: #7f8c9d;
    background: #1a2a3c;
    cursor: not-allowed;
    opacity: 1;
}

.purchase-steps {
    display: grid;
    margin-top: 24px;
    padding: 16px;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(13, 27, 45, .55);
}

.purchase-steps > strong {
    color: #edf4fb;
    font-size: .8rem;
}

.purchase-steps > div {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
    gap: 9px;
}

.purchase-steps > div > span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #1c2732;
    border-radius: 8px;
    background: var(--accent);
    font-size: .66rem;
    font-weight: 900;
}

.purchase-steps p {
    display: grid;
    margin: 0;
    gap: 2px;
}

.purchase-steps b {
    color: #e8f0f8;
    font-size: .72rem;
}

.purchase-steps small {
    color: var(--muted);
    font-size: .64rem;
}

.trust-list--enhanced {
    grid-template-columns: 1fr;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .7rem;
}

@media (max-width: 1000px) {
    .product-detail--enhanced {
        grid-template-columns: 1fr;
    }

    .detail-gallery--enhanced {
        position: static;
    }

    .detail-media {
        height: min(72vw, 600px);
    }
}

@media (max-width: 580px) {
    .product-detail--enhanced {
        padding-top: 22px;
        gap: 28px;
    }

    .detail-media {
        height: 350px;
        padding: 18px;
        border-radius: 18px;
    }

    .product-card .product-image {
        flex-basis: 260px;
    }

    .detail-zoom-button span,
    .product-zoom-shell footer > span {
        display: none;
    }

    .store-pagination {
        gap: 7px;
    }

    .store-pagination a,
    .store-pagination > span,
    .store-pagination strong {
        padding: 9px 10px;
        font-size: .68rem;
    }

    .product-zoom-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 15px;
    }

    .detail-info--enhanced h1 {
        font-size: 2.15rem;
    }

    .variant-options {
        grid-template-columns: 1fr;
    }

    .variant-option {
        grid-template-columns: 90px 1fr;
    }

    .variant-option__image {
        width: 90px;
    }
}
