/* Mobile Customizer Styles */
.mobile-customizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-customizer-overlay.show {
    opacity: 1;
}

.mobile-customizer-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-customizer-bottom-sheet.show {
    transform: translateY(0);
}

.mobile-customizer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    z-index: 10;
}

.mobile-customizer-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2C3639;
}

.mobile-customizer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.mobile-customizer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.mobile-customize-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #A27B5C;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(162, 123, 92, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-customize-button i {
    margin-right: 8px;
}

.mobile-customize-button.show {
    display: flex;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Mesh Items */
.mobile-mesh-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.mobile-mesh-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
}

.mobile-mesh-name {
    font-weight: 500;
    color: #2C3639;
}

.mobile-mesh-toggle i {
    transition: transform 0.3s ease;
    color: #A27B5C;
}

.mobile-mesh-materials {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    background: #f8f9fa;
}

.mobile-mesh-materials.show {
    height: auto;
    padding: 15px;
    border-top: 1px solid #eee;
}

.mobile-material-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.mobile-material-option {
    cursor: pointer;
    text-align: center;
}

.mobile-material-preview {
    margin-bottom: 5px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.mobile-material-option:hover .mobile-material-preview {
    border-color: #A27B5C;
}

.mobile-material-name {
    font-size: 12px;
    color: #666;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading Overlay */
.mobile-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.mobile-loading-content {
    text-align: center;
}

.mobile-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #A27B5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.mobile-loading-text {
    color: #A27B5C;
    font-size: 14px;
    font-weight: 500;
}

/* Desktop Mesh Customizer Panel */
.mesh-customizer-panel {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mesh-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f9f9f9;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 8px;
}

.mesh-list-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2C3639;
    font-size: 15px;
}

.mesh-list-title i {
    margin-right: 8px;
    color: #A27B5C;
}

.mesh-list-count {
    background-color: #A27B5C;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.reset-all-button {
    background-color: #A27B5C;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(162, 123, 92, 0.3);
}

.reset-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 123, 92, 0.4);
    background-color: #8d6a4f;
}

.mesh-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 0 0 10px 10px;
    background-color: #f9f9f9;
    scrollbar-width: thin;
    scrollbar-color: #A27B5C #f1f1f1;
    padding: 4px;
}

.mesh-item {
    margin: 8px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid #A27B5C;
}

.mesh-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading Overlay (Model) */
.model-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.loading-spinner-container {
    text-align: center;
    background-color: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #a27b5c;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Desktop Responsive Improvements */
@media (min-width: 992px) {

    /* Features Section - Grid Layout */
    .features-scroll-container {
        overflow-x: visible;
        padding-bottom: 0;
        margin-bottom: 40px;
    }

    .features-scroll-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        /* Center items */
    }

    .feature-pill {
        flex: 0 0 auto;
        /* Don't stretch */
        width: auto;
        min-width: 150px;
        /* Minimum width for consistency */
        padding: 12px 20px;
        font-size: 15px;
        background: #fff;
        border: 1px solid #eee;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .feature-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: var(--secondary-color);
    }

    .feature-pill i {
        font-size: 18px;
    }

    /* Details Accordion -> Visible Cards */
    .details-accordion {
        border: none;
        background: transparent;
        margin-bottom: 30px;
        box-shadow: none;
    }

    .accordion-header {
        background: transparent;
        padding: 0 0 15px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
        cursor: default;
        pointer-events: none;
        /* Disable clicking */
        display: flex;
        align-items: center;
    }

    .accordion-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .accordion-title i {
        color: var(--secondary-color);
        font-size: 20px;
        margin: 0;
        width: auto;
    }

    .accordion-icon {
        display: none !important;
        /* Hide chevron force */
    }

    .accordion-content {
        max-height: none !important;
        /* Always expanded */
        padding: 0;
        background: transparent;
        border-top: none;
        overflow: visible !important;
    }

    .accordion-inner {
        padding: 0;
        color: #555;
        line-height: 1.8;
        font-size: 16px;
    }

    /* Specs Grid Improvements */
    .compact-specs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for specs */
        gap: 15px 30px;
    }

    .compact-spec-row {
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #eee;
        margin-bottom: 0;
        /* Remove bottom margin in grid */
    }

    .compact-spec-label {
        font-size: 14px;
        color: #888;
        margin-bottom: 5px;
        display: block;
    }

    .compact-spec-value {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary-color);
    }

    /* Layout Structure for Details - Stacked in Sidebar */
    #premium-details-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Features should span full width */
    .features-scroll-container {
        width: 100%;
    }
}

/* WhatsApp CTA Button Styling */
#whatsappContactBtn {
    width: 100%;
    background-color: #A27B5C;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(162, 123, 92, 0.3);
    cursor: pointer;
    text-decoration: none;
}

#whatsappContactBtn:hover {
    background-color: #8d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 123, 92, 0.4);
}

#whatsappContactBtn i {
    font-size: 24px;
}

#whatsappContactBtn .whatsapp-text {
    font-family: 'Inter', sans-serif;
}

/* Reduce spacing between details and similar products */
.product-details-sidebar {
    margin-bottom: 20px !important;
}

.similar-products {
    padding-top: 20px !important;
    margin-top: 0 !important;
}

.similar-products .section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
}