/*
Theme Name: SC-Ecom  V2
Theme URI: https://sujitc.com.np/sc-drinks
Author: Sujit Chaudhary
Author URI: https://sujitc.com.np
Description: A professional drinks delivery & catalogue theme. Designed for 24/7 WhatsApp ordering with a clean UI.
Version: 2.0.1.1
License: GNU General Public License v2 or later
Text Domain: sc-theme
Tags: drinks, catalogue, tailwind, responsive, whatsapp-ordering
*/


.alignleft {
    float: left;
    margin: 0.5em 1em 0.5em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 0.5em 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

/* Animation for Dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nested Sub-Menu (Third Level) */
.main-nav-container ul li ul.sub-menu li ul.sub-menu {
    left: 100%;
    top: 0;
    margin-left: 1px;
}

@media (max-width: 1023px) {

    /* Mobile menu full width style */
    .main-nav-container ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav-container ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav-container ul li a {
        padding: 15px 0;
        display: block;
    }

    /* Mobile ma dropdown default khulne or click hune banauna */
    .main-nav-container ul li ul.sub-menu {
        position: static;
        display: block;
        /* Mobile ma sub-menu haru direct list ma dekhaucha */
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        padding-left: 20px;
    }
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    /* Orange color scrollbar */
    border-radius: 10px;
}

/* Image Hover Zoom effect on Mobile */
@media (max-width: 768px) {
    .group:active img {
        transform: scale(1.05);
    }
}

/* Smooth Scroll for Cart Items */
#cart-items::-webkit-scrollbar {
    width: 4px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #fb923c;
    border-radius: 10px;
}

/* Age Verify Fade In */
#age-verify-overlay:not(.hidden) {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* WhatsApp Button Float Effect */
.bg-green-500.w-16.h-16 {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.swal2-popup {
    border-radius: 1.5rem !important;
    /* SweetAlert ko look pani tapai ko UI jastai rounded banaucha */
}

/* Sidebar slide-in animation optimize */
@keyframes slide-left {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom Animations for Loader */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes loading-bar {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }

    50% {
        width: 70%;
        transform: translateX(0);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite ease-in-out;
}

.animate-loading-bar {
    animation: loading-bar 1.5s infinite ease-in-out;
}

/* Page load vaye pachi loader hataune transition */
.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo-container a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.loader-logo-container img {
    max-width: 100px;
    /* Logo dherai thulo vayo vane adjust garnu hos */
    height: auto;
    display: block;
}