/* Success Toast */
#toast-container>.toast-success {
    background-color: var(--primary-color, #681839) !important;
    color: #fff !important;
}

/* Error Toast */
#toast-container>.toast-error {
    background-color: #e63946 !important;
    color: #fff !important;
}

/* Info Toast */
#toast-container>.toast-info {
    background-color: #219ebc !important;
    color: #fff !important;
}

/* Warning Toast */
#toast-container>.toast-warning {
    background-color: #ffb703 !important;
    color: #000 !important;
}

/* Common Toast Style */
#toast-container>div {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 16px;
}

/* Remove default toast icons */
#toast-container>.toast:before {
    content: none !important;
}

#toast-container>.toast {
    background-image: none !important;
    padding-left: 16px !important;
}

/* Preloader Centering and Responsiveness */
.preload-container,
#preloader-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
}

.preload-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid var(--primary-color, #681839) !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Zoom Pane Styles */
#product-zoom-container {
    position: relative;
}

.drift-zoom-pane {
    position: absolute;
    z-index: 1000;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Simple CSS Zoom Fallback */
.tf-image-zoom {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.tf-image-zoom:hover {
    transform: scale(1.5);
    z-index: 1000;
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
    .canvas-mb {
        width: 85% !important;
        max-width: 400px;
    }

    .mb-content-top {
        padding: 20px 16px;
    }

    .form-search {
        margin-bottom: 20px;
    }

    .form-search input {
        border-radius: 10px;
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        font-size: 14px;
    }

    .nav-ul-mb {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-ul-mb li {
        margin-bottom: 8px;
    }

    .mb-menu-link {
        display: block;
        padding: 14px 16px;
        background: #f8f9fa;
        border-radius: 10px;
        color: #681839;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mb-menu-link:hover {
        background: #681839;
        color: white;
    }

    .mb-other-content {
        padding: 20px 16px;
        background: #fafafa;
        margin-top: 10px;
    }

    .group-icon {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .site-nav-icon {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        color: #333;
        font-weight: 500;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .site-nav-icon:hover {
        background: #f0f0f0;
        border-color: #681839;
    }

    .site-nav-icon svg {
        flex-shrink: 0;
    }

    .site-nav-icon[type="submit"] {
        width: 100%;
        justify-content: flex-start;
    }

    .mb-notice {
        text-align: center;
        margin-bottom: 16px;
    }

    .text-need {
        font-size: 16px;
        font-weight: 600;
        color: #681839;
        text-decoration: none;
    }

    .mb-contact {
        text-align: center;
        margin-bottom: 20px;
    }

    .mb-contact p {
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .tf-btn-default {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 20px;
        background: #681839;
        color: white;
        border-radius: 8px;
        font-weight: 600;
        font-size: 13px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .tf-btn-default:hover {
        background: #8a2b53;
    }

    .mb-info {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 16px;
        padding: 0;
        list-style: none;
    }

    .mb-info li {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background: white;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

    .mb-info li i {
        color: #681839;
    }

    /* Mobile Preloader */
    .preload-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .preload-logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .spinner {
        width: 40px !important;
        height: 40px !important;
        border-width: 3px !important;
    }
}

/* Search Suggestions Mobile */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 150px !important;
        font-size: 14px;
    }

    .search-suggestions li {
        padding: 8px 10px;
    }
}

/* Pincode Checker Modal Styles */
.modal-pincode-checker .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(104, 24, 57, 0.15);
    position: relative;
    z-index: 1060;
}

.modal-pincode-checker .modal-header {
    background: linear-gradient(135deg, #681839 0%, #9d4edd 100%);
    color: white;
    padding: 20px 30px;
    border-bottom: none;
}

.modal-pincode-checker .modal-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.modal-pincode-checker .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-pincode-checker .modal-body {
    padding: 40px 30px;
    background: #fafafa;
}

.modal-pincode-checker .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: white;
}

.modal-pincode-checker .form-control:focus {
    border-color: #681839;
    box-shadow: 0 0 0 3px rgba(104, 24, 57, 0.1);
    outline: none;
}

.modal-pincode-checker .btn {
    background: linear-gradient(135deg, #681839 0%, #9d4edd 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(104, 24, 57, 0.3);
}

.modal-pincode-checker .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 24, 57, 0.4);
    background: linear-gradient(135deg, #5a1530 0%, #8a3bc7 100%);
}

.modal-pincode-checker .alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 15px;
    margin-top: 20px;
}

.modal-pincode-checker .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.modal-pincode-checker .alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.modal-pincode-checker .alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.modal-pincode-checker .fas {
    margin-right: 8px;
    font-size: 18px;
}

/* Mobile Responsiveness for Pincode Modal */
@media (max-width: 576px) {
    .modal-pincode-checker .modal-dialog {
        margin: 10px;
    }

    .modal-pincode-checker .modal-body {
        padding: 30px 20px;
    }

    .modal-pincode-checker .modal-header {
        padding: 15px 20px;
    }

    .modal-pincode-checker .modal-title {
        font-size: 18px;
    }

    .modal-pincode-checker .form-control {
        font-size: 16px;
        padding: 14px 16px;
    }

    .modal-pincode-checker .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}