﻿body.product-page .custom-btn-primary,
body.product-page .custom-btn-secondary,
body.product-page .product-item .add-to-cart {
    background-color: #c98f86;
    color: #fff;
}

body.product-page .custom-btn-primary:not(:disabled):hover,
body.product-page .custom-btn-secondary:not(:disabled):hover,
body.product-page .custom-btn-primary:focus-visible,
body.product-page .custom-btn-secondary:focus-visible {
    background-color: #9b6259;
    color: #fff;
}

body.product-page .product-item .add-to-cart i {
    color: #fff;
}

body.product-page .product-item .add-to-cart:hover,
body.product-page .product-item .add-to-cart:focus-visible {
    background-color: #9b6259;
    color: #fff;
}

body.product-page .custom-btn:focus-visible,
body.product-page .product-item .add-to-cart:focus-visible {
    outline: 2px solid #9b6259;
    outline-offset: 3px;
}
/* Product detail storefront. */
body.product-page { background: #fffaf7; }
body.product-page .pd-shell { max-width: 1380px; margin: auto; padding: 0 36px 72px; color: #302724; }
.pd-shell button, .pd-shell input { font: inherit; }
.pd-shell a { color: inherit; text-decoration: none; }
.pd-shell button { cursor: pointer; }
.pd-shell :is(a, button, input, summary):focus-visible { outline: 2px solid #9b6259; outline-offset: 4px; }
.pd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 28px 0; font-size: 12px; color: #796b64; }
.pd-breadcrumb i { font-size: 9px; }
.pd-breadcrumb span { color: #302724; overflow-wrap: anywhere; }
.pd-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.pd-gallery { position: sticky; top: 110px; min-width: 0; }
.pd-image-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: #f5eee8; border: 1px solid #efdfd4; border-radius: 24px; padding: 55px 30px; overflow: hidden; }
.pd-image-stage > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pd-stage-label { position: absolute; top: 24px; left: 26px; font-size: 10px; letter-spacing: 2px; color: #8b7263; }
.pd-image-count { position: absolute; right: 24px; bottom: 20px; font-size: 12px; color: #8b7263; }
.pd-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding: 16px 3px 6px; }
.pd-thumbnail { flex: 0 0 76px; height: 76px; border: 1px solid #ebddd3; border-radius: 12px; background: #fff; padding: 8px; }
.pd-thumbnail.is-active { border: 2px solid #c98f86; background: #f3e2de; }
.pd-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-caption { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 11px; color: #8b7263; }
.pd-summary { padding-top: 12px; min-width: 0; }
.pd-eyebrow { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #a64b30; line-height: 1.8; }
.pd-eyebrow span { margin-inline: 8px; }
.pd-summary h1 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.18; letter-spacing: -1px; margin: 14px 0; overflow-wrap: anywhere; }
.pd-subtitle { font-size: 14px; line-height: 1.8; color: #7c6e65; margin-bottom: 24px; }
.pd-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.pd-price-row strong { font-size: 34px; letter-spacing: -1px; }
.pd-price-row del { color: #9c8c83; font-size: 17px; }
.pd-discount { padding: 6px 10px; border-radius: 6px; color: #9b6259; background: #f3e2de; font-size: 11px; }
.pd-stock { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 14px 0 24px; }
.pd-stock i { color: #9b6259; }
.pd-purchase { border-top: 1px solid #ebddd3; padding-top: 24px; }
.pd-color-options { padding: 0; margin: 0 0 24px; border: 0; }
.pd-color-options legend { float: none; width: auto; font-size: 13px; margin-bottom: 12px; }
.pd-color-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-color { position: relative; cursor: pointer; }
.pd-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-color span { display: block; padding: 10px 18px; font-size: 12px; border: 1px solid #e6d8cf; border-radius: 8px; background: #fff; }
.pd-color input:checked + span { border-color: #c98f86; background: #f3e2de; color: #9b6259; }
.pd-color input:focus-visible + span { outline: 2px solid #9b6259; outline-offset: 3px; }
.pd-quantity-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13px; }
.pd-quantity { display: flex; border: 1px solid #e6d8cf; border-radius: 10px; overflow: hidden; background: #fff; }
.pd-quantity button { width: 40px; height: 42px; border: 0; background: transparent; color: #302724; font-size: 20px; }
.pd-quantity input { width: 44px; text-align: center; border: 0; background: transparent; appearance: textfield; -moz-appearance: textfield; }
.pd-quantity input::-webkit-inner-spin-button, .pd-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-actions button { min-height: 54px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 14px; transition: background .2s; }
.pd-buy { background: #c98f86; color: #fff; border: 1px solid #c98f86; }
.pd-buy:hover { background: #9b6259; }
.pd-cart { border: 1px solid #c98f86; color: #9b6259; background: #fff; }
.pd-cart:hover { background: #f3e2de; }
.pd-actions button:disabled { opacity: .45; cursor: not-allowed; }
.pd-secondary-actions { display: flex; justify-content: space-between; gap: 16px; margin: 20px 0 26px; }
.pd-secondary-actions button, .pd-secondary-actions a { border: 0; padding: 0; background: none; font-size: 12px; display: flex; align-items: center; gap: 8px; color: #75665d; }
.pd-assurances { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; border-block: 1px solid #ebddd3; }
.pd-assurances > div { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.pd-assurances i { font-size: 24px; color: #9b6259; }
.pd-assurances small { display: block; font-size: 11px; color: #867469; margin-top: 6px; }
.pd-policy { display: flex; justify-content: space-between; font-size: 11px; padding-top: 16px; }
.pd-details, .pd-related { margin-top: 76px; }
.pd-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.pd-section-heading h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.7px; margin: 8px 0 0; }
.pd-section-heading > a { flex-shrink: 0; font-size: 12px; border-bottom: 1px solid #9b6259; padding-bottom: 6px; }
.pd-details-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.pd-facts { padding: 28px; border: 1px solid #efdfd4; border-radius: 16px; background: #f5eee8; }
.pd-facts h3 { font-size: 18px; margin: 0 0 20px; }
.pd-facts dl { margin: 0; }
.pd-facts dl > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid #e6d8cf; font-size: 12px; }
.pd-facts dl > div:last-child { border: 0; }
.pd-facts dt { font-weight: 400; color: #8b7263; }
.pd-facts dd { margin: 0; overflow-wrap: anywhere; }
.pd-information { min-width: 0; }
.pd-information details { border-bottom: 1px solid #ebddd3; }
.pd-information summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; cursor: pointer; list-style: none; }
.pd-information summary::-webkit-details-marker { display: none; }
.pd-information details[open] summary i { transform: rotate(45deg); }
.pd-rich-text { font-size: 14px; line-height: 1.9; color: #75665d; padding-bottom: 24px; overflow-x: auto; overflow-wrap: anywhere; }
.pd-rich-text img, .pd-rich-text video { max-width: 100%; height: auto; }
.pd-rich-text iframe { max-width: 100%; }
.pd-rich-text table { width: 100%; }
.pd-rich-text td, .pd-rich-text th { padding: 10px; border: 1px solid #ebddd3; }
.pd-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pd-related-card { background: #fff; border: 1px solid #efdfd4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.pd-related-image { display: block; padding: 24px; aspect-ratio: 1.1; background: #f5eee8; }
.pd-related-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.pd-related-image:hover img { transform: scale(1.04); }
.pd-related-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pd-related-info > span { font-size: 10px; color: #a64b30; }
.pd-related-info h3 { font-size: 14px; line-height: 1.6; margin: 8px 0 18px; }
.pd-related-info > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pd-related-info strong { font-size: 16px; }
.pd-related-info > div > a { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #c98f86; color: #171312; }
@media (max-width: 991.98px) {
    body.product-page .pd-shell { padding-inline: 24px; }
    .pd-overview { gap: 28px; }
    .pd-gallery { position: static; }
    .pd-actions { grid-template-columns: 1fr; }
    .pd-assurances { grid-template-columns: 1fr; gap: 16px; }
    .pd-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    body.product-page .pd-shell { padding: 0 16px 44px; }
    .pd-breadcrumb { padding: 20px 0; gap: 8px; font-size: 10px; }
    .pd-overview, .pd-details-grid { grid-template-columns: 1fr; }
    .pd-image-stage { border-radius: 16px; }
    .pd-thumbnail { flex-basis: 64px; height: 64px; }
    .pd-summary { padding-top: 0; }
    .pd-actions { grid-template-columns: 1fr 1fr; }
    .pd-assurances { grid-template-columns: 1fr 1fr; }
    .pd-details, .pd-related { margin-top: 44px; }
    .pd-details-grid { gap: 16px; }
    .pd-facts { padding: 22px; }
    .pd-related-grid { gap: 12px; }
    .pd-related-info { padding: 12px; }
    .pd-related-image { padding: 16px; }
    .pd-related-info h3 { font-size: 12px; }
    .pd-related-info strong { font-size: 14px; }
    .pd-actions button { gap: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-shell * { transition: none !important; }
}
