.fitting-catalog .product-detail-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0 calc(28px + var(--catalog-tabs-height, 52px) + env(safe-area-inset-bottom, 0px));
    color: #352318;
}

.fitting-catalog .product-detail-title {
    margin: 0 0 14px;
    color: #352318;
    font-size: clamp(25px, 7vw, 38px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.product-detail-topbar { margin: 0 0 10px; }
.product-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #756b63;
    font-size: 14px;
    font-weight: 600;
}
.product-detail-back:first-letter { font-size: 21px; }
.product-detail-back:hover { color: #5a3523; }

.product-detail-gallery-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    overflow: hidden;
    border-radius: 20px;
    background: #f3efeb;
}

.product-detail-gallery-image {
    display: none;
    width: 100%;
    height: min(68vw, 500px);
    min-height: 280px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-detail-gallery-image.is-active { display: block; }
.product-detail-gallery-image { cursor: zoom-in; }

.product-detail-gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #5a3523;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
}

.product-detail-gallery-arrow.is-prev { left: 12px; }
.product-detail-gallery-arrow.is-next { right: 12px; }

.product-detail-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.product-detail-gallery-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 2px;
    border: 1px solid #e3dfda;
    border-radius: 10px;
    background: #f3efeb;
}

.product-detail-gallery-thumb.is-active { border-color: #56633b; box-shadow: 0 0 0 1px #56633b; }
.product-detail-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.product-detail-lightbox[hidden] { display: none; }
.product-detail-lightbox {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(38, 27, 21, .96);
}
.product-detail-lightbox-image {
    display: block;
    width: auto;
    max-width: calc(100vw - 32px);
    height: auto;
    max-height: calc(100vh - 32px);
    object-fit: contain;
    border-radius: 10px;
}
.product-detail-lightbox-close,
.product-detail-lightbox-arrow {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #352318;
}
.product-detail-lightbox-close {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    font-size: 30px;
    line-height: 1;
}
.product-detail-lightbox-arrow {
    top: 50%;
    width: 42px;
    height: 42px;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
}
.product-detail-lightbox-arrow.is-prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.product-detail-lightbox-arrow.is-next { right: max(12px, env(safe-area-inset-right, 0px)); }
body.product-gallery-lightbox-open { overflow: hidden; }

.product-detail-purchase {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e3dfda;
    border-radius: 18px;
    background: #fff;
}

.product-detail-colors h2,
.product-detail-size-block h2,
.product-detail-description h2 {
    margin: 0 0 9px;
    color: #352318;
    font-size: 18px;
    line-height: 1.2;
}

.product-detail-color-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.product-detail-color { display: block; width: 25px; height: 25px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(53,35,24,.25); }
.product-detail-color.is-current { box-shadow: 0 0 0 2px #56633b; }

.product-detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.product-detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.product-detail-price strong { color: #352318; font-size: 27px; line-height: 1.1; }
.product-detail-price del { color: #756b63; font-size: 14px; }

.product-detail-wishlist { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f3efeb; color: #352318; }
.product-detail-wishlist svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-detail-wishlist.in-wishlist { color: #56633b; background: #e8ebdd; }
.product-detail-wishlist.in-wishlist svg { fill: currentColor; }

.product-detail-availability { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: #56633b; font-size: 14px; font-weight: 600; }
.product-detail-availability-dot { width: 8px; height: 8px; border-radius: 50%; background: #6e8f50; }
.product-detail-availability-link { padding: 0; border: 0; background: none; color: #756b63; text-decoration: underline; }

.product-detail-size-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-detail-size { min-width: 56px; height: 44px; padding: 0 13px; border: 1px solid #e3dfda; border-radius: 11px; background: #fff; color: #352318; font-size: 16px; font-weight: 600; }
.product-detail-size.is-selected { border-color: #56633b; background: #e8ebdd; color: #56633b; box-shadow: 0 0 0 1px #56633b inset; }
.product-detail-variant-select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.product-detail-add { width: 100%; min-height: 49px; border: 0; border-radius: 12px; background: #5a3523; color: #fff; font-size: 17px; font-weight: 700; }
.product-detail-add:disabled { background: #d2cbc3; cursor: not-allowed; }
.product-detail-unavailable { padding: 13px; border-radius: 11px; background: #f3efeb; color: #756b63; }

.product-detail-description { margin-top: 22px; padding: 0 2px; }
.product-detail-description-text { color: #756b63; font-size: 15px; line-height: 1.55; }
.product-detail-attributes { margin: 16px 0 0; border-top: 1px solid #e3dfda; }
.product-detail-attributes > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #e3dfda; }
.product-detail-attributes dt { color: #756b63; font-weight: 500; }
.product-detail-attributes dd { margin: 0; color: #352318; text-align: right; }

.product-detail-shops-modal { overflow: hidden; border: 0; border-radius: 22px; box-shadow: 0 16px 60px rgba(45, 34, 26, .25); }
.product-detail-shops-modal .modal-header { position: relative; border-bottom: 1px solid #e3dfda; padding: 20px 52px 14px 20px; }
.product-detail-shops-modal .modal-title { color: #352318; font-size: 22px; font-weight: 700; }
.product-detail-shops-modal .modal-body { padding: 8px 20px 20px; }
.product-detail-shops-modal .close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3efeb; color: #352318; font-size: 25px; line-height: 32px; opacity: 1; text-shadow: none; }
.product-detail-shop-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid #e3dfda; }
.product-detail-shop-row span { color: #756b63; font-size: 13px; }

@media (max-width: 699px) {
    .product-detail-shops-modal { border-radius: 24px; }
    .product-detail-shops-modal .modal-body { max-height: 58vh; overflow-y: auto; }
}

@media (min-width: 768px) {
    .fitting-catalog .product-detail-page { padding-top: 20px; }
    .product-detail-purchase { padding: 22px; }
}
