/* Custom Dropdowns - Unified Styles */

.custom-dropdown {
    width: 100%;

}



.custom-dropdown__container {
    position: relative;
    width: 100%;
}
.reset_variations {
    display: none  !important;
}

.woocommerce table.variations tr .label {
    width: 80px !important;
}

.woocommerce table.variations tr td, .woocommerce table.variations tr th {
    padding: 0px !important
}
.custom-dropdown__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: none;
   height: 60px;
    font-size: 1.25rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown__trigger:hover {
    border-color: #ff4900;
}

.custom-dropdown__selected-swatch {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.custom-dropdown__selected-swatch--color,
.custom-dropdown__selected-swatch--fabric {
    width: 30px;
    height: 30px;
    border-radius: 1000px;
 
    position: absolute;
    right: 40px;
}

.custom-dropdown__selected-swatch--fabric img {
    width: 100%;
    height: 100%;
    border-radius: 1000px;
    object-fit: cover;
}

.custom-dropdown__current-value {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.custom-dropdown__chevron {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.5s ease;
    flex-shrink: 0;
    color: #6b7280;
}

.custom-dropdown__chevron--open {
    transform: rotate(-90deg);
}

.custom-dropdown__chevron--open path {
    stroke: #ff4900;
}

.custom-dropdown__trigger:hover .custom-dropdown__chevron {
    transform: rotate(-90deg);
}

.custom-dropdown__trigger:hover .custom-dropdown__chevron path{
    stroke: #ff4900;

}

.custom-dropdown__menu {
    position: absolute;
    top: 100%;
    left: -80px;
    right: 0;
    z-index: 50;
    background-color: #F6F6F5;
    border: 0.5px solid #1A1B1C;
    border-radius: 0px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-y: auto;
    max-height: 260px;
}

@media (max-width: 767px) {
    .custom-dropdown__menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        transition: transform 0.3s ease;

    }
    
    .custom-dropdown__menu[style*="display: block"] {

    }
}

.custom-dropdown__menu-inner {
    padding: 0;
}

.custom-dropdown__mobile-header {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .custom-dropdown__mobile-header {
        display: flex;
        justify-content: flex-end;
    }
}

.custom-dropdown__mobile-close {
    background: none;
    border: none;
    color: #ff4900;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.custom-dropdown__options-list {
    padding: 0;
}

.custom-dropdown__group {
    margin-bottom: 0.5rem;
}

.custom-dropdown__group-header {
    padding: 0.75rem 1rem;
font-family: "Maison Neue Mono";
font-size: 14px;
margin-left: 15px;
margin-right: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    
    top: 0;
}

.custom-dropdown__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: none;
    font-size: 1.25rem;
    color: #1A1B1C;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.custom-dropdown__option:hover {
    background-color: #fff;

}

.custom-dropdown__option--active {
    background-color: #fff;

}



.custom-dropdown__option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.custom-dropdown__option-description {
    font-size: 0.875rem;
    color: #595D61;
    line-height: 1.4;
}

.custom-dropdown__swatch {
    width: 50px !important;
    height: 50px !important;
    border-radius: 4px;
    flex-shrink: 0;
}

.custom-dropdown__swatch--color {
    border: 1px solid #e5e7eb;
}

.custom-dropdown__swatch--image {
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.custom-dropdown__swatch--placeholder {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.custom-dropdown--frame .custom-dropdown__swatch--color {
    border-radius: 4px;
    width: 50px;
    height: 50px;
}

.custom-dropdown__option-name {
    flex: 1;
}
.custom-dropdown__option--active .custom-dropdown__checkmark  {
     width: 30px;
    height: 30px;
    color: white;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 100px;
    background-color: #1a1a1a;
}
.custom-dropdown__checkmark {
    width: 30px;
    height: 30px;
    color: transparent;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 100px;
    background-color: transparent;
    border: 1px solid #ADB2B3;

}

.custom-dropdown__overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.5);
}

body.custom-no-scroll {
    overflow: hidden;
}

/* Hide original WooCommerce selects */
.custom-dropdown__hidden-select,
select[name="attribute_pa_wheels"],
select[name="attribute_pa_frame"],
select[name="attribute_pa_fabric"] {
    display: none !important;
}
