/* ── EezyPrint Product Configurator v2.1 ──
   Inherits Breakdance + eezy brand tokens.
   Eagle-Book headings · Futura body · panels + shadows · fashion-forward
   ─────────────────────────────────────────────────────────────────────── */

/* ── Root container ── */

.epai-config {
    max-width: var(--eezy-container-max, 1200px);
    margin: 0 auto;
    padding: 24px 14px 36px;
    font-family: var(--eezy-font-body, 'Futura Book BT', 'Futura', sans-serif);
    color: var(--eezy-dark, #212121);
    line-height: 1.6;
}

.epai-config *, .epai-config *::before, .epai-config *::after {
    box-sizing: border-box;
}

/* ── Loading / Error ── */

.epai-config__loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--eezy-muted, #757575);
    font-size: 15px;
}

.epai-config__error {
    text-align: center;
    padding: 48px 24px;
    color: var(--eezy-error, #F44336);
    background: #fef2f2;
    border-radius: var(--eezy-radius, 10px);
    box-shadow: var(--eezy-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
}

.epai-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--eezy-border, #E0E0E0);
    border-top-color: var(--eezy-primary, #00A7E1);
    border-radius: 50%;
    animation: epai-spin .8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes epai-spin { to { transform: rotate(360deg); } }

/* ================================================================
   PRODUCT HEADER — hero image + details panel
   ================================================================ */

.epai-product-header {
    display: grid;
    grid-template-columns: minmax(340px, 48%) 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 16px;
    overflow: visible;
}

/* ── Image gallery ── */

.epai-product-header__image {
    background: var(--eezy-white, #fff);
    border-radius: var(--eezy-radius, 10px);
    box-shadow: var(--eezy-shadow-md, 0 4px 16px rgba(0,0,0,.08));
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epai-product-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.epai-product-header__image:hover img {
    transform: scale(1.03);
}

.epai-product-header__placeholder {
    color: var(--eezy-muted, #757575);
    font-size: 14px;
    padding: 60px;
}

/* ── Hero View Product Header ── */

.epai-product-header--hero {
    grid-template-columns: minmax(320px, 50%) 1fr;
    gap: 28px;
}

.epai-product-header__hero-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.epai-hero-wrap {
    background: var(--eezy-white, #fff);
    border-radius: var(--eezy-radius, 10px);
    box-shadow: var(--eezy-shadow-md, 0 4px 16px rgba(0,0,0,.08));
    overflow: hidden;
}

.epai-hero-img-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
    transition: background .4s ease;
}

/* Backlit mode: dark radial spotlight behind the model */
.epai-hero-img-wrap.epai--backlit {
    background: radial-gradient(ellipse 80% 90% at 50% 40%,
        rgba(40,42,48,.92) 0%,
        rgba(22,24,28,.97) 55%,
        #101214 100%);
}

.epai-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.epai-hero-img-wrap:hover .epai-hero-img {
    transform: scale(1.03);
}

.epai-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--eezy-muted, #757575);
    font-size: 14px;
}

/* Logo overlay on hero */
.epai-hero-logo {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.epai-hero-logo img {
    width: 100%;
    height: auto;
    opacity: .8;
}

/* Zone badge on hero image */
.epai-hero-zone-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 3;
    backdrop-filter: blur(4px);
}

/* ── View Tabs (Front | Back | Left Side | Right Side) ── */

.epai-view-tabs {
    display: flex;
    border-top: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-view-tab {
    flex: 1;
    padding: 10px 4px;
    border: none;
    background: transparent;
    font-family: var(--eezy-font-body, 'Futura Book BT', 'Futura', sans-serif);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--eezy-muted, #757575);
    cursor: pointer;
    transition: color .2s, background .2s;
    position: relative;
}

.epai-view-tab:hover {
    color: var(--eezy-dark, #212121);
    background: var(--eezy-surface, #F5F5F5);
}

.epai-view-tab--active {
    color: var(--eezy-primary, #00A7E1);
}

.epai-view-tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--eezy-primary, #00A7E1);
    border-radius: 2px 2px 0 0;
}

.epai-view-tab + .epai-view-tab {
    border-left: 1px solid var(--eezy-border, #E0E0E0);
}

/* ── Thumbnail strip ── */

.epai-thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.epai-thumb-strip__img {
    width: 64px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid transparent;
    object-fit: cover;
    cursor: pointer;
    opacity: .65;
    transition: all .2s;
    flex-shrink: 0;
}

.epai-thumb-strip__img:hover,
.epai-thumb-strip__img--active {
    opacity: 1;
    border-color: var(--eezy-primary, #00A7E1);
}

/* ── Product info panel ── */

.epai-product-header__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

/* Breadcrumb */
.epai-breadcrumb {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
}
.epai-breadcrumb__sep {
    margin: 0 4px;
    color: var(--eezy-border, #E0E0E0);
}

.epai-product-header__brand {
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--eezy-muted, #757575);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.epai-product-header__name {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin: 0;
    line-height: 1.15;
}

.epai-product-header__style {
    font-size: 13px;
    color: var(--eezy-muted, #757575);
    letter-spacing: .02em;
}

.epai-product-header__more-colors {
    font-size: 13px;
    color: var(--eezy-secondary, #1B365D);
    font-style: italic;
}

.epai-product-header__price {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--eezy-primary, #00A7E1);
    margin-top: 2px;
}

.epai-product-header__price span {
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--eezy-muted, #757575);
}

.epai-product-header__category {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.epai-product-header__desc {
    font-size: 13px;
    color: var(--eezy-gray-700, #616161);
    line-height: 1.5;
    margin-top: 4px;
    max-width: 520px;
}

/* ── Color swatches (standalone row) ── */

.epai-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.epai-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--eezy-border, #E0E0E0);
    cursor: pointer;
    transition: all .2s;
    position: relative;
}

.epai-swatch:hover {
    transform: scale(1.15);
    box-shadow: var(--eezy-shadow-sm, 0 1px 3px rgba(0,0,0,.12));
}

.epai-swatch--active {
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 2px var(--eezy-primary, #00A7E1);
}

.epai-swatch__tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--eezy-dark, #212121);
    color: var(--eezy-white, #fff);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.epai-swatch:hover .epai-swatch__tooltip { opacity: 1; }

/* ── CTA buttons in header ── */

.epai-product-header__actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.epai-product-header__actions .epai-add-cart__btn.epai-btn--header {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 8px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    box-shadow: var(--eezy-shadow-sm, 0 2px 6px rgba(0,167,225,.25));
    transition: all .2s;
}

.epai-product-header__actions .epai-add-cart__btn.epai-btn--header:hover {
    background: var(--eezy-primary-dark, #0086B4);
    box-shadow: var(--eezy-shadow-md, 0 4px 12px rgba(0,167,225,.3));
    transform: translateY(-1px);
}

.epai-product-header__actions .epai-btn-catalog {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 8px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--eezy-dark, #212121);
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    transition: all .2s;
}

.epai-product-header__actions .epai-btn-catalog:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-header-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.epai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
}

.epai-btn--primary {
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    box-shadow: var(--eezy-shadow-sm, 0 2px 6px rgba(0,167,225,.25));
}

.epai-btn--primary:hover {
    background: var(--eezy-primary-dark, #0086B4);
    box-shadow: var(--eezy-shadow-md, 0 4px 12px rgba(0,167,225,.3));
    transform: translateY(-1px);
}

.epai-btn--outline {
    background: transparent;
    color: var(--eezy-dark, #212121);
    border: 1.5px solid var(--eezy-border, #E0E0E0);
}

.epai-btn--outline:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
}

.epai-btn:active:not(:disabled) {
    transform: scale(.98);
}

/* ================================================================
   SIZE / QUANTITY GRID — panel card
   ================================================================ */

.epai-section-panel {
    background: var(--eezy-white, #fff);
    border-radius: var(--eezy-radius, 10px);
    box-shadow: var(--eezy-shadow-md, 0 4px 16px rgba(0,0,0,.06));
    padding: 20px 24px;
    margin-bottom: 20px;
}

.epai-section-title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-grid-wrap {
    overflow-x: auto;
    margin: 0;
    -webkit-overflow-scrolling: touch;
}

.epai-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 580px;
}

.epai-grid th,
.epai-grid td {
    padding: 4px 4px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid var(--eezy-gray-100, #F5F5F5);
}

.epai-grid thead th {
    background: var(--eezy-light, #F5F5F5);
    font-weight: 600;
    color: var(--eezy-gray-700, #616161);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .06em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.epai-grid thead th:first-child {
    border-radius: 8px 0 0 0;
    text-align: left;
}

.epai-grid thead th:last-child {
    border-radius: 0 8px 0 0;
}

.epai-size-upcharge {
    font-size: 10px;
    color: var(--eezy-error, #F44336);
    font-weight: 400;
    margin-top: 2px;
}

.epai-grid .epai-color-label {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    cursor: pointer;
    transition: background .15s;
}

.epai-grid .epai-color-label:hover {
    background: var(--eezy-gray-50, #FAFAFA);
}

.epai-grid .epai-color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.epai-brand-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    color: var(--eezy-primary, #00A7E1);
    background: rgba(0, 167, 225, .1);
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.epai-grid .epai-brand-match-row {
    background: rgba(0, 167, 225, .04);
}

.epai-no-sku {
    color: var(--eezy-disabled, #BDBDBD);
}

.epai-grid input[type="number"] {
    width: 42px;
    padding: 4px 2px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-family: inherit;
    background: var(--eezy-white, #fff);
    transition: border-color .2s, box-shadow .2s;
}

.epai-grid input[type="number"]:focus {
    outline: none;
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 3px rgba(0, 167, 225, .12);
}

.epai-grid input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
}

/* ── Grid totals ── */

.epai-grid tfoot td {
    font-weight: 600;
    background: var(--eezy-light, #F5F5F5);
    border-top: 2px solid var(--eezy-border, #E0E0E0);
    font-size: 13px;
}

.epai-grid-summary {
    margin-top: 12px;
    font-size: 13px;
    color: var(--eezy-muted, #757575);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ================================================================
   DECORATION METHOD — card grid
   ================================================================ */

.epai-deco__title { /* now uses .epai-section-title instead */ }

.epai-deco__section-label {
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--eezy-gray-700, #616161);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 24px;
    margin-bottom: 10px;
}

.epai-deco__methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.epai-deco__method {
    padding: 20px;
    background: var(--eezy-white, #fff);
    border: 2px solid var(--eezy-border, #E0E0E0);
    border-radius: var(--eezy-radius, 10px);
    cursor: pointer;
    transition: all .25s;
    position: relative;
}

.epai-deco__method:hover {
    border-color: var(--eezy-primary-light, #33B8E7);
    box-shadow: var(--eezy-shadow-sm, 0 2px 8px rgba(0,0,0,.06));
    transform: translateY(-2px);
}

.epai-deco__method--selected {
    border-color: var(--eezy-primary, #00A7E1);
    background: rgba(0, 167, 225, .04);
    box-shadow: 0 0 0 3px rgba(0, 167, 225, .1);
}

.epai-deco__method--selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eezy-primary, #00A7E1);
    color: white;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.epai-deco__method--disabled {
    opacity: .4;
    cursor: not-allowed;
}

.epai-deco__method--disabled:hover {
    border-color: var(--eezy-border, #E0E0E0);
    box-shadow: none;
    transform: none;
}

.epai-deco__method-name {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--eezy-dark, #212121);
}

.epai-deco__method-desc {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    line-height: 1.5;
}

.epai-deco__method-min {
    font-size: 11px;
    color: var(--eezy-error, #F44336);
    margin-top: 6px;
}

.epai-deco__method-setup {
    font-size: 11px;
    color: var(--eezy-muted, #757575);
    margin-top: 4px;
}

/* ── Location pills ── */

.epai-deco__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.epai-deco__loc {
    padding: 9px 18px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 24px;
    background: var(--eezy-white, #fff);
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}

.epai-deco__loc:hover {
    border-color: var(--eezy-primary-light, #33B8E7);
    color: var(--eezy-primary, #00A7E1);
}

.epai-deco__loc--selected {
    border-color: var(--eezy-primary, #00A7E1);
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    font-weight: 500;
}

/* ── Decoration detail selects ── */

.epai-deco__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-deco__control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--eezy-dark, #212121);
}

.epai-deco__control span {
    font-weight: 600;
    font-size: 11px;
    color: var(--eezy-muted, #757575);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.epai-deco__control select {
    padding: 9px 14px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--eezy-white, #fff);
    min-width: 200px;
    cursor: pointer;
    transition: border-color .2s;
}

.epai-deco__control select:focus {
    outline: none;
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 3px rgba(0, 167, 225, .1);
}

/* ================================================================
   ARTWORK UPLOAD — location cards
   ================================================================ */

.epai-artwork__locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.epai-artwork__loc {
    background: var(--eezy-white, #fff);
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: var(--eezy-radius, 10px);
    padding: 20px;
    text-align: center;
    transition: box-shadow .2s;
}

.epai-artwork__loc:hover {
    box-shadow: var(--eezy-shadow-sm, 0 2px 8px rgba(0,0,0,.06));
}

.epai-artwork__loc-label {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin-bottom: 12px;
}

.epai-artwork__preview {
    width: 100%;
    height: 120px;
    border: 2px dashed var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--eezy-light, #F5F5F5);
    transition: border-color .2s;
}

.epai-artwork__preview:hover {
    border-color: var(--eezy-primary-light, #33B8E7);
}

.epai-artwork__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.epai-artwork__empty {
    font-size: 12px;
    color: var(--eezy-disabled, #BDBDBD);
}

.epai-artwork__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.epai-artwork__upload-btn {
    font-size: 12px;
    padding: 7px 14px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 6px;
    background: var(--eezy-white, #fff);
    cursor: pointer;
    color: var(--eezy-dark, #212121);
    font-family: inherit;
    transition: all .2s;
}

.epai-artwork__upload-btn:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-artwork__upload-btn input[type="file"] {
    display: none;
}

.epai-artwork__brand-btn {
    font-size: 12px;
    padding: 7px 14px;
    border: 1.5px solid var(--eezy-primary, #00A7E1);
    border-radius: 6px;
    background: var(--eezy-white, #fff);
    color: var(--eezy-primary, #00A7E1);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.epai-artwork__brand-btn:hover,
.epai-artwork__brand-btn--active {
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
}

/* ================================================================
   PRICING SUMMARY — clean panel
   ================================================================ */

.epai-pricing {
    padding: 0;
}

.epai-pricing__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--eezy-gray-700, #616161);
}

.epai-pricing__row--total {
    border-top: 2px solid var(--eezy-dark, #212121);
    margin-top: 10px;
    padding-top: 14px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
}

.epai-pricing__row--discount {
    color: var(--eezy-success, #4CAF50);
}

.epai-pricing__row--fee {
    color: var(--eezy-muted, #757575);
    font-size: 13px;
}

/* ================================================================
   ADD TO CART CTA
   ================================================================ */

.epai-add-cart {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.epai-add-cart__btn {
    padding: 15px 48px;
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    border: none;
    border-radius: 8px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .25s;
    box-shadow: var(--eezy-shadow-md, 0 4px 16px rgba(0,167,225,.2));
}

.epai-add-cart__btn:hover:not(:disabled) {
    background: var(--eezy-primary-dark, #0086B4);
    box-shadow: var(--eezy-shadow-lg, 0 8px 24px rgba(0,167,225,.25));
    transform: translateY(-2px);
}

.epai-add-cart__btn:active:not(:disabled) {
    transform: scale(.98);
}

.epai-add-cart__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.epai-save-project__btn {
    padding: 12px 32px;
    background: transparent;
    color: var(--eezy-secondary, #1B365D);
    border: 1.5px solid var(--eezy-secondary, #1B365D);
    border-radius: 8px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    margin-left: 12px;
}

.epai-save-project__btn:hover {
    background: var(--eezy-secondary, #1B365D);
    color: var(--eezy-white, #fff);
}

/* ================================================================
   CART CONFIRMATION OVERLAY
   ================================================================ */

.epai-cart-confirm {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: epai-fade-in .25s ease;
    backdrop-filter: blur(4px);
}

.epai-cart-confirm__card {
    background: var(--eezy-white, #fff);
    border-radius: 16px;
    padding: 44px 36px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--eezy-shadow-2xl, 0 24px 64px rgba(0,0,0,.18));
}

.epai-cart-confirm__check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--eezy-success, #4CAF50);
    color: var(--eezy-white, #fff);
    font-size: 28px;
    line-height: 56px;
    margin: 0 auto 16px;
}

.epai-cart-confirm__title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin-bottom: 8px;
}

.epai-cart-confirm__detail {
    font-size: 14px;
    color: var(--eezy-muted, #757575);
    margin-bottom: 28px;
    line-height: 1.5;
}

.epai-cart-confirm__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.epai-cart-confirm__continue {
    padding: 11px 24px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    background: var(--eezy-white, #fff);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.epai-cart-confirm__continue:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-cart-confirm__view {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.epai-cart-confirm__view:hover {
    background: var(--eezy-primary-dark, #0086B4);
}

@keyframes epai-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ================================================================
   CART FAB
   ================================================================ */

.epai-cart-fab {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--eezy-secondary, #1B365D);
    color: var(--eezy-white, #fff);
    border: none;
    cursor: pointer;
    box-shadow: var(--eezy-shadow-lg, 0 8px 24px rgba(0,0,0,.2));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all .25s;
}

.epai-cart-fab:hover {
    transform: scale(1.08);
    box-shadow: var(--eezy-shadow-xl, 0 12px 32px rgba(0,0,0,.25));
}

.epai-cart-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--eezy-error, #F44336);
    color: var(--eezy-white, #fff);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   CART DRAWER
   ================================================================ */

.epai-cart-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}

.epai-cart-drawer--open {
    pointer-events: auto;
    visibility: visible;
}

.epai-cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
}

.epai-cart-drawer--open .epai-cart-drawer__backdrop {
    opacity: 1;
}

.epai-cart-drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 420px;
    max-width: 100%;
    background: var(--eezy-white, #fff);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 40px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.epai-cart-drawer--open .epai-cart-drawer__panel {
    transform: translateX(0);
}

.epai-cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-cart-drawer__header h3 {
    margin: 0;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
}

.epai-cart-drawer__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--eezy-muted, #757575);
    padding: 4px 8px;
    line-height: 1;
    transition: color .2s;
}

.epai-cart-drawer__close:hover {
    color: var(--eezy-dark, #212121);
}

.epai-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.epai-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--eezy-disabled, #BDBDBD);
    font-size: 15px;
}

/* ── Cart items ── */

.epai-cart-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--eezy-gray-100, #F5F5F5);
}

.epai-cart-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.epai-cart-item__header strong {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
}

.epai-cart-item__remove {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--eezy-disabled, #BDBDBD);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color .2s;
}

.epai-cart-item__remove:hover {
    color: var(--eezy-error, #F44336);
}

.epai-cart-item__brand {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    margin-bottom: 8px;
}

.epai-cart-item__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.epai-cart-item__color {
    font-size: 12px;
    color: var(--eezy-gray-700, #616161);
    display: flex;
    align-items: center;
    gap: 4px;
}

.epai-cart-item__swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--eezy-border, #E0E0E0);
    display: inline-block;
}

.epai-cart-item__breakdown {
    font-size: 11px;
    color: var(--eezy-muted, #757575);
    margin-bottom: 4px;
}

.epai-cart-item__sizes {
    margin-bottom: 2px;
}

.epai-cart-item__deco {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    margin-bottom: 10px;
}

.epai-cart-item__pricing {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--eezy-dark, #212121);
}

/* ── Cart footer ── */

.epai-cart-drawer__footer {
    padding: 24px 28px;
    border-top: 1px solid var(--eezy-border, #E0E0E0);
    background: var(--eezy-light, #F5F5F5);
}

.epai-cart-footer__row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.epai-cart-footer__row--light {
    color: var(--eezy-muted, #757575);
    font-size: 13px;
}

.epai-cart-footer__row--total {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 20px;
    font-weight: 400;
    border-top: 2px solid var(--eezy-dark, #212121);
    margin-top: 10px;
    padding-top: 12px;
}

.epai-cart-footer__checkout {
    width: 100%;
    padding: 14px;
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    border: none;
    border-radius: 8px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    margin-top: 18px;
    transition: all .2s;
    box-shadow: var(--eezy-shadow-sm, 0 2px 8px rgba(0,167,225,.2));
}

.epai-cart-footer__checkout:hover:not(:disabled) {
    background: var(--eezy-primary-dark, #0086B4);
}

.epai-cart-footer__checkout:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.epai-cart-footer__clear {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--eezy-muted, #757575);
    cursor: pointer;
    margin-top: 8px;
    transition: all .2s;
}

.epai-cart-footer__clear:hover {
    border-color: var(--eezy-error, #F44336);
    color: var(--eezy-error, #F44336);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
    .epai-product-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .epai-product-header__image {
        aspect-ratio: 3 / 4;
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .epai-config {
        padding: 24px 16px 48px;
    }

    .epai-product-header__name {
        font-size: 22px;
    }

    .epai-section-panel {
        padding: 20px 16px;
    }

    .epai-deco__methods {
        grid-template-columns: 1fr;
    }

    .epai-deco__controls {
        flex-direction: column;
    }

    .epai-artwork__locations {
        grid-template-columns: 1fr;
    }

    .epai-grid input[type="number"] {
        width: 46px;
        padding: 5px 2px;
    }

    .epai-cart-drawer__panel {
        width: 100%;
    }

    .epai-cart-confirm__actions {
        flex-direction: column;
    }

    .epai-header-actions {
        flex-direction: column;
    }

    .epai-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .epai-product-header__price {
        font-size: 22px;
    }

    .epai-add-cart__btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ================================================================
   PANEL MANAGER — workspace, tabs, float, dock
   ================================================================ */

/* ── Workspace shell ── */

#epai-workspace {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.epai-workspace-body {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.epai-main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* ── Tab bar ── */

.epai-tab-bar {
    display: flex;
    gap: 2px;
    padding: 6px 12px 0;
    background: var(--eezy-secondary, #1B365D);
    overflow-x: auto;
    flex-shrink: 0;
    min-height: 40px;
}

.epai-tab-bar:empty { display: none; }

.epai-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    max-width: 200px;
    user-select: none;
}

.epai-tab:hover {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
}

.epai-tab--active {
    background: var(--eezy-white, #fff);
    color: var(--eezy-dark, #212121);
}

.epai-tab-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.epai-tab-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.epai-tab-close {
    font-size: 16px;
    line-height: 1;
    opacity: .4;
    cursor: pointer;
    padding: 0 2px;
    margin-left: auto;
    transition: opacity .15s;
}

.epai-tab-close:hover { opacity: 1; }

/* ── Float layer ── */

.epai-float-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.epai-float-panel {
    position: absolute;
    background: var(--eezy-white, #fff);
    border-radius: 12px;
    box-shadow: var(--eezy-shadow-lg, 0 8px 32px rgba(0,0,0,.12));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    min-width: 360px;
    min-height: 300px;
    transition: box-shadow .2s;
}

.epai-float-panel:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.16);
}

.epai-float-panel.epai-dragging {
    opacity: .92;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
    transition: none;
}

.epai-float-panel.epai-hidden { display: none; }

/* ── Float header ── */

.epai-float-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--eezy-light, #F5F5F5);
    border-bottom: 1px solid var(--eezy-border, #E0E0E0);
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
}

.epai-float-header:active { cursor: grabbing; }

.epai-float-title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

.epai-float-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.epai-float-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--eezy-muted, #757575);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.epai-float-btn:hover {
    background: rgba(0,0,0,.06);
    color: var(--eezy-dark, #212121);
}

.epai-float-close-btn:hover,
.epai-docked-close-btn:hover {
    background: var(--eezy-error, #F44336);
    color: var(--eezy-white, #fff);
}

/* ── Float body ── */

.epai-float-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* ── Float resize handle ── */

.epai-float-resize {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 2;
}

.epai-float-resize::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--eezy-border, #ccc);
    border-bottom: 2px solid var(--eezy-border, #ccc);
    opacity: .5;
}

/* ── Mobile fullscreen float ── */

.epai-float-panel--mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    z-index: 1001 !important;
}

.epai-float-panel--mobile .epai-float-resize { display: none; }

/* ── Dock sidebar ── */

.epai-dock-sidebar {
    width: 0;
    overflow: hidden;
    background: var(--eezy-white, #fff);
    border-right: 1px solid var(--eezy-border, #E0E0E0);
    transition: width .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.epai-dock-sidebar.epai-dock--open {
    width: 340px;
}

.epai-dock-sidebar.epai-dock-drop-hint {
    border-right-color: var(--eezy-primary, #00A7E1);
    box-shadow: inset -3px 0 0 var(--eezy-primary, #00A7E1);
}

.epai-dock-stack {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* ── Docked panel accordion ── */

.epai-docked-panel {
    border: 1px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.epai-docked-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--eezy-light, #F5F5F5);
    cursor: pointer;
    user-select: none;
}

.epai-docked-chevron {
    font-size: 10px;
    color: var(--eezy-muted, #757575);
    transition: transform .2s;
}

.epai-docked-panel.expanded .epai-docked-chevron {
    transform: rotate(90deg);
}

.epai-docked-title {
    flex: 1;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epai-docked-actions {
    display: flex;
    gap: 2px;
}

.epai-docked-body {
    display: none;
    overflow-y: auto;
    max-height: 50vh;
}

.epai-docked-panel.expanded .epai-docked-body {
    display: block;
}

/* ── Dock responsive ── */

@media (max-width: 768px) {
    .epai-dock-sidebar.epai-dock--open {
        position: fixed;
        top: 40px;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 200;
        box-shadow: 4px 0 20px rgba(0,0,0,.15);
    }

    .epai-tab-bar {
        padding: 4px 8px 0;
    }

    .epai-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* ================================================================
   PROJECT CATALOG PANEL
   ================================================================ */

.epai-proj-list,
.epai-proj-detail {
    padding: 16px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
}

.epai-proj-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.epai-proj-list__header .epai-section-title {
    margin: 0;
    padding: 0;
    border: 0;
}

.epai-proj-new-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--eezy-primary, #00A7E1);
    border-radius: 8px;
    background: transparent;
    color: var(--eezy-primary, #00A7E1);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
}

.epai-proj-new-btn:hover {
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
}

.epai-proj-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--eezy-disabled, #BDBDBD);
    font-size: 14px;
}

/* ── Project cards ── */

.epai-proj-card {
    padding: 14px 16px;
    border: 1px solid var(--eezy-border, #E0E0E0);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all .15s;
}

.epai-proj-card:hover {
    border-color: var(--eezy-primary-light, #33B8E7);
    box-shadow: var(--eezy-shadow-sm, 0 2px 8px rgba(0,0,0,.06));
}

.epai-proj-card__title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 15px;
    color: var(--eezy-dark, #212121);
    margin-bottom: 6px;
}

.epai-proj-card__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--eezy-muted, #757575);
}

/* ── Status badges ── */

.epai-proj-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.epai-proj-status--draft    { background: #f3f4f6; color: #6b7280; }
.epai-proj-status--submitted { background: #fef3c7; color: #92400e; }
.epai-proj-status--approved  { background: #d1fae5; color: #065f46; }
.epai-proj-status--denied    { background: #fee2e2; color: #991b1b; }
.epai-proj-status--ordered   { background: #dbeafe; color: #1e40af; }
.epai-proj-status--pending   { background: #fef3c7; color: #92400e; }

/* ── Project detail ── */

.epai-proj-detail__nav {
    margin-bottom: 12px;
}

.epai-proj-back-btn {
    background: none;
    border: none;
    color: var(--eezy-primary, #00A7E1);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.epai-proj-back-btn:hover { text-decoration: underline; }

.epai-proj-detail__status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.epai-proj-total {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 20px;
    color: var(--eezy-dark, #212121);
}

/* ── Project items ── */

.epai-proj-items {
    margin-bottom: 16px;
}

.epai-proj-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--eezy-light, #F5F5F5);
}

.epai-proj-item__name {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 14px;
    color: var(--eezy-dark, #212121);
}

.epai-proj-item__style {
    font-size: 12px;
    color: var(--eezy-muted, #757575);
}

.epai-proj-item__price {
    font-size: 14px;
    color: var(--eezy-primary, #00A7E1);
    margin-top: 2px;
}

.epai-proj-item__remove {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--eezy-disabled, #BDBDBD);
    cursor: pointer;
    transition: color .15s;
}

.epai-proj-item__remove:hover { color: var(--eezy-error, #F44336); }

/* ── Approvals ── */

.epai-proj-approvals {
    margin-bottom: 16px;
}

.epai-proj-approval {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--eezy-light, #F5F5F5);
}

.epai-proj-approval__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.epai-proj-approval--pending  { background: #fef3c7; color: #92400e; }
.epai-proj-approval--approved { background: #d1fae5; color: #065f46; }
.epai-proj-approval--denied   { background: #fee2e2; color: #991b1b; }

/* ── Project actions ── */

.epai-proj-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ── Project FAB ── */

.epai-project-fab {
    position: fixed;
    bottom: 228px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eezy-secondary, #1B365D);
    color: var(--eezy-white, #fff);
    border: none;
    cursor: pointer;
    box-shadow: var(--eezy-shadow-md, 0 4px 16px rgba(0,0,0,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9998;
    transition: all .2s;
}

.epai-project-fab:hover {
    transform: scale(1.08);
    box-shadow: var(--eezy-shadow-lg, 0 8px 24px rgba(0,0,0,.2));
}

/* ── Toast notification ── */

.epai-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--eezy-dark, #212121);
    color: var(--eezy-white, #fff);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    box-shadow: var(--eezy-shadow-lg, 0 8px 24px rgba(0,0,0,.2));
    z-index: 20000;
    opacity: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.epai-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================================================================
   COLOR THUMBNAIL STRIP — under hero image
   ================================================================ */

.epai-color-thumbs {
    display: grid;
    grid-template-columns: repeat(8, 44px);
    gap: 6px;
    padding: 4px 0;
    margin-top: 4px;
}

.epai-color-thumb {
    width: 44px;
    height: 55px;
    border-radius: 6px;
    border: 2px solid var(--eezy-border, #E0E0E0);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .7;
    transition: all .2s ease;
    background: var(--eezy-white, #fff);
}

.epai-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epai-color-thumb:hover,
.epai-color-thumb--active {
    opacity: 1;
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 1px var(--eezy-primary, #00A7E1);
}

.epai-color-thumb--swatch {
    display: flex;
    align-items: center;
    justify-content: center;
}

.epai-color-thumb--swatch .epai-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ================================================================
   LOGO UPLOAD PANEL — standalone section above grid
   ================================================================ */

.epai-logo-panel {
    margin-bottom: 10px;
    padding: 10px 16px !important;
}

/* When logo panel is inside the product header info column, strip panel chrome */
.epai-product-header__info .epai-logo-panel {
    background: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 0 !important;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-logo-panel__title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--eezy-dark, #212121);
    margin: 0 0 6px;
}

.epai-logo-panel__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.epai-logo-panel__preview {
    width: 36px;
    height: 36px;
    background: var(--eezy-light, #F5F5F5);
    border: 1.5px dashed var(--eezy-border, #E0E0E0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.epai-logo-panel__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.epai-logo-panel__placeholder {
    color: var(--eezy-muted, #aaa);
}

.epai-logo-panel__actions {
    flex: 1;
}

.epai-logo-panel__upload-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--eezy-light, #F5F5F5);
    border: 1.5px dashed var(--eezy-border, #E0E0E0);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--eezy-muted, #757575);
    transition: all .2s;
}

.epai-logo-panel__upload-btn:hover {
    border-color: var(--eezy-primary, #00A7E1);
    background: rgba(0,167,225,.04);
    color: var(--eezy-dark, #212121);
}

.epai-logo-panel__upload-btn strong {
    color: var(--eezy-primary, #00A7E1);
    text-decoration: underline;
}

.epai-logo-panel__upload-btn input[type="file"] {
    display: none;
}

.epai-logo-panel__formats {
    font-size: 10px;
    color: var(--eezy-muted, #999);
    margin-top: 2px;
    padding-left: 2px;
}

/* ================================================================
   REQUEST QUOTE + BACK TO CATALOG BUTTONS
   ================================================================ */

.epai-request-quote__btn {
    padding: 12px 32px;
    background: var(--eezy-accent, #D4A843);
    color: var(--eezy-white, #fff);
    border: none;
    border-radius: 8px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(212,168,67,.2);
}

.epai-request-quote__btn:hover {
    background: var(--eezy-accent-dark, #B8922D);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,168,67,.3);
}

.epai-back-catalog__btn,
.epai-btn-catalog {
    padding: 12px 32px;
    background: transparent;
    color: var(--eezy-muted, #757575);
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .03em;
    cursor: pointer;
    transition: all .2s;
}

.epai-back-catalog__btn:hover,
.epai-btn-catalog:hover {
    border-color: var(--eezy-dark, #212121);
    color: var(--eezy-dark, #212121);
}

/* ── Header back to catalog (inline with info) ── */

.epai-product-header__actions {
    margin-top: 16px;
}

/* ================================================================
   QUOTE MODAL
   ================================================================ */

.epai-quote-modal {
    max-width: 480px;
}

.epai-quote-modal__title {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin: 0 0 16px;
}

.epai-quote-modal__summary {
    font-size: 14px;
    color: var(--eezy-gray-700, #616161);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-quote-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.epai-quote-input {
    padding: 10px 14px;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    border-radius: 6px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 14px;
    color: var(--eezy-dark, #212121);
    transition: border-color .2s;
    width: 100%;
}

.epai-quote-input:focus {
    outline: none;
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 3px rgba(0,167,225,.1);
}

.epai-quote-input::placeholder {
    color: var(--eezy-muted, #999);
}

textarea.epai-quote-input {
    resize: vertical;
    min-height: 72px;
}

/* ================================================================
   GRID POLISH — alternating rows, subtotal highlight
   ================================================================ */

.epai-grid tbody tr:nth-child(even) {
    background: rgba(0,0,0,.015);
}

.epai-grid tbody tr:hover {
    background: rgba(0,167,225,.04);
}

.epai-row-subtotal {
    font-weight: 600;
    color: var(--eezy-dark, #212121);
    white-space: nowrap;
}

.epai-garment-total {
    font-size: 15px;
    color: var(--eezy-primary, #00A7E1);
}

/* ================================================================
   HERO EXPAND BUTTON
   ================================================================ */

.epai-product-header__image {
    position: relative;
}

.epai-hero-expand {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s, background .2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.epai-product-header__image:hover .epai-hero-expand {
    opacity: 1;
}

.epai-hero-expand:hover {
    background: rgba(0, 0, 0, .8);
}

.epai-hero-img {
    cursor: pointer;
}

/* ── Hero logo preview overlay (shows placement on product card) ── */

.epai-hero-logo-preview {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: .7;
    transition: left .3s ease, top .3s ease, width .3s ease;
}

.epai-hero-logo-preview img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}

.epai-hero-zone-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
    letter-spacing: .03em;
}

/* Mock-up disclaimer banner */
.epai-mockup-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
    margin: 0;
    background: rgba(0, 0, 0, .55);
    color: rgba(255, 255, 255, .85);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .02em;
    border-top: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
}
.epai-mockup-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .7;
}

/* ── Contrast Alert Banner ── */

.epai-contrast-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: var(--eezy-radius, 10px);
    font-size: 13px;
    line-height: 1.4;
    color: #856404;
    animation: epai-fade-in .3s ease;
}

.epai-contrast-banner__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d4a017;
}

.epai-contrast-banner__text {
    flex: 1;
}

.epai-contrast-banner__text strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
    color: #6d5300;
}

.epai-contrast-banner__dismiss {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #856404;
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: .6;
    transition: opacity .2s;
}

.epai-contrast-banner__dismiss:hover {
    opacity: 1;
}

/* Soft contrast note — dominant color issue but secondary colors provide some visibility */
.epai-contrast-banner--soft {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eef7 100%);
    border-color: #7ec8e3;
    color: #2c5f7c;
}
.epai-contrast-banner--soft .epai-contrast-banner__icon { color: #5ba3c0; }
.epai-contrast-banner--soft .epai-contrast-banner__text strong { color: #1a4a63; }
.epai-contrast-banner--soft .epai-contrast-banner__dismiss { color: #2c5f7c; }

/* ================================================================
   LIGHTBOX — fullscreen logo placement preview
   ================================================================ */

.epai-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    animation: epai-fade-in .2s ease;
}

.epai-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
}

.epai-lightbox__container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    z-index: 1;
}

.epai-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .2s;
    backdrop-filter: blur(4px);
}

.epai-lightbox__close:hover {
    background: rgba(255, 255, 255, .3);
}

/* ── Stage: garment + logo overlay ── */

.epai-lightbox__stage {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    background: #fff;
    flex-shrink: 0;
}

.epai-lightbox__garment {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* ── Draggable logo overlay ── */

.epai-lightbox__logo {
    position: absolute;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
    touch-action: none;
    /* border shown for positioning reference */
    outline: 2px dashed rgba(0, 167, 225, .6);
    outline-offset: 4px;
    transition: outline-color .2s;
}

.epai-lightbox__logo:hover {
    outline-color: rgba(0, 167, 225, .9);
}

.epai-lightbox__logo--dragging {
    cursor: grabbing;
    outline-color: var(--eezy-primary, #00A7E1);
    outline-style: solid;
}

.epai-lightbox__logo img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
}

/* ── Resize handles ── */

.epai-lightbox__handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--eezy-primary, #00A7E1);
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 5;
    cursor: nwse-resize;
    touch-action: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.epai-lightbox__handle--nw { top: -7px; left: -7px; cursor: nwse-resize; }
.epai-lightbox__handle--ne { top: -7px; right: -7px; cursor: nesw-resize; }
.epai-lightbox__handle--sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.epai-lightbox__handle--se { bottom: -7px; right: -7px; cursor: nwse-resize; }

/* ── No logo placeholder ── */

.epai-lightbox__no-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* ── Toolbar ── */

.epai-lightbox__toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 24px;
    color: #fff;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
}

.epai-lightbox__tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.epai-lightbox__tool-group label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .8;
}

.epai-lightbox__toolbar input[type="range"] {
    width: 120px;
    accent-color: var(--eezy-primary, #00A7E1);
    cursor: pointer;
}

.epai-lightbox__size-val,
.epai-lightbox__rotate-val {
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.epai-lightbox__reset-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.epai-lightbox__reset-btn:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .5);
}

.epai-lightbox__coords {
    opacity: .7;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.epai-lightbox__zone-name {
    margin-left: 12px;
    color: var(--eezy-primary, #00A7E1);
    font-weight: 600;
}

/* ── Zone Selector Panel ── */

.epai-lightbox__container--zones .epai-lightbox__body {
    display: flex;
    gap: 0;
    max-width: 90vw;
    align-items: flex-start;
}

.epai-lightbox__container--zones .epai-lightbox__stage {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 216px);
}

.epai-lightbox__body {
    display: contents;
}

.epai-lightbox__zones-panel {
    width: 200px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px;
    margin-left: 16px;
    align-self: flex-start;
}

.epai-lightbox__zones-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .6);
    margin: 0 0 8px;
}

.epai-lightbox__zone-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epai-lightbox__zone-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all .2s;
}

.epai-lightbox__zone-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
}

.epai-lightbox__zone-btn--active {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: white;
    font-weight: 600;
}

.epai-lightbox__zone-btn--active:hover {
    background: var(--eezy-primary-dark, #0088b8);
}

.epai-lightbox__zones-divider {
    height: 1px;
    background: rgba(255, 255, 255, .12);
    margin: 14px 0;
}

.epai-lightbox__tool-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.epai-lightbox__tool-inline input[type="range"] {
    flex: 1;
    accent-color: var(--eezy-primary, #00A7E1);
    cursor: pointer;
}

.epai-lightbox__tool-inline .epai-lightbox__size-val,
.epai-lightbox__tool-inline .epai-lightbox__rotate-val {
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

.epai-lightbox__zones-actions {
    margin-top: 8px;
}

.epai-lightbox__zones-actions .epai-lightbox__reset-btn {
    width: 100%;
}

/* ================================================================
   RESPONSIVE — new components
   ================================================================ */

@media (max-width: 768px) {
    .epai-logo-panel__content {
        flex-direction: column;
        align-items: stretch;
    }

    .epai-logo-panel__preview {
        width: 100%;
        height: 80px;
    }

    .epai-add-cart {
        flex-direction: column;
    }

    .epai-add-cart button {
        width: 100%;
    }

    .epai-color-thumbs {
        justify-content: center;
    }

    .epai-lightbox__stage {
        width: auto !important;
        max-width: 95vw !important;
        max-height: 60vh !important;
        height: auto !important;
    }

    .epai-lightbox__toolbar {
        padding: 10px 16px;
        gap: 12px;
        font-size: 12px;
    }

    .epai-lightbox__toolbar input[type="range"] {
        width: 80px;
    }

    .epai-hero-expand {
        opacity: 1;
    }

    .epai-lightbox__container--zones .epai-lightbox__body {
        flex-direction: column;
    }

    .epai-lightbox__zones-panel {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .epai-lightbox__zones-panel .epai-lightbox__zones-title {
        width: 100%;
    }

    .epai-lightbox__zone-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .epai-lightbox__zone-btn {
        width: auto;
        padding: 6px 10px;
        font-size: 12px;
    }

    .epai-lightbox__zones-divider {
        display: none;
    }

    .epai-lightbox__tool-inline {
        margin-bottom: 0;
    }
}

/* ================================================================
   LOOK BOOK PHOTO SET — 4-view grid (F/L/R/B) with logo
   ================================================================ */

.epai-lightbox__container--photoset {
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.epai-photoset {
    background: var(--eezy-white, #fff);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */

.epai-photoset__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-photoset__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.epai-photoset__brand {
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 11px;
    font-weight: 500;
    color: var(--eezy-muted, #757575);
    text-transform: uppercase;
    letter-spacing: .12em;
    display: block;
    margin-bottom: 2px;
}

.epai-photoset__name {
    font-family: var(--eezy-font-heading-light, 'Eagle-Book', sans-serif);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    color: var(--eezy-dark, #212121);
    margin: 0 0 4px;
    line-height: 1.15;
}

.epai-photoset__meta {
    font-size: 13px;
    color: var(--eezy-muted, #757575);
}

.epai-photoset__color-pick {
    text-align: right;
    flex-shrink: 0;
}

.epai-photoset__color-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--eezy-dark, #212121);
    display: block;
    margin-bottom: 6px;
}

.epai-photoset__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.epai-photoset__swatches .epai-swatch {
    width: 22px;
    height: 22px;
}

/* ── 2x2 Photo Grid ── */

.epai-photoset__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.epai-photoset__card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color .2s;
}

.epai-photoset__card:hover {
    outline-color: var(--eezy-primary, #00A7E1);
}

.epai-photoset__card--active {
    outline-color: var(--eezy-primary, #00A7E1);
}

.epai-photoset__img-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--eezy-surface, #F5F5F5);
    overflow: hidden;
    transition: background .4s ease;
}

/* Backlit mode: dark radial spotlight behind the model */
.epai-photoset__img-wrap.epai--backlit {
    background: radial-gradient(ellipse 80% 90% at 50% 40%,
        rgba(40,42,48,.92) 0%,
        rgba(22,24,28,.97) 55%,
        #101214 100%);
}

.epai-photoset__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo overlay on each view card */
.epai-photoset__logo {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.epai-photoset__logo img {
    width: 100%;
    height: auto;
    opacity: .8;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .25));
}

.epai-photoset__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* ── Zoomed card — full grid takeover ── */

.epai-photoset__grid--has-zoom {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.epai-photoset__grid--has-zoom .epai-photoset__card {
    display: none;
}

.epai-photoset__grid--has-zoom .epai-photoset__card--zoomed {
    display: block;
    grid-column: 1;
    grid-row: 1;
    border-radius: 6px;
    cursor: zoom-out;
    animation: epai-zoom-in .25s ease;
}

.epai-photoset__card--zoomed .epai-photoset__img-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.epai-photoset__card--zoomed .epai-photoset__label {
    font-size: 13px;
    padding: 10px 16px;
}

.epai-photoset__card:not(.epai-photoset__card--zoomed) {
    cursor: zoom-in;
}

@keyframes epai-zoom-in {
    from { opacity: .6; transform: scale(.92); }
    to   { opacity: 1;  transform: scale(1); }
}

/* ── Footer Actions ── */

.epai-photoset__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--eezy-border, #E0E0E0);
    gap: 12px;
}

.epai-photoset__actions-left {
    display: flex;
    gap: 8px;
}

.epai-photoset__actions-right {
    display: flex;
    gap: 4px;
}

.epai-photoset__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}

.epai-photoset__btn svg { flex-shrink: 0; }

.epai-photoset__btn--primary {
    background: var(--eezy-primary, #00A7E1);
    color: var(--eezy-white, #fff);
    box-shadow: 0 2px 8px rgba(0, 167, 225, .25);
}

.epai-photoset__btn--primary:hover {
    background: var(--eezy-primary-dark, #0086B4);
    box-shadow: 0 4px 14px rgba(0, 167, 225, .3);
    transform: translateY(-1px);
}

.epai-photoset__btn--secondary {
    background: transparent;
    color: var(--eezy-dark, #212121);
    border: 1px solid var(--eezy-border, #E0E0E0);
}

.epai-photoset__btn--secondary:hover {
    background: var(--eezy-surface, #F5F5F5);
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-photoset__icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--eezy-border, #E0E0E0);
    border-radius: 8px;
    background: transparent;
    color: var(--eezy-muted, #757575);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.epai-photoset__icon-btn:hover {
    background: var(--eezy-surface, #F5F5F5);
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

/* ── Responsive: Photo set on mobile ── */

@media (max-width: 600px) {
    .epai-lightbox__container--photoset { padding: 8px; }

    .epai-photoset__title-row {
        flex-direction: column;
        gap: 8px;
    }

    .epai-photoset__color-pick { text-align: left; }
    .epai-photoset__swatches { justify-content: flex-start; }

    .epai-photoset__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 3px;
    }

    .epai-photoset__footer {
        flex-direction: column;
        gap: 8px;
    }

    .epai-photoset__actions-left {
        width: 100%;
    }

    .epai-photoset__btn {
        flex: 1;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }

    .epai-photoset__actions-right {
        width: 100%;
        justify-content: center;
    }
}

/* ── Checkout Form ── */

.epai-checkout-form {
    padding: 4px 0;
}

.epai-checkout-form__back-btn {
    background: none;
    border: none;
    color: var(--bd-primary, #2563eb);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    margin-bottom: 12px;
}
.epai-checkout-form__back-btn:hover {
    text-decoration: underline;
}

.epai-checkout-form__title {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--bd-text, #1a1a2e);
}

.epai-checkout-form__subtitle {
    margin: 0 0 20px;
    color: #777;
    font-size: 13px;
}

.epai-checkout-form__field {
    margin-bottom: 14px;
}

.epai-checkout-form__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.epai-req {
    color: #dc3545;
}

.epai-checkout-form__field input,
.epai-checkout-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.epai-checkout-form__field input:focus,
.epai-checkout-form__field textarea:focus {
    outline: none;
    border-color: var(--bd-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
    background: #fff;
}

.epai-checkout-form__error {
    background: #fef2f2;
    color: #dc3545;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 12px 0;
    border: 1px solid #fecaca;
}

.epai-checkout-form__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 11px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.epai-cart-footer__checkout--pay {
    background: #28a745 !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
}

.epai-cart-footer__checkout--pay:hover {
    background: #218838 !important;
}

.epai-cart-footer__checkout--pay:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

/* Spinner for processing */
.epai-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: epai-spin .6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes epai-spin {
    to { transform: rotate(360deg); }
}

/* ── Order Success Modal ── */

.epai-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: epai-fadeIn .3s ease;
}

.epai-success-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: epai-slideUp .4s ease;
}

.epai-success-modal__icon {
    margin-bottom: 16px;
}

.epai-success-modal h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #1a1a2e;
}

.epai-success-modal__order {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--bd-primary, #2563eb);
    background: #f0f4ff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: 8px 0 16px;
    letter-spacing: 1px;
}

.epai-success-modal p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.epai-success-modal__close {
    background: var(--bd-primary, #1a1a2e);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.epai-success-modal__close:hover {
    opacity: .85;
}

@keyframes epai-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes epai-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
