body {
    overflow-x: hidden;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: all 0.2s;
}

.color-option:hover,
.color-option.selected {
    transform: scale(1.1);
    border-color: #b8099e;
}

.size-option {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #D1D5DB;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.size-option:hover {
    border-color: #9CA3AF;
}

.size-option.selected {
    background-color: #b8099e;
    border-color: #ee74e1;
    color: white;
}

.customization-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 340px;
    margin: 0 auto;
}

.customization-container>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.text-overlay {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: move;
    z-index: 20;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
    transition: all 0.2s;
}

.text-overlay.active {
    outline: 2px dashed #b8099e;
    background: rgba(59, 130, 246, 0.1);
}

.design-overlay {
    position: absolute;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: move;
    z-index: 15;
    object-fit: contain;
    transition: all 0.2s;
}

.design-overlay.active {
    outline: 2px dashed #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.product-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
}

.product-thumbnail:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-thumbnail.ring-4 {
    border-color: transparent;
    outline: none;
    box-shadow: 0 0 0 3px #b8099e;
}

.compact-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-section {
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-step-header {
        display: flex;
        align-items: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .mobile-step-number {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #b8099e;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
        font-weight: bold;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }

    .customization-container {
        max-width: 280px;
        height: 340px;
    }

    .mobile-bottom-controls {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
    }

    .mobile-main-content {
        padding-bottom: 1rem;
    }

    .mobile-view-switcher {
        display: flex;
        background: #f3f4f6;
        border-radius: 8px;
        padding: 4px;
        margin-bottom: 1rem;
    }

    .mobile-view-btn {
        flex: 1;
        padding: 0.5rem;
        text-align: center;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.875rem;
        transition: all 0.2s;
        border: none;
        background: transparent;
        color: #6b7280;
    }

    .mobile-view-btn.active {
        background: white;
        color: #b8099e;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .control-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
        display: block;
    }

    .control-group {
        margin-bottom: 1.5rem;
    }

    button,
    input[type="button"],
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }

    .color-option {
        width: 36px;
        height: 36px;
    }

    .size-option {
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }

    .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .collapsible-content.expanded {
        max-height: 1000px;
    }

    .expand-btn {
        transition: transform 0.3s ease;
    }

    .expand-btn.rotated {
        transform: rotate(180deg);
    }
}

/* Hide desktop elements on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    #viewSwitcher{
        display: none;
    }
}

#mobileViewSwitcher{
    display: flex;
}
#viewSwitcher{
        display: none;
}
#designInfo{
    display: none;
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}