/**
 * SWITCH Configurator Styles
 */

/* Variables */
:root {
    /* Colors */
    --switch-primary: #C9A961;
    --switch-primary-dark: #B8954D;
    --switch-secondary: #1A2A3A;
    --switch-background: #FAF8F5;
    --switch-card-bg: #FFFFFF;
    --switch-border: #E8E4E0;
    --switch-text: #1A2A3A;
    --switch-text-muted: #6B7280;
    --switch-success: #4A7C59;
    --switch-error: #9B2C2C;
    --switch-discount: #4A7C59;

    /* Typography */
    --switch-font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --switch-heading-font: 'Cormorant Garamond', Georgia, serif;

    /* Layout */
    --switch-radius: 8px;
    --switch-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --switch-transition: all 0.2s ease;
    --switch-grid-columns: repeat(3, 1fr);
}

/* Container */
.switch-configurator {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: var(--switch-text);
}

/* Progress Bar */
.switch-progress {
    margin-bottom: 40px;
}

.switch-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.switch-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.switch-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--switch-border);
    color: var(--switch-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--switch-transition);
}

.switch-step.active .switch-step-number {
    background: var(--switch-primary);
    color: white;
}

.switch-step.completed .switch-step-number {
    background: var(--switch-success);
    color: white;
}

.switch-step-label {
    font-size: 14px;
    color: var(--switch-text-muted);
}

.switch-step.active .switch-step-label {
    color: var(--switch-text);
    font-weight: 500;
}

.switch-step-line {
    width: 100px;
    height: 2px;
    background: var(--switch-border);
    margin: 0 10px;
    margin-bottom: 28px;
}

/* Mood/Set Cards */
.switch-mood-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.switch-mood-card {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.switch-mood-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(201, 169, 97, 0.25);
}

.switch-mood-card.active {
    border: 2px solid var(--switch-primary);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.switch-mood-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.switch-mood-card[data-set="signature"] .switch-mood-bg {
    background-image: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Placeholder gradient */
}

.switch-mood-card[data-set="essence"] .switch-mood-bg {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    /* Placeholder gradient */
}

.switch-mood-card:hover .switch-mood-bg {
    transform: scale(1.1);
}

.switch-mood-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    min-width: 160px;
    transition: all 0.3s ease;
}

.switch-mood-card:hover .switch-mood-content {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.switch-mood-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--switch-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.switch-mood-content p {
    margin: 0;
    font-size: 14px;
    color: var(--switch-text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .switch-mood-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .switch-mood-card {
        height: 160px;
    }
}

/* Panels */
.switch-panel {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.switch-panel-main {
    flex: 1;
    min-width: 0;
    /* Important for flex children */
    width: 100%;
}

.switch-panel-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* Titles */
.switch-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
}

.switch-desc {
    color: var(--switch-text-muted);
    margin-bottom: 30px;
}

.switch-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 15px;
}

/* Family Cards */
.switch-families {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

/* Base Type Slider */
.switch-base-types-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.switch-base-types-slider {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
}

.switch-base-types-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.switch-base-types {
    display: flex;
    gap: 10px;
    padding: 2px;
    /* Space for focus outline */
    width: max-content;
}

.switch-sidebar-box {
    background: white;
    padding: 30px;
    border-radius: var(--switch-radius);
    border: 1px solid var(--switch-border);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 40px;
}

.switch-selected-base-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.switch-selected-base-item {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start !important;
    gap: 15px;
}

.switch-selected-base-item>img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Desktop: Larger images in Step 1 summary */
@media (min-width: 992px) {
    .switch-selected-base-item>img {
        width: 150px !important;
        height: 150px !important;
    }
}

.switch-selected-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--switch-text-muted);
    max-width: 800px;
    border-top: 1px solid var(--switch-border);
    padding-top: 15px;
    flex: 1;
    /* Zabrat zbylý prostor */
}

.switch-selected-description p {
    margin-bottom: 10px;
}

.switch-selected-description p:last-child {
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .switch-selected-base-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        /* Větší mezera */
    }

    .switch-selected-base-item {
        min-width: 280px;
        /* Minimální šířka pro detaily */
        max-width: 350px;
        /* Maximální šířka */
        flex-shrink: 0;
    }

    .switch-selected-description {
        border-top: none;
        padding-top: 0;
        border-left: 1px solid var(--switch-border);
        padding-left: 20px;
        max-width: none;
        /* Zabrat zbylý prostor */
        flex: 1;
    }
}

.switch-slider-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--switch-border);
    background: white;
    color: var(--switch-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--switch-transition);
    font-size: 18px;
    line-height: 1;
    padding-bottom: 2px;
    flex-shrink: 0;
}

.switch-slider-arrow:hover {
    border-color: var(--switch-primary);
    color: var(--switch-primary);
}

.switch-slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: var(--switch-border);
    color: var(--switch-text-muted);
}

.switch-type-btn {
    padding: 10px 20px;
    border: 2px solid var(--switch-border);
    border-radius: var(--switch-radius);
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: var(--switch-transition);
    white-space: nowrap;
}

.switch-type-btn:hover {
    border-color: var(--switch-primary);
}

.switch-type-btn.active {
    border-color: var(--switch-primary);
    background: var(--switch-primary);
    color: white;
}

/* Base Cards - Carousel */
.switch-bases-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.switch-bases-carousel {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.switch-bases-carousel::-webkit-scrollbar {
    display: none;
}

.switch-bases {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    width: max-content;
    min-width: 100%;
}

.switch-bases .switch-base-card {
    width: 320px;
    flex-shrink: 0;
}

.switch-carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--switch-border);
    background: white;
    color: var(--switch-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.switch-carousel-arrow:hover:not(:disabled) {
    border-color: var(--switch-primary);
    background: var(--switch-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.switch-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    border-color: var(--switch-border);
    color: var(--switch-text-muted);
}

.switch-base-card {
    background: var(--switch-card-bg);
    border: 1px solid var(--switch-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.switch-base-card:hover {
    border-color: var(--switch-primary);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.15);
    transform: translateY(-4px);
}

.switch-base-card.selected {
    border-color: var(--switch-primary);
    border-width: 2px;
    box-shadow: 0 8px 32px rgba(201, 169, 97, 0.25);
}

.switch-base-card.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch-base-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--switch-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.switch-base-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.switch-base-card:hover .switch-base-image {
    transform: scale(1.05);
}

.switch-base-info {
    padding: 24px;
}

.switch-base-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--switch-text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.switch-base-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
    color: var(--switch-text);
}

.switch-base-meta {
    font-size: 14px;
    color: var(--switch-text-muted);
    margin-bottom: 12px;
}

.switch-base-price {
    font-weight: 700;
    color: var(--switch-primary);
    font-size: 20px;
}

.switch-base-stock {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--switch-error);
    color: white;
    text-align: center;
    padding: 4px;
    font-size: 12px;
}

/* Set Tags */
.switch-set-tag {
    display: inline-block;
    background: rgba(201, 169, 97, 0.15);
    color: var(--switch-primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Set Info Banner */
.switch-set-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--switch-radius);
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.switch-set-badge {
    background: var(--switch-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Other Set PINs Section */
.switch-pins-other {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed var(--switch-border);
}

.switch-other-title {
    font-size: 16px;
    color: var(--switch-text-muted);
    margin-bottom: 5px;
}

.switch-other-desc {
    font-size: 13px;
    color: var(--switch-text-muted);
    margin-bottom: 15px;
}

.switch-pin-card.other-set {
    opacity: 0.7;
}

.switch-pin-card.other-set:hover {
    opacity: 1;
}

/* Selected Base Item */
/* S.switch-selected-item {
    margin-bottom: 0;
    flex: 1;
} */

.switch-selected-base-item {
    display: flex;
    align-items: flex-start;
    /* Nahoře zarovnat */
    gap: 15px;
    flex-shrink: 0;
}

.switch-selected-base-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.switch-selected-base-item>div {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.switch-selected-base-item>div>strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--switch-text);
    line-height: 1.3;
}

.switch-selected-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--switch-text-muted);
    letter-spacing: 0.5px;
}

.switch-selected-meta {
    font-size: 13px;
    color: var(--switch-text-muted);
}

.switch-selected-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--switch-primary-dark);
}

.switch-selected-actions {
    margin-top: 8px;
}

.switch-selected-actions small {
    line-height: 1.4;
    display: block;
    color: #666;
}

/* Filters for bases */
.switch-filters-base {
    margin-bottom: 20px;
}

/* Final Item Type */
.switch-final-item-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--switch-text-muted);
    margin-bottom: 2px;
}

.switch-family-card {
    background: var(--switch-card-bg);
    border: 2px solid var(--switch-border);
    border-radius: var(--switch-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--switch-transition);
}

.switch-family-card:hover {
    border-color: var(--switch-primary);
}

.switch-family-card.selected {
    border-color: var(--switch-primary);
    background: linear-gradient(to bottom, rgba(201, 169, 97, 0.05), transparent);
}

.switch-family-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
}

.switch-family-count {
    font-size: 13px;
    color: var(--switch-text-muted);
}

/* Ring Cards */
.switch-variants {
    display: grid !important;
    grid-template-columns: var(--switch-grid-columns) !important;
    gap: 20px;
}

.switch-ring-card {
    background: var(--switch-card-bg);
    border: 2px solid var(--switch-border);
    border-radius: var(--switch-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--switch-transition);
}

.switch-ring-card:hover {
    border-color: var(--switch-primary);
    box-shadow: var(--switch-shadow);
}

.switch-ring-card.selected {
    border-color: var(--switch-primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.switch-ring-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.switch-ring-info {
    padding: 15px;
}

.switch-ring-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.switch-ring-metal {
    font-size: 13px;
    color: var(--switch-text-muted);
    margin-bottom: 8px;
}

.switch-ring-price {
    font-weight: 600;
    color: var(--switch-primary);
}

/* PIN Cards - Carousel */
.switch-pins-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.switch-pins-carousel {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.switch-pins-carousel::-webkit-scrollbar {
    display: none;
}

.switch-pins {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 25px;
    width: max-content;
}

.switch-pins .switch-pin-card {
    width: 280px;
    flex-shrink: 0;
}

.switch-pin-card {
    background: var(--switch-card-bg);
    border: 1px solid var(--switch-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.switch-pin-card:hover {
    border-color: var(--switch-primary);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.15);
    transform: translateY(-4px);
}

.switch-pin-card.selected {
    border-color: var(--switch-primary);
    border-width: 2px;
    box-shadow: 0 8px 32px rgba(201, 169, 97, 0.25);
}

.switch-pin-card.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch-pin-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: var(--switch-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.switch-pin-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.switch-pin-card:hover .switch-pin-image {
    transform: scale(1.05);
}

.switch-pin-info {
    padding: 18px;
}

.switch-pin-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--switch-text);
}

.switch-pin-meta {
    font-size: 13px;
    color: var(--switch-text-muted);
    margin-bottom: 8px;
}

.switch-pin-price {
    font-weight: 700;
    color: var(--switch-primary);
    font-size: 18px;
}

.switch-pin-stock {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    background: var(--switch-error);
    color: white;
    text-align: center;
    padding: 4px;
    font-size: 12px;
}

/* Sidebar */
.switch-sidebar-box {
    background: var(--switch-card-bg);
    border: 1px solid var(--switch-border);
    border-radius: var(--switch-radius);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.switch-sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--switch-border);
}

/* ============================================
   COLLAPSIBLE SIDEBAR
   ============================================ */

.switch-collapsible {
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Stav: Skrytý (před výběrem) */
.switch-collapsible[data-state="hidden"] {
    padding: 0;
    border: none;
    background: transparent;
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Stav: Sbalený */
.switch-collapsible[data-state="collapsed"] {
    padding: 15px 20px;
}

.switch-collapsible[data-state="collapsed"] .switch-collapsible-content {
    display: none;
}

.switch-collapsible[data-state="collapsed"] .switch-collapsible-header .switch-collapsible-title h4 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Stav: Rozbalený */
.switch-collapsible[data-state="expanded"] {
    padding: 25px;
}

.switch-collapsible[data-state="expanded"] .switch-collapsible-content {
    display: block;
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.switch-collapsible[data-state="expanded"] .switch-collapsible-icon {
    transform: rotate(90deg);
}

.switch-collapsible[data-state="expanded"] .switch-collapsible-summary {
    display: none;
}

/* Header */
.switch-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 15px;
    flex-wrap: wrap;
}

.switch-collapsible-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.switch-collapsible-title h4 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

.switch-collapsible-icon {
    font-size: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: var(--switch-primary) !important;
    background: rgba(201, 169, 97, 0.1) !important;
    border-radius: 50%;
}

.switch-collapsible-icon svg {
    width: 10px;
    height: 10px;
    display: block;
    fill: currentColor;
}

/* Mini Summary v headeru (zobrazí se jen když collapsed) */
.switch-collapsible-summary {
    display: none;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.switch-collapsible[data-state="collapsed"] .switch-collapsible-summary {
    display: flex;
}

.switch-collapsible-summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--switch-text-muted);
    flex: 1;
    justify-content: flex-end;
}

.switch-collapsible-summary-name {
    font-weight: 600;
    color: var(--switch-text);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switch-collapsible-summary-price {
    font-weight: 600;
    color: var(--switch-primary-dark);
}

.switch-collapsible-summary-hint {
    font-style: italic;
    color: var(--switch-text-muted);
}

.switch-collapsible-summary-pins {
    color: var(--switch-text-muted);
    font-weight: 400;
}

.switch-collapsible-summary-divider {
    color: var(--switch-border);
}

.switch-collapsible-summary .switch-btn-mini {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    flex: 0 0 auto !important;
    /* Přepsat flex: 1 z .switch-btn */
    width: auto !important;
    max-width: fit-content !important;
    white-space: nowrap !important;
}

/* Hint (před výběrem) */
.switch-collapsible-hint {
    font-size: 12px;
    color: var(--switch-text-muted);
    font-style: italic;
}

.switch-collapsible[data-state="expanded"] .switch-collapsible-hint,
.switch-collapsible[data-state="collapsed"] .switch-collapsible-hint {
    display: none;
}

/* Hover efekt */
.switch-collapsible[data-state="collapsed"] .switch-collapsible-header:hover .switch-collapsible-title h4,
.switch-collapsible[data-state="expanded"] .switch-collapsible-header:hover .switch-collapsible-title h4 {
    color: var(--switch-primary);
}

.switch-collapsible[data-state="collapsed"] .switch-collapsible-header:hover .switch-collapsible-icon,
.switch-collapsible[data-state="expanded"] .switch-collapsible-header:hover .switch-collapsible-icon {
    color: var(--switch-primary);
}

/* Animace pro první zobrazení */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        padding: 0 25px;
    }

    to {
        max-height: 500px;
        opacity: 1;
        padding: 25px;
    }
}

.switch-collapsible.animate-in {
    animation: slideDown 0.4s ease forwards;
}

/* Responsive pro collapsible header */
@media (max-width: 768px) {
    .switch-collapsible-header {
        flex-wrap: nowrap;
    }

    .switch-collapsible-summary {
        flex: 0 1 auto;
    }

    .switch-collapsible-summary-name {
        max-width: 100px;
    }

    .switch-collapsible-summary-info {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .switch-collapsible-summary-name {
        display: none;
    }
}

/* Selected Items */
.switch-selected-item,
.switch-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.switch-selected-item img,
.switch-summary-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.switch-selected-ring-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-selected-ring-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--switch-radius);
}

.switch-selected-meta {
    font-size: 13px;
    color: var(--switch-text-muted);
}

.switch-selected-price {
    font-weight: 600;
    color: var(--switch-primary);
    margin-top: 4px;
}

/* Size Selector */
#switch-size-selector {
    margin: 20px 0;
}

#switch-size-selector label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.switch-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--switch-border);
    border-radius: var(--switch-radius);
    font-size: 16px;
    background: white;
}

/* Filters */
.switch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--switch-background);
    border-radius: var(--switch-radius);
}

.switch-filter {
    padding: 8px 12px;
    border: 1px solid var(--switch-border);
    border-radius: var(--switch-radius);
    font-size: 14px;
    background: white;
    min-width: 140px;
}

/* Pricing */
.switch-pricing,
.switch-final-pricing {
    margin: 20px 0;
}

.switch-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.switch-price-row.switch-discount {
    color: var(--switch-discount);
}

.switch-price-row.switch-total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--switch-border);
}

/* Discount Hint */
.switch-discount-hint {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--switch-radius);
    padding: 12px 15px;
    font-size: 13px;
    margin: 15px 0;
}

.switch-discount-badge {
    background: var(--switch-success);
    color: white;
    padding: 10px 15px;
    border-radius: var(--switch-radius);
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
}

/* Buttons */
.switch-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.switch-btn {
    padding: 12px 24px;
    border-radius: var(--switch-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--switch-transition);
    border: none;
    flex: 1;
}

.switch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch-btn-primary {
    background: var(--switch-primary) !important;
    color: white !important;
    border: 1px solid var(--switch-primary) !important;
}

.switch-btn-primary:hover:not(:disabled) {
    background: var(--switch-primary-dark) !important;
    border-color: var(--switch-primary-dark) !important;
}

.switch-btn-secondary {
    background: white;
    color: var(--switch-text);
    border: 1px solid var(--switch-border);
}

.switch-btn-secondary:hover:not(:disabled) {
    border-color: var(--switch-primary);
}

.switch-btn-text {
    background: none;
    color: var(--switch-text-muted);
    padding: 8px 12px;
    flex: none;
}

.switch-btn-text:hover {
    color: var(--switch-text);
}

.switch-btn-cart {
    background: var(--switch-primary);
    font-size: 16px;
}

/* Summary Items */
.switch-summary-pins {
    max-height: 200px;
    overflow-y: auto;
    margin: 15px 0;
}

.switch-remove-pin {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--switch-text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.switch-remove-pin:hover {
    color: var(--switch-error);
}

/* Final Summary (Refined List Style) */
.switch-final-summary {
    background: transparent;
    /* Remove container bg */
    border-radius: 0;
    padding: 0;
}

.switch-final-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    background: transparent;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    border-radius: 0;
}

.switch-final-item:last-child {
    border-bottom: none;
}

.switch-final-item img {
    width: 70px;
    /* Bit smaller than 80 */
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.switch-final-pin img {
    width: 50px;
    height: 50px;
}

.switch-final-item-info {
    flex: 1;
}

.switch-final-item-type {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.switch-final-item-info strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.switch-final-item-price {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-top: 4px;
}

/* Make pins a clean list */
.switch-final-pins {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Items have padding/border-bottom */
    margin-top: 10px;
}

/* Step 3 Metadata */
.switch-final-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.switch-final-meta-tag {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.switch-stock-in {
    font-size: 11px;
    color: #166534;
    font-weight: 500;
}

.switch-stock-out {
    font-size: 11px;
    color: #dc2626;
    font-weight: 500;
}

.switch-stock-custom {
    font-size: 11px;
    color: #d97706;
    /* Amber-600 */
    font-weight: 500;
}

.switch-final-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-left: 2px;
}

/* Discount Badge in Sidebar (Subtle) */
/* Discount Badge in Sidebar (Beige Hint Style) */
.switch-discount-badge {
    margin-top: 15px;
    padding: 10px 14px;
    background: #faf9f5;
    /* Beige */
    color: #444;
    /* Dark Grey */
    border: 1px solid #e5e1d6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal */
.switch-modal {
    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: 9999;
}

.switch-modal-content {
    background: white;
    border-radius: var(--switch-radius);
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.switch-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--switch-text-muted);
}

.switch-modal-icon {
    width: 60px;
    height: 60px;
    background: var(--switch-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.switch-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

/* Loading & Empty States */
.switch-loading,
.switch-empty,
.switch-error {
    text-align: center;
    padding: 40px;
    color: var(--switch-text-muted);
}

.switch-error {
    color: var(--switch-error);
}

/* Obsah zůstává dostupný čtečkám, ale nezabírá místo v layoutu. */
.switch-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Preloader s nadpisem.
   Nadpis kroku žije tady místo nad karuselem - na mobilu by trvale ubíral
   ~85 px svislého místa a tlačil produkt pod okraj obrazovky. */
.switch-loading--intro {
    animation: none !important;
    gap: 18px;
}

.switch-loading__title {
    font-family: var(--switch-heading-font);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--switch-text);
}

.switch-loading__spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--switch-primary);
    border-radius: 50%;
    animation: switch-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .switch-loading__spinner {
        animation-duration: 2.4s;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .switch-panel {
        flex-direction: column;
    }

    .switch-panel-sidebar {
        width: 100%;
    }

    .switch-sidebar-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .switch-configurator {
        padding: 15px;
    }

    .switch-title {
        font-size: 26px;
    }

    .switch-progress-steps {
        gap: 0;
    }

    .switch-step-line {
        width: 50px;
    }

    .switch-step-label {
        font-size: 12px;
    }

    .switch-bases,
    .switch-variants,
    .switch-pins {
        grid-template-columns: 1fr !important;
    }

    .switch-buttons {
        flex-direction: column;
    }

    .switch-base-image {
        height: 250px;
    }

    .switch-pin-image {
        height: 180px;
    }

    .switch-filters {
        flex-direction: column;
    }

    .switch-filter {
        width: 100%;
    }

    .switch-final-pins {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .switch-families,
    .switch-variants,
    .switch-pins {
        grid-template-columns: 1fr;
    }

    .switch-buttons {
        flex-direction: column;
    }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

/* Force full width for configurator in Elementor */
.elementor-widget-switch_configurator {
    width: 100% !important;
    max-width: none !important;
}

.elementor-widget-switch_configurator .switch-configurator {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Ensure panels use full width */
.elementor-widget-switch_configurator .switch-panel {
    width: 100% !important;
    max-width: none !important;
}

.elementor-widget-switch_configurator .switch-panel-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* Force grid layout for product containers */
.elementor-widget-switch_configurator .switch-pins,
.elementor-widget-switch_configurator .switch-bases,
.elementor-widget-switch_configurator .switch-variants {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: none !important;
}

/* Ensure cards don't have width restrictions */
.elementor-widget-switch_configurator .switch-pin-card,
.elementor-widget-switch_configurator .switch-base-card,
.elementor-widget-switch_configurator .switch-ring-card {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    flex-shrink: 0 !important;
}

/* Carousel wrappers */
.elementor-widget-switch_configurator .switch-bases-carousel,
.elementor-widget-switch_configurator .switch-pins-carousel {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Override any Elementor column/flex layouts */
.elementor-widget-switch_configurator .switch-configurator * {
    box-sizing: border-box;
}

/* Force Step 1 Layout */
.switch-panel[data-panel="1"] {
    flex-direction: column !important;
}

.switch-panel[data-panel="1"] .switch-panel-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.switch-panel[data-panel="1"] .switch-sidebar-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 40px;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

/* Show All Toggle */
.switch-show-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.switch-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--switch-text-muted);
    user-select: none;
}

.switch-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--switch-primary);
}

.switch-toggle-text {
    top: 1px;
}

/* Step 1 Selected Base Image Size */
.switch-selected-base-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Step 2 Summary Base Item Specifics */
.switch-summary-base-item img {
    width: 200px !important;
    height: 200px !important;
}

/* Desktop: Larger images in Step 1 summary */
@media (min-width: 992px) {
    .switch-selected-base-item img {
        width: 200px;
        height: 200px;
    }
}

.switch-summary-base-item {
    background: transparent !important;
    padding: 0 !important;
    flex: 0 0 auto;
    /* Don't shrink */
    min-width: 200px;
    /* Ensure space for name */
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px;
}

.switch-summary-base-item div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* PINs Section in Summary */
.switch-summary-pins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--switch-border);
    /* Separator */
    width: 100%;
}

.switch-panel[data-panel="2"] {
    flex-direction: column !important;
}

.switch-panel[data-panel="2"] .switch-panel-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.switch-panel[data-panel="2"] .switch-sidebar-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 40px;
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: block;
    /* Override flex from Step 1 if reused, or use block for internal structure */
}

/* Summary Styles for Full Width */
.switch-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.switch-summary-items-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.switch-summary-totals {
    flex: 0 0 350px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--switch-border);
    padding-left: 30px;
}

.switch-summary-pins {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.switch-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--switch-background);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

/* Base Image - Larger */
.switch-summary-base .switch-summary-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.switch-summary-base .switch-summary-item {
    background: transparent;
    /* Remove background for base to make it cleaner */
    padding: 0;
}

/* PIN Images - Small */
.switch-summary-pins .switch-summary-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .switch-summary-content {
        flex-direction: column;
    }

    .switch-summary-totals {
        flex: auto;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--switch-border);
        padding-top: 20px;
    }
}

/* Filter Toggle - Visible Everywhere */
.switch-filters-toggle {
    display: flex !important;
    width: 100%;
    padding: 15px;
    background: white;
    border: 1px solid var(--switch-border);
    border-radius: var(--switch-radius);
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.switch-filters-toggle .switch-arrow {
    transition: transform 0.3s ease;
}

.switch-filters-toggle.active .switch-arrow {
    transform: rotate(180deg);
}

/* Filters Container - Hidden by Default Everywhere */
.switch-filters {
    display: none !important;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--switch-background);
    border-radius: var(--switch-radius);
}

/* Active State - Visible */
.switch-filters.active {
    display: flex !important;
}

/* Desktop Layout (Expanded) */
@media (min-width: 769px) {
    .switch-filters.active {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .switch-filter {
        width: auto !important;
        min-width: 140px !important;
        flex: 0 1 auto !important;
        margin-bottom: 0 !important;
    }
}

/* Stock Status */
.switch-stock-status {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.switch-stock-status.instock {
    color: #27ae60;
    /* Green */
}

.switch-stock-status.onbackorder {
    color: #f39c12;
    /* Orange */
}

.switch-stock-status.outofstock {
    color: #c0392b;
    /* Red */
}

/* PIN Summary Info */
.switch-summary-pin-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.switch-summary-pin-info .switch-stock-status {
    font-size: 11px;
}

/* Product Card Motto */
.switch-base-motto {
    font-size: 12px;
    color: var(--switch-text-muted);
    font-style: italic;
    margin: 4px 0;
    line-height: 1.3;
}

/* PIN Card Motto */
.switch-pin-motto {
    font-size: 11px;
    color: var(--switch-text-muted);
    font-style: italic;
    margin: 3px 0;
    line-height: 1.3;
}

/* Mobile Layout (Expanded) */
@media (max-width: 768px) {
    .switch-filters.active {
        flex-direction: column !important;
    }

    .switch-filter {
        width: 100%;
    }
}

/* Product Card Overlay Design */
.switch-product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--switch-radius);
    background: var(--switch-background);
    aspect-ratio: 1 / 1;
    /* Square aspect ratio */
}

.switch-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image fills container */
    object-position: center;
}

.switch-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Badge nahoře, name dole díky margin-top: auto */
    padding: 12px;
    pointer-events: none;
}

.switch-product-badge {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.95);
    color: var(--switch-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.switch-product-name-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 20px 12px 12px;
    margin: 0 -12px -12px;
    margin-top: auto !important;
    /* Vždy dole, i když badge není viditelný */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Adjust card info section */
.switch-base-info,
.switch-pin-info {
    padding-top: 12px;
}

/* Remove old name/type styles that are now in overlay */
.switch-base-type,
.switch-base-name,
.switch-pin-name {
    display: none;
}

/* Reset Button */
.switch-btn-reset {
    color: var(--switch-text-muted);
    font-size: 13px;
    margin-right: auto;
    /* Push other buttons to right */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.switch-btn-reset:hover {
    color: var(--switch-error);
    text-decoration: underline;
}

.switch-buttons-step1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Update Step 2 buttons layout */
.switch-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Make reset button order first visually but keep DOM order */
#switch-reset-step2 {
    order: -1;
    margin-right: auto;
}

/**
 * SWITCH Configurator - Filter Bar + Image Fix
 * Version 1.3.2 - FORCE INLINE LAYOUT
 * 
 * DŮLEŽITÉ: Tento CSS přidejte NA KONEC configurator.css
 * nebo použijte jako samostatný soubor NAČTENÝ PO hlavním CSS
 */

/* ============================================
   RESET STARÝCH FILTER STYLŮ
   ============================================ */

/* Skrýt staré toggle tlačítko */
.switch-filters-toggle {
    display: none !important;
}

/* Skrýt staré filtry container */
.switch-filters-container>.switch-filters {
    display: none !important;
}

/* ============================================
   FILTER BAR - NOVÝ DESIGN
   ============================================ */

.switch-filter-bar {
    display: block !important;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3ef 100%) !important;
    border: 1px solid var(--switch-border) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin-bottom: 24px !important;
}

/* PRIMARY ROW - VŽDY INLINE NA PC! */
.switch-filter-bar__primary {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

.switch-filter-bar__filters {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
}

/* FILTER SELECT - Kompaktní inline */
.switch-filter-bar .switch-filter,
.switch-filter-bar__filters .switch-filter,
.switch-filter-bar__primary .switch-filter,
.switch-filter-bar select.switch-filter {
    display: inline-block !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 180px !important;
    padding: 10px 36px 10px 14px !important;
    border: 1px solid var(--switch-border) !important;
    border-radius: 8px !important;
    background-color: white !important;
    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 fill='%236B7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--switch-text) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    flex-shrink: 1 !important;
    flex-grow: 0 !important;
}

.switch-filter-bar .switch-filter:hover {
    border-color: var(--switch-primary) !important;
}

.switch-filter-bar .switch-filter:focus {
    outline: none !important;
    border-color: var(--switch-primary) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15) !important;
}

.switch-filter-bar .switch-filter.has-value {
    border-color: var(--switch-primary) !important;
    background-color: rgba(201, 169, 97, 0.08) !important;
}

/* EXPAND BUTTON */
.switch-filter-bar__expand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, var(--switch-primary) 0%, var(--switch-primary-dark) 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.switch-filter-bar__expand:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4) !important;
}

.switch-filter-bar__expand[aria-expanded="true"] {
    background: var(--switch-secondary) !important;
}

.switch-filter-bar__wand {
    font-size: 16px !important;
    transition: transform 0.3s ease !important;
}

.switch-filter-bar__expand:hover .switch-filter-bar__wand {
    transform: rotate(15deg) scale(1.1) !important;
}

/* SECONDARY ROW */
.switch-filter-bar__secondary {
    display: none;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px dashed var(--switch-border) !important;
    animation: filterSlide 0.25s ease !important;
}

/* .switch-filter-bar__secondary[hidden] {
    display: none !important;
} */

@keyframes filterSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switch-filter-bar__secondary-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--switch-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.switch-filter-bar__close {
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #999 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: 8px !important;
}

.switch-filter-bar__close:hover {
    background: #e0e0e0 !important;
    color: #666 !important;
}

.switch-filter-bar__secondary-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 12px !important;
}

.switch-filter-bar__placeholder {
    color: var(--switch-text-muted) !important;
    font-size: 13px !important;
    font-style: italic !important;
}

.switch-filter-bar__actions {
    display: flex !important;
    justify-content: flex-end !important;
}

.switch-filter-bar__actions .switch-btn-text {
    color: var(--switch-text-muted) !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.switch-filter-bar__actions .switch-btn-text:hover {
    color: var(--switch-error) !important;
}

/* ACTIVE BADGES */
.switch-filter-bar__active {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.switch-filter-bar__active:empty {
    display: none !important;
}

.switch-filter-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 12px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.switch-filter-badge:hover {
    border-color: #ccc !important;
    background: #fafafa !important;
}

.switch-filter-badge__remove {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #888 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

.switch-filter-badge__remove:hover {
    background: #e74c3c !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* ============================================
   FILTER BAR - SECONDARY FILTERS VISIBILITY
   ============================================ */

/* Výchozí stav - skryto */
.switch-filter-bar__secondary {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Když je otevřeno (přes JS class .is-expanded) */
.switch-filter-bar__secondary.is-expanded {
    display: block !important;
}

/* ============================================
   OPRAVA OBRÁZKŮ - JEDNOTNÁ VELIKOST
   ============================================ */

/* Wrapper pro obrázek - PEVNÁ VÝŠKA */
.switch-product-image-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    border-radius: var(--switch-radius) !important;
}

/* Obrázek uvnitř wrapperu - vyplní celý prostor */
.switch-product-image-wrapper img,
.switch-product-image-wrapper .switch-base-image,
.switch-product-image-wrapper .switch-pin-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Overlay - správná pozice */
.switch-product-image-wrapper .switch-product-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
}

/* Fallback pro starý .switch-base-image bez wrapperu */
.switch-base-card>.switch-base-image {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Karty - jednotná šířka */
.switch-bases .switch-base-card,
.switch-pins .switch-pin-card {
    width: 300px !important;
    flex-shrink: 0 !important;
}

/* ============================================
   KRÁTKÝ POPIS (MOTTO) - ZALAMOVÁNÍ TEXTU
   ============================================ */

.switch-base-motto,
.switch-pin-motto {
    font-size: 12px !important;
    color: var(--switch-text-muted) !important;
    font-style: italic !important;
    line-height: 1.4 !important;
    margin: 6px 0 !important;

    /* Zalamování textu */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;

    /* Omezení na 2 řádky */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 2.8em !important;
}

/* ============================================
   NÁZEV PRODUKTU - OVERLAY
   ============================================ */

.switch-product-name-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4), transparent) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    padding: 20px 12px 12px !important;
    margin: 0 -12px -12px !important;
}

/* Varianta BEZ stínu - přidej třídu .no-text-shadow na wrapper */
.switch-product-name-overlay.no-shadow,
.no-text-shadow .switch-product-name-overlay {
    text-shadow: none !important;
}

/* Výchozí stín */
.switch-product-name-overlay {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .switch-filter-bar__primary {
        justify-content: flex-start !important;
    }

    .switch-filter-bar__filters {
        flex: 0 1 auto !important;
        /* Neroztahovat - zabránit prázdnému prostoru */
    }

    .switch-filter-bar__expand-text {
        display: none !important;
    }

    .switch-filter-bar__expand {
        padding: 10px 14px !important;
        margin-left: auto !important;
        /* Tlačítko vpravo */
    }

    .switch-filter-bar .switch-filter {
        min-width: 110px !important;
        font-size: 13px !important;
        padding: 8px 32px 8px 12px !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Nadpisy kroků 1 a 2 se na mobilu nezobrazují - text nese preloader
       a popisek u proužku postupu. Uvolní to ~85 px pro produkt.
       Krok 3 (souhrn) nadpis nechává, tam žádný preloader není. */
    .switch-panel[data-panel="1"] .switch-title,
    .switch-panel[data-panel="2"] .switch-title {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .switch-loading__title {
        font-size: 26px;
    }

    .switch-filter-bar {
        padding: 12px !important;
    }

    /* Filtr zůstává na JEDNOM řádku i na mobilu.
       Zalomení do tří pater vytlačí karusel se základy pod okraj obrazovky,
       a produkt musí být vidět hned. Místo zalomení se prvky zmenší
       a tlačítko se zkrátí na ikonu (stejně jako na tabletu výše). */
    .switch-filter-bar__primary {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .switch-filter-bar__filters {
        flex: 1 1 auto !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* min-width: 0 je klíčové - bez něj se flex item nesmrskne pod obsah
       a řádek přeteče (to byla původní příčina oříznutého tlačítka) */
    .switch-filter-bar .switch-filter {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        font-size: 13px !important;
        padding: 9px 26px 9px 12px !important;
        background-position: right 8px center !important;
    }

    .switch-filter-bar__expand {
        flex: 0 0 auto !important;
        width: auto !important;
        justify-content: center !important;
        padding: 9px 13px !important;
        margin: 0 !important;
    }

    /* Na úzkém displeji se text nevejde - zůstane jen ✨ */
    .switch-filter-bar__expand-text {
        display: none !important;
    }

    /* Odznak uživatele by řádek rozbil - na mobilu ho z filtru schováme,
       zobrazuje se i jinde */
    .switch-filter-bar__primary .switch-user-badge {
        display: none !important;
    }

    .switch-filter-bar__secondary-content {
        flex-wrap: wrap !important;
    }

    .switch-filter-bar__secondary-content .switch-filter {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: none !important;
    }

    /* ============================================
       MOBILE CAROUSEL - FLOATING ARROWS
       ============================================ */

    /* Wrapper - zachovat flex, přidat position relative */
    .switch-bases-wrapper,
    .switch-pins-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 -15px !important;
        width: calc(100% + 30px) !important;
    }

    /* Carousel na celou šířku */
    .switch-bases-carousel,
    .switch-pins-carousel {
        width: 100% !important;
        padding: 10px 15px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Kontejner karet */
    .switch-bases,
    .switch-pins {
        gap: 15px !important;
        width: max-content !important;
    }

    /* Karta produktu - celá šířka minus padding */
    .switch-bases .switch-base-card {
        width: calc(100vw - 60px) !important;
        min-width: calc(100vw - 60px) !important;
        max-width: calc(100vw - 60px) !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
    }

    .switch-pins .switch-pin-card {
        width: calc(50vw - 40px) !important;
        min-width: calc(50vw - 40px) !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
    }

    /* Floating šipky */
    .switch-carousel-arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
    }

    /* Levá šipka */
    #switch-bases-prev,
    #switch-pins-prev {
        left: 20px !important;
    }

    /* Pravá šipka */
    #switch-bases-next,
    #switch-pins-next {
        right: 20px !important;
    }

    /* Hover efekt pro touch */
    .switch-carousel-arrow:active {
        background: var(--switch-primary) !important;
        color: white !important;
    }
}

@media (max-width: 480px) {

    /* Přes celou šířku jen v rozbaleném panelu - tam je místa dost.
       Selecty v hlavním řádku musí zůstat vedle sebe, jinak se karusel
       se základy vytlačí pod okraj obrazovky. */
    .switch-filter-bar__secondary-content .switch-filter {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    .switch-filter-bar__primary .switch-filter {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        font-size: 12px !important;
        padding: 8px 22px 8px 10px !important;
    }

    .switch-filter-bar__expand {
        padding: 8px 11px !important;
    }

    /* Menší šipky na malých telefonech */
    .switch-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
}

/* ============================================
   DARK THEME
   ============================================ */

.switch-theme-dark .switch-filter-bar {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border-color: #3a3a3a !important;
}

.switch-theme-dark .switch-filter-bar .switch-filter {
    background-color: #2a2a2a !important;
    border-color: #3a3a3a !important;
    color: #e0e0e0 !important;
}

.switch-theme-dark .switch-filter-bar .switch-filter:hover {
    border-color: var(--switch-primary) !important;
}

.switch-theme-dark .switch-filter-bar__close {
    background: #2a2a2a !important;
    border-color: #3a3a3a !important;
}

.switch-theme-dark .switch-filter-badge {
    background: #2a2a2a !important;
}

.switch-theme-dark .switch-filter-bar__secondary {
    border-top-color: #3a3a3a !important;
}

/**
 * SWITCH Configurator - CSS OPRAVY PRO ELEMENTOR
 * 
 * Tento CSS přidej na KONEC souboru configurator.css
 * 
 * Hlavní změny:
 * - Přidány styly pro karty (předtím byly inline v JS)
 * - Odstraněny !important kde není potřeba (aby Elementor mohl přepsat)
 * - Přidány CSS custom properties pro dynamické hodnoty
 */

/* ============================================
   RESET - Základní styly karet bez !important
   Toto umožní Elementoru přepsat hodnoty
   ============================================ */

/* Produktové karty - základní rozměry */
.switch-base-card,
.switch-pin-card {
    width: 300px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.switch-pin-card {
    width: 280px;
}

/* Image wrapper - pevná výška */
.switch-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f8f8;
}

/* Obrázky - vyplní wrapper */
.switch-product-image-wrapper img,
.switch-product-image-wrapper .switch-base-image,
.switch-product-image-wrapper .switch-pin-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   OVERLAY - Bez !important pro Elementor override
   ============================================ */

.switch-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Badge nahoře, name dole díky margin-top: auto */
    padding: 12px;
    pointer-events: none;
    z-index: 2;
}

/* Název produktu - gradient overlay */
.switch-product-name-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4), transparent);
    background: var(--switch-overlay-gradient, linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4), transparent));
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 20px 12px 12px;
    margin: 0 -12px -12px;
    margin-top: auto !important;
    /* Vždy dole, i když badge není viditelný */
    text-shadow: var(--switch-name-shadow, 0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Badge */
.switch-product-badge {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.95);
    color: var(--switch-text, #333);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* ============================================
   INFO SEKCE - Bez !important
   ============================================ */

.switch-base-info,
.switch-pin-info {
    padding: 12px;
}

/* Krátký popis (motto) */
.switch-base-motto,
.switch-pin-motto {
    font-size: 12px;
    color: var(--switch-text-muted, #888);
    font-style: italic;
    line-height: 1.4;
    margin: 6px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

/* Meta info (materiál, set) */
.switch-base-meta,
.switch-pin-meta {
    font-size: 11px;
    color: var(--switch-text-muted, #666);
    margin: 4px 0;
}

/* Cena */
.switch-base-price,
.switch-pin-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--switch-primary, #C9A961);
    margin-top: 8px;
}

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

@media (max-width: 768px) {

    .switch-base-card,
    .switch-pin-card {
        width: 260px;
    }

    .switch-product-image-wrapper {
        height: 240px;
    }
}

@media (max-width: 480px) {

    .switch-base-card,
    .switch-pin-card {
        width: 240px;
    }

    .switch-product-image-wrapper {
        height: 220px;
    }
}

/* ============================================
   DARK THEME - Bez !important
   ============================================ */

.switch-theme-dark .switch-base-card,
.switch-theme-dark .switch-pin-card {
    background-color: #2a2a2a;
}

.switch-theme-dark .switch-base-price,
.switch-theme-dark .switch-pin-price {
    color: var(--switch-primary, #C9A961);
}

.switch-theme-dark .switch-base-motto,
.switch-theme-dark .switch-pin-motto {
    color: #aaa;
}

.switch-theme-dark .switch-base-meta,
.switch-theme-dark .switch-pin-meta {
    color: #999;
}

/* --- Step 2 Redesign: Visualizer Layout --- */

/* Main Layout Container */
.switch-step2-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .switch-step2-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 50/50 split on desktop */
        gap: 40px;
        align-items: start;
    }

    /* Left Column: Details */
    .switch-step2-details {
        order: 1;
    }

    /* Right Column: Visualizer */
    .switch-step2-visualizer {
        order: 2;
        position: sticky;
        top: 20px;
    }
}

/* Mobile Layout (Stacked with Custom Order) */
@media (max-width: 991px) {
    .switch-step2-layout {
        display: flex;
        flex-direction: column;
    }

    /* Flatten wrappers to allow mixing children order */
    .switch-step2-details,
    .switch-step2-visualizer {
        display: contents;
    }

    /* 1. Title & Description */
    .switch-step2-details .switch-title {
        order: 1;
    }

    .switch-step2-details .switch-desc {
        order: 2;
        margin-bottom: 15px;
    }

    /* 2. Set Info & Filters */
    .switch-step2-details .switch-set-info {
        order: 3;
    }

    .switch-step2-details .switch-filter-bar {
        order: 4;
    }

    /* 3. Visualizer (Ring + Carousel) */
    .switch-visualizer-container {
        order: 5;
        margin-bottom: 24px;
        /* Ensure spacing after visualizer */
    }

    /* 4. Selected PIN Details */
    .switch-pin-details-container {
        order: 6;
    }

    /* 5. Summary & Buttons */
    .switch-sidebar-box[data-step="2"] {
        order: 7;
    }
}

/* --- Visualizer Component --- */
.switch-visualizer-container {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 20px;
}


/* Fullscreen Mode - Main styles are in configurator-step2.css */

.switch-visualizer-stage {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* 1:1 Aspect Ratio */
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.switch-visualizer-bg,
.switch-visualizer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.switch-visualizer-bg {
    z-index: 1;
}

.switch-visualizer-overlay {
    z-index: 2;
    /* Transform will be applied via JS */
}

/* --- Visualizer Carousel --- */
.switch-visualizer-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.switch-visualizer-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 80px;
    /* Adjust based on thumbnail size */
}

.switch-vis-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    /* Width will be calculated via JS */
}

.switch-vis-item {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.switch-vis-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.switch-vis-item.active {
    border-color: var(--switch-primary);
    opacity: 1;
    transform: scale(1.1);
}

.switch-vis-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.switch-vis-arrow:hover {
    background: var(--switch-primary);
    color: #fff;
    border-color: var(--switch-primary);
}

/* --- PIN Details Section --- */
.switch-pin-details-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--switch-border);
    margin-bottom: 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.switch-pin-details-placeholder {
    text-align: center;
    color: #888;
    font-style: italic;
}

.switch-pin-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.switch-pin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.switch-pin-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
}

.switch-pin-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.switch-pin-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.switch-pin-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--switch-primary);
}

.switch-btn-add-pin {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 8px;
}

/* --- Debug Controls --- */
.switch-debug-controls {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 12px;
}

.switch-debug-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.switch-debug-controls input {
    flex: 1;
}

/* --- Loader --- */
.switch-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Gamification Badge */
/* Gamification Badge (Subtle Pill Design) */
.switch-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;

    /* Flex item behavior */
    flex-shrink: 0;
    margin-left: auto;
    /* Push to right in flex containers */
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
}

/* Badge Hover Effect */
.switch-user-badge:hover {
    border-color: var(--switch-primary);
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.switch-badge-icon {
    font-size: 16px;
    line-height: 1;
    filter: none;
}

.switch-badge-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.switch-badge-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #444;
}

.switch-badge-next {
    font-size: 9px;
    color: #888;
}

/* Level Specific Accents (Border/Text only) */
.switch-user-badge.level-1 {
    border-color: #ffb6c1;
    color: #d63384;
    background: #fff;
}

/* Lover */
.switch-user-badge.level-2 {
    border-color: #b0c4de;
    color: #4169e1;
    background: #fff;
}

/* Queen */
.switch-user-badge.level-3 {
    border-color: #ffd700;
    color: #b8860b;
    background: #fff;
    box-shadow: none;
}

/* Maniak */

/* Filter Bar Location (Both Steps) */
.switch-filter-bar__primary .switch-user-badge {
    padding: 6px 12px;
    background: #fff;
    margin-left: auto;
    /* Push to right, before the "More Filters" button if we reorder? No, let's keep it simple */
    /* actually, let's just make it flow naturally in flex */
    margin-left: initial;
    border-color: #e5e5e5;
    order: 10;
    /* Put at end of flex container */
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .switch-user-badge {
        padding: 4px 8px;
    }



    .switch-badge-label {
        font-size: 10px;
    }

    .switch-badge-next {
        display: none;
        /* Hide helper text on mobile to save space */
    }
}

/* ============================================
   MY ACCOUNT GAMIFICATION WIDGET
   ============================================ */
.switch-account-gamification {
    background: #fdfcf9;
    border: 1px solid #e5e1d6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.switch-account-gamification h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #444;
}

.switch-account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.switch-account-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.switch-badge-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.switch-badge-card.highlight {
    background: linear-gradient(135deg, #fff 0%, #fcf7e6 100%);
    border-color: #d4a93a;
}

.switch-badge-icon-large {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.8);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.switch-level-progress {
    margin-top: 8px;
}

.switch-progress-bar {
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
    width: 100%;
}

.switch-progress-fill {
    height: 100%;
    background: #c9a961;
    transition: width 0.3s ease;
}

.switch-stats-row {
    display: flex;
    justify-content: space-around;
    height: 100%;
    align-items: center;
}

.switch-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.switch-referral-box {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
}

.switch-referral-box p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #555;
    line-height: normal;
}

.switch-ref-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.switch-ref-input-group input {
    flex: 1;
    background: white;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .switch-account-grid {
        grid-template-columns: 1fr;
    }
}

/* Locked Pins */
.switch-item-locked img {
    filter: grayscale(1) opacity(0.6);
}

.switch-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.switch-lock-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.switch-btn-locked {
    cursor: not-allowed !important;
    opacity: 0.8;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border-color: #e0e0e0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 8px 16px;
}

.switch-btn-locked span {
    font-size: 0.85em;
    font-weight: normal;
    margin-top: 2px;
}

/* ============================================
   STEP 1 TECH INFO TOOLTIP
   ============================================ */

.switch-base-tech-info {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 50;
    pointer-events: auto;
    /* CRITICAL: Re-enable interaction */
}

.switch-base-tech-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.switch-base-tech-icon:hover {
    background: white;
    transform: scale(1.05);
    color: var(--switch-primary);
}

.switch-base-tech-tooltip {
    position: absolute;
    top: 40px;
    left: 0;
    /* Align to left since icon is on left */
    right: auto;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--switch-border);
    text-align: left;
    /* Ensure text alignment */
}

/* Show tooltip on hover or when locked */
.switch-base-tech-info:hover .switch-base-tech-tooltip,
.switch-base-tech-info .switch-base-tech-tooltip:hover,
.switch-base-tech-info.locked .switch-base-tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.switch-tech-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--switch-text, #1A2A3A);
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 4px;
}

.switch-tech-row:last-of-type {
    margin-bottom: 12px;
    border-bottom: none;
}

.switch-tech-row span:first-child {
    color: var(--switch-text-muted, #6B7280);
}

.switch-tech-row span:last-child {
    font-weight: 600;
}

.switch-btn-mini {
    display: block;
    text-align: center;
    background: var(--switch-primary, #C9A961);
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.switch-btn-mini:hover {
    background: var(--switch-primary-dark, #B8954D);
    color: white;
}

/* Specific fix for tooltip button to be white */
.switch-base-tech-tooltip .switch-btn-mini {
    color: white !important;
}

/* Step 2 Visualizer Button - White Outline override */
.switch-btn-outline {
    background: var(--switch-primary) !important;
    border: 1px solid var(--switch-primary) !important;
    color: white !important;
}

.switch-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white !important;
    color: white !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .switch-base-tech-icon {
        width: 36px;
        height: 36px;
    }

    .switch-base-tech-tooltip {
        width: 180px;
        right: -10px;
    }
}
