/**
 * Nelson Configurator - Hero Display Mode (Consolidated)
 * 
 * This is a single, complete CSS file with higher specificity
 * to prevent theme conflicts.
 */

/* ============================================================
   CSS RESET FOR HERO CONFIGURATOR
   ============================================================ */
#arcade-configurator-hero,
#arcade-configurator-hero *,
#arcade-configurator-hero *::before,
#arcade-configurator-hero *::after {
    box-sizing: border-box;
}

#arcade-configurator-hero {
    /* CSS Variables */
    /* Primary colors, text, border, bg, and font-family are now set via Styling Settings (class-styling-settings.php) */
    /* Derived colors based on main colors */
    --hero-text-light: color-mix(in srgb, var(--hero-text) 60%, var(--hero-bg));
    --hero-text-muted: color-mix(in srgb, var(--hero-text) 40%, var(--hero-bg));
    --hero-bg-alt: color-mix(in srgb, var(--hero-bg) 95%, var(--hero-text) 5%);
    --hero-bg-dark: color-mix(in srgb, var(--hero-bg) 90%, var(--hero-text) 10%);

    /* Layout variables (not tied to color settings) */
    --hero-radius: 8px;
    --hero-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    color: var(--hero-text);
    line-height: 1.5;
    font-size: 16px;
}

/* ============================================================
   MAIN TWO-COLUMN LAYOUT
   ============================================================ */
#arcade-configurator-hero .hero-layout {
    display: grid !important;
    grid-template-columns: 58% 42% !important;
    min-height: calc(100vh - 100px);
    background: transparent;
}

/* ============================================================
   LEFT COLUMN - HERO IMAGE
   ============================================================ */
#arcade-configurator-hero .hero-column-left {
    background: transparent;
    position: relative;
}

#arcade-configurator-hero .hero-sticky-container {
    position: sticky;
    top: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    box-sizing: border-box;
}

#arcade-configurator-hero .hero-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#arcade-configurator-hero .hero-preview-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--hero-radius);
    overflow: hidden;
    min-height: 300px;
    cursor: zoom-in;
}

#arcade-configurator-hero .hero-preview-base-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

#arcade-configurator-hero .hero-preview-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

#arcade-configurator-hero .hero-preview-zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#arcade-configurator-hero .hero-preview-image-container:hover .hero-preview-zoom-hint {
    opacity: 1;
}

#arcade-configurator-hero .hero-preview-tools {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#arcade-configurator-hero .hero-tool-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--hero-bg);
    border: 1px solid var(--hero-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text-light);
    transition: all 0.2s ease;
}

#arcade-configurator-hero .hero-tool-btn:hover {
    background: var(--hero-bg-dark);
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-preview-disclaimer {
    font-size: 11px;
    color: var(--hero-text-muted);
    margin-top: 10px;
    text-align: center;
}

/* ============================================================
   PRICE & ACTIONS
   ============================================================ */
#arcade-configurator-hero .hero-price-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-running-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

#arcade-configurator-hero .hero-total-label {
    font-size: 16px;
    color: var(--hero-text-light);
    font-weight: 500;
}

#arcade-configurator-hero .hero-total-price {
    font-size: 32px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

#arcade-configurator-hero .hero-action-buttons {
    display: flex;
    gap: 12px;
}

#arcade-configurator-hero .hero-btn-cart,
#arcade-configurator-hero .hero-btn-review {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--hero-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

#arcade-configurator-hero .hero-btn-cart {
    background: var(--hero-primary);
    color: white;
}

#arcade-configurator-hero .hero-btn-cart:hover:not(:disabled) {
    background: var(--hero-primary-hover);
}

#arcade-configurator-hero .hero-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#arcade-configurator-hero .hero-btn-review {
    background: transparent;
    color: var(--hero-secondary);
    border: 2px solid var(--hero-secondary);
}

#arcade-configurator-hero .hero-btn-review:hover {
    background: var(--hero-secondary);
    color: white;
}

/* ============================================================
   RIGHT COLUMN - OPTIONS
   ============================================================ */
#arcade-configurator-hero .hero-column-right {
    display: flex;
    flex-direction: column;
    border-left: none;
    background: transparent;
}

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
#arcade-configurator-hero .hero-tabs-container {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 20px;
    margin: 0;
    list-style: none;
}

#arcade-configurator-hero .hero-tabs::-webkit-scrollbar {
    display: none;
}

#arcade-configurator-hero .hero-tab {
    flex-shrink: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--hero-text-light);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

#arcade-configurator-hero .hero-tab:hover {
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-tab.active {
    color: var(--hero-primary);
    border-bottom-color: var(--hero-primary);
}

/* ============================================================
   CABINET HEADER
   ============================================================ */
#arcade-configurator-hero .hero-cabinet-header {
    padding: 20px 25px;
    background: transparent;
    border-bottom: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-cabinet-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 15px;
}

#arcade-configurator-hero .hero-cabinet-name {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

#arcade-configurator-hero .hero-cabinet-price {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

#arcade-configurator-hero .hero-change-cabinet-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--hero-primary);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

#arcade-configurator-hero .hero-change-cabinet-link:hover {
    color: var(--hero-primary-hover);
}

/* ============================================================
   OPTIONS SCROLL CONTAINER
   ============================================================ */
#arcade-configurator-hero .hero-options-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ============================================================
   OPTION SECTIONS
   ============================================================ */
#arcade-configurator-hero .hero-option-section {
    padding: 25px;
    background-color: transparent;
    border-bottom: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-option-section:last-child {
    border-bottom: none;
}

#arcade-configurator-hero .hero-section-header {
    margin-bottom: 20px;
}

#arcade-configurator-hero .hero-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
}

#arcade-configurator-hero .hero-section-description {
    font-size: 14px;
    color: var(--hero-text-light);
    margin: 0;
}

/* ============================================================
   OPTION ITEMS
   ============================================================ */
#arcade-configurator-hero .hero-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#arcade-configurator-hero .hero-option-wrapper {
    display: contents;
}

#arcade-configurator-hero .hero-option-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    padding: 16px 18px;
    background: var(--hero-bg-alt);
    border-radius: var(--hero-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

#arcade-configurator-hero .hero-option-item:hover {
    background: var(--hero-bg-dark);
}

#arcade-configurator-hero .hero-option-item.selected {
    background: #e8f4fc;
    border-color: var(--hero-primary);
}

#arcade-configurator-hero .hero-option-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#arcade-configurator-hero .hero-option-item.auto-selected {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-color: #f0d878;
}

/* Option Selector (Radio/Checkbox) */
#arcade-configurator-hero .hero-option-selector {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#arcade-configurator-hero .hero-radio,
#arcade-configurator-hero .hero-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--hero-border);
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#arcade-configurator-hero .hero-radio {
    border-radius: 50%;
}

#arcade-configurator-hero .hero-checkbox {
    border-radius: 4px;
}

#arcade-configurator-hero .hero-radio.checked,
#arcade-configurator-hero .hero-checkbox.checked {
    border-color: var(--hero-primary);
    background: var(--hero-primary);
}

#arcade-configurator-hero .hero-radio.checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

#arcade-configurator-hero .hero-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Option Thumbnail */
#arcade-configurator-hero .hero-option-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--hero-bg-dark);
}

#arcade-configurator-hero .hero-option-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Option Info */
#arcade-configurator-hero .hero-option-info {
    flex: 1;
    min-width: 0;
}

#arcade-configurator-hero .hero-option-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#arcade-configurator-hero .hero-option-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-option-auto-badge {
    display: none;
    padding: 2px 8px;
    background: #f0d878;
    color: #7a6200;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
}

#arcade-configurator-hero .hero-option-item.auto-selected .hero-option-auto-badge {
    display: inline-block;
}

#arcade-configurator-hero .hero-option-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
}

#arcade-configurator-hero .hero-option-short-desc {
    font-size: 13px;
    color: var(--hero-text-light);
    margin: 4px 0 0 0;
    line-height: 1.4;
    display: none;
}

/* Option Price */
#arcade-configurator-hero .hero-option-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--hero-text);
    text-align: right;
    min-width: 90px;
}

/* Expand Toggle */
#arcade-configurator-hero .hero-option-expand-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--hero-border);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
    transition: all 0.2s ease;
}

#arcade-configurator-hero .hero-option-expand-toggle:hover {
    background: var(--hero-bg-dark);
    color: var(--hero-primary);
    border-color: var(--hero-primary);
}

#arcade-configurator-hero .hero-option-expand-toggle .dashicons {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

/* Expanded Content */
#arcade-configurator-hero .hero-option-expanded-content {
    padding: 20px;
    margin: 8px 0 8px 37px;
    background: var(--hero-bg);
    border-radius: var(--hero-radius);
    border: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-option-full-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hero-text-light);
}

#arcade-configurator-hero .hero-option-full-description p {
    margin: 0 0 10px 0;
}

#arcade-configurator-hero .hero-option-full-description p:last-child {
    margin-bottom: 0;
}

#arcade-configurator-hero .hero-option-expanded-image {
    margin-top: 15px;
}

#arcade-configurator-hero .hero-option-expanded-image img {
    max-width: 100%;
    border-radius: var(--hero-radius);
    cursor: zoom-in;
}

/* Section Error */
#arcade-configurator-hero .hero-section-error {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #ffeeba;
}

/* ============================================================
   REVIEW SECTION
   ============================================================ */
#arcade-configurator-hero .hero-review-section {
    background: transparent;
}

#arcade-configurator-hero .hero-review-summary {
    background: white;
    border-radius: var(--hero-radius);
    padding: 20px;
    border: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-review-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hero-border);
    align-items: center;
}

#arcade-configurator-hero .hero-review-item:last-of-type {
    border-bottom: none;
}

#arcade-configurator-hero .hero-review-item-cabinet {
    background: var(--hero-bg-alt);
    margin: -10px -10px 10px -10px;
    padding: 15px 10px;
    border-radius: 4px;
}

#arcade-configurator-hero .hero-review-label {
    font-size: 14px;
    color: var(--hero-text-light);
}

#arcade-configurator-hero .hero-review-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-review-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--hero-text);
    text-align: right;
}

#arcade-configurator-hero .hero-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 2px solid var(--hero-border);
}

#arcade-configurator-hero .hero-review-total-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-review-total-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--hero-primary);
}

#arcade-configurator-hero .hero-review-actions {
    margin-top: 25px;
    text-align: center;
}

/* ============================================================
   MODALS
   ============================================================ */
#arcade-configurator-hero .hero-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

#arcade-configurator-hero .hero-modal {
    background: var(--hero-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#arcade-configurator-hero .hero-modal-large {
    max-width: 1000px;
}

#arcade-configurator-hero .hero-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--hero-border);
}

#arcade-configurator-hero .hero-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text-light);
    transition: all 0.2s ease;
}

#arcade-configurator-hero .hero-modal-close:hover {
    background: var(--hero-bg-dark);
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Cabinet Grid in Modal */
#arcade-configurator-hero .hero-cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

#arcade-configurator-hero .hero-cabinet-card {
    background: var(--hero-bg-alt);
    border: 2px solid transparent;
    border-radius: var(--hero-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#arcade-configurator-hero .hero-cabinet-card:hover {
    border-color: var(--hero-border);
    transform: translateY(-2px);
    box-shadow: var(--hero-shadow);
}

#arcade-configurator-hero .hero-cabinet-card.selected {
    border-color: var(--hero-primary);
    background: #e8f4fc;
}

#arcade-configurator-hero .hero-cabinet-card-image {
    aspect-ratio: 4/3;
    background: var(--hero-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

#arcade-configurator-hero .hero-cabinet-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#arcade-configurator-hero .hero-cabinet-card-info {
    padding: 15px;
}

#arcade-configurator-hero .hero-cabinet-card-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--hero-text);
}

#arcade-configurator-hero .hero-cabinet-card-specs {
    font-size: 13px;
    color: var(--hero-text-light);
    margin: 0 0 8px 0;
    display: flex;
    gap: 8px;
}

#arcade-configurator-hero .hero-cabinet-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hero-primary);
    margin: 0;
}

#arcade-configurator-hero .hero-cabinet-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--hero-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Review Modal */
#arcade-configurator-hero .hero-review-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#arcade-configurator-hero .hero-review-modal-preview {
    background: var(--hero-bg-alt);
    border-radius: var(--hero-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#arcade-configurator-hero .hero-review-modal-preview-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#arcade-configurator-hero .hero-review-modal-base-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    position: relative;
}

#arcade-configurator-hero .hero-review-modal-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    pointer-events: none;
}

#arcade-configurator-hero .hero-review-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 2px solid var(--hero-border);
    font-size: 20px;
    font-weight: 700;
}

#arcade-configurator-hero .hero-review-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#arcade-configurator-hero .hero-review-modal-actions .btn {
    flex: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
#arcade-configurator-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--hero-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

#arcade-configurator-hero .btn-primary {
    background: var(--hero-primary);
    color: white;
}

#arcade-configurator-hero .btn-primary:hover:not(:disabled) {
    background: var(--hero-primary-hover);
}

#arcade-configurator-hero .btn-secondary {
    background: transparent;
    color: var(--hero-text);
    border: 2px solid var(--hero-border);
}

#arcade-configurator-hero .btn-secondary:hover {
    background: var(--hero-bg-alt);
    border-color: var(--hero-text-light);
}

#arcade-configurator-hero .btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

#arcade-configurator-hero .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
#arcade-configurator-hero .hero-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: hero-spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes hero-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   ZOOM MODAL
   ============================================================ */
#arcade-configurator-hero .zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 10px;
    overflow: hidden;
}

#arcade-configurator-hero .zoom-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

#arcade-configurator-hero .zoom-modal-content.zoomed {
    cursor: zoom-out;
    overflow: auto;
}

#arcade-configurator-hero .zoom-modal-content.zoomed-2x {
    transform: scale(2);
}

#arcade-configurator-hero .zoom-modal-content.zoomed-3x {
    transform: scale(3);
}

#arcade-configurator-hero .zoom-modal-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    user-select: none;
}

/* Layered zoom container */
#arcade-configurator-hero .zoom-modal-layered {
    position: relative;
    max-width: 100%;
    max-height: 95vh;
    display: inline-block;
}

#arcade-configurator-hero .zoom-modal-layered .zoom-modal-base {
    display: block;
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
}

#arcade-configurator-hero .zoom-modal-layered .zoom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#arcade-configurator-hero .zoom-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s ease;
}

#arcade-configurator-hero .zoom-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

#arcade-configurator-hero .zoom-modal-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10002;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#arcade-configurator-hero .zoom-modal:hover .zoom-modal-hint {
    opacity: 1;
}

/* ============================================================
   MESSAGES
   ============================================================ */
#arcade-configurator-hero .arcade-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--hero-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

#arcade-configurator-hero .arcade-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#arcade-configurator-hero .arcade-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#arcade-configurator-hero .arcade-message-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

#arcade-configurator-hero .arcade-message-dismiss {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
}

#arcade-configurator-hero .arcade-message-dismiss:hover {
    opacity: 1;
}

/* ============================================================
   ALPINE.JS CLOAK
   ============================================================ */
#arcade-configurator-hero [x-cloak] {
    display: none !important;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    #arcade-configurator-hero .hero-layout {
        grid-template-columns: 50% 50% !important;
    }
    
    #arcade-configurator-hero .hero-sticky-container {
        padding: 20px;
    }
    
    #arcade-configurator-hero .hero-review-modal-content {
        grid-template-columns: 1fr;
    }
    
    #arcade-configurator-hero .hero-review-modal-preview {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */
@media (max-width: 768px) {
    #arcade-configurator-hero .hero-layout {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    
    #arcade-configurator-hero .hero-column-left {
        order: 1;
    }
    
    #arcade-configurator-hero .hero-sticky-container {
        position: relative;
        top: auto;
        height: auto;
        padding: 15px;
    }
    
    #arcade-configurator-hero .hero-preview-image-container {
        min-height: 200px;
        aspect-ratio: 4/3;
    }
    
    #arcade-configurator-hero .hero-preview-tools,
    #arcade-configurator-hero .hero-preview-disclaimer,
    #arcade-configurator-hero .hero-preview-zoom-hint {
        display: none;
    }
    
    #arcade-configurator-hero .hero-price-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: transparent;
        padding: 15px 20px;
        border-top: 1px solid var(--hero-border);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-top: 0;
    }
    
    #arcade-configurator-hero .hero-running-total {
        margin-bottom: 12px;
    }
    
    #arcade-configurator-hero .hero-total-price {
        font-size: 24px;
    }
    
    #arcade-configurator-hero .hero-column-right {
        border-left: none;
        border-top: 1px solid var(--hero-border);
        padding-bottom: 120px;
    }
    
    #arcade-configurator-hero .hero-tabs {
        padding: 0 15px;
    }
    
    #arcade-configurator-hero .hero-tab {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    #arcade-configurator-hero .hero-cabinet-header {
        padding: 15px 20px;
    }
    
    #arcade-configurator-hero .hero-cabinet-name {
        font-size: 18px;
    }
    
    #arcade-configurator-hero .hero-option-section {
        padding: 20px;
    }
    
    #arcade-configurator-hero .hero-option-item {
        padding: 14px 15px;
        gap: 12px;
    }
    
    #arcade-configurator-hero .hero-option-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    #arcade-configurator-hero .hero-option-price {
        min-width: 70px;
        font-size: 14px;
    }
    
    #arcade-configurator-hero .hero-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    #arcade-configurator-hero .hero-modal {
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
    }
    
    #arcade-configurator-hero .hero-cabinet-grid {
        grid-template-columns: 1fr;
    }
    
    #arcade-configurator-hero .hero-cabinet-card {
        display: flex;
        flex-direction: row;
    }
    
    #arcade-configurator-hero .hero-cabinet-card-image {
        width: 100px;
        aspect-ratio: 1;
    }
    
    #arcade-configurator-hero .hero-cabinet-card-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    #arcade-configurator-hero .hero-review-modal-actions {
        flex-direction: column;
    }
}