.product-overlay[hidden] {
    display: none
}
.product-facts > [hidden], .product-body[hidden], .product-reviews[hidden], .member-work-notice[hidden] { display: none; }
.product-body, .product-reviews, .product-card > .member-work-notice { grid-column: 1 / -1; min-width: 0; }
.product-card > .member-work-notice { margin: 0; text-align: center; }
.product-body, .product-reviews { border-top: 1px solid #e8ded2; padding-top: 26px; }
.product-body { font-size: 16px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "Microsoft YaHei", "Microsoft YaHei UI", Arial, sans-serif; font-synthesis: weight style; font-weight: 400; font-style: normal; }
.product-body p { margin: 0 0 18px; }
.product-body img { max-width: 100%; height: auto; }
.product-reviews h3 { margin: 0 0 12px; font-size: 20px; }
.product-review { padding: 18px 0; border-bottom: 1px solid #e8ded2; }
.product-review header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product-review-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; background: #f5f3f0; }
.product-review time, .review-note { font-size: 12px; color: #867568; }
.product-review p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.review-stars, .review-rating { display: inline-flex; align-items: center; gap: 3px; }
.review-star { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; background-color: #d9d9d9; -webkit-mask: url('../images/star.svg') center / 220% 220% no-repeat; mask: url('../images/star.svg') center / 220% 220% no-repeat; }
.review-star.is-filled { background-color: #ff661e; }
.review-rating .review-star { width: 32px; height: 32px; }
.product-review-form { display: grid; gap: 14px; margin-top: 22px; }
.product-review-form label { display: grid; gap: 8px; }
.product-review-form select, .product-review-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d9c8b7; background: #fff; color: #332b25; font: inherit; border-radius: 3px; }
.product-review-form textarea { resize: vertical; }
.product-reviews button { padding: 8px 18px; border: 1px solid #e98342; background: #fffaf4; color: #bd571c; cursor: pointer; font: inherit; }
.product-review-form > button { justify-self: start; background: #f56618; color: #fff; }
.product-reviews .review-rating button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 4px; }
.product-reviews button:disabled { opacity: .5; cursor: wait; }

.product-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter .38s ease, -webkit-backdrop-filter .38s ease
}

.product-overlay.is-open {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.product-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    gap: 36px;
    width: min(960px, 100%);
    max-height: min(88dvh, 760px);
    overflow: auto;
    padding: 34px;
    border: 2px solid #f8e6bf;
    border-radius: 0;
    background: #fffcf7;
    box-shadow: 0 30px 90px #0007, inset 0 0 0 2px #a7784a33;
    color: #332b25;
    opacity: 0;
    transform: scale(.62);
    transition: transform .38s cubic-bezier(.15, 1, .25, 1), opacity .3s ease-out
}

.product-card::-webkit-scrollbar-track:vertical {
    margin: var(--window-radius, 20px) 0;
}

.product-card::-webkit-scrollbar-track:horizontal {
    margin: 0 var(--window-radius, 20px);
}

.product-overlay.is-open .product-card {
    opacity: 1;
    transform: scale(1)
}

.product-overlay.is-closing .product-card {
    opacity: 0;
    transform: scale(.06);
    transition: transform .38s cubic-bezier(.75, .02, 1, .6), opacity .38s ease-in
}

.product-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #7c6b5c;
    font-size: 31px;
    line-height: 1;
    cursor: pointer
}

.product-close:hover {
    color: #ea5d10
}

.product-gallery {
    min-width: 0
}

.product-main-image {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 390px;
    border-radius: 0;
    background: transparent
}

.product-slide-window {
    min-width: 0;
    overflow: hidden
}

.product-slide-track {
    display: flex;
    width: 100%;
    transform: translateX(-100%);
    transition: transform .48s cubic-bezier(.25, .8, .25, 1);
    will-change: transform
}

.product-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    place-items: center
}

.product-slide img {
    width: 100%;
    height: 390px;
    object-fit: contain
}

.product-carousel-arrow {
    height: 48px;
    border: 0;
    background: transparent;
    color: #715c4a;
    font-size: 42px;
    line-height: 1;
    cursor: pointer
}

.product-carousel-arrow:hover {
    color: #ef6414
}

.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px
}

.product-thumbnails button {
    width: 72px;
    height: 72px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    cursor: pointer
}

.product-thumbnails button.is-current {
    border-color: #ff6517;
    background: transparent
}

.product-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.product-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 11px 5px 0 0
}

.product-eyebrow {
    color: #b46b3d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em
}

.product-details h2 {
    margin: 13px 0 8px;
    font-size: 30px;
    line-height: 1.25
}

.product-summary {
    margin: 0 0 20px;
    color: #74665c;
    font-size: 14px;
    line-height: 1.7
}

.product-facts {
    margin: 0;
    border-top: 1px solid #e8ded2
}

.product-facts div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e8ded2;
    font-size: 14px
}

.product-facts dt {
    color: #8c7d70
}

.product-facts dd {
    margin: 0;
    font-weight: 600
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 17px;
    margin: 23px 0 16px
}

.product-price span {
    color: #8c7d70;
    font-size: 14px
}

.product-price strong {
    color: #ef5f0e;
    font-size: 31px
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #695a4f
}

.product-quantity input {
    width: 84px;
    height: 38px;
    padding: 6px 9px;
    border: 1px solid #cdbba9;
    border-radius: 0;
    background: white;
    color: #332b25;
    font: 600 15px var(--site-font)
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 22px
}

.product-actions button {
    min-height: 48px;
    border: 1px solid #eb671d;
    border-radius: 0;
    background: #fff4ec;
    color: #e85d10;
    font: 800 14px var(--site-font);
    cursor: pointer
}

.product-actions button:last-child {
    background: #f56715;
    color: white
}

.product-actions button:hover {
    filter: brightness(.95)
}

.product-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: #9b5227;
    font-size: 12px;
    line-height: 1.5
}

.cart-launch {
    position: absolute;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 15;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid #ffe1bf;
    border-radius: 50%;
    background: #fa6519;
    color: #fff;
    box-shadow: 0 8px 25px #0006, 0 0 0 4px #fff2;
    cursor: pointer;
    transition: transform .2s, background .2s
}

.cart-launch:hover,
.cart-launch:focus-visible {
    transform: translateY(-4px);
    background: #ec540b
}

.cart-launch svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid white;
    border-radius: 12px;
    background: #402416;
    color: white;
    font: 800 11px var(--site-font)
}

.cart-count[hidden],
.cart-panel[hidden] {
    display: none
}

.cart-panel {
    position: absolute;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(98px, calc(env(safe-area-inset-bottom) + 98px));
    z-index: 16;
    width: min(390px, calc(100vw - 28px));
    max-height: calc(100dvh - 125px);
    overflow: auto;
    padding: 22px;
    border: 1px solid #f5e4d1;
    border-radius: 18px;
    background: #fffaf4;
    box-shadow: 0 18px 55px #0008;
    color: #342b25;
    animation: cart-enter .25s cubic-bezier(.2, 1, .3, 1)
}

.cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8dbce
}

.cart-panel-head h2 {
    margin: 0;
    font-size: 21px
}

.cart-close {
    border: 0;
    background: transparent;
    color: #85776c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.cart-items {
    display: grid;
    gap: 14px;
    padding: 18px 0
}

.cart-empty {
    margin: 12px 0;
    color: #88786d;
    text-align: center;
    font-size: 14px
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 13px;
    align-items: center
}

.cart-item img {
    width: 72px;
    height: 78px;
    object-fit: contain;
    border-radius: 9px;
    background: #f2ebe3
}

.cart-item-body {
    min-width: 0
}

.cart-item-name {
    display: block;
    margin: 0 0 6px;
    font-size: 14px
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #a4643b;
    font-size: 13px
}

.cart-remove {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8c7c70;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer
}

.cart-image-placeholder {
    display: grid;
    place-items: center;
    width: 72px;
    height: 78px;
    border-radius: 9px;
    background: #f2ebe3;
    color: #9b8b7e;
    font-size: 12px
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 10px;
    border-top: 1px solid #e8dbce;
    font-size: 14px
}

.cart-total strong {
    color: #ee5f11;
    font-size: 21px
}

.cart-note {
    margin: 5px 0 0;
    color: #9a8d82;
    font-size: 11px;
    line-height: 1.5
}

@keyframes cart-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.94)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@media(max-width:740px) {
    .product-overlay {
        padding: 10px
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: 96dvh;
        padding: 18px
    }

    .product-main-image {
        min-height: 240px;
        grid-template-columns: 34px minmax(0, 1fr) 34px
    }

    .product-slide img {
        height: 240px
    }

    .product-thumbnails button {
        width: 58px;
        height: 58px
    }

    .product-details {
        padding: 0
    }

    .product-details h2 {
        font-size: 23px
    }

    .product-summary {
        margin-bottom: 12px
    }

    .product-facts div {
        padding: 9px 0
    }

    .product-price {
        margin: 14px 0 10px
    }

    .product-actions {
        margin-top: 14px
    }
}

@media(max-width:740px) {
    .cart-launch {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px
    }

    .cart-panel {
        right: 14px;
        bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px))
    }
}

@media(prefers-reduced-motion:reduce) {

    .product-card,
    .product-overlay.is-closing .product-card,
    .product-slide-track,
    .cart-launch {
        transition: none
    }

    .cart-panel {
        animation: none
    }
}
