/* Analog products modal */
.analog-modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:1060;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:rgba(248, 250, 252, .92);
    backdrop-filter:blur(6px);
}
.analog-modal-overlay__inner{
    text-align:center;
    padding:24px;
}
.analog-modal-overlay__spinner{
    color:#2d7d4b;
    font-size:2.4em;
}
.analog-modal-overlay__text{
    margin:16px 0 0;
    font-size:1em;
    font-weight:600;
    color:#334155;
}

#analog-modal.analog-modal .modal-dialog{
    max-width:920px;
    width:calc(100% - 24px);
    margin:20px auto;
}
#analog-modal.analog-modal .modal-content{
    border:none;
    border-radius:20px;
    box-shadow:0 28px 72px rgba(15, 23, 42, .22);
    overflow:hidden;
    background:#fff;
}
#analog-modal.analog-modal .modal-header{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    padding:20px 56px 18px 22px;
    border-bottom:1px solid rgba(22, 34, 51, .07);
    background:linear-gradient(180deg, #f8fbf9 0%, #fff 100%);
}
#analog-modal.analog-modal .modal-header:before{
    content:'';
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:12px;
    background:linear-gradient(135deg, #eef7f1 0%, #e3f2ea 100%);
    box-shadow:inset 0 0 0 1px rgba(45, 125, 75, .12);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d7d4b'%3E%3Cpath d='M4 6h16v2H4V6zm0 5h10v2H4v-2zm0 5h16v2H4v-2z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:center;
    background-size:18px;
}
#analog-modal.analog-modal .modal-title{
    flex:1 1 auto;
    margin:0;
    padding:0;
    font-size:1.2em;
    font-weight:800;
    line-height:1.25;
    color:#0f172a;
}
#analog-modal.analog-modal .modal-header .close{
    position:absolute;
    top:14px;
    right:14px;
    z-index:2;
    width:36px;
    height:36px;
    margin:0;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:300;
    line-height:1;
    color:#64748b;
    background:transparent;
    border:none;
    border-radius:50%;
    opacity:1;
    transition:background .15s ease, color .15s ease;
}
#analog-modal.analog-modal .modal-header .close:hover,
#analog-modal.analog-modal .modal-header .close:focus{
    background:rgba(22, 34, 51, .06);
    color:#182233;
    opacity:1;
}
#analog-modal.analog-modal .modal-body{
    padding:18px 16px 22px;
    max-height:min(72vh, 640px);
    overflow-y:auto;
    background:#f8fafb;
    scrollbar-width:thin;
    scrollbar-color:#cbd5e1 transparent;
}
#analog-modal.analog-modal .modal-body::-webkit-scrollbar{
    width:8px;
}
#analog-modal.analog-modal .modal-body::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:8px;
}
#analog-modal.analog-modal .modal-body .alert{
    margin:0;
    border-radius:14px;
    border:none;
    padding:14px 16px;
    font-weight:600;
}
#analog-modal.analog-modal .modal-body .alert-info{
    color:#1e4d32;
    background:linear-gradient(90deg, #f0f7f3 0%, #eef6fb 100%);
}

#analog-modal .analog-modal-module{
    margin:0;
}
#analog-modal .analog-modal-module .uni-module__wrapper{
    margin:0 -8px;
    opacity:1;
}
#analog-modal .analog-modal-module .product-thumb.uni-item,
#analog-modal .analog-modal-module .owl-item .product-thumb.uni-item{
    height:100%;
    padding:0;
    overflow:hidden;
    border:1px solid rgba(22, 34, 51, .08);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 28px rgba(22, 34, 51, .06);
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#analog-modal .analog-modal-module .product-thumb.uni-item:hover{
    border-color:rgba(45, 125, 75, .28);
    box-shadow:0 16px 36px rgba(45, 125, 75, .12);
    transform:translateY(-2px);
}
#analog-modal .analog-modal-module .product-thumb.uni-item .product-thumb__caption{
    padding:14px;
}
#analog-modal .analog-modal-module .product-thumb__image{
    min-height:140px;
    margin:0;
    padding:0;
    border-radius:0;
}
#analog-modal .analog-modal-module .product-thumb__image img{
    max-height:130px;
}
#analog-modal .analog-modal-module .product-thumb__name{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:3.9em;
    margin:0 0 10px;
    font-size:.92em;
    font-weight:700;
    line-height:1.3;
    color:#0f172a;
}
#analog-modal .analog-modal-module .product-thumb__name:hover{
    color:#2d7d4b;
    text-decoration:none;
}
#analog-modal .analog-modal-module .product-thumb__price{
    margin:0 0 12px;
    font-size:1.05em;
    font-weight:800;
    color:#0f172a;
}
#analog-modal .analog-modal-module .product-thumb__price .price-old{
    margin-right:6px;
    font-size:.82em;
    font-weight:600;
    color:#182233;
}
#analog-modal .analog-modal-module .product-thumb__price .price-new{
    color:#c0392b;
}
#analog-modal .analog-modal-module .product-thumb__cart{
    margin-top:auto;
}
#analog-modal .analog-modal-module .product-thumb__add-to-cart{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    min-height:42px;
    padding:0 14px;
    font-size:.9em;
    font-weight:700;
    line-height:1.2;
    color:#fff;
    background:linear-gradient(180deg, #357a5c 0%, #2d7d4b 100%);
    border:1px solid #245a42;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(45, 125, 75, .22);
    transition:background .18s ease, transform .15s ease, box-shadow .18s ease;
}
#analog-modal .analog-modal-module .product-thumb__add-to-cart:hover,
#analog-modal .analog-modal-module .product-thumb__add-to-cart:focus{
    color:#fff;
    background:linear-gradient(180deg, #2d7d4b 0%, #245a42 100%);
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(45, 125, 75, .28);
}
#analog-modal .analog-modal-module .product-thumb__add-to-cart i{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:24px;
    border-radius:8px;
    background:rgba(255, 255, 255, .16);
    font-size:.85em;
}

#analog-modal .analog-modal-module .owl-nav{
    left:0;
    right:0;
    margin:0;
}
#analog-modal .analog-modal-module .owl-nav button{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff;
    border:1px solid rgba(22, 34, 51, .1);
    box-shadow:0 6px 16px rgba(22, 34, 51, .1);
    color:#2d7d4b;
    transition:background .15s ease, color .15s ease, border-color .15s ease;
}
#analog-modal .analog-modal-module .owl-nav button:hover{
    background:#2d7d4b;
    border-color:#2d7d4b;
    color:#fff;
}
#analog-modal .analog-modal-module .owl-dots{
    margin:8px 0 4px;
}
#analog-modal .analog-modal-module .owl-dot span{
    width:8px;
    height:8px;
    margin:4px 5px;
    background:#cbd5e1;
    transition:background .15s ease, transform .15s ease;
}
#analog-modal .analog-modal-module .owl-dot.active span,
#analog-modal .analog-modal-module .owl-dot:hover span{
    background:#2d7d4b;
    transform:scale(1.15);
}

@media (max-width:767px){
    #analog-modal.analog-modal .modal-dialog{
        width:calc(100% - 16px);
        margin:12px auto;
    }
    #analog-modal.analog-modal .modal-header{
        padding:16px 48px 14px 16px;
    }
    #analog-modal.analog-modal .modal-header:before{
        display:none;
    }
    #analog-modal.analog-modal .modal-title{
        font-size:1.05em;
    }
    #analog-modal.analog-modal .modal-body{
        padding:12px 10px 16px;
        max-height:calc(100vh - 120px);
    }
    #analog-modal .analog-modal-module .uni-module__wrapper{
        margin:0;
    }
    #analog-modal .analog-modal-module .product-thumb.uni-item{
        padding:0;
    }
    #analog-modal .analog-modal-module .product-thumb.uni-item .product-thumb__caption{
        padding:12px;
    }
    #analog-modal .analog-modal-module .product-thumb__image{
        min-height:120px;
    }
    #analog-modal .analog-modal-module .product-thumb__image img{
        max-height:110px;
    }
}
