/**
 * Visual Combinator - Two-Column Modal Wizard
 * Premium popup with image preview + wizard steps
 */

:root {
    --vc-primary: #1a1a2e;
    --vc-primary-light: #16213e;
    --vc-accent: #6366f1;
    --vc-accent-light: #818cf8;
    --vc-accent-dark: #4f46e5;
    --vc-accent-glow: rgba(99, 102, 241, 0.15);
    --vc-success: #10b981;
    --vc-success-light: #34d399;
    --vc-success-glow: rgba(16, 185, 129, 0.15);
    --vc-warning: #f59e0b;
    --vc-danger: #ef4444;
    --vc-white: #ffffff;
    --vc-gray-50: #f9fafb;
    --vc-gray-100: #f3f4f6;
    --vc-gray-200: #e5e7eb;
    --vc-gray-300: #d1d5db;
    --vc-gray-400: #9ca3af;
    --vc-gray-500: #6b7280;
    --vc-gray-600: #4b5563;
    --vc-gray-700: #374151;
    --vc-gray-800: #1f2937;
    --vc-gray-900: #111827;
    --vc-customization: #f59e0b;
    --vc-customization-light: #fbbf24;
    --vc-customization-glow: rgba(245, 158, 11, 0.15);
    --vc-radius-sm: 8px;
    --vc-radius: 12px;
    --vc-radius-lg: 16px;
    --vc-radius-xl: 24px;
    --vc-radius-full: 9999px;
    --vc-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --vc-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --vc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --vc-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --vc-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --vc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --vc-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --vc-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --vc-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== TRIGGER BUTTON ==================== */

.vc-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
    color: var(--vc-white);
    border: none;
    border-radius: var(--vc-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vc-transition);
    box-shadow: var(--vc-shadow), 0 0 0 0 var(--vc-accent-glow);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.vc-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.vc-trigger:hover::before {
    transform: translateX(100%);
}

.vc-trigger:hover {
    transform: translateY(-3px);
    box-shadow: var(--vc-shadow-lg), 0 0 0 6px var(--vc-accent-glow);
}

.vc-trigger:active {
    transform: translateY(-1px);
}

.vc-trigger__icon {
    width: 24px;
    height: 24px;
    animation: vcPulse 2s ease-in-out infinite;
}

@keyframes vcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.vc-trigger__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--vc-radius-full);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* ==================== OVERLAY ==================== */

.vc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--vc-transition-slow);
}

.vc-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MODAL ==================== */

.vc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--vc-transition-slow);
}

.vc-modal.active {
    opacity: 1;
    visibility: visible;
}

.vc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--vc-white);
    border: 1px solid var(--vc-gray-200);
    border-radius: var(--vc-radius);
    color: var(--vc-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vc-transition-fast);
    z-index: 10;
    box-shadow: var(--vc-shadow);
}

.vc-modal__close:hover {
    background: var(--vc-gray-100);
    color: var(--vc-gray-700);
}

.vc-modal__close svg {
    width: 20px;
    height: 20px;
}

.vc-modal__container {
    background: var(--vc-white);
    border-radius: var(--vc-radius-xl);
    box-shadow: var(--vc-shadow-2xl), 0 0 100px rgba(99, 102, 241, 0.15);
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--vc-transition-slow);
}

.vc-modal.active .vc-modal__container {
    transform: scale(1) translateY(0);
}

/* ==================== LEFT: IMAGE PREVIEW ==================== */

.vc-modal__left {
    flex: 0 0 50%;
    background: linear-gradient(180deg, var(--vc-gray-50) 0%, var(--vc-gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.vc-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-preview__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--vc-radius-lg);
    box-shadow: var(--vc-shadow-xl);
}

.vc-preview__markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Zone Markers - Big and prominent */
.vc-marker {
    position: absolute;
    z-index: 5;
}

.vc-marker__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
    color: var(--vc-white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 0 0 6px rgba(255,255,255,0.9);
    transition: var(--vc-transition);
    animation: vcMarkerPulse 2s ease-in-out infinite;
}

@keyframes vcMarkerPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 0 0 6px rgba(255,255,255,0.9); }
    50% { box-shadow: 0 8px 40px rgba(99, 102, 241, 0.6), 0 0 0 10px rgba(255,255,255,0.7); }
}

.vc-marker__tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--vc-white);
    padding: 12px 18px;
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow-xl);
    white-space: nowrap;
    text-align: center;
    z-index: 10;
}

.vc-marker__tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--vc-white);
}

.vc-marker__tooltip strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-gray-800);
}

.vc-marker__value {
    display: block;
    font-size: 12px;
    color: var(--vc-accent);
    font-weight: 600;
    margin-top: 4px;
}

/* Active marker - visible */
.vc-marker--active .vc-marker__num {
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
}

/* Customization marker */
.vc-marker[data-zone-type="customization"].vc-marker--active .vc-marker__num {
    background: linear-gradient(135deg, var(--vc-customization) 0%, var(--vc-warning) 100%);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4), 0 0 0 6px rgba(255,255,255,0.9);
}

/* ==================== RIGHT: WIZARD ==================== */

.vc-modal__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 90vh;
}

/* Wizard Header */
.vc-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--vc-primary) 0%, var(--vc-primary-light) 100%);
    color: var(--vc-white);
    position: relative;
    overflow: hidden;
}

.vc-wizard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.vc-wizard-header__title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.vc-wizard-header__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--vc-radius-full);
    font-size: 13px;
    font-weight: 500;
    margin-top: 10px;
    backdrop-filter: blur(4px);
}

.vc-wizard-header__price {
    text-align: right;
    position: relative;
    z-index: 1;
}

.vc-wizard-header__price-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.vc-wizard-header__price-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: var(--vc-transition);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.vc-wizard-header__price-value.vc-price--updating {
    opacity: 0.5;
}

.vc-wizard-header__price-value.vc-price--changed {
    animation: vcPriceChange 0.5s ease;
}

@keyframes vcPriceChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--vc-success-light); }
    100% { transform: scale(1); }
}

/* Progress Bar */
.vc-progress {
    display: flex;
    gap: 8px;
    padding: 16px 28px;
    background: var(--vc-gray-50);
    border-bottom: 1px solid var(--vc-gray-200);
    overflow-x: auto;
    scrollbar-width: none;
}

.vc-progress::-webkit-scrollbar {
    display: none;
}

.vc-progress__step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--vc-white);
    border: 2px solid var(--vc-gray-200);
    border-radius: var(--vc-radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--vc-gray-500);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--vc-transition);
    flex-shrink: 0;
}

.vc-progress__step:hover {
    border-color: var(--vc-gray-300);
    color: var(--vc-gray-700);
}

.vc-progress__step--active {
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
    border-color: var(--vc-accent);
    color: var(--vc-white);
    box-shadow: 0 0 0 4px var(--vc-accent-glow);
}

.vc-progress__step--completed {
    background: var(--vc-success);
    border-color: var(--vc-success);
    color: var(--vc-white);
    box-shadow: 0 0 0 4px var(--vc-success-glow);
}

.vc-progress__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.vc-progress__step--active .vc-progress__num,
.vc-progress__step--completed .vc-progress__num {
    background: rgba(255,255,255,0.2);
}

.vc-progress__label {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Customization step in progress */
.vc-progress__step[data-zone-type="customization"]:not(.vc-progress__step--active):not(.vc-progress__step--completed) {
    border-color: var(--vc-customization);
    border-style: dashed;
    color: var(--vc-customization);
}

.vc-progress__step[data-zone-type="customization"].vc-progress__step--active {
    background: linear-gradient(135deg, var(--vc-customization) 0%, var(--vc-warning) 100%);
    border-color: var(--vc-customization);
    box-shadow: 0 0 0 4px var(--vc-customization-glow);
}

.vc-progress__step[data-zone-type="customization"].vc-progress__step--completed {
    background: var(--vc-customization);
    border-color: var(--vc-customization);
}

/* Steps Container */
.vc-steps {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    scroll-behavior: smooth;
}

/* Step */
.vc-step {
    animation: vcSlideUp 0.4s var(--vc-transition-spring);
}

.vc-step--enter {
    animation: vcSlideUp 0.4s var(--vc-transition-spring);
}

.vc-step--exit {
    animation: vcSlideOut 0.2s ease-out forwards;
}

@keyframes vcSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vcSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.vc-step__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.vc-step__code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--vc-accent-glow);
    color: var(--vc-accent);
    border-radius: var(--vc-radius);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.vc-step[data-zone-type="customization"] .vc-step__code {
    background: var(--vc-customization-glow);
    color: var(--vc-customization);
}

.vc-step__info h4 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--vc-gray-900);
    letter-spacing: -0.02em;
}

.vc-step__info p {
    margin: 0;
    font-size: 14px;
    color: var(--vc-gray-500);
    line-height: 1.5;
}

/* Options Grid */
.vc-options {
    display: grid;
    gap: 12px;
}

.vc-options--grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.vc-options--list {
    grid-template-columns: 1fr;
}

/* Option Card */
.vc-option {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--vc-white);
    border: 2px solid var(--vc-gray-200);
    border-radius: var(--vc-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--vc-transition);
    text-align: left;
    padding: 0;
}

.vc-option:hover:not(.vc-option--disabled) {
    border-color: var(--vc-accent);
    transform: translateY(-3px);
    box-shadow: var(--vc-shadow-lg);
}

.vc-option--selected {
    border-color: var(--vc-success);
    box-shadow: 0 0 0 4px var(--vc-success-glow), var(--vc-shadow);
}

.vc-option--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}

.vc-option__swatch {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--vc-gray-100);
}

.vc-option__name {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vc-gray-800);
    background: var(--vc-gray-50);
    text-align: center;
    line-height: 1.3;
}

.vc-option__ref {
    display: block;
    padding: 0 12px 8px;
    font-size: 10px;
    color: var(--vc-gray-400);
    background: var(--vc-gray-50);
    text-align: center;
}

.vc-option__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: var(--vc-success);
    border-radius: 50%;
    color: var(--vc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--vc-transition-spring);
    box-shadow: var(--vc-shadow);
}

.vc-option--selected .vc-option__check {
    opacity: 1;
    transform: scale(1);
}

.vc-option__check svg {
    width: 14px;
    height: 14px;
}

/* ==================== SUMMARY STEP ==================== */

.vc-step--summary {
    text-align: center;
    padding: 20px 0;
}

.vc-summary-final__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--vc-success) 0%, var(--vc-success-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-white);
    animation: vcSuccessPop 0.5s var(--vc-transition-spring);
    box-shadow: 0 0 0 8px var(--vc-success-glow), var(--vc-shadow-lg);
}

@keyframes vcSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.vc-summary-final__icon svg {
    width: 40px;
    height: 40px;
}

.vc-summary-final h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--vc-gray-900);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.vc-summary-final__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.vc-summary-final__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--vc-gray-50);
    border: 1px solid var(--vc-gray-200);
    border-radius: var(--vc-radius-full);
    font-size: 13px;
}

.vc-summary-final__item-code {
    font-weight: 700;
    color: var(--vc-accent);
}

.vc-summary-final__item-value {
    color: var(--vc-gray-700);
    font-weight: 500;
}

.vc-summary-final__price {
    margin-bottom: 16px;
}

.vc-summary-final__price-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vc-gray-500);
    margin-bottom: 6px;
}

.vc-summary-final__price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--vc-accent);
    letter-spacing: -0.02em;
}

.vc-summary-final__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--vc-radius-full);
    font-size: 14px;
    font-weight: 600;
}

.vc-summary-final__stock--available {
    color: var(--vc-success);
    background: var(--vc-success-glow);
}

.vc-summary-final__stock--unavailable {
    color: var(--vc-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== NAVIGATION ==================== */

.vc-nav {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    background: var(--vc-white);
    border-top: 1px solid var(--vc-gray-200);
}

.vc-nav__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--vc-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vc-transition);
    position: relative;
    overflow: hidden;
}

.vc-nav__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.vc-nav__btn--prev {
    flex: 0 0 auto;
    background: var(--vc-gray-100);
    color: var(--vc-gray-700);
}

.vc-nav__btn--prev:hover:not(:disabled) {
    background: var(--vc-gray-200);
}

.vc-nav__btn--next {
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
    color: var(--vc-white);
    box-shadow: var(--vc-shadow);
}

.vc-nav__btn--next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.vc-nav__btn--next:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.vc-nav__btn--next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--vc-shadow-lg);
}

.vc-nav__btn--cart {
    background: linear-gradient(135deg, var(--vc-success) 0%, var(--vc-success-light) 100%);
    color: var(--vc-white);
    box-shadow: var(--vc-shadow);
}

.vc-nav__btn--cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--vc-shadow-lg), 0 0 0 4px var(--vc-success-glow);
}

.vc-nav__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== CATALOG MODAL ==================== */

.vc-catalog-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--vc-transition);
    padding: 20px;
}

.vc-catalog-modal--active {
    opacity: 1;
    visibility: visible;
}

.vc-catalog-modal__content {
    background: var(--vc-white);
    border-radius: var(--vc-radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--vc-shadow-2xl);
    transform: scale(0.9) translateY(20px);
    transition: var(--vc-transition);
}

.vc-catalog-modal--active .vc-catalog-modal__content {
    transform: scale(1) translateY(0);
}

.vc-catalog-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vc-gray-200);
}

.vc-catalog-modal__header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--vc-gray-900);
}

.vc-catalog-modal__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vc-gray-100);
    border: none;
    border-radius: var(--vc-radius);
    cursor: pointer;
    color: var(--vc-gray-500);
    transition: var(--vc-transition);
}

.vc-catalog-modal__close:hover {
    background: var(--vc-gray-200);
    color: var(--vc-gray-700);
}

.vc-catalog-modal__close svg {
    width: 20px;
    height: 20px;
}

.vc-catalog-modal__subtitle {
    padding: 18px 24px 0;
    margin: 0;
    font-size: 14px;
    color: var(--vc-gray-500);
}

.vc-catalog-options {
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.vc-catalog-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--vc-white);
    border: 2px solid var(--vc-gray-200);
    border-radius: var(--vc-radius);
    cursor: pointer;
    transition: var(--vc-transition);
    position: relative;
}

.vc-catalog-option:hover {
    border-color: var(--vc-accent);
    background: var(--vc-accent-glow);
}

.vc-catalog-option--selected {
    border-color: var(--vc-accent);
    background: var(--vc-accent-glow);
    box-shadow: 0 0 0 4px var(--vc-accent-glow);
}

.vc-catalog-option__preview {
    width: 60px;
    height: 60px;
    border-radius: var(--vc-radius-sm);
    background-color: var(--vc-gray-200);
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    border: 1px solid var(--vc-gray-300);
}

.vc-catalog-option__name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vc-gray-800);
    text-align: center;
}

.vc-catalog-option__ref {
    display: block;
    font-size: 10px;
    color: var(--vc-gray-400);
    margin-top: 2px;
}

.vc-catalog-option__check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--vc-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--vc-transition-spring);
    box-shadow: var(--vc-shadow);
}

.vc-catalog-option--selected .vc-catalog-option__check {
    opacity: 1;
    transform: scale(1);
}

.vc-catalog-option__check svg {
    width: 12px;
    height: 12px;
    color: var(--vc-white);
}

.vc-catalog-modal__footer {
    padding: 18px 24px;
    border-top: 1px solid var(--vc-gray-200);
}

.vc-catalog-modal__btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--vc-accent) 0%, var(--vc-accent-dark) 100%);
    color: var(--vc-white);
    border: none;
    border-radius: var(--vc-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vc-transition);
    box-shadow: var(--vc-shadow);
}

.vc-catalog-modal__btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--vc-shadow-lg);
}

.vc-catalog-modal__btn:disabled {
    background: var(--vc-gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== LOADING ==================== */

.vc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.vc-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--vc-gray-200);
    border-top-color: var(--vc-accent);
    border-radius: 50%;
    animation: vcSpin 0.8s linear infinite;
}

@keyframes vcSpin {
    to { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .vc-modal__container {
        flex-direction: column;
        max-height: 95vh;
    }

    .vc-modal__left {
        flex: 0 0 auto;
        min-height: 200px;
        max-height: 30vh;
    }

    .vc-modal__right {
        flex: 1;
        min-height: 0;
    }

    .vc-wizard-header {
        padding: 16px 20px;
    }

    .vc-wizard-header__title h3 {
        font-size: 16px;
    }

    .vc-wizard-header__price-value {
        font-size: 20px;
    }

    .vc-progress {
        padding: 12px 16px;
    }

    .vc-progress__step {
        padding: 8px 12px;
        font-size: 12px;
    }

    .vc-steps {
        padding: 20px;
    }

    .vc-step__info h4 {
        font-size: 18px;
    }

    .vc-options--grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .vc-nav {
        padding: 16px 20px;
    }

    .vc-nav__btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    .vc-modal__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .vc-modal {
        padding: 10px;
    }

    .vc-modal__left {
        min-height: 150px;
        max-height: 25vh;
    }

    .vc-marker__num {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .vc-step__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vc-step__code {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ==================== HIDE ORIGINAL ==================== */

.product-variants.vc-hidden-original {
    display: none !important;
}

/* Hide original add to cart when wizard is active */
body.vc-wizard-active .product-add-to-cart .add-to-cart,
body.vc-wizard-active .product-add-to-cart .add,
body.vc-wizard-active .add-to-cart-or-refresh .add-to-cart {
    display: none !important;
}

/* Only show current step marker */
.vc-marker {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
    transition: var(--vc-transition-spring);
}

.vc-marker--active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
