.product-page {
    --product-ink: #171717;
    --product-muted: #777;
    --product-line: #e7e4df;
    --product-gold: #b88a43;
    background: #fff;
    color: var(--product-ink);
    padding-bottom: 100px;
}

.product-breadcrumb {
    max-width: 1420px;
    margin: 0 auto;
    padding: 27px 5.5%;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: #8b8b8b;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.product-breadcrumb a {
    color: inherit;
    transition: color .2s ease;
}

.product-breadcrumb a:hover {
    color: #111;
}

.product-detail {
    max-width: 1420px;
    margin: 0 auto 110px;
    padding: 0 5.5%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: start;
    gap: clamp(42px, 6vw, 92px);
}

.product-gallery {
    display: grid;
    gap: 22px;
}

.gallery-image {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    background: #faf9f7;
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-placeholder,
.related-placeholder {
    display: grid;
    place-items: center;
    color: #b8b0a2;
    font-family: Georgia, serif;
    font-size: 27px;
    letter-spacing: .28em;
}

.detail-copy {
    position: sticky;
    top: 28px;
    padding: 26px 0 20px;
}

.detail-category,
.section-eyebrow {
    margin: 0 0 17px;
    color: #9b8a70;
    font-size: 10px;
    letter-spacing: .23em;
    text-transform: uppercase;
}

.detail-copy h1 {
    margin: 0;
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(42px, 4vw, 66px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.025em;
}

.rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 27px;
    color: #6c6c6c;
    font-size: 13px;
}

.rating-summary strong {
    color: #303030;
}

.rating-stars,
.review-card-stars,
.related-rating {
    color: var(--product-gold);
    letter-spacing: .08em;
}

.detail-price {
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 500;
}

.size-picker {
    margin: 0 0 25px;
    padding: 0;
    border: 0;
}

.size-picker legend,
.quantity-control-label {
    margin-bottom: 11px;
    color: #4d4d4d;
    font-size: 12px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #dedbd6;
    background: #fff;
    color: #202020;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.size-option:hover,
.size-option.is-selected {
    border-color: #161616;
}

.size-option.is-selected {
    box-shadow: inset 0 0 0 1px #161616;
}

.stock {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: #626262;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stock-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #739777;
}

.stock-unavailable .stock-dot {
    background: #b45c5c;
}

.purchase-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    margin-bottom: 27px;
}

.quantity-control {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #dedbd6;
}

.quantity-control button {
    width: 37px;
    height: 48px;
    border: 0;
    background: #fff;
    color: #222;
    font-size: 19px;
    cursor: pointer;
}

.quantity-control input {
    width: 34px;
    height: 48px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #171717;
    text-align: center;
    font: inherit;
    font-size: 13px;
    appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

#add-to-cart {
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#add-to-cart:hover:not(:disabled) {
    background: #fff;
    color: #111;
}

#add-to-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.unavailable-message {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--product-line);
    color: #777;
    font-size: 12px;
}

.detail-description {
    margin: 27px 0;
    color: #626262;
    font-size: 14px;
    line-height: 1.9;
}

.scent-notes {
    margin: 30px 0 22px;
    padding: 22px 20px;
    border: 1px solid #dedbd6;
    border-radius: 6px;
}

.scent-notes h2 {
    margin: 0 0 13px;
    font-size: 15px;
    font-weight: 600;
}

.scent-notes p {
    margin: 7px 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.scent-notes strong {
    color: #171717;
}

.product-attributes {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #dedbd6;
    border-radius: 6px;
}

.product-attributes div {
    display: grid;
    grid-template-columns: minmax(105px, .32fr) 1fr;
    gap: 12px;
    padding: 6px 0;
}

.product-attributes dt {
    font-weight: 600;
}

.product-attributes dd {
    margin: 0;
    color: #565656;
}

.product-attributes dt,
.product-attributes dd {
    font-size: 13px;
    line-height: 1.6;
}

.product-promises {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
    border-top: 1px solid var(--product-line);
    border-bottom: 1px solid var(--product-line);
}

.product-promises > div {
    padding: 19px 12px 19px 0;
}

.product-promises strong,
.product-promises span {
    display: block;
}

.product-promises strong {
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-promises span {
    color: #888;
    font-size: 11px;
    line-height: 1.7;
}

.back-to-collection {
    display: inline-block;
    margin-top: 28px;
    padding-bottom: 7px;
    border-bottom: 1px solid #c89a54;
    color: #777;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.reviews-section,
.related-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5.5%;
}

.reviews-section {
    padding-top: 55px;
    border-top: 1px solid var(--product-line);
}

.reviews-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.reviews-heading h2,
.related-section h2 {
    margin: 0 0 12px;
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
}

.reviews-heading .section-eyebrow,
.related-section .section-eyebrow {
    margin-bottom: 10px;
}

.reviews-overview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #777;
    font-size: 13px;
}

.reviews-overview > strong {
    color: #171717;
    font-size: 22px;
}

.write-review-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.write-review-button:hover {
    background: #fff;
    color: #111;
}

.review-tools {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}

.review-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #777;
    font-size: 11px;
}

.review-tools select,
.review-form input,
.review-form textarea,
.review-form select {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8d4cd;
    border-radius: 2px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
}

.review-feedback {
    padding: 14px 16px;
    background: #f4f1eb;
    color: #3c513d;
    font-size: 13px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.review-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #dedbd6;
    border-radius: 7px;
    background: #fdfbf8;
}

.review-card.is-filtered,
.review-card.is-collapsed {
    display: none;
}

.review-card-stars {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1;
}

.review-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.review-author strong {
    font-size: 14px;
}

.verified-badge {
    padding: 3px 8px;
    border: 1px solid #aaa;
    border-radius: 999px;
    color: #454545;
    font-size: 10px;
}

.review-card time {
    color: #777;
    font-size: 11px;
}

.review-card h3 {
    margin: 16px 0 7px;
    font-size: 17px;
    line-height: 1.35;
}

.review-card > p {
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.7;
}

.show-reviews-button {
    display: block;
    margin: 24px auto 0;
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.review-form {
    max-width: 760px;
    margin: 58px auto 0;
    padding: 30px;
    border: 1px solid var(--product-line);
    background: #fdfbf8;
}

.review-form h3 {
    margin: 0 0 22px;
    font-family: var(--serif, Georgia, serif);
    font-size: 30px;
    font-weight: 400;
}

.review-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    color: #444;
    font-size: 12px;
}

.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.review-form textarea {
    min-height: 115px;
    resize: vertical;
}

.review-form .rating-select-label {
    max-width: 220px;
}

.review-moderation-note {
    margin: 0 0 16px;
    color: #777;
    font-size: 11px;
}

.review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.related-section {
    padding-top: 100px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
    text-align: left;
}

.related-card {
    display: flex;
    flex-direction: column;
    color: #171717;
}

.related-card > img,
.related-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: contain;
    background: #faf9f7;
}

.related-name {
    margin-top: 14px;
    font-size: 14px;
}

.related-rating {
    margin-top: 8px;
    font-size: 14px;
}

.related-rating small {
    margin-left: 5px;
    color: #777;
    font-size: 10px;
    letter-spacing: 0;
}

.related-price {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
        gap: 35px;
        padding: 0 4%;
    }

    .detail-copy {
        padding-top: 4px;
    }

    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .product-page {
        padding-bottom: 70px;
    }

    .product-breadcrumb {
        padding: 20px 5%;
        gap: 8px;
        font-size: 9px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 70px;
        padding: 0 5%;
    }

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

    .gallery-image:first-child {
        grid-column: 1 / -1;
        aspect-ratio: 1 / 1.03;
    }

    .gallery-image:not(:first-child) {
        aspect-ratio: 1 / 1;
    }

    .detail-copy {
        position: static;
        padding-top: 0;
    }

    .detail-copy h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .purchase-row {
        grid-template-columns: 1fr;
    }

    .quantity-control {
        width: max-content;
    }

    .reviews-section,
    .related-section {
        padding-right: 5%;
        padding-left: 5%;
    }

    .reviews-heading {
        align-items: start;
        flex-direction: column;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .review-form {
        padding: 22px 18px;
    }

    .review-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
