:root{
    --product-bg: #f6f1ea;
    --product-surface: #fffdf9;
    --product-surface-2: #f1e7da;
    --product-border: #ddd0c1;
    --product-text: #201914;
    --product-muted: #7b6858;
    --product-accent: #4b2e1f;
    --product-accent-2: #8e5e3b;
    --product-success: #2f6b44;
    --product-danger: #8a2f2f;
    --product-shadow: 0 18px 45px rgba(32, 25, 20, 0.08);
    --product-radius: 22px;
    --product-radius-sm: 14px;
    --product-max: 1280px;
}

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

body{
    background:
        radial-gradient(circle at top left, rgba(142, 94, 59, 0.08), transparent 35%),
        linear-gradient(180deg, #fbf7f2 0%, var(--product-bg) 100%);
    color:var(--product-text);
    font-family:"Inter", Arial, sans-serif;
    line-height:1.55;
}

img{
    max-width:100%;
    display:block;
}

a{
    color:inherit;
    text-decoration:none;
}

.product-page{
    width:100%;
    padding:32px 18px 70px;
}

.product-shell{
    width:100%;
    max-width:var(--product-max);
    margin:0 auto;
}

.product-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin:0 0 24px;
}

.product-breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    margin:0;
    color:var(--product-muted);
    font-size:14px;
}

.product-breadcrumb a{
    transition:opacity .2s ease;
}

.product-breadcrumb a:hover{
    opacity:.7;
}

.product-back-shop-top{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 16px;
    border:1px solid var(--product-border);
    border-radius:999px;
    background:var(--product-surface);
    color:var(--product-accent);
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    transition:transform .2s ease, opacity .2s ease;
}

.product-back-shop-top:hover{
    transform:translateY(-1px);
    opacity:.88;
}

.product-hero{
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
    gap:32px;
    align-items:start;
}

.product-gallery,
.product-summary,
.related-card,
.product-not-found{
    background:var(--product-surface);
    border:1px solid var(--product-border);
    border-radius:var(--product-radius);
    box-shadow:var(--product-shadow);
}

.product-gallery{
    padding:22px;
    position:sticky;
    top:24px;
}

.product-main-image-wrap{
    width:100%;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:18px;
    background:linear-gradient(180deg, #f9f4ed 0%, #eee2d3 100%);
    border:1px solid var(--product-border);
}

.product-main-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-thumbnails{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(82px, 1fr));
    gap:12px;
    margin-top:16px;
}

.product-thumb{
    padding:0;
    margin:0;
    border:1px solid var(--product-border);
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    cursor:pointer;
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-thumb img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
}

.product-thumb:hover{
    transform:translateY(-2px);
    border-color:var(--product-accent-2);
}

.product-thumb.is-active{
    border-color:var(--product-accent);
    box-shadow:0 0 0 2px rgba(75, 46, 31, 0.12);
}

.product-summary{
    padding:34px 30px;
}

.product-kicker,
.product-section-eyebrow{
    margin:0 0 10px;
    text-transform:uppercase;
    letter-spacing:.16em;
    font-size:24px;
    color:var(--product-accent-2);
}

.product-summary h1{
    margin:0 0 18px;
    font-size:clamp(32px, 4vw, 52px);
    line-height:1.05;
    letter-spacing:-0.03em;
}

.product-price-row{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
}

.product-price{
    font-size:clamp(28px, 3vw, 40px);
    font-weight:700;
    letter-spacing:-0.03em;
}

.product-copy{
    color:var(--product-muted);
    font-size:16px;
    margin-bottom:24px;
}

.product-copy p{
    margin:0;
}

.product-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 18px;
    border-radius:999px;
    font-weight:600;
    border:0;
    transition:transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
}

.product-btn:hover{
    transform:translateY(-1px);
}

.product-btn-primary{
    background:var(--product-accent);
    color:#fff;
    cursor:pointer;
}

.product-buy-btn{
    min-width:140px;
}

.product-info-list{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    margin:0;
    padding:0;
    border-top:1px solid rgba(221, 208, 193, 0.7);
}

.product-info-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:14px 0;
    border-bottom:1px solid rgba(221, 208, 193, 0.7);
}

.product-info-row dt{
    margin:0;
    color:var(--product-muted);
}

.product-info-row dd{
    margin:0;
    text-align:right;
    font-weight:600;
}

.product-availability{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:6px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.product-availability.is-in-stock{
    background:rgba(47, 107, 68, 0.12);
    color:var(--product-success);
}

.product-availability.is-out-of-stock{
    background:rgba(138, 47, 47, 0.10);
    color:var(--product-danger);
}

.product-related{
    margin-top:34px;
}

.product-related-head{
    margin-bottom:16px;
}

.product-related-head h2{
    margin:0;
    font-size:30px;
    letter-spacing:-0.02em;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:18px;
}

.related-card{
    overflow:hidden;
}

.related-image-link{
    display:block;
    aspect-ratio:1 / 1;
    background:#efe5d9;
}

.related-image-link img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

.related-card:hover .related-image-link img{
    transform:scale(1.03);
}

.related-body{
    padding:18px;
}

.related-meta{
    margin:0 0 8px;
    color:var(--product-muted);
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.related-body h3{
    margin:0 0 14px;
    font-size:20px;
    line-height:1.2;
}

.related-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.related-footer a{
    color:var(--product-accent);
    font-weight:600;
}

.product-not-found{
    padding:34px;
}

@media (max-width: 1100px){
    .product-hero{
        grid-template-columns:1fr;
    }

    .product-gallery{
        position:static;
    }

    .related-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px){
    .product-page{
        padding:18px 14px 44px;
    }

    .product-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .product-summary,
    .product-gallery{
        padding:20px;
        border-radius:18px;
    }

    .product-price-row{
        align-items:flex-start;
    }

    .related-grid{
        grid-template-columns:1fr;
    }

    .product-summary h1{
        font-size:34px;
    }

    .product-info-row{
        flex-direction:column;
        gap:6px;
    }

    .product-info-row dd{
        text-align:left;
    }

    .product-back-shop-top,
    .product-buy-btn{
        width:100%;
    }
}