/* ─── Cadeau page split layout ────────────────────────────────── */
.cjn-cadeau-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cjn-cadeau-layout__preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cjn-cadeau-layout__preview .cjn-design-preview {
    --cjn-preview-ratio: 1 / 1;
    width: 100%;
    border: 1px solid rgba(74, 58, 44, 0.12);
    background: #fff;
    overflow: hidden;
    aspect-ratio: var(--cjn-preview-ratio);
}

.cjn-cadeau-layout__preview .cjn-design-preview[data-cjn-preview-aspect="portrait"] {
    --cjn-preview-ratio: 13 / 18;
}

.cjn-cadeau-layout__preview .cjn-design-preview[data-cjn-preview-aspect="landscape"] {
    --cjn-preview-ratio: 18 / 13;
}

.cjn-cadeau-layout__preview .cjn-design-preview[data-cjn-preview-aspect="wide"] {
    --cjn-preview-ratio: 113 / 103;
}

.cjn-cadeau-layout__preview .cjn-design-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cjn-cadeau-layout__preview h3 {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9e867a;
}

.cjn-design-id-label {
    margin: 0.5rem 0 0;
    font-size: 0.68rem;
    color: rgba(110, 90, 74, 0.28);
    line-height: 1;
    user-select: all;
    font-family: monospace;
    letter-spacing: 0.02em;
}

.cjn-design-placeholder--empty {
    padding: 2rem;
}

.cjn-cadeau-empty-state {
    max-width: 42rem;
    margin: 0 auto;
    display: grid;
    gap: 0.85rem;
    text-align: center;
}

.cjn-cadeau-empty-state h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    color: #3e2e24;
}

.cjn-cadeau-empty-state p {
    margin: 0;
    color: #6d5a4a;
    line-height: 1.55;
}

.cjn-cadeau-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.cjn-cadeau-empty-state__actions .button {
    min-width: 11rem;
}

/* ─── Product chooser ─────────────────────────────────────────── */
.cjn-product-chooser {
    margin-top: 0;
}

.cjn-product-chooser h4 {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9e867a;
    line-height: 1.3;
}

.cjn-product-chooser-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    gap: 0.9rem;
}

.cjn-product-chooser .cjn-product-chooser-list > li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid rgba(74, 58, 44, 0.14);
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 2px 10px rgba(32, 20, 12, 0.06);
}

.cjn-product-chooser .cjn-product-chooser-list > li[data-cjn-active-card="1"] {
    border-color: rgba(201, 111, 67, 0.35);
    box-shadow: 0 8px 24px rgba(201, 111, 67, 0.12);
}

.cjn-product-chooser-list > li > strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #3e2e24;
}

.cjn-product-summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #6d5a4a;
}

.cjn-product-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6d5a4a;
}

/* USP list: calm soft chip rows */
.cjn-product-usps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cjn-product-usps li {
    background: rgba(201, 111, 67, 0.07);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #5a3e2e;
    margin: 0;
}

.cjn-product-why {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9e867a;
    font-style: italic;
}

/* Price */
.cjn-product-price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #3e2e24;
}

.cjn-product-price .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* ─── Product preview mockup ──────────────────────────────────── */
.cjn-product-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f6efe6;
    border: 1px solid rgba(74, 58, 44, 0.1);
}

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

.cjn-product-preview--mug {
    background: #f3f3f5;
    border-color: rgba(50, 50, 58, 0.12);
}

.cjn-mug-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    --cjn-mug-zone-left: 16%;
    --cjn-mug-zone-top: 33%;
    --cjn-mug-zone-width: 53%;
    --cjn-mug-zone-height: 44%;
}

.cjn-mug-base {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cjn-mug-overlay {
    position: absolute;
    left: var(--cjn-mug-zone-left);
    top: var(--cjn-mug-zone-top);
    width: var(--cjn-mug-zone-width);
    height: var(--cjn-mug-zone-height);
    object-fit: cover;
    opacity: 0.92;
    mix-blend-mode: multiply;
    border-radius: 2%;
}

.cjn-product-preview--placeholder {
    display: grid;
    place-items: center;
    color: #6d5a4a;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.5rem;
}

/* ─── CTA ─────────────────────────────────────────────────────── */
.cjn-product-chooser .cjn-product-chooser-list > li .button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.cjn-product-variant-form {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.cjn-product-variant-form select {
    width: 100%;
    border: 1px solid rgba(74, 58, 44, 0.2);
    border-radius: 10px;
    background: #fff;
    color: #3e2e24;
    min-height: 38px;
    padding: 0 0.6rem;
}

.cjn-product-variant-form select:focus {
    outline: none;
    border-color: rgba(201, 111, 67, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 111, 67, 0.12);
}

.cjn-product-variant-form .button {
    width: 100%;
    text-align: center;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 540px) {
    .cjn-cadeau-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cjn-product-chooser .cjn-product-chooser-list > li {
        padding: 1rem;
    }

    .cjn-cadeau-empty-state__actions .button {
        width: 100%;
    }
}

/* --- Cadeau page refinement pass --- */
.cjn-cadeau-layout {
    gap: 2.4rem;
}

.cjn-cadeau-layout__preview {
    gap: 0.9rem;
}

.cjn-cadeau-layout__preview .cjn-design-preview {
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(58, 45, 34, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 244, 0.94));
}

.cjn-cadeau-layout__preview .cjn-design-preview img {
    object-position: center center;
}

.cjn-product-chooser-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.cjn-product-card {
    min-height: 100%;
}

.cjn-product-chooser .cjn-product-chooser-list > li {
    gap: 1.1rem;
    padding: 1.2rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 1) 0%, rgba(255, 250, 244, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(45, 31, 20, 0.06);
}

.cjn-product-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(246, 239, 230, 0.8);
    border: 1px solid rgba(74, 58, 44, 0.08);
}

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

.cjn-product-card-body {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.cjn-product-card-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9e867a;
}

.cjn-product-card-title {
    display: block;
    font-size: 1.12rem;
    line-height: 1.26;
    color: #3e2e24;
}

.cjn-product-card-actions {
    display: grid;
    gap: 0.6rem;
}

.cjn-product-preview-button {
    background: rgba(255, 255, 255, 0.86);
}

.cjn-product-price small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #8e7666;
}

.cjn-product-variant-form {
    gap: 0.65rem;
}

.cjn-product-variant-form .button,
.cjn-product-chooser .cjn-product-chooser-list > li > .button {
    min-height: 2.85rem;
}

@media (min-width: 960px) {
    .cjn-cadeau-layout {
        grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
    }

    .cjn-cadeau-layout__preview {
        position: sticky;
        top: 1.25rem;
    }
}
