:root {
    --dark: #1b1815;
    --gold: #b98032;
    --cream: #f6f1e9;
    --paper: #fffdf9;
    --text: #271f19;
    --muted: #81766c;
    --line: #e3d9cd;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "DM Sans",sans-serif;
}

.product-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 0px;
}

.breadcrumbs {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #94887c;
    font-size: 16px;
}

.breadcrumbs a {
    color: #6b6057;
    text-decoration: none;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(380px,.92fr);
    gap: 46px;
    align-items: start;
}

.image-stage {
    position: sticky;
    top: 100px;
    min-height: 650px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #eee7de;
    overflow: hidden;
}

.image-stage img {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
    box-shadow: 0 22px 60px rgba(32,23,16,.17);
}

.product-info {
    padding: 8px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-info h1 {
    margin: 12px 0 6px;
    font-family: "Poppins",sans-serif;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 500;
}

.artist-line {
    margin: 0 0 22px;
    color: #7e7369;
    font-size: 13px;
}

.artist-line a {
    color: #2b241f;
    font-weight: 700;
    text-decoration: none;
}

.price {
    margin: 0 0 16px;
    color: #1d1916;
    font-family: "Poppins",sans-serif;
    font-size: 31px;
}

.availability {
    width: max-content;
    margin-bottom: 24px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.available {
    background: #edf6ee;
    color: #4f7855;
}

.sold {
    background: #f3e7e6;
    color: #9c4d47;
}

.reserved {
    background: #f5eddc;
    color: #916825;
}

.description {
    margin: 0 0 27px;
    color: #675d54;
    font-family: "Poppins",sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.spec-card {
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.spec-row {
    padding: 14px 17px;
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 18px;
    border-bottom: 1px solid #eee6dc;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-label {
    color: #9a8e83;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.spec-value {
    color: #3d352e;
    font-size: 16px;
    font-weight: 600;
}

.purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.purchase-actions form {
    margin: 0;
}

.buy-btn, .cart-btn-main {
    width: 100%;
    min-height: 54px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.cart-btn-main {
    border: 1px solid #28211c;
    background: #fff;
    color: #28211c;
}

.buy-btn {
    border: 1px solid var(--dark);
    background: var(--dark);
    color: #fff;
}

.cart-btn-main.added {
    border-color: #4f7855;
    background: #edf6ee;
    color: #3f7449;
    cursor: default;
}

.quantity-limit-note {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #74695f;
    font-size: 16px;
    font-weight: 600;
}

.quantity-limit-note i {
    color: var(--gold);
}

.buy-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.purchase-actions button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.purchase-note {
    margin-top: 14px;
    display: flex;
    gap: 9px;
    color: #84786e;
    font-size: 16px;
    line-height: 1.55;
}

.purchase-note i {
    color: var(--gold);
}

.alert-box {
    margin-bottom: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 16px;
}

.alert-success {
    border: 1px solid #c9e3ce;
    background: #edf7ef;
    color: #3f7449;
}

.alert-error {
    border: 1px solid #edcaca;
    background: #fff0f0;
    color: #9c4646;
}

.related {
    margin-top: 76px;
}

.related-top {
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.related-top h2 {
    margin: 0;
    font-family: "Poppins",sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.related-top a {
    color: #8c5b21;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.related-card {
    color: inherit;
    text-decoration: none;
}

.related-image {
    height: 270px;
    overflow: hidden;
    border-radius: 12px;
    background: #e8dfd5;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.related-card:hover img {
    transform: scale(1.025);
}

.related-card h3 {
    margin: 10px 0 3px;
    font-family: "Poppins",sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.related-meta {
    color: #897d72;
    font-size: 16px;
}

.related-price {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
}

.not-found {
    min-height: 55vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found h1 {
    font-family: "Poppins",sans-serif;
    font-size: 40px;
}

.not-found a {
    color: #8c5b21;
    font-weight: 700;
}

@media (max-width:900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .image-stage {
        position: static;
        min-height: auto;
    }

    .related-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:560px) {
    .product-shell {
        padding: 28px 12px 70px;
    }

    .product-info h1 {
        font-size: 25px;
    }

    .purchase-actions {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .related-image {
        height: 210px;
    }

    .spec-row {
        grid-template-columns: 100px 1fr;
    }
}

.alert-cart-link {
    margin-left: auto !important;
    color: inherit !important;
    font-weight: 700 !important;
}
