body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
}


.search-bar {
    width: 60%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .search-bar input {
        border-radius: 25px;
        border: 2px solid #86b7fe;
        transition: 0.3s;
        background: #fff;
/*        animation: gradient-glow 3s infinite alternate;*/
    }

@keyframes gradient-glow {

    0%, 50%, 100% {
        box-shadow: 0 0 10px #86b7fe, 0 0 20px #86b7fe;
        border-color: #ffcc04;
    }
}

.search-bar button {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: #86b7fe;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 0 20px;
}


#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

    #suggestions li {
        padding: 10px 15px;
        font-size: 15px;
        color: #333;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        #suggestions li:hover {
            background-color: #fff6cc;
        }


.step {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;
    display: none;
}

    .step.active {
        opacity: 1;
        transform: translateY(0);
        max-height: none;
        display: block;
        min-height: 200px;
    }


section.container {
    padding-left: 15px;
    padding-right: 15px;
}

    section.container .card {
        margin: 0;
        padding: 20px 15px;
    }

@media (max-width: 576px) {
    section.container {
        padding-left: 10px;
        padding-right: 10px;
    }

        section.container .card {
            padding: 15px 10px;
        }

    .step.active {
        max-height: none;
        min-height: 180px;
    }
}

.step.collapsed select,
.step.collapsed .option-cards,
.step.collapsed .related-images {
    display: none !important;
}


.loader-dots {
    display: inline-block;
    font-size: 36px;
    color: #000;
    margin-top: 10px;
    letter-spacing: 3px;
}

    .loader-dots span {
        animation: blink 1.4s infinite both;
    }

        .loader-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loader-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes blink {

    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}


.related-images {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    align-items: stretch;
    margin: 5px;
}

    .related-images img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 8px;
        transition: 0.3s;
    }

        .related-images img:hover {
            transform: scale(1.05);
            border: 2px solid #86b7fe;
        }

        .related-images img.selected {
            transform: scale(1.03);
            border: 3px solid #86b7fe;
            box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
        }


.option-cards {
    justify-content: center;
}

.option-card {
    width: 150px;
    height: 150px;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .option-card img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
    }

    .option-card p {
        margin-top: 8px;
        font-weight: 600;
        color: #444;
    }

    .option-card:hover {
        border-color: #86b7fe;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
    }


.summary-card {
    background: #fffbe6;
    border-left: 5px solid #86b7fe;
}

    .summary-card h5 {
        font-weight: bold;
    }

    .summary-card li {
        font-size: 15px;
        padding: 8px 10px;
    }


.image-meta {
    border-top: 1px solid #f2f2f2;
}

#submitBtn {
    transition: all 0.3s ease;
}

    #submitBtn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
    }

.blurred {
    filter: blur(8px);
    pointer-events: none;
}


#animationContainer {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: white;
    backdrop-filter: blur(4px);
    z-index: 9999;
}


#coutaition {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto;
    padding: 24px 16px;
}


.quote-modal {
    width: min(820px, 92%);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin: 12px auto 24px auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.quote-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

    .quote-header .brand {
        display: flex;
        align-items: center;
        gap: 10px
    }

    .quote-header img {
        width: 56px;
        height: 56px;
        object-fit: contain
    }

.quote-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.quote-section-title {
    font-weight: 700;
    margin: 4px 0 10px 0;
    color: #444
}

.quote-content {
    display: block
}

.quote-table {
    min-width: 520px
}

.quote-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px
}

    .quote-products-table th,
    .quote-products-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #f1f3f5;
        font-size: 13px
    }

    .quote-products-table th {
        background: #fafafa;
        font-weight: 600;
        text-align: left
    }

.quote-table {
    width: 100%;
    border-collapse: collapse
}

    .quote-table th,
    .quote-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #f1f3f5;
        font-size: 14px
    }

    .quote-table th {
        background: #fffdf3;
        font-weight: 600;
        text-align: left
    }

.quote-total {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    font-weight: 700
}

.quote-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 20px 18px 20px;
    /* border-top: 1px solid #eee; */
    background: transparent;
    bottom: 2px;
    z-index: 2;
    border-radius: 0 0 15px 15px;
    position: sticky;
}


.quote-modal .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

    .quote-modal .table-responsive table {
        min-width: 600px;
        margin-bottom: 0;
    }



@media (max-width: 576px) {
    .quote-header {
        padding: 14px
    }

    .quote-body {
        padding: 12px 14px;
        max-height: calc(100vh - 180px);
    }

    .quote-actions {
        padding: 12px 14px;
        flex-direction: column;
    }

        .quote-actions .btn {
            width: 100%;
        }

    .quote-table th,
    .quote-table td {
        font-size: 13px;
        padding: 8px 8px
    }

    #coutaition {
        padding: 14px 10px;
    }

    .quote-products-table th,
    .quote-products-table td {
        font-size: 12px;
        padding: 7px 8px
    }
}

#coutaition::-webkit-scrollbar {
    width: 10px;
}

#coutaition::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 8px;
}

#coutaition::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    border-radius: 8px;
}

    #coutaition::-webkit-scrollbar-thumb:hover {
        background: #c4c4c4;
    }


#popupContainer {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    #popupContainer.show {
        opacity: 1;
        visibility: visible;
    }

    #popupContainer > div {
        background: #fff;
        padding: 25px 35px;
        border-radius: 12px;
        text-align: center;
        width: 90%;
        max-width: 400px;
        border: 2px solid #ddd;
        transition: transform 0.3s ease;
    }

        #popupContainer > div:hover {
            transform: scale(1.02);
        }


.btn-try {
    background-color: #c5fd0d;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-try:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    }


#inspirationCarousel img {
    width: 100%;
    height: clamp(180px, 26vw, 280px);
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

    #inspirationCarousel img:hover {
        transform: scale(1.05);
    }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

@media (max-width: 768px) {
    #inspirationCarousel .carousel-item .col-md-4 {
        display: none;
    }

        #inspirationCarousel .carousel-item .col-md-4:first-child {
            display: block;
            width: 100%;
        }

    #inspirationCarousel img {
        height: 200px;
    }
}

@media (min-width: 576px) {
    .related-images {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

        .related-images img {
            height: 130px;
        }
}

@media (min-width: 992px) {
    .related-images {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }

        .related-images img {
            height: 150px;
        }
}


#cameraContainer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100000;
}

#cameraFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#captureCanvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: none;
}

#captureBtn,
#uploadBtn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

#captureBtn {
    bottom: 40px;
    background: #86b7fe;
    color: #000;
}

#uploadBtn {
    bottom: 100px;
    background: #28a745;
    color: #fff;
    display: none;
}

#previewContainer {
    display: none;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    #previewContainer img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
    }


#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
}

body.freeze-scroll {
    overflow: hidden;
}

#bottomSheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 18px 18px 0 0;
    transition: bottom 0.35s ease-in-out;
    z-index: 10000;
    padding: 25px 20px;
}

    #bottomSheet.active {
        bottom: 0;
    }

    #bottomSheet::before {
        content: "";
        display: block;
        width: 60px;
        height: 6px;
        background: #ddd;
        border-radius: 3px;
        margin: 0 auto 15px;
    }

    #bottomSheet button {
        width: 100%;
        margin: 10px 0;
        padding: 14px;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: 0.2s;
    }

/*#cameraBtn {
    background: #86b7fe;
    color: #222;
}*/

#galleryBtn {
    background: #0d6efd;
    color: #fff;
}

#bottomSheet button:hover {
    transform: scale(1.03);
    opacity: 0.9;
}


#tryNowBtn,
#restartBtn {
    min-width: 140px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.custom-select {
    position: relative;
    width: 100%;
}

.select-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #86b7fe;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .select-display:hover {
        border-color: #86b7fe;
        box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    }

.select-text {
    color: #333;
    font-weight: 500;
}

.select-arrow {
    color: #86b7fe;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 2px solid #86b7fe;
    border-top: none;
    border-bottom: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.custom-select.open .select-options {
    max-height: 150px;
    overflow-y: auto;
}


.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb {
    background: #86b7fe;
    border-radius: 3px;
}

    .select-options::-webkit-scrollbar-thumb:hover {
        background: #86b7fe;
    }

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

    .select-option:last-child {
        border-bottom: none;
    }

    .select-option:hover {
        background: #fff6cc;
    }

    .select-option.selected {
        background: #86b7fe;
        color: #000;
        font-weight: 600;
    }


.upload-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100001;
}

.upload-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.upload-popup.show {
    display: flex;
}
#show-heading{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (max-width: 768px) {
    .search-bar {
        width: 90%;
    }

    #bottomSheet {
        padding: 20px 16px;
    }

    .upload-popup-content {
        padding: 20px;
        margin: 20px;
    }
}


@media (max-width: 480px) {
    .text-center.gap-3 {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center;
    }

    #tryNowBtn,
    #restartBtn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }

    section.container {
        padding-left: 5px;
        padding-right: 5px;
    }

        section.container .card {
            padding: 12px 8px;
        }
}

#step6 .custom-select,
#step6 [data-target="exactSize"] {
    display: block;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

#step6 .row.g-2 {
    margin: 0;
}

    #step6 .row.g-2 > div {
        margin-bottom: 0;
    }

#step6 input.inpt,
#step6 .form-select.select-unit {
    width: auto;
}

@media (max-width: 767px) {

    #step6 input.inpt,
    #step6 .form-select.select-unit {
        width: 100%;
    }

    #step6 .row.g-2 > div {
        margin-bottom: 12px;
    }
}

#step6 .custom-select .input {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    #step6 .custom-select .input label {
        font-weight: 500;
    }

    #step6 .custom-select .input .inpt {
        width: 100%;
    }

#step6 .custom-select .select-display {
    order: 2;
    width: 100%;
}

#step6 .custom-select .select-options {
    order: 3;
    width: 100% !important;
/*    border: 2px solid #86b7fe !important;*/
}

#uploadFinalBtn {
    width: 100%;
    background-color: #fed70e;
    font-size: larger;
    color: white;
    padding: 2px 20px;
}

#downloadBtn {
    background-color: #28a745;
}

#shareBtn {
    background-color: #0d6efd;
}

#closePopupBtn {
    border: 1px solid red;
    background-color: red;
    border-radius: 100%;
    color: white;
}

.accessory-product-card {
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

    .accessory-product-card:hover {
        border-color: #86b7fe;
        box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
        transform: translateY(-5px);
    }

    .accessory-product-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.accessory-product-info {
    padding: 15px;
}

.accessory-product-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.accessory-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #86b7fe;
    margin-bottom: 15px;
}

.accessory-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

    .accessory-qty-control label {
        font-weight: 500;
        margin: 0;
        font-size: 14px;
    }

    .accessory-qty-control input {
        width: 70px;
        text-align: center;
        border: 2px solid #eee;
        border-radius: 6px;
        padding: 6px;
    }

.accessory-add-btn {
    width: 100%;
    background: #86b7fe;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s ease;
}

    .accessory-add-btn:hover {
        background: #86b7fe;
        transform: scale(1.02);
    }

    .accessory-add-btn:disabled {
        background: #eee;
        color: #999;
        cursor: not-allowed;
    }


.table-accessories {
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

    .table-accessories thead {
        background: #fffdf3;
    }

    .table-accessories th {
        font-weight: 600;
        border-bottom: 2px solid #86b7fe;
    }

    .table-accessories img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 6px;
    }

    .table-accessories input[type="number"] {
        max-width: 80px;
        border: 2px solid #eee;
        border-radius: 6px;
        padding: 5px;
        text-align: center;
    }

.acc-remove-btn {
    background: #dc3545;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .acc-remove-btn:hover {
        background: #c82333;
    }


@media (max-width: 768px) {
    .search-bar {
        width: 90%;
    }

    .accessory-product-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .accessory-product-card img {
        height: 160px;
    }

    .accessory-product-name {
        font-size: 16px;
    }

    .accessory-product-price {
        font-size: 18px;
    }
}


.goog-te-banner-frame,
.goog-te-menu-frame,
.goog-logo-link,
.skiptranslate,
.goog-te-gadget,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .select-arrow {
    transform: rotate(180deg);
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .custom-select.open .select-arrow {
    transform: rotate(0deg);
}

[dir="rtl"] .list-group-flush {
    padding-right: 0;
}

[dir="rtl"] .quote-header .brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .quote-header .text-end {
    text-align: left !important;
}

[dir="rtl"] .quote-table th,
[dir="rtl"] .quote-products-table th {
    text-align: right;
}

[dir="rtl"] .quote-total {
    justify-content: flex-start;
}

[dir="rtl"] .quote-actions {
    justify-content: flex-start;
}

[dir="rtl"] .accessory-qty-control {
    flex-direction: row-reverse;
}

[dir="rtl"] .table-accessories img {
    margin-left: 0.5rem;
}



.lang-switcher select {
    background: #fff;
    border: 2px solid #86b7fe;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 140px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Horizontal Scroll Logic */
.horizontal-scroll-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 15px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

    .horizontal-scroll-container::-webkit-scrollbar {
        height: 8px;
    }

    .horizontal-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .horizontal-scroll-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

        .horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
            background: #bbb;
        }

.scroll-item {
    flex: 0 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Adjustments for related designs in scroll view */
.horizontal-scroll-container img.img-thumbnail {
    width: 150px;
    /* Fixed width for design thumbnails */
    height: 150px;
    /* Fixed height */
    object-fit: cover;
    /* Maintain aspect ratio */
    display: block;
    border-radius: 8px;
    margin: 0;
}
.horizontal-scroll-container .img-thumbnail.selected {
    border-color: #86b7fe; /* yellow */
    box-shadow: 0 0 8px rgb(7,54 ,255, 60%);
}
/* Adjustments for accessory cards in scroll view */
.scroll-item .accessory-product-card {
    border: none;
    box-shadow: none;
    width: 250px;
}
.selecteddd{
    border: 2px solid blue;

}
#statusText {
    font-size: small;
    color: gray;
}