
.product-page {
    max-width: 1240px;
    margin: 0 auto;
}
.product-page .back-link {
    font-size: 13px;
    margin-bottom: 20px;
}
.product-page .product-layout {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: clamp(24px,4vw,60px);
}
.product-page .gallery {
    min-width: 0;
}
.product-page .gallery-stage {
    border-radius: 18px;
    background: #f7edf0;
    border: 1px solid #eacbd5;
}
.product-page #main-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/4;
    max-height: 760px;
}
.product-page .gallery-prev,
.product-page .gallery-next {
    width: 42px;
    height: 42px;
    padding: 0;
    box-shadow: 0 3px 15px #38252e18;
}
.product-page .thumbnails {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    max-height: none;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
}
.product-page .thumbnail {
    flex: 0 0 76px;
    border-radius: 9px;
    background: white;
    scroll-snap-align: start;
}
.product-page .thumbnail.selected {
    border-color: #a34f70;
}
.product-page .product-details {
    background: #fff;
    border: 1px solid #eacbd5;
    border-radius: 20px;
    padding: clamp(20px,3vw,34px);
    min-width: 0;
}
.product-page .product-details > small:first-child {
    color: #a34f70;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
}
.product-page .product-details h1 {
    font-size: clamp(26px,3vw,38px);
    line-height: 1.2;
    color: #38252e;
    margin: 14px 0;
    overflow-wrap: anywhere;
}
.product-page .detail-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 36px;
    margin: 20px 0 12px;
}
.product-page .availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff5f7;
    color: #843b59;
    padding: 9px 13px;
    border-radius: 20px;
    font-size: 12px;
    margin: 0 0 10px;
}
.product-page .availability::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a34f70;
}
.product-page #product-form {
    gap: 12px;
    margin: 24px 0 16px;
}
.product-page #product-form > label {
    margin-top: 6px;
    font-size: 13px;
}
.ss-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-page .ss-size-option {
    min-width: 54px;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid #eacbd5;
    border-radius: 8px;
    background: white;
    color: #38252e;
    font-weight: 600;
}
.product-page .ss-size-option[aria-pressed="true"] {
    background: #843b59;
    border-color: #843b59;
    color: white;
}
.product-page .ss-size-option:hover {
    background: #f8dde5;
    color: #843b59;
}
.product-page #product-form .ss-original-size {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
.product-page #product-form .variant-photos {
    grid-template-columns: repeat(auto-fill,minmax(78px,1fr));
    gap: 8px;
    margin: 0 0 8px;
}
.product-page #product-form .variant-photo {
    border: 1px solid #eacbd5;
    border-radius: 10px;
    padding: 4px;
    background: white;
}
.product-page #product-form .variant-photo:has(input:checked) {
    border-color: #843b59;
    box-shadow: 0 0 0 1px #843b59;
    background: #fff5f7;
}
.product-page #product-form .variant-photo input {
    width: 16px;
    height: 16px;
    top: 8px;
    left: 8px;
    accent-color: #843b59;
}
.product-page #product-form .variant-photo span {
    font-size: 11px;
    overflow-wrap: anywhere;
}
.product-page #product-form .variant-photo img {
    object-fit: contain;
    background: #fff5f7;
}
.ss-quantity {
    display: grid;
    grid-template-columns: 44px 62px 44px;
    width: max-content;
    border: 1px solid #eacbd5;
    border-radius: 9px;
    overflow: hidden;
}
.product-page .ss-quantity button {
    background: #fff5f7;
    color: #843b59;
    padding: 10px;
    font-size: 20px;
    border-radius: 0;
}
.product-page #product-form .ss-quantity input {
    text-align: center;
    border: 0;
    border-radius: 0;
    padding: 10px 2px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.ss-quantity input::-webkit-inner-spin-button,
.ss-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-page .add-button {
    background: #843b59;
    min-height: 56px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
}
.product-page .add-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.product-page .share-button {
    border-color: #eacbd5;
    border-radius: 10px;
    min-height: 44px;
}
.product-page .ss-product-accordion {
    border-top: 1px solid #eacbd5;
    margin-top: 18px;
}
.ss-product-accordion summary {
    cursor: pointer;
    padding: 17px 0;
    font-size: 14px;
    font-weight: 600;
    color: #38252e;
}
.ss-product-accordion .description {
    padding-bottom: 16px;
}
.product-page .ss-product-accordion .supplier-delivery-info {
    margin: 0 0 12px;
    background: #fff5f7;
}
.product-page .ss-delivery-benefit {
    font-size: 12px;
    color: #795b68;
    text-align: center;
    margin: 14px 0;
    line-height: 1.6;
}
@media(min-width:901px) {
    .product-page .gallery {
        position: sticky;
        top: 20px;
    }
}
@media(max-width:900px) {
    .product-page .product-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 18px;
    }
    .product-page #main-media {
        max-height: 65vh;
    }
    .product-page .product-details {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .product-page .thumbnail {
        flex-basis: 62px;
    }
    .product-page .detail-price {
        font-size: 30px;
    }
}

/* PRODUCT_POLISH */
.ss-promo-note {
    display: inline-block;
    margin: -4px 0 12px;
    padding: 6px 12px;
    background: #843b59;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
}
.product-page #product-form .variant-photos {
    grid-template-columns: repeat(auto-fill, minmax(64px, 72px));
    justify-content: start;
    gap: 8px;
}
.product-page #product-form .variant-photo {
    position: relative;
    padding: 3px;
    border-radius: 10px;
}
.product-page #product-form .variant-photo input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.product-page #product-form .variant-photo span {
    font-size: 10.5px;
    line-height: 1.25;
    padding: 4px 0 2px;
    overflow-wrap: anywhere;
}
.product-page #product-form .variant-photo:has(input:checked)::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #843b59;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    z-index: 1;
}
.product-page #product-form .variant-photo:has(input:focus-visible) {
    outline: 2px solid #843b59;
    outline-offset: 2px;
}
.product-page #product-form .variant-photo.has-swatch {
    padding: 12px 4px 6px;
}
.ss-trust {
    list-style: none;
    margin: 16px 0;
    padding: 14px 16px;
    background: #fff5f7;
    border: 1px solid #eacbd5;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #38252e;
}
.ss-trust li {
    position: relative;
    padding: 5px 0 5px 24px;
}
.ss-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #843b59;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}
.ss-trust a {
    color: #843b59;
}
.ss-buybar {
    display: none;
}
@media (max-width: 900px) {
    .ss-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eacbd5;
        box-shadow: 0 -4px 18px #38252e14;
        transform: translateY(110%);
        transition: transform .2s;
    }
    .ss-buybar.visible {
        transform: none;
    }
    .ss-buybar strong {
        font-size: 20px;
        color: #38252e;
        white-space: nowrap;
    }
    .ss-buybar button {
        flex: 1;
        min-height: 48px;
        border: 0;
        border-radius: 10px;
        background: #843b59;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }
    .product-page {
        padding-bottom: 84px;
    }
}
.product-page #product-form .variant-photo span.variant-swatch {
    padding: 0;
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.product-page .detail-price .ss-old-price {
    font-size: 14px;
    font-weight: 400;
    color: #795b68;
    align-self: center;
}
.product-page .detail-price .ss-old-price s {
    color: #795b68;
}

/* CARD_SWIPE */
.product-cover { touch-action: pan-y; }
.ss-swipe-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
    display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.ss-swipe-dots i {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.7); box-shadow: 0 0 2px rgba(0,0,0,.5);
}
.ss-swipe-dots i.on { background: #fff; transform: scale(1.3); }
.ss-swipe-arrow {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0;
    background: rgba(255,255,255,.9); color: #7a2d5a; font-size: 22px; line-height: 34px;
    cursor: pointer; display: none; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.ss-swipe-arrow.prev { left: 8px; }
.ss-swipe-arrow.next { right: 8px; }
@media (hover: hover) {
    .product-cover:hover .ss-swipe-arrow { display: block; }
    .product-cover.at-start .ss-swipe-arrow.prev,
    .product-cover.at-end .ss-swipe-arrow.next { display: none; }
}
