:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --orange: #f47629;
    --navy: #171f49;
    --page-bg: #e9edef;
    --white: #fff;
    --text: #4c5055;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    background: var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}
img { max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.product-overview { padding: 132px 0 70px; }
.product-topbar {
    position: relative;
    display: flex;
    min-height: 74px;
    margin-bottom: 28px;
    padding: 12px 24px 12px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 26px;
    background: linear-gradient(120deg,#75340f 0%,#b95417 48%,#ee7a27 100%);
    box-shadow: 0 18px 42px rgba(116,49,13,.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.product-topbar::before,.product-topbar::after{position:absolute;border:1px solid rgba(255,255,255,.22);border-radius:50%;content:'';pointer-events:none}
.product-topbar::before{right:20%;bottom:-78px;width:160px;height:160px}
.product-topbar::after{right:-30px;top:-72px;width:180px;height:180px;background:rgba(255,255,255,.06)}
.product-topbar h2,.product-breadcrumb{position:relative;z-index:1}
.product-topbar h2 { color:#fff; font-size: 1.38rem; line-height: 1.2; }
.product-breadcrumb { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: rgba(255,255,255,.82); font-size: .9rem; }
.product-breadcrumb a { color: #fff; font-weight: 700; text-decoration: none; }
.product-breadcrumb a:hover { color: #ffe2c7; }
.product-breadcrumb .breadcrumb-separator { color: #ffd0aa; font-weight: 900; }
.product-breadcrumb strong { color: #fff; font-weight: 800; }
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    gap: clamp(46px, 6vw, 82px);
    align-items: center;
}
.product-gallery {
    position: relative;
    display: grid;
    min-height: 570px;
    place-items: center;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 22px 55px rgba(45,53,67,.12);
}
.product-gallery::after {
    position: absolute;
    inset: auto -68px -82px auto;
    width: 250px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(244,118,41,.08);
    content: '';
}
.product-gallery > img,
.product-gallery-slide {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 570px;
    object-fit: cover;
}
.product-gallery-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.product-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.product-gallery-thumbs {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.product-gallery-thumb {
    width: 68px;
    height: 58px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 12px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 7px 18px rgba(24,27,35,.2);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
    border-color: var(--orange);
    box-shadow: 0 8px 20px rgba(191,77,16,.26);
    transform: translateY(-2px);
}
.product-gallery-thumb:focus-visible { outline: 3px solid rgba(244,118,41,.42); outline-offset: 3px; }
.product-label {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.product-summary { padding: 20px 0; }
.product-price {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 900;
}
.product-summary h1 {
    max-width: 670px;
    margin-bottom: 22px;
    color: var(--navy);
    font-size: clamp(2.35rem, 4.1vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.product-lead {
    max-width: 660px;
    margin-bottom: 30px;
    color: #666b70;
    font-size: 1.05rem;
}
.product-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.quantity-control {
    display: grid;
    grid-template-columns: 56px 48px;
    grid-template-rows: 28px 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 29px;
    background: rgba(255,255,255,.22);
}
.quantity-value {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(255,255,255,.92);
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
}
.quantity-button {
    display: grid;
    width: 48px;
    height: 28px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 1.18rem;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease;
}
.quantity-button:first-of-type { border-bottom: 1px solid rgba(255,255,255,.92); }
.quantity-button:hover { background: rgba(255,255,255,.72); color: var(--orange); }
.order-button {
    display: inline-flex;
    min-height: 56px;
    padding: 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 29px;
    background: var(--orange);
    box-shadow: 0 12px 26px rgba(191,77,16,.18);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.order-button:hover { background: #d95d14; box-shadow: 0 16px 32px rgba(191,77,16,.27); transform: translateY(-2px); }
.order-button:focus-visible, .quantity-button:focus-visible { outline: 3px solid rgba(244,118,41,.38); outline-offset: 3px; }
.product-features h2 { margin-bottom: 12px; color: var(--navy); font-size: 1.12rem; }
.product-features ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.product-features li { position: relative; padding-left: 23px; color: #666b70; }
.product-features li::before { position: absolute; top: .63em; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(244,118,41,.13); content: ''; }

.product-description { padding: 42px 0 56px; border-top: 1px solid rgba(255,255,255,.9); }
.description-label {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.description-label span {
    display: inline-flex;
    min-width: 180px;
    min-height: 56px;
    padding: 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}
.description-content { padding-top: 4px; }
.description-content h2 { margin-bottom: 14px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.description-content p { margin-bottom: 10px; color: #60656a; font-size: 1.04rem; line-height: 1.72; }
.description-content a { color: var(--primary-color); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.description-content a:hover { color: var(--secondary-color); }

.related-products {
    padding: 12px 0 72px;
}
.related-products > .container > h2 {
    margin-bottom: 24px;
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}
.related-products-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.related-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 14px 34px rgba(45,53,67,.1);
    transition: transform .25s ease, box-shadow .25s ease;
}
.related-product-card:hover {
    box-shadow: 0 20px 42px rgba(45,53,67,.16);
    transform: translateY(-5px);
}
.related-product-image {
    display: block;
    aspect-ratio: 1.18 / 1;
    overflow: hidden;
    background: #fff;
}
.related-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.related-product-card:hover .related-product-image img { transform: scale(1.045); }
.related-product-body { padding: 17px 17px 19px; }
.related-product-body h3 {
    min-height: 52px;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: 1.03rem;
    line-height: 1.42;
}
.related-product-body h3 a { color: inherit; text-decoration: none; }
.related-product-body h3 a:hover { color: var(--secondary-color); }
.related-product-body p {
    margin-bottom: 14px;
    color: #e7661c;
    font-weight: 900;
}
.related-product-link {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.related-product-link:hover { background: #d95d14; transform: translateY(-2px); }
.related-product-link:focus-visible,
.related-product-image:focus-visible { outline: 3px solid rgba(244,118,41,.4); outline-offset: 3px; }

footer { padding: 58px 0 28px; background: #2c2c2c; color: #e0e0e0; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 38px; }
.footer-section h4 { margin-bottom: 18px; color: #fff; font-size: 1.14rem; }
.footer-section p { margin-bottom: 10px; color: #dedede; font-size: .94rem; }
.footer-section a { color: #f0b783; text-decoration: none; }
.footer-section a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: #b8b8b8; }

@media (max-width: 900px) {
    .product-overview { padding-top: 124px; }
    .product-layout { grid-template-columns: 1fr; gap: 36px; }
    .product-gallery, .product-gallery > img, .product-gallery-slide { min-height: 500px; height: 500px; }
    .product-summary { padding: 0; }
    .related-products-row {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        padding: 4px 2px 18px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }
    .related-product-card { flex: 0 0 min(310px, 72vw); scroll-snap-align: start; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 28px, 1200px); }
    .product-overview { padding: 104px 0 46px; }
    .product-topbar { margin-bottom: 18px; padding: 13px 16px; align-items: flex-start; flex-direction: column; gap: 7px; border-radius: 20px; }
    .product-breadcrumb { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .product-gallery { min-height: 390px; border-radius: 22px; }
    .product-gallery > img, .product-gallery-slide { height: 390px; min-height: 390px; }
    .product-summary h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .product-description { padding: 34px 0 46px; }
    .related-products { padding: 4px 0 52px; }
    .related-products > .container > h2 { margin-bottom: 18px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 460px) {
    .product-gallery, .product-gallery > img, .product-gallery-slide { min-height: 315px; height: 315px; }
    .product-gallery-thumb { width: 58px; height: 50px; }
    .product-actions { align-items: stretch; }
    .order-button { flex: 1 1 170px; padding-inline: 24px; }
    .product-meta div { grid-template-columns: 78px 1fr; }
}

