/* ── Catalog Search — Dark EezyCloud Theme ──
   Sidebar: compact filters (search, dropdowns, tabs, collections)
   Workspace: product card grid in #epai-main-content
   v5.0.9 — baseball card flip panels
   ─────────────────────────────────────────────────── */

/* ── Sidebar filter panel ── */

/* Load EezyVerse brand fonts */
@font-face {
    font-family: 'Eagle-Bold';
    src: url('https://eezycdn.blob.core.windows.net/cdn/fonts/Eagle-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Futura Book BT';
    src: url('https://eezycdn.blob.core.windows.net/cdn/fonts/FuturaBookBT.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

.epai-cat-search {
    padding: 14px;
    font-family: 'Futura Book BT', 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #111d2e 0%, #0d1520 100%);
    color: #fff;
    min-height: 100%;
}

/* ── Search bar ── */

.epai-cat-search__bar {
    margin-bottom: 12px;
}

.epai-cat-search__input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--eezy-radius-sm, 6px);
    font-size: 13px;
    font-family: inherit;
    color: #fff;
    outline: none;
    transition: border-color .2s;
}

.epai-cat-search__input:focus {
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-cat-search__input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* ── Filter section: dropdowns + tabs ── */

.epai-cat-search__filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.epai-cat-search__dropdowns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.epai-cat-select {
    width: 100%;
    padding: 5px 28px 5px 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--eezy-radius-sm, 6px);
    font-size: 12px;
    font-family: inherit;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.epai-cat-select:hover {
    border-color: rgba(255,255,255,0.3);
}

.epai-cat-select:focus {
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-cat-select option {
    background: #1a2a3e;
    color: #f0f4f8;
    padding: 8px 12px;
}
.epai-cat-select option:checked {
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
}

.epai-cat-search__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
}

.epai-cat-tab {
    padding: 5px 14px;
    border: none;
    border-radius: var(--eezy-radius-sm, 6px);
    font-size: 12px;
    font-family: var(--eezy-font-heading, 'Segoe UI', 'Eagle-Bold', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    transition: all .15s;
}

.epai-cat-tab:hover {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.8);
}

.epai-cat-tab--active {
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
}

/* ── Category tiles section ── */

.epai-cat-search__categories {
    margin-bottom: 12px;
}

.epai-cat-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.epai-cat-category-tile {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--eezy-radius-sm, 6px);
    cursor: pointer;
    transition: all .15s;
    text-align: left;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 11px;
}

.epai-cat-category-tile:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.epai-cat-category-tile--active {
    background: rgba(0,167,225,0.2) !important;
    border-color: rgba(0,167,225,0.35) !important;
    color: #fff !important;
}

.epai-cat-category-tile__icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.epai-cat-category-tile__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epai-cat-category-tile__count {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Collections section ── */

.epai-cat-search__collections {
    margin-top: 4px;
}

.epai-cat-filter-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    font-family: var(--eezy-font-heading, 'Segoe UI', 'Eagle-Bold', sans-serif);
}

/* ── Mode tabs (Print & Signage | Apparel) ── */
.epai-cat-search__mode-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 3px;
}

.epai-cat-mode-tab {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.epai-cat-mode-tab:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.05);
}

.epai-cat-mode-tab--active {
    background: var(--eezy-primary, #00A7E1) !important;
    color: #fff !important;
}

.epai-cat-collections-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.epai-cat-collection {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--eezy-radius-sm, 6px);
    cursor: pointer;
    transition: all .15s;
    text-align: left;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 12px;
}

.epai-cat-collection:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.epai-cat-collection--active {
    background: rgba(0,167,225,0.2) !important;
    border-color: rgba(0,167,225,0.35) !important;
    color: #fff !important;
}

.epai-cat-collection__icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: inherit; /* follows parent text color — white when hovered/active */
}

.epai-cat-collection__name {
    font-weight: 500;
}

/* ── Workspace product grid (in #epai-main-content) ── */

.epai-cat-workspace {
    padding: 20px 24px;
    min-height: 100%;
    font-family: var(--eezy-font-body, 'Segoe UI', 'Futura Book BT', sans-serif);
}

.epai-cat-workspace__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.epai-cat-workspace__desc {
    flex-basis: 100%;
    margin: 4px 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--eezy-text-muted, #94a3b8);
    font-family: 'Futura Book BT', 'Inter', system-ui, sans-serif;
    max-width: 800px;
    font-style: normal;
}

.epai-cat-workspace__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--eezy-text-primary, #f1f5f9);
    font-family: 'Eagle-Bold', 'Inter', system-ui, sans-serif;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.epai-cat-workspace__copy {
    flex-basis: 100%;
    margin: 8px 0 24px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--eezy-text-secondary, #e2e8f0);
    font-family: 'Futura Book BT', 'Inter', system-ui, sans-serif;
    max-width: 800px;
}

.epai-cat-workspace__count {
    font-size: 14px;
    color: var(--eezy-text-muted, #94a3b8);
    font-weight: 600;
}

.epai-cat-workspace__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-width: 1400px;
    gap: 12px;
}

/* ── Product cards ── */

.epai-cat-card {
    background: var(--eezy-bg-elevated, #0f1d30);
    border: 1px solid var(--eezy-border, #1a2d4a);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.epai-cat-card:hover {
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.epai-cat-card__img {
    aspect-ratio: 1 / 1;
    background: var(--eezy-card, #1c2333);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* Vignette overlay hides white image fringes on dark card */
.epai-cat-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, var(--eezy-card, #1c2333) 100%),
                linear-gradient(to bottom, var(--eezy-card, #1c2333) 0%, transparent 15%, transparent 85%, var(--eezy-card, #1c2333) 100%);
    pointer-events: none;
    z-index: 1;
}

.epai-cat-card__img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    transition: transform .3s;
}

.epai-cat-card:hover .epai-cat-card__img img {
    transform: scale(1.08) translateY(2%);
    transition: transform 3s ease-out;
}

.epai-cat-card__placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
}

.epai-cat-card__info {
    padding: 12px 14px;
}

.epai-cat-card__brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--eezy-primary, #00A7E1);
    margin-bottom: 3px;
    font-family: var(--eezy-font-heading, 'Segoe UI', 'Eagle-Bold', sans-serif);
    font-weight: 700;
}

.epai-cat-card__name {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Eagle-Bold', 'Inter', system-ui, sans-serif;
    color: var(--eezy-text-primary, #f1f5f9);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epai-cat-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epai-cat-card__style {
    font-size: 10px;
    color: var(--eezy-text-muted, #94a3b8);
}

.epai-cat-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
}

/* ── Loading / empty states ── */

.epai-cat-search__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 16px;
    color: rgba(0,0,0,0.4);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.epai-cat-search__loading .epai-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0,167,225,0.15);
    border-top-color: var(--eezy-primary, #00A7E1);
    border-radius: 50%;
    animation: epai-spin .7s linear infinite;
}

@keyframes epai-spin {
    to { transform: rotate(360deg); }
}

.epai-cat-search__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 16px;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
}

/* ── Browse grid: categories/brands toggle ── */

.epai-browse-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.epai-browse-toggle__btn {
    padding: 6px 16px;
    border: 1px solid var(--eezy-border, #ddd);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: var(--eezy-muted, #666);
    transition: all .15s;
}

.epai-browse-toggle__btn--active {
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-browse-toggle,
.epai-browse-tiles {
    grid-column: 1 / -1;
}

.epai-browse-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
/* Brand tiles: compact logo grid — more above the fold */
.epai-browse-tiles:has(.epai-browse-tile--brand) {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.epai-browse-tile {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    background: var(--eezy-bg-elevated, #0f1d30);
    border: 1px solid var(--eezy-border, #1a2d4a);
    display: flex;
    flex-direction: column;
}

.epai-browse-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-browse-tile__poster {
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--eezy-card, #1c2333);
    position: relative;
}
/* Dark vignette edges hide any residual white fringe */
.epai-browse-tile__poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(12,22,38,0.55) 100%);
    pointer-events: none;
}

.epai-browse-tile__overlay {
    padding: 14px 16px;
}

.epai-browse-tile__name {
    font-size: 16px;
    font-weight: 800;
    color: var(--eezy-text-primary, #f1f5f9);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.epai-browse-tile__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--eezy-text-muted, #94a3b8);
}

.epai-browse-tile__copy {
    font-size: 13px;
    font-weight: 500;
    color: var(--eezy-text-muted, #94a3b8);
    margin-top: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Brand logo inside tile */
.epai-browse-tile__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 3s ease-out;
}
.epai-browse-tile--brand .epai-browse-tile__poster {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    background: rgba(255,255,255,0.95);
}
.epai-browse-tile--brand {
    border: 1px solid rgba(0,0,0,0.06);
}
.epai-browse-tile--brand:hover {
    border-color: var(--eezy-primary, #00A7E1);
}
.epai-browse-tile--brand:hover .epai-browse-tile__logo {
    transform: scale(1.12);
}
/* Ken Burns on category tile posters too */
.epai-browse-tile:hover .epai-browse-tile__poster {
    background-size: 115%;
    transition: background-size 3s ease-out;
}

/* ── Override #epai-main-content bg for workspace grid ── */

#epai-main-content:has(.epai-cat-workspace) {
    background: #f5f7fa;
}

/* ── Float panel overrides ── */

.epai-float-panel {
    min-height: 300px;
    max-height: calc(100% - 10px);
}

/* Allow 3D transforms inside panel body */
.epai-float-body:has(.epai-baseball-card) {
    overflow: visible !important;
}

.epai-float-body {
    flex: 1;
    overflow-y: auto;
}

/* ── Baseball card — two-sided flip panels in workspace ── */

.epai-baseball-card {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.epai-baseball-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.epai-baseball-card--flipped .epai-baseball-card__inner {
    transform: rotateY(180deg);
}

.epai-baseball-card__face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0 0 8px 8px;
}

.epai-baseball-card__face--front {
    display: flex;
    flex-direction: column;
    background: var(--eezy-card, #1c2333);
}

.epai-baseball-card__face--back {
    transform: rotateY(180deg);
    background: var(--eezy-card, #1c2333);
    overflow-y: auto;
}

/* ── Flip button ── */

.epai-card-flip-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    padding: 6px 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
    letter-spacing: 0.5px;
}

.epai-card-flip-btn:hover {
    background: var(--eezy-primary, #00A7E1);
    border-color: rgba(0,167,225,0.5);
}

/* ── Front face — image side ── */

.epai-card-front__hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
    background: var(--eezy-card, #1c2333);
}

.epai-card-front__hero img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .3s;
}

.epai-card-front__noimg {
    color: rgba(0,0,0,0.2);
    font-size: 14px;
}

.epai-card-front__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.epai-card-front__brand {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 2px;
    font-family: var(--eezy-font-heading, 'Segoe UI', 'Eagle-Bold', sans-serif);
    font-weight: 600;
}

.epai-card-front__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.epai-card-front__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
    margin-top: 4px;
}

.epai-card-front__swatches {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: var(--eezy-card, #1c2333);
    border-top: 1px solid var(--eezy-border, rgba(255,255,255,0.07));
    overflow-x: auto;
    border-radius: 0 0 8px 8px;
}

.epai-card-swatch {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 8px;
    color: rgba(0,0,0,0.4);
}

.epai-card-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epai-card-swatch:hover {
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-card-swatch--more {
    background: rgba(0,0,0,0.05);
    font-weight: 600;
    font-size: 10px;
}

.epai-card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: rgba(0,0,0,0.3);
    font-size: 13px;
}

/* ── Back face — configuration side ── */

.epai-cfg-detail {
    padding: 16px;
    font-family: var(--eezy-font-body, 'Segoe UI', sans-serif);
}

.epai-cfg-info {
    margin-bottom: 16px;
}

.epai-cfg-brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eezy-primary, #00A7E1);
    font-weight: 600;
    margin-bottom: 2px;
}

.epai-cfg-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--eezy-dark, #1a2332);
    margin: 0 0 6px;
    line-height: 1.3;
}

.epai-cfg-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
    margin-bottom: 8px;
}

.epai-cfg-desc {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    line-height: 1.5;
    margin: 0;
}

.epai-cfg-section {
    margin-bottom: 14px;
}

.epai-cfg-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.4);
    font-weight: 600;
    margin-bottom: 8px;
}

.epai-cfg-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.epai-cfg-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 10px;
    color: rgba(0,0,0,0.4);
}

.epai-cfg-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epai-cfg-swatch:hover {
    border-color: var(--eezy-primary, #00A7E1);
}

.epai-cfg-swatch--more {
    background: rgba(0,0,0,0.05);
    font-weight: 600;
    font-size: 11px;
}

.epai-cfg-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.epai-cfg-size {
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    color: rgba(0,0,0,0.6);
}

.epai-cfg-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.epai-cfg-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
}

.epai-cfg-btn--primary {
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
}

.epai-cfg-btn--primary:hover {
    background: #0090c4;
}

.epai-cfg-btn--share {
    background: rgba(0,0,0,0.06);
    color: var(--eezy-dark, #1a2332);
    flex: 0 0 auto;
}

.epai-cfg-btn--share:hover {
    background: rgba(0,0,0,0.1);
}

.epai-config__loading, .epai-config__error {
    padding: 40px 20px;
    text-align: center;
    color: rgba(0,0,0,0.4);
    font-size: 13px;
}

/* ── Print product panel layout (612×792 = 8.5×11 @ 72dpi) ── */

.epai-cfg-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* Top section: image left, key info right */
.epai-cfg-top {
    display: flex;
    gap: 16px;
    padding: 16px 16px 0;
    align-items: flex-start;
    flex-shrink: 0;
}

.epai-cfg-hero {
    width: 160px;
    flex-shrink: 0;
    background: var(--eezy-light, #F5F5F5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 160px;
}

.epai-cfg-hero img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.epai-cfg-top-info {
    flex: 1;
    min-width: 0;
}

/* Options + actions below the top section */
.epai-cfg-right {
    flex: 1;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.epai-cfg-info {
    margin-bottom: 0;
}

/* ── Print product panel ── */

.epai-cfg-btn--outline {
    background: transparent;
    border: 1.5px solid var(--eezy-border, #E0E0E0);
    color: var(--eezy-dark, #212121);
}

.epai-cfg-btn--outline:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-primary, #00A7E1);
}

.epai-cfg-btn--design {
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
}

.epai-cfg-btn--design:hover {
    background: var(--eezy-primary-dark, #0090c4);
}

.epai-cfg-select {
    width: auto;
    min-width: 150px;
    padding: 6px 10px;
    border: 1px solid var(--eezy-border, rgba(255,255,255,0.12));
    border-radius: 6px;
    background: var(--eezy-dark, #212121);
    color: var(--eezy-text, #f1f5f9);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.epai-cfg-select:focus {
    outline: none;
    border-color: var(--eezy-primary, #00A7E1);
}

/* Option rows: label left, select right */
.epai-cfg-opts {
    padding: 4px 0 8px;
    border-top: 1px solid var(--eezy-border, rgba(255,255,255,0.1));
    margin-top: 4px;
}

.epai-cfg-opt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid var(--eezy-border, rgba(255,255,255,0.06));
}

.epai-cfg-opt-row label {
    font-size: 13px;
    color: var(--eezy-muted, #94a3b8);
    font-weight: 500;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    text-transform: none;
}

/* Specs — bottom-left column of the PDP grid (auto row, collapses when empty) */
.epai-pdp__specs-col {
    grid-row: 2;
    grid-column: 1;
    padding: 8px 10px;
    max-height: 220px;
    border-top: 1px solid var(--eezy-border, rgba(255,255,255,0.08));
    border-right: 1px solid var(--eezy-border, rgba(255,255,255,0.08));
    overflow-y: auto;
    font-size: 11px;
    background: var(--eezy-card, #1c2333);
}

.epai-pdp__specs-col table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.epai-pdp__specs-col td {
    padding: 3px 0;
    vertical-align: top;
    color: var(--eezy-muted, #94a3b8);
    line-height: 1.4;
}

.epai-pdp__specs-col td:last-child {
    text-align: right;
    padding-left: 8px;
    color: var(--eezy-text-primary, #e2e8f0);
}

.epai-cfg-price-hint {
    font-size: 11px;
    color: var(--eezy-muted, #94a3b8);
    margin-bottom: 6px;
}
.epai-cfg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}
.epai-cfg-price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eezy-muted, #94a3b8);
    white-space: nowrap;
}
.epai-pdp__spec-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--eezy-muted, #94a3b8);
    margin: 0 0 10px;
}
.epai-turnaround-note {
    font-size: 10px;
    color: var(--eezy-muted, #94a3b8);
    margin-left: 6px;
    font-style: italic;
    white-space: nowrap;
}
/* duplicate removed — see first .epai-cfg-opt-row definition above */
.epai-delivery-est {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    margin-top: 4px;
    background: rgba(0,167,225,0.08);
    border: 1px solid rgba(0,167,225,0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--eezy-text, #f1f5f9);
}
.epai-delivery-est .epai-delivery-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--eezy-primary, #00A7E1);
    flex-shrink: 0;
}
.epai-delivery-range {
    color: var(--eezy-primary, #00A7E1);
}

.epai-cfg-price-box {
    margin: 12px 0;
    padding: 12px 16px;
    background: var(--eezy-light, #F5F5F5);
    border-radius: 8px;
    text-align: center;
}

.epai-cfg-price-box__label {
    font-size: 11px;
    color: rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.epai-cfg-price-box__amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--eezy-success, #4CAF50);
}

.epai-cfg-specs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.epai-cfg-specs table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.epai-cfg-specs td {
    padding: 3px 0;
    vertical-align: top;
}

.epai-cfg-specs td:first-child {
    color: rgba(0,0,0,0.4);
    padding-right: 12px;
    white-space: nowrap;
    width: 40%;
}

.epai-cfg-hero {
    text-align: center;
    margin-bottom: 16px;
}

.epai-cfg-hero img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

/* ── Magazine view — inside float panel (overrides old fullscreen magazine.css) ── */

.epai-float-body .epai-magazine {
    position: relative;
    inset: auto;
    z-index: auto;
    background: transparent;
    height: 100%;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    font-family: var(--eezy-font-body, 'Segoe UI', sans-serif);
}

.epai-float-body .epai-magazine__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.epai-float-body .epai-magazine__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.epai-float-body .epai-magazine__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--eezy-dark, #1a2332);
    margin: 0;
    flex: 1;
    font-family: var(--eezy-font-heading, 'Segoe UI', 'Eagle-Bold', sans-serif);
}

.epai-float-body .epai-magazine__count {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.epai-float-body .epai-magazine__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    flex: none;
    max-width: 100%;
}

.epai-float-body .epai-magazine__item {
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all .2s;
}

.epai-float-body .epai-magazine__item:hover {
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.epai-float-body .epai-magazine__img {
    aspect-ratio: 1;
    background: var(--eezy-card, #1c2333);
    overflow: hidden;
}

.epai-float-body .epai-magazine__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.epai-float-body .epai-magazine__item:hover .epai-magazine__img img {
    transform: scale(1.04);
}

.epai-float-body .epai-magazine__noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(0,0,0,0.15);
    font-size: 11px;
}

.epai-float-body .epai-magazine__info {
    padding: 8px 10px;
}

.epai-float-body .epai-magazine__brand {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eezy-primary, #00A7E1);
    font-weight: 600;
    margin-bottom: 1px;
}

.epai-float-body .epai-magazine__name {
    font-size: 11px;
    font-weight: 500;
    color: var(--eezy-dark, #1a2332);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.epai-float-body .epai-magazine__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
    margin-top: 2px;
}

/* ── Catalog FAB ── */

.epai-catalog-fab {
    position: fixed;
    bottom: 168px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 9998;
    transition: all .2s;
}

.epai-catalog-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* ── Responsive ── */

/* ═══════════════════════════════════════
   MOBILE — Full responsive overhaul
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    /* Sidebar becomes a collapsible top bar */
    .epai-cat-search {
        padding: 10px;
        max-height: none;
    }

    /* Hide sidebar panel on mobile — show as overlay when toggled */
    .epai-panel[data-panel-type="catalog-search"] {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 60vh !important;
        z-index: 9998 !important;
        border-radius: 0 0 12px 12px !important;
        overflow-y: auto !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }

    /* Workspace fills full width */
    .epai-cat-workspace {
        padding: 12px 8px;
        margin-left: 0 !important;
    }
    #epai-main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    /* Product grid: 2 columns on tablet */
    .epai-cat-workspace__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        max-width: 100% !important;
    }

    /* Category browse tiles: 2 columns */
    .epai-browse-tiles {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* Title smaller on mobile */
    .epai-cat-workspace__title {
        font-size: 22px;
    }
    .epai-cat-workspace__copy {
        font-size: 13px;
    }

    /* Product cards: shorter images */
    .epai-cat-card__img {
        aspect-ratio: 1 / 1;
    }

    /* Mode tabs full width */
    .epai-cat-search__mode-tabs {
        display: flex;
    }
    .epai-cat-mode-tab {
        flex: 1;
        text-align: center;
    }

    /* Floating panels: fullscreen on mobile */
    .epai-panel[data-panel-type="product-configurator"],
    .epai-panel[data-panel-type="print-product"] {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
    }

    /* PDP layout: stack on mobile */
    .epai-pdp {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
    }
    .epai-pdp__hero {
        grid-row: 1 !important;
        grid-column: 1 !important;
        border-right: none !important;
        min-height: 180px;
        max-height: 260px;
    }
    .epai-pdp__config {
        grid-row: 2 !important;
        grid-column: 1 !important;
    }

    /* Brand header stacks */
    .epai-brand-header {
        flex-direction: column;
        gap: 12px;
    }
    .epai-brand-header__logo {
        width: 80px;
        height: 60px;
    }

    /* Milo fab: smaller, tighter to corner */
    .epai-milo__fab {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }

    /* Hide the catalog panel close/settings buttons that overlap on mobile */
    .epai-panel__controls {
        right: 4px !important;
    }
}

@media (max-width: 480px) {
    /* Product grid: single column on phone */
    .epai-cat-workspace__grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Browse tiles: single column */
    .epai-browse-tiles {
        grid-template-columns: 1fr !important;
    }

    .epai-cat-search {
        padding: 8px;
    }
    .epai-cat-select {
        font-size: 13px;
        padding: 10px 12px;
    }
    .epai-cat-search__input {
        padding: 10px 12px;
        font-size: 14px;
    }
    .epai-cat-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    .epai-cat-workspace {
        padding: 8px;
    }
    .epai-cat-workspace__title {
        font-size: 16px;
    }
    .epai-cat-workspace__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .epai-cat-card__info {
        padding: 8px 8px;
    }
    .epai-cat-card__name {
        font-size: 12px;
    }
    .epai-cat-card__price {
        font-size: 13px;
    }
    .epai-browse-tile__poster {
        height: 180px;
    }
    .epai-cat-collection {
        padding: 6px 10px;
        font-size: 11px;
    }
    .epai-catalog-fab {
        bottom: 100px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ── Promo product detail panel ── */

.epai-promo-detail {
    font-family: var(--eezy-font-body, 'Futura Book BT', sans-serif);
}

.epai-promo-detail__hero {
    background: var(--eezy-card, #1c2333);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
}

.epai-promo-detail__hero img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    padding: 20px;
}

.epai-promo-detail__noimg {
    color: rgba(0,0,0,0.2);
    font-size: 14px;
}

.epai-promo-detail__info {
    padding: 20px;
}

.epai-promo-detail__brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--eezy-primary, #00A7E1);
    font-weight: 600;
    margin-bottom: 4px;
}

.epai-promo-detail__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--eezy-dark, #1a2332);
    margin: 0 0 6px;
    line-height: 1.3;
    font-family: 'Eagle-Bold', 'Inter', system-ui, sans-serif;
}

.epai-promo-detail__sku {
    font-size: 12px;
    color: rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

.epai-promo-detail__desc {
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    line-height: 1.6;
    margin-bottom: 20px;
}

.epai-promo-detail__actions {
    display: flex;
    gap: 10px;
}

.epai-promo-detail__lead {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    margin-top: 12px;
    text-align: center;
}

/* Promo product image gallery */
.epai-promo-gallery {
    position: relative;
}

.epai-promo-gallery__main {
    position: relative;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}

.epai-promo-gallery__hero {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    padding: 16px;
    display: block;
}

.epai-promo-imprint-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.epai-promo-gallery__thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f2f5;
    overflow-x: auto;
    scrollbar-width: none;
}

.epai-promo-gallery__thumbs::-webkit-scrollbar { display: none; }

.epai-promo-gallery__thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px;
    transition: border-color 0.15s;
}

.epai-promo-gallery__thumb--active,
.epai-promo-gallery__thumb:hover {
    border-color: var(--eezy-primary, #00A7E1);
}

/* Promo MOQ + pricing */
.epai-promo-moq {
    font-size: 13px;
    color: var(--eezy-text-muted, #64748b);
    margin-bottom: 10px;
}

.epai-promo-moq strong {
    color: var(--eezy-text-primary, #1a2332);
}

.epai-promo-pricing {
    margin: 14px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 12px;
}

.epai-promo-pricing__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(0,0,0,0.4);
    margin: 0 0 8px;
}

.epai-promo-pricing__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.epai-promo-pricing__table th {
    text-align: left;
    font-weight: 600;
    color: rgba(0,0,0,0.5);
    padding: 4px 8px 4px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.epai-promo-pricing__table td {
    padding: 4px 8px 4px 0;
    color: var(--eezy-dark, #1a2332);
}

.epai-promo-pricing__table tr:first-child td {
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
}

/* Garment / Print PDP decorate / design button + upload art button */
.epai-pdp__decorate-btn,
.epai-pdp__upload-btn {
    width: 100%;
    padding: 10px 12px;
    background: var(--eezy-dark, #212121);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.epai-pdp__decorate-btn:hover,
.epai-pdp__upload-btn:hover,
.epai-pdp__design-btn:hover { background: var(--eezy-gray-700, #424242); }
/* Two-up art row: Design | Upload Art */
.epai-art-btns {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.epai-pdp__design-btn {
    flex: 1;
    padding: 9px 8px;
    background: var(--eezy-dark, #212121);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.15s;
}
.epai-pdp__upload-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 8px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 12px;
}
.epai-pdp__upload-btn input[type="file"] { display: none; }
.epai-art-status {
    margin-top: 5px;
    font-size: 11px;
    color: var(--eezy-primary, #00A7E1);
    display: none;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.epai-art-status.has-file { display: flex; }
/* Variable data intake row */
.epai-vdp-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.epai-vdp-label {
    font-size: 11px;
    color: var(--eezy-muted, #94a3b8);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.epai-vdp-label input[type="file"] { display: none; }
.epai-vdp-status {
    font-size: 11px;
    color: var(--eezy-primary, #00A7E1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ── Sport filter tabs (Jerseys & Uniforms) ── */

.epai-sport-tabs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.epai-sport-tab {
    padding: 6px 16px;
    background: var(--eezy-bg-elevated, #0f1d30);
    border: 1px solid var(--eezy-border, #1a2d4a);
    border-radius: 20px;
    color: var(--eezy-text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Futura Book BT', 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all .15s;
}

.epai-sport-tab:hover {
    border-color: var(--eezy-primary, #00A7E1);
    color: var(--eezy-text-primary, #f1f5f9);
}

.epai-sport-tab--active {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: #fff;
}

/* ── Numbered pagination ── */

.epai-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.epai-pagination__btn {
    padding: 8px 14px;
    background: var(--eezy-bg-elevated, #0f1d30);
    color: var(--eezy-text-secondary, #e2e8f0);
    border: 1px solid var(--eezy-border, #1a2d4a);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Futura Book BT', 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all .15s;
}

.epai-pagination__btn:hover {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: #fff;
}

.epai-pagination__btn--active {
    background: var(--eezy-primary, #00A7E1);
    border-color: var(--eezy-primary, #00A7E1);
    color: #fff;
    cursor: default;
}

.epai-pagination__dots {
    color: var(--eezy-text-muted, #94a3b8);
    padding: 0 4px;
    font-size: 14px;
}

/* ── Image error fallback placeholder ── */
.epai-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--eezy-card, #1c2333);
    color: rgba(0,0,0,0.25);
    font-size: 11px;
    font-family: var(--eezy-font-body, 'Segoe UI', sans-serif);
}
.epai-cat-card__img .epai-img-fallback,
.epai-float-body .epai-magazine__img .epai-img-fallback {
    aspect-ratio: 1;
}
.epai-card-front__hero .epai-img-fallback {
    font-size: 14px;
    min-height: 200px;
}
.epai-card-swatch .epai-img-fallback,
.epai-cfg-swatch .epai-img-fallback {
    font-size: 7px;
    border-radius: inherit;
}

/* ── Dropdown labels — strong, readable ── */
.epai-cat-dropdown-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e2e8f0;
    margin: 16px 0 6px;
}
.epai-cat-dropdown-label:first-child { margin-top: 8px; }

/* Category & Brand dropdowns */
.epai-cat-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.epai-cat-select:focus {
    outline: none;
    border-color: var(--eezy-primary, #00A7E1);
    box-shadow: 0 0 0 2px rgba(0,167,225,0.15);
}
.epai-cat-select option {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 500;
}

/* Print category buttons */
.epai-cat-print-cat-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 2px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 0 4px 4px 0;
}
.epai-cat-print-cat-btn:hover {
    background: rgba(255,255,255,0.04);
    color: #f1f5f9;
    border-left-color: rgba(0,167,225,0.3);
}
.epai-cat-print-cat-btn--active {
    background: rgba(0,167,225,0.08);
    color: var(--eezy-primary, #00A7E1);
    border-left-color: var(--eezy-primary, #00A7E1);
    font-weight: 700;
}

/* ── Brand catalog header ── */
.epai-brand-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.epai-brand-header__logo {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
    padding: 12px;
}
.epai-brand-header__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.epai-brand-header__info {
    flex: 1;
}

/* ── Workspace full-width override ── */
#epai-workspace { width: 100%; }

/* ════════════════════════════════════════════════
   LOOKBOOK — Hero views with logo overlay
   ════════════════════════════════════════════════ */

/* View tabs: Front | Back | Side */
.epai-lk-views {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    background: #fafafa;
}
.epai-lk-view {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: rgba(0,0,0,0.4);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.epai-lk-view:hover { color: rgba(0,0,0,0.7); }
.epai-lk-view--active {
    color: var(--eezy-primary, #00A7E1);
    border-bottom-color: var(--eezy-primary, #00A7E1);
}

/* Hero image area */
.epai-lk-hero {
    position: relative;
    background: var(--eezy-card, #1c2333);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    max-height: 480px;
    overflow: hidden;
}
.epai-lk-hero__img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Logo overlay drop zone */
.epai-lk-logo-zone {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 50%;
    height: 35%;
    border: 2px dashed rgba(0,167,225,0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    z-index: 5;
}
.epai-lk-logo-zone:hover {
    border-color: var(--eezy-primary, #00A7E1);
    background: rgba(0,167,225,0.04);
}
.epai-lk-logo-zone__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0,167,225,0.5);
    pointer-events: none;
}
.epai-lk-logo-img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: auto;
}

/* Colorway swatch strip */
.epai-lk-swatches {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
    align-items: center;
}
.epai-lk-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.epai-lk-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.epai-lk-swatch:hover {
    transform: scale(1.15);
    border-color: rgba(0,0,0,0.3);
}
.epai-lk-swatch--active {
    border-color: var(--eezy-primary, #00A7E1);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(0,167,225,0.2);
}
.epai-lk-more {
    font-size: 11px;
    color: rgba(0,0,0,0.4);
    font-weight: 600;
    padding-left: 4px;
}

/* Product info bar at bottom of front face */
.epai-lk-info {
    padding: 12px 16px;
    background: var(--eezy-card, #1c2333);
}
.epai-lk-brand {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eezy-primary, #00A7E1);
    margin-bottom: 2px;
}
.epai-lk-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.2;
}
.epai-lk-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--eezy-primary, #00A7E1);
}
.epai-lk-desc {
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* Back button for inline product detail */
.epai-back-btn {
    background: none;
    border: none;
    color: var(--eezy-primary, #00A7E1);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
}
.epai-back-btn:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════
   PDP — Product Detail Panel (front face)
   Hero 1/4 upper-left + config fills rest
   ════════════════════════════════════════════════ */
.epai-pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    height: 100%;
    overflow: hidden;
}
.epai-pdp__hero {
    grid-row: 1;
    grid-column: 1;
    background: var(--eezy-card, #1c2333);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border-right: 1px solid var(--eezy-border, rgba(255,255,255,0.08));
    border-bottom: 1px solid var(--eezy-border, rgba(255,255,255,0.08));
    position: relative;
    min-height: 200px;
}
.epai-pdp__hero::after {
    content: 'Click for lookbook';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.epai-pdp__hero:hover::after { opacity: 1; }
.epai-pdp__hero img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.epai-pdp__noimg {
    color: rgba(0,0,0,0.2);
    font-size: 13px;
}
.epai-pdp__config {
    grid-row: 1 / -1;
    grid-column: 2;
    padding: 12px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}
.epai-pdp__name {
    font-size: 15px;
    font-weight: 800;
    color: var(--eezy-text, #f1f5f9);
    margin: 0 0 2px;
    line-height: 1.2;
}
.epai-pdp__desc {
    font-size: 11px;
    color: var(--eezy-muted, #94a3b8);
    line-height: 1.4;
    margin: 4px 0 8px;
}
.epai-pdp__actions {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--eezy-border, rgba(255,255,255,0.08));
    flex-shrink: 0;
}
.epai-pdp__cart-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    background: var(--eezy-primary, #00A7E1);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}
.epai-pdp__cart-btn:hover {
    background: #0090c4;
    transform: translateY(-1px);
}
.epai-pdp__cart-btn:active { transform: translateY(0); }

/* Lookbook save button */
.epai-lk-save-btn {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: rgba(0,167,225,0.08);
    color: var(--eezy-primary, #00A7E1);
    border: 1px solid rgba(0,167,225,0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.epai-lk-save-btn:hover {
    background: rgba(0,167,225,0.15);
}
