:root {
    --detail-blue: #0c67bf;
    --detail-orange: #f7a415;
    --detail-ink: #15191e;
    --detail-muted: #5e6871;
    --detail-line: #e4e7ea;
}


.product-lightbox-open { overflow: hidden; }

.product-detail-section { padding: 46px 0 74px; background: #ffffff; }
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    align-items: start;
    gap: clamp(38px, 5vw, 72px);
}
.product-gallery { min-width: 0; }
.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.48 / 1;
    overflow: hidden;
    border-radius: 5px;
    background: #e9edf0;
    cursor: zoom-in;
}
.product-main-image::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 18, 32, .08), transparent 35%, transparent 65%, rgba(5, 18, 32, .26));
    opacity: 0;
    transition: opacity .2s ease;
}
.product-main-image:hover::after { opacity: 1; }
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-main-image:hover img { transform: scale(1.025); }
.product-zoom-hint {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 12px;
    visibility: hidden;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 28, 42, .78);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    font-size: 12px;
}
.product-main-image:hover .product-zoom-hint,
.product-main-image:focus-within .product-zoom-hint {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.product-thumbnails-wrap {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}
.product-thumbnails-viewport {
    min-width: 0;
    width: min(100%, 414px);
    margin: 0 auto;
    overflow: hidden;
}
.product-thumbnails {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 2px;
    transition: transform .3s ease;
}
.thumbnail-arrow {
    display: grid;
    width: 30px;
    height: 42px;
    place-items: center;
    color: #50718d;
    border-radius: 4px;
    background: transparent;
    font-size: 21px;
    transition: color .2s ease, background .2s ease;
}
.thumbnail-arrow:hover:not(:disabled) {
    color: var(--detail-blue);
    background: #edf5fb;
}
.thumbnail-arrow:disabled {
    cursor: default;
    opacity: .3;
}
.thumbnail-button {
    position: relative;
    flex: 0 0 122px;
    aspect-ratio: 1.48 / 1;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #ffffff;
}
.thumbnail-button.is-active,
.thumbnail-button:hover { border-color: var(--detail-blue); }
.thumbnail-button img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-button::after {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    content: "\F52A";
    color: #ffffff;
    border-radius: 50%;
    background: rgba(11, 36, 61, .72);
    opacity: 0;
    transition: opacity .2s ease;
    font-family: bootstrap-icons;
    font-size: 12px;
}
.thumbnail-button:hover::after,
.thumbnail-button:focus-visible::after { opacity: 1; }
.product-detail-info { min-width: 0; padding-top: 22px; }
.product-detail-info h1 {
    margin: 0;
    color: #080b0e;
    font-size: clamp(28px, 2.3vw, 42px);
    line-height: 1.18;
}
.product-summary {
    max-width: 610px;
    margin: 30px 0 0;
    color: var(--detail-muted);
    font-size: 16px;
    line-height: 1.9;
}
.product-specs {
    display: grid;
    gap: 7px;
    margin: 8px 0 0;
    color: #424b52;
    font-size: 14px;
    line-height: 1.45;
}
.product-specs div { display: flex; gap: 5px; }
.product-specs dt,
.product-specs dd { margin: 0; }
.product-specs dt { font-weight: 500; }
.product-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: baseline;
    margin-top: 27px;
    padding: 16px 0 13px;
    border-top: 1px solid var(--detail-line);
    border-bottom: 1px solid var(--detail-line);
    color: #4e565d;
    font-size: 16px;
}
.product-price-row strong { color: #e53935; font-weight: 500; }
.quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #5d646a;
    font-size: 16px;
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border: 1px solid #dfe3e7;
}
.quantity-control button,
.quantity-control input {
    width: 30px;
    height: 28px;
    color: #424b52;
    border: 0;
    background: #ffffff;
    text-align: center;
}
.quantity-control button:hover { color: var(--detail-blue); background: #f1f6fb; }
.quantity-control input {
    width: 38px;
    border-right: 1px solid #dfe3e7;
    border-left: 1px solid #dfe3e7;
    outline: 0;
    -moz-appearance: textfield;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.product-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.product-action-button {
    display: inline-flex;
    min-width: 158px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-action-button:hover { box-shadow: 0 8px 18px rgba(20, 74, 120, .17); transform: translateY(-2px); }
.inquire-button { color: #ffffff; background: var(--detail-blue); }
.basket-button { color: #232323; background: var(--detail-orange); }
.product-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 29px;
    color: #5e6469;
    font-size: 16px;
}
.product-share > span { margin-right: 8px; }
.product-share a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #606970;
    border: 1px solid #e7eaed;
    border-radius: 50%;
    background: #ffffff;
    font-size: 16px;
}
.product-share a:hover { color: #ffffff; border-color: var(--detail-blue); background: var(--detail-blue); }
.product-description-section {
    min-height: 490px;
    padding: 25px 0 40px;
    background: #ffffff;
}
.product-description-section .list-container,
.recommended-section .list-container {
    width: min(calc(100% - 48px), 1550px);
}
.product-description-section h2,
.recommended-heading h2 {
    margin: 0;
    color: #333;
    font-size: clamp(30px, 2.35vw, 42px);
    line-height: 1.2;
    font-weight: bold;
}
.product-description-copy {
    margin-top: 54px;
    color: #4d565d;
    font-size: 16px;
    line-height: 2.25;
}
.product-description-copy p { margin: 0  }
.recommended-section {
    padding: 58px 0 90px;
    background: #f5f6f7;
}
.recommended-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.recommended-heading h2 {
    color: #333;
    font-size: clamp(24px, 1.95vw, 45px);
    font-weight:bold;
}
.recommended-controls { display: flex; gap: 10px; }
.recommended-controls button {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: #b5b8ba;
    font-size: 12px;
}
.recommended-controls button:hover { background: var(--detail-blue); }
.recommended-carousel {
    max-width: 100%;
    margin-top: 78px;
    overflow: hidden;
}
.recommended-grid {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.recommended-grid::-webkit-scrollbar { display: none; }
.recommended-card {
    min-width: calc((100% - 56px) / 3);
    flex: 0 0 calc((100% - 56px) / 3);
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(30, 51, 68, .04);
}
.recommended-image {
    display: block;
    aspect-ratio: 1.31 / 1;
    overflow: hidden;
    background: #dfe5e9;
}
.recommended-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.recommended-card:hover .recommended-image img { transform: scale(1.04); }
.recommended-card-body { position: relative;padding: 28px 22px 24px; }
.recommended-card-body h3 {
    max-width: calc(100% - 54px);
    color: #15191e;
    font-size: 21px;
    line-height: 1.35;overflow:hidden;
text-overflow: ellipsis;white-space: nowrap}
.cpms {
    margin: 8px 0;
    color: #69727a;
    font-size: 16px;
    line-height: 1.45;display: -webkit-box;
    overflow: hidden;-webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.recommended-cart {
    position: absolute;
    right: 22px;
    bottom: 24px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: var(--detail-blue);
    font-size: 21px;
}
.recommended-cart.is-orange { background: var(--detail-orange); }
.product-toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100% - 44px));
    padding: 13px 18px;
    visibility: hidden;
    color: #ffffff;
    border-radius: 5px;
    background: rgba(22, 31, 41, .94);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    font-size: 13px;
}
.product-toast.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }

.product-lightbox {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    justify-items: center;
    visibility: hidden;
    padding: 42px 34px;
    background: rgba(5, 14, 25, .92);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}
.product-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}
.lightbox-figure {
    display: grid;
    max-width: min(1100px, 84vw);
    max-height: calc(100vh - 84px);
    margin: 0;
    justify-items: center;
}
.lightbox-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 135px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .38);
}
.lightbox-figure figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    text-align: center;
}
.lightbox-close,
.lightbox-arrow {
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background .2s ease, transform .2s ease;
}
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    font-size: 16px;
}
.lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 19px;
}
.lightbox-close:hover,
.lightbox-arrow:hover {
    background: var(--detail-blue);
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .product-detail-layout { grid-template-columns: 1fr; gap: 28px; }
    .product-detail-info { padding-top: 0; }
    .product-summary { margin-top: 18px; }
}

@media (max-width: 700px) {
    .product-detail-section { padding: 30px 0 48px; }
    .product-main-image { aspect-ratio: 1.25 / 1; }
    .product-thumbnails-wrap { grid-template-columns: 25px minmax(0, 1fr) 25px; gap: 5px; }
    .product-thumbnails { gap: 10px; overflow-x: auto; padding: 0 2px 5px; scrollbar-width: thin; }
    .product-thumbnails::-webkit-scrollbar { height: 4px; }
    .product-thumbnails::-webkit-scrollbar-thumb { background: #b9c9d6; border-radius: 999px; }
    .thumbnail-button { flex-basis: 104px; }
    .thumbnail-arrow { width: 25px; height: 38px; font-size: 18px; }
    .product-detail-info h1 { font-size: 27px; }
    .product-summary,
    .product-specs,
    .product-price-row,
    .quantity-row { font-size: 13px; }
    .product-actions { gap: 10px; margin-top: 25px; }
    .product-action-button { min-width: 0; flex: 1 1 145px; min-height: 45px; padding: 0 14px; font-size: 13px; }
    .product-description-section,
    .recommended-section { min-height: 0; }
    .product-description-section { padding: 45px 0 50px; }
    .product-description-section .list-container,
    .recommended-section .list-container { width: min(calc(100% - 28px), 480px); }
    .product-description-section h2 { font-size: 29px; }
    .product-description-copy { margin-top: 28px; font-size: 14px; line-height: 1.85; }
    .product-description-copy p { margin:0px; }
    .recommended-section { padding: 36px 0 50px; }
    .recommended-heading h2 { font-size: 23px; }
    .recommended-carousel { margin-top: 36px; }
    .recommended-grid { gap: 18px; }
    .recommended-card { min-width: 100%; flex-basis: 100%; }
    .recommended-image { aspect-ratio: 1.35 / 1; }
    .recommended-card-body { padding: 22px 18px 20px; }
    .recommended-card-body h3 { min-height: 0; margin-bottom: 15px; font-size: 18px; }
    .recommended-card-body p { margin: 6px 0; font-size: 14px; }
    .recommended-cart { right: 18px; bottom: 20px; width: 46px; height: 46px; font-size: 18px; }
    .product-lightbox {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 5px;
        padding: 54px 10px 28px;
    }
    .lightbox-figure { max-width: calc(100vw - 74px); max-height: calc(100vh - 92px); }
    .lightbox-figure img { max-height: calc(100vh - 145px); }
    .lightbox-arrow { width: 34px; height: 34px; font-size: 15px; }
    .lightbox-close { top: 15px; right: 15px; width: 36px; height: 36px; }
}

@media (max-width: 420px) {
    .product-detail-info h1 { font-size: 24px; }
    .product-price-row { align-items: flex-start; flex-direction: column; gap: 3px; }
    .product-share { margin-top: 23px; }
    .recommended-heading h2 { font-size: 21px; }
}
