.carousel-wrap {
    height: auto;
    margin: 0px auto 1.25rem auto;
    padding: 0 48px;
    width: 100%;
    position: relative;
}

.filter-main-container .slick-list {
    min-height: 0 !important;
}

.filter-main-container .slick-slide>div {
    margin-top: 0 !important;
}

.main {
    background-color: #f7f7f7;
    height: 92.5vh;
    width: 99.1vw;
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 68% 32%;
}

.filter-main-container {
    display: grid;
    height: 100%;
    width: 100%;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    overflow-y: auto;
    background-color: #f7f7f7;
}

/* Custom scrollbar to completely remove the up and down arrow buttons and keep a clean slider (Scoped to .filter-main-container only) */
.filter-main-container::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

.filter-main-container::-webkit-scrollbar-track {
    background: transparent !important;
    margin-top: 158px !important;
    margin-bottom: 16px !important;
}

.filter-main-container::-webkit-scrollbar-thumb {
    background: #525266 !important;
    border-radius: 3px !important;
}

.filter-main-container::-webkit-scrollbar-thumb:hover {
    background: #3d3d4e !important;
}

/* Scoped force hiding of all scrollbar button variants to avoid global side-effects */
.filter-main-container::-webkit-scrollbar-button,
.filter-main-container::-webkit-scrollbar-button:start,
.filter-main-container::-webkit-scrollbar-button:end,
.filter-main-container::-webkit-scrollbar-button:single-button,
.filter-main-container::-webkit-scrollbar-button:double-button,
.filter-main-container::-webkit-scrollbar-button:vertical:start:increment,
.filter-main-container::-webkit-scrollbar-button:vertical:start:decrement,
.filter-main-container::-webkit-scrollbar-button:vertical:end:increment,
.filter-main-container::-webkit-scrollbar-button:vertical:end:decrement,
.filter-main-container::-webkit-scrollbar-button:horizontal:start:increment,
.filter-main-container::-webkit-scrollbar-button:horizontal:start:decrement,
.filter-main-container::-webkit-scrollbar-button:horizontal:end:increment,
.filter-main-container::-webkit-scrollbar-button:horizontal:end:decrement {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.finish-main-div {
    display: block;
    height: auto;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.finish-div {
    padding: 0.5rem;
    height: 100%;
    width: 100%;
}

.finish-type-checkbox-label {
    margin-left: 2%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}


.visualizer-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: fit-content;
    max-width: 95%;
    margin: 0 auto;
}

.imageWrapper {
    width: auto;
    height: calc(100% - 56px);
    aspect-ratio: 608 / 807;
    position: relative;
    margin: 0;
    border: 0.8px solid #52526679;
    overflow: hidden;
}

.overlayImage {
    object-fit: cover;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.preview-main-container {
    position: relative;
    background-color: #f7f7f7;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {

    .edit-div-layout-1 {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.main-card-div {
    border: 1px solid #dbdbdb;
    position: relative;
    min-height: 20vh;
    margin: 2% auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.remove-btn {
    cursor: pointer;
    position: absolute;
    color: red;
    font-size: 3vmin;
    margin: 3%;
}

.part-no-text {
    cursor: copy;
}

/* Media Query */


.border-radius-zero {
    border-radius: 0;
}

.item {
    width: 100%;
    height: 168px !important;
    margin: 5px auto;
    padding: 6px 6px 24px 6px !important;
    background-color: #ffffff;
    border: 0.1px solid #d1d1d66b;
    border-radius: 4px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.item:hover {
    border-color: #d1d1d6;
}

.item.active {
    border-color: #067732 !important;
    border-width: 1.5px !important;
}

.item img {
    max-height: 125px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: auto !important;
}

.card-img-top.filtered-img {
    max-height: 150px !important;
}

.slick-slide {
    margin: 6px !important;
}

.slick-slide img {
    width: 100%;
    border: 0 solid #fff;
}

.slick-track {
    margin-left: 0 !important;
}

.slick-prev,
.slick-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer;
    z-index: 2;
    object-fit: contain;
}

.slick-prev {
    left: -40px !important;
}

.slick-next {
    right: -40px !important;
}

.part-no-text {
    position: absolute;
    top: 5px;
    left: 5px;
    cursor: default;
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    color: #525266;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.part-no-text.long-text {
    font-size: 0.58rem !important;
}

@media only screen and (max-width: 822px) {
    .main {
        background-color: #f7f7f7;
        height: 100%;
        width: 99.1vw;
        display: grid;
        grid-template-rows: 30% auto;
        grid-template-columns: auto;
    }

    .visualizer-wrapper {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .imageWrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 608 / 807;
        position: relative;
        margin: 0 auto;
        border: 0.8px solid #52526679;
        overflow: hidden;
    }

    .overlayImage {
        object-fit: cover;
        background: transparent;
        position: absolute;
        top: 0;
        left: 0;
        /* height: 100%; */
        width: 100%;
    }

    /* Mobile grid layout overrides for product series and style buttons */
    .series-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .series-buttons {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .product-type-main-div .series-buttons {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)) !important;
    }

    .series-btn {
        padding: 4px 4px !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* Prevent slick arrows from being cut off and overlapping on mobile screens */
    .carousel-wrap {
        padding: 0 30px !important;
    }

    .slick-prev {
        left: -25px !important;
        margin-left: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .slick-next {
        right: -25px !important;
        margin-right: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .preview-controls-row {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        margin: 12px auto !important;
    }
}

/* Choose Product Series Styling */
.series-main-div {
    margin-top: 0.75rem;
    margin-bottom: 0.4rem;
}

.product-type-main-div {
    margin-top: 0.6rem;
    margin-bottom: 1.75rem;
}

.series-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.series-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #525266;
    white-space: nowrap;
    min-width: 155px;
    flex-shrink: 0;
}

.series-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.series-btn {
    background-color: #ffffff !important;
    color: #525266 !important;
    border: 1px solid #c8c8d2 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3) !important;
}

.series-btn:hover {
    border-color: #067732 !important;
    color: #067732 !important;
}

.series-btn.active {
    background-color: #067732 !important;
    color: #ffffff !important;
    border-color: #067732 !important;
}

/* Right Preview Visualizer and Controls Styling */
.preview-main-container {
    position: relative;
    background-color: #f7f7f7;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preview-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 16px 0 8px 0;
}

.preview-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-interior-btn {
    background-color: #067732 !important;
    color: #ffffff !important;
    border: 1px solid #067732 !important;
    border-radius: 4px !important;
    padding: 2px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease;
}

.edit-interior-btn:hover {
    background-color: #056329 !important;
    border-color: #056329 !important;
    color: #ffffff !important;
}

.edit-interior-btn svg {
    vertical-align: middle;
}

.bathroom-interior-selector {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bathroom-interior-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #525266;
    white-space: nowrap;
}

.bathroom-interior-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
}

.interior-swatch {
    width: 48px;
    height: 20px;
    border-radius: 6px !important;
    border: 0.5px solid #d1d1d634 !important;
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 3px 3px 5px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease;
}

.interior-swatch.active {
    border-color: #d1d1d6 !important;
}

/* Title + dropdowns on same row */
.selector-section-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8ec;
}

.selector-section-header-row .selector-section-title {
    flex: 1 1 auto;
}

/* Dropdowns sit inline to the right of the title */
.filter-dropdowns-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-top: 3px;
}

.filter-dropdown-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-dropdown-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #525266;
    white-space: nowrap;
}

.filter-dropdown-select {
    display: none !important;
}

/* Custom styled select wrapper */
.custom-select-container {
    position: relative;
    display: inline-block;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 3px 22px 3px 8px;
    font-size: 0.72rem;
    color: #525266;
    min-width: 62px;
    cursor: pointer;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease;
    gap: 6px;
    border: 1px solid transparent;
    position: relative;
}

.custom-select-trigger:hover {
    border-color: #067732;
    color: #067732;
}

.custom-select-container.open .custom-select-trigger {
    border-color: #067732;
    box-shadow: 0 0 0 2px rgba(6, 119, 50, 0.15) !important;
}

/* Chevron indicator */
.custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid #525266;
    border-bottom: 1.5px solid #525266;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.custom-select-trigger:hover::after,
.custom-select-container.open .custom-select-trigger::after {
    border-color: #067732;
}

.custom-select-container.open .custom-select-trigger::after {
    transform: translateY(-35%) rotate(-135deg);
}

/* Dropdown options wrapper */
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-top: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.15s ease;
    max-height: 180px;
    overflow-y: auto;
    min-width: 90px;
}

/* Custom scrollbar for dropdown options */
.custom-select-options::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background-color: #cbd5e1 !important;
    border-radius: 2px !important;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

.custom-select-container.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Single option items */
.custom-option {
    padding: 5px 10px;
    font-size: 0.72rem;
    color: #525266;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.custom-option:hover {
    background-color: #e8f5e9;
    color: #067732;
}

.custom-option.selected {
    background-color: #e8f5e9;
    color: #067732;
    font-weight: 600;
}

.selector-section-title {
    font-size: 0.736rem;
    font-weight: 600;
    color: #525266;
    text-transform: uppercase;
}

.navigation-clean-button {
    position: relative !important;
    z-index: 1050 !important;
}

.offcanvas {
    z-index: 1100 !important;
}

.offcanvas-backdrop {
    z-index: 1090 !important;
}

html,
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.edit-interior-btn svg,
.edit-interior-btn svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

.skeleton-card {
    background-color: #ffffff !important;
    border: 0.1px solid #d1d1d66b !important;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.05) !important;
    cursor: default !important;
    pointer-events: none;
    flex: 1 1 0;
    min-width: 0;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow: hidden;
    padding: 6px 6px;
}

@media only screen and (min-width: 823px) {
    .main {
        height: calc(100vh - 72px) !important;
        width: 100% !important;
    }

    .filter-main-container {
        height: 100% !important;
        overflow-y: auto !important;
        position: sticky !important;
        top: 0px !important;
    }

    .preview-main-container {
        position: sticky !important;
        top: 0px !important;
        height: 100% !important;
    }
}

/* Custom Checkbox Design (Green Theme) */
.checkbox-wrapper-4 {
    display: inline-flex;
    align-items: center;
}

.checkbox-wrapper-4 * {
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 3px 0 3px 6px;
    border-radius: 6px;
    overflow: visible;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.checkbox-wrapper-4 .cbx span {
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-4 .cbx span:first-child {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transform: scale(1);
    border: 1px solid #c8c8d2;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.15) !important;
    display: inline-block;
    flex-shrink: 0;
}

.checkbox-wrapper-4 .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-4 .cbx-label-text {
    padding-left: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #525266;
    white-space: nowrap;
    line-height: 18px;
}

.checkbox-wrapper-4 .cbx:hover span:first-child {
    border-color: #067732;
}

/* Visually hidden but still focusable, so keyboard users can reach the checkbox */
.checkbox-wrapper-4 .inp-cbx {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.checkbox-wrapper-4 .inp-cbx:focus-visible+.cbx span:first-child {
    outline: 2px solid #067732;
    outline-offset: 2px;
}

.checkbox-wrapper-4 .inp-cbx:checked+.cbx span:first-child {
    background: #067732;
    border-color: #067732;
    animation: wave-4 0.4s ease;
}

.checkbox-wrapper-4 .inp-cbx:checked+.cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper-4 .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}

@media screen and (max-width: 640px) {
    .checkbox-wrapper-4 .cbx {
        width: 100%;
        display: inline-flex;
    }
}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}