/*
 * product-showcase.css
 * Matches the design in the reference screenshot:
 * cream/linen background · dark navy text · gold CTA accent
 * ─────────────────────────────────────────────────────────
 * Place at: /assets/css/product-showcase.css  (relative to theme root)
 */

/* ── Design tokens ──────────────────────────────────────── */
:root {
    --psc-bg:           #f0ece3;      /* warm linen */
    --psc-surface:      #ffffff;
    --psc-text:         #1a1f36;      /* deep navy */
    --psc-text-muted:   #6b7280;
    --psc-price:        #1a1f36;
    --psc-was:          #9ca3af;
    --psc-save-bg:      #1a1f36;
    --psc-save-fg:      #ffffff;
    --psc-btn-atc-bg:   #1a1f36;
    --psc-btn-atc-fg:   #ffffff;
    --psc-btn-buy-bg:   #b8984a;      /* gold */
    --psc-btn-buy-fg:   #ffffff;
    --psc-thumb-border: #d1c5b0;
    --psc-thumb-active: #1a1f36;
    --psc-radius:       4px;
    --psc-gap:          2.5rem;
    --psc-font-title:   'Georgia', 'Times New Roman', serif;
    --psc-font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --psc-transition:   0.22s ease;
}

/* ── Layout ─────────────────────────────────────────────── */
.psc-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 768px) {
    .psc-showcase {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* ── Image Panel ────────────────────────────────────────── */
.psc-image-panel {
    display: flex;
    flex-direction: column;
	justify-content: center;
    gap: 1rem;
    padding: 56px 48px;
    background: var(--ivory-d);
}

.psc-main-image-wrap {
    width: 100%;
    aspect-ratio: 6 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psc-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity var(--psc-transition);
}

.psc-main-image.psc-loading {
    opacity: 0;
}

/* ── Thumbnail Strip ────────────────────────────────────── */
.psc-thumb-strip,
.thumb-strip {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.psc-thumb,
.p-thumb {
    width: 90px;
    height: 90px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--psc-transition);
    background: var(--ivory-dd);
    border: 0.5px solid var(--stone-l);
    cursor: pointer;
    transition: border-color .2s;
    flex-shrink: 0;
}

.psc-thumb img,
.p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.psc-thumb:hover,
.p-thumb:hover {
    border-color: var(--psc-thumb-active);
    border-color: var(--gold);
}

.psc-thumb.on,
.p-thumb.on {
    border-color: var(--psc-thumb-active);
    border-color: var(--gold);
}

/* ── Details Panel ──────────────────────────────────────── */
.psc-details-panel {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
}

/* ── Title ──────────────────────────────────────────────── */
.psc-title {
    font-family: var(--serif);
    font-size: 30px;
    color: var(--navy);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* ── Price Block ────────────────────────────────────────── */
.psc-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.psc-price,
.product-price {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--navy);
    font-weight: 300;
}

.psc-was,
.product-was {
    font-size: 14px;
    color: var(--stone);
    text-decoration: line-through;
    font-weight: 300;
}

.psc-save,
.product-save {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 0.5px solid rgba(184, 151, 106, .4);
    padding: 3px 8px;
    font-weight: 300;
}

/* ── Description ────────────────────────────────────────── */
.psc-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--psc-text-muted);
    margin-bottom: 28px;
    margin-top: 16px;
}

/* Render <ul> from WooCommerce short description bullets */
.psc-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.psc-description ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.psc-description ul li::before {
    content: '—';
    color: var(--psc-text-muted);
    flex-shrink: 0;
    margin-top: 0.05em;
}

.psc-description p {
    margin: 0 0 0.5rem;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: .03em;
}

.psc-description p:last-child {
    margin-bottom: 0;
}

/* ── CTA Buttons ────────────────────────────────────────── */
.psc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psc-btn--atc:hover:not(.psc-btn--disabled) {
    background: #2d354f;
    color: var(--psc-btn-atc-fg);
}

.psc-btn--buy:hover:not(.psc-btn--disabled) {
    background: #a0832f;
    color: var(--psc-btn-buy-fg);
}

/* ── Disabled / Out-of-Stock State ──────────────────────── */
.psc-btn--disabled,
.psc-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Utility ────────────────────────────────────────────── */
.psc-hidden {
    display: none !important;
}

/* Admin notice (editor-only) */
.psc-admin-notice {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--psc-radius);
    font-size: 0.9rem;
}


@media screen and (max-width:768px) {
    .psc-image-panel {
        padding: 20px 10px;
    }
    .psc-details-panel {
        padding: 22px 0;
    }
}

@media screen and (max-width:767px) {
    .psc-main-image-wrap {
        aspect-ratio: 4 / 3;
    }
    .psc-thumb,
    .p-thumb {
        width: 65px;
        height: 65px;
    }
}

@media screen and (max-width:500px) {
    .psc-title {
        font-size: 26px;
    }
    .psc-price, .product-price {
        font-size: 24px;
    }
}

