﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* ensures we can use 100vh in children */
    overflow: hidden; /* prevent default scrolling; we’ll handle it in main-area if needed */
    padding-bottom: 0rem;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

.modal {
    top: 80px;
}

.dropdown-menu {
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0;
    background-clip: unset;
}

.modal-content {
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 5px;
}

.modal-footer {
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.login-form-modal .modal-footer {
    background: #fff;
    justify-content: right;
}

.container {
    padding-right: 0px;
    padding-left: 0px;
}

.pattern-thumbnail {
    width: 100px;
    height: 100px;
    margin: 5px;
    cursor: pointer;
}

.hz-header {
    max-height: 80px;
}

.hz-header__container--fixed {
    max-height: 80px;
}

.site-topbar {
    border-bottom: 1px solid #e6e6e6;
    background-color: #fff;
}

.site-logo__img {
    max-height: 2.5rem !important;
}

@media (max-width: 767px) {
    .site-logo__img {
        max-height: 2.5rem !important;
    }
}

.vv-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 9998;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.vv-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    position: relative;
}

.vv-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.vv-popup-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: unset;
    color: #444;
}

.vv-popup-desc {
    font-size: 10px;
    margin-top: 5px;
    margin-bottom: unset;
    color: #888;
}

.button-container {
    margin: 10px 0;
}

.button {
    display: inline-block;
    padding: 10px;
    border-radius: 8px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

#existingImages {
    margin-top: 15px;
}

    #existingImages .scene-thumb {
        width: 100px;
        height: 100px;
        border: 2px solid #c0d1f3;
        border-radius: 8px;
        cursor: pointer;
    }

    #existingImages .upload-thumb {
        width: 100px;
        height: 100px;
        border: 2px solid #58709e;
        border-radius: 8px;
        cursor: pointer;
    }
/* Pattern drawer */
#patternHolder {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    border-top: 1px solid #e6e6e6;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

    #patternHolder #patternDrawer {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        color: #606265;
        padding: 5px;
        background-color: transparent;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
    }

        #patternHolder #patternDrawer .pattern-item {
            flex: 0 0 auto;
            width: 100px;
            height: 100px;
            margin: 5px;
            border: 2px solid #c0d1f3;
            border-radius: 10px;
            cursor: pointer;
            overflow: hidden;
        }

            #patternHolder #patternDrawer .pattern-item img {
                width: 100%;
                height: 100%;
                border-radius: 8px;
            }

            #patternHolder #patternDrawer .pattern-item .pattern-item__header {
                position: relative;
                height: -webkit-fill-available;
                width: -webkit-fill-available;
            }

            #patternHolder #patternDrawer .pattern-item .pattern-item__content {
                position: absolute;
                bottom: 0rem;
                height: 1.8rem;
                width: 100%;
                margin: 4px;
            }

            #patternHolder #patternDrawer .pattern-item .pattern-item__status {
                background: var(--aidikala-second);
                position: absolute;
                top: 0.5rem;
                left: -2.5rem;
                color: #fff;
                transform: rotate(-45deg);
                width: 7rem;
                text-align: center;
                height: 1.1rem;
                font-size: .6rem;
                line-height: 1.1rem;
            }

            #patternHolder #patternDrawer .pattern-item .pattern-item__status_out-of-stock {
                background: var(--aidikala-second);
            }

    #patternHolder #clearPatternBtn {
    }

        #patternHolder #clearPatternBtn .clear-item {
            width: 100px;
            height: 100px;
            margin: 5px;
            border: 2px solid #58709e;
            border-radius: 10px;
            cursor: pointer;
        }

            #patternHolder #clearPatternBtn .clear-item img {
                width: 100%;
                height: 100%;
                border-radius: 8px;
            }
/* Loader overlay */
.v-busy {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .v-busy img {
        width: 50px;
        height: 50px;
        z-index: 1;
        filter: blur(3px);
    }

.v-busy-show {
    display: flex;
}

.v-busy-hide {
    display: none;
}

.infinite-loader-holder {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    margin-left: 2.3rem;
    align-content: center;
    z-index: 2;
}

    .infinite-loader-holder img {
        width: 2rem;
        z-index: 3;
        filter: blur(3px);
    }

.infinite-load {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    height: 96px;
    width: 96px;
    animation: rotate_3922 1.2s linear infinite;
    background-color: #9b59b6;
    background-image: linear-gradient(#9b59b6, #84cdfa, #5ad1cd);
}

    .infinite-load span {
        position: absolute;
        border-radius: 50%;
        height: 100%;
        width: 100%;
        background-color: #9b59b6;
        background-image: linear-gradient(#9b59b6, #84cdfa, #5ad1cd);
    }

        .infinite-load span:nth-of-type(1) {
            filter: blur(5px);
        }

        .infinite-load span:nth-of-type(2) {
            filter: blur(10px);
        }

        .infinite-load span:nth-of-type(3) {
            filter: blur(25px);
        }

        .infinite-load span:nth-of-type(4) {
            filter: blur(50px);
        }

    .infinite-load::after {
        content: "";
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        background-color: #fff;
        border: solid 5px #ffffff;
        border-radius: 50%;
        filter: blur(5px);
    }

@keyframes rotate_3922 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.main-image-container {
    position: absolute;
    top: 138px;
    bottom: 136px;
    left: 0;
    right: 0;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* keep aspect ratio within container */
    }


.v-header-item-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.v-header-user-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.popup-item-holder {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

    .popup-item-holder .gal-item {
        display: flex;
        width: 25%;
        position: relative;
        padding: 0 5px 10px 5px;
        justify-content: center;
        align-items: center;
    }

@media (max-width: 767px) {
    .popup-item-holder .gal-item {
        width: 50%;
    }
}

.existingImageBtn {
    cursor: pointer;
}

    .existingImageBtn img {
        max-width: 100px;
    }

.non-mobile {
    display: flex !important;
}

.from-phone {
    display: none !important;
}

@media (max-width: 767px) {
    .non-mobile {
        display: none !important;
    }

    .from-phone {
        display: flex !important;
    }
}

.btn-add-to-cart {
    font-size: 8px;
    font-size: 0.6rem;
    line-height: 1.1;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    text-align: center;
    background-color: rgb(102, 74, 96, 0.5);
    border: 1px solid #664a60;
    min-height: unset;
    padding: unset;
    height: 1.8rem;
}

.btn-add-to-cart--full-width {
    width: 50%;
}

.btn-add-to-cart__txt {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 400;
}

.btn-add-to-cart__img {
    width: 70% !important;
    border-radius: unset !important;
}

.test-end-shadow:before {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 70%);
    width: 1em;
    height: 100%;
}

.test-end-shadow:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 70%);
    width: 4em;
    height: 100%;
}


#selectedImage {
    transition: filter 0.5s ease;
}
/* Blur effect while loading */
.loading-blur {
    filter: blur(8px);
}

.ar-user-image-del-lay {
    position: absolute;
    top: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ar-user-image-del {
    width: fit-content;
    margin: 4px;
}

.ar-user-image-del-btn {
    font-size: 8px;
    font-size: 0.6rem;
    line-height: 1.1;
    border: 1px solid #c0d1f3;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    text-align: center;
    background-color: rgb(255, 255, 255, 0.7);
    min-height: unset;
    padding: 4px;
}

.ar-user-image-del-btn__img {
    width: 20px;
}

#konva-container {
    border: 1px solid #ccc;
    margin-top: 10px;
    background: #f8f8f8;
    /* Ensures the canvas resizes well */
    width: 100%;
    height: 500px;
}

.konva-toolbar {
    margin-bottom: 10px;
}
/* Ensure buttons indicate active tool */
.tool-active {
    /* Use primary style for active tool */
    background-color: #007bff;
    color: #fff;
}

.hz-header__icon .hz-header__trigger {
    padding: 10px 10px;
}

.site-header-image {
    height: 40px;
}

.ar-header-container {
    height: 80px;
}

.ar-header-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.hz-header__icon .hz-header__trigger {
    height: 80px;
}

.ar-form-input {
    border-radius: 10px;
    border: 1px solid whitesmoke;
    background-color: whitesmoke;
    outline: none;
    padding: 0.7em;
    transition: .4s ease-in-out;
}

    .ar-form-input:hover {
        box-shadow: 3px 3px 0px #969696, -3px -3px 10px #ffffff;
    }

    .ar-form-input:focus {
        background: #ffffff;
        box-shadow: inset 2px 2px 5px rgba(0,0,0,0.3);
        border-color: unset;
        border: unset;
    }

.ar-form-button {
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 10px;
    border: none;
    transition: .4s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.4) 1px 1px 1px;
    font-size: 1.1rem;
    background: var(--aidikala-main);
    color: #fff;
    padding: .5rem 3rem;
}

    .ar-form-button:hover {
        box-shadow: 3px 3px 0px #969696, -3px -3px 10px #ffffff;
        transform: translateX(-0.2em) translateY(-0.2em);
    }

    .ar-form-button:active {
        transition: .2s;
        transform: translateX(0em) translateY(0em);
        box-shadow: none;
    }

.landscape-not-allowed {
    background: #fff;
    color: #000;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    user-select: none;
    z-index: 9999999999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    display: none;
    padding: 2rem;
}
    .landscape-not-allowed span {
        text-align: center;
        margin: 0.5rem;
    }

    .landscape-not-allowed img {
        width: 72px;
        margin: 0.5rem;
    }


@media screen and (orientation: portrait) {

    .landscape-not-allowed {
        display: none;
    }
}

@media screen and (orientation: landscape) {
    .landscape-not-allowed {
        display: none;
    }

    @media(max-height: 576px) {
        .landscape-not-allowed {
            display: flex;
        }
    }
}
