﻿/* TagProducts.css */

.accordion-button:not(.collapsed) {
    color: #333 !important;
    background-color: transparent !important;
}

.custom-checkbox input:checked + label:before {
    background: #982464 !important;
    border-color: #982464 !important;
}

@media (max-width: 1300px) {
    .modern-sidebar {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 25px;
        height: fit-content;
        transition: all 0.3s ease;
    }
}

@media (max-width: 491px) {
    body {
        padding-top: 120px;
    }

    .sort-item {
        font-size: 12px !important;
    }

    /* Shared overlay base */
    .filter-overlay,
    .sort-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1055;
        display: none;
    }

    .gap-8 {
        gap: 13rem !important;
    }

    /* Active state */
    .filter-overlay.active,
    .sort-overlay.active {
        display: block;
    }

    /* Bottom sheet */
    .filter-overlay-content,
    .sort-overlay-content {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: #fff;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        animation: slideUp 0.3s ease-out;
    }

    /* Header */
    .filter-header h3,
    .sort-header h3 {
        font-size: 16px;
        font-weight: 600;
    }

    /* Animation */
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Sort Overlay Styles */
.sort-overlay .sort-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-overlay .sort-item {
    text-align: left;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

    .sort-overlay .sort-item.active {
        background: #800020;
        color: #fff;
        border: none;
    }

@media (max-width: 991px) {
    .sort-overlay .sort-item {
        font-size: 13px;
        padding: 10px;
        background: white;
    }
}

.otp-input {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.25rem;
    border: 1px solid #ccc;
    transition: border 0.3s ease;
}

    .otp-input:focus {
        border-color: #1c0823;
        outline: none;
        box-shadow: 0 0 5px rgba(169, 116, 95, 0.3);
    }

.btn-login-primary {
    background-color: #1c0823;
    color: white;
    border-radius: 50px;
    border: none;
}

    .btn-login-primary:hover {
        background-color: #8e5f4d;
    }
