/* =========================================================
   VEYLUNE — product, cart, checkout result
   Same espresso / ivory language as the collection page.
   ========================================================= */

.shop-page {
    min-height: 70vh;
    background: var(--surface, #f7f1e9);
}

.shop-hero {
    padding: 46px 0 36px;
    background:
        radial-gradient(circle at 83% 18%, rgba(255,248,237,.10), transparent 28%),
        linear-gradient(125deg, #130b08 0%, #1b100c 58%, #24150f 100%);
    color: #f6eee4;
    border-bottom: 1px solid rgba(198,176,151,.12);
}

.shop-hero .eyebrow {
    color: rgba(245,234,221,.66);
}

.shop-hero h1 {
    margin: 12px 0 10px;
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 500;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.025em;
}

.shop-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(245,234,221,.72);
    font-size: 15px;
    line-height: 1.9;
}

.shop-section {
    padding: 36px 0 90px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 18px;
}

.product-stage {
    aspect-ratio: 1 / 1.08;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(65,48,37,.10);
    background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,.55), transparent 38%),
        var(--surface-2);
}

.product-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-thumbs button {
    width: 64px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(65,48,37,.12);
    cursor: pointer;
}

.product-thumbs button.is-active {
    border-color: #2a1912;
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #8a7768;
    font-size: 12px;
}

.product-breadcrumb a:hover {
    color: #23160f;
}

.product-copy h1 {
    margin: 8px 0 12px;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.05;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.product-price-row strong {
    font-size: 22px;
}

.product-copy .lede {
    color: #6f5d4f;
    line-height: 1.9;
    font-size: 15px;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 16px;
}

.qty-row label {
    font-size: 12px;
    color: #7f7063;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(65,48,37,.14);
    border-radius: 999px;
    overflow: hidden;
}

.qty-control button,
.qty-control input {
    height: 42px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.qty-control button {
    width: 42px;
    cursor: pointer;
}

.qty-control input {
    width: 48px;
    text-align: center;
    outline: none;
}

.shop-button,
.shop-button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.shop-button {
    background: #27170f;
    color: #fff8ef;
    border: 1px solid #27170f;
}

.shop-button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.shop-button-ghost {
    background: transparent;
    color: #3c2b21;
    border: 1px solid rgba(65,48,37,.18);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-meta-line {
    margin-top: 18px;
    color: #8d7b6d;
    font-size: 12px;
}

.product-extra,
.related-block {
    margin-top: 42px;
}

.product-extra h2,
.related-block h2 {
    margin: 0 0 14px;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.product-extra p {
    color: #6f5d4f;
    line-height: 1.9;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
    gap: 34px;
    align-items: start;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(65,48,37,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.36);
}

.cart-line img,
.cart-line .product-placeholder {
    width: 92px;
    height: 112px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-line h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 500;
}

.cart-line p {
    margin: 0;
    color: #7d6c5d;
    font-size: 13px;
}

.cart-line-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.cart-remove {
    font-size: 12px;
    color: #9a7564;
    cursor: pointer;
}

.cart-summary {
    position: sticky;
    top: 18px;
    padding: 22px;
    border: 1px solid rgba(65,48,37,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.42);
}

.cart-summary h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(65,48,37,.10);
    font-size: 16px;
}

.payment-callout {
    margin: 18px 0;
    padding: 14px;
    border-radius: 12px;
    background: #27170f;
    color: #f6eee4;
}

.payment-callout strong {
    display: block;
    margin-bottom: 4px;
}

.payment-callout span {
    display: block;
    font-size: 12px;
    opacity: .76;
    line-height: 1.6;
}

.cart-summary .shop-button {
    width: 100%;
    margin-top: 8px;
}

.shop-status,
.shop-error {
    min-height: 22px;
    margin-top: 10px;
    color: #9a7564;
    font-size: 12px;
}

.checkout-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 42px 28px 36px;
    border: 1px solid rgba(65,48,37,.10);
    border-radius: 20px;
    background: rgba(255,255,255,.42);
}

.checkout-card .eyebrow {
    display: inline-flex;
    justify-content: center;
}

html[lang="ar"] .checkout-card .eyebrow {
    letter-spacing: .06em;
    text-transform: none;
}

.checkout-card .eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .65;
}

.checkout-card h1 {
    margin: 16px 0 14px;
    font-family: "Bodoni Moda", Georgia, serif;
    font-size: clamp(32px, 4.8vw, 52px);
    line-height: 1.18;
    font-weight: 500;
}

.checkout-card p {
    margin: 0 auto;
    max-width: 460px;
    color: #6f5d4f;
    line-height: 1.9;
}

body[data-checkout="success"] .shop-hero {
    text-align: center;
    padding: 56px 0 42px;
}

body[data-checkout="success"] .shop-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
}

body[data-checkout="success"] .shop-hero p {
    margin-inline: auto;
}

body[data-checkout="success"] .payment-callout {
    max-width: 420px;
    margin: 0 auto 8px;
    text-align: center;
}

.checkout-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.checkout-card .checkout-actions:first-child {
    margin-top: 0;
}

html[data-theme="dark"] .checkout-card {
    background: #15100d;
    border-color: rgba(245,232,219,.10);
    color: #efe5da;
}

.payment-badge-cod {
    min-width: 86px;
    font-family: "Bodoni Moda", Georgia, serif;
    letter-spacing: .12em;
}

.card-payment-badge[hidden] {
    display: none !important;
}

html[data-theme="dark"] .shop-page,
html[data-theme="dark"] .cart-line,
html[data-theme="dark"] .cart-summary {
    background: #15100d;
    color: #efe5da;
}

html[data-theme="dark"] .cart-line,
html[data-theme="dark"] .cart-summary,
html[data-theme="dark"] .product-stage {
    border-color: rgba(245,232,219,.10);
}

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

    .product-gallery,
    .cart-summary {
        position: static;
    }

    .cart-line {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .cart-line-actions {
        grid-column: 1 / -1;
    }
}
