
@media (min-width: 769px) {
    * {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

        *::-webkit-scrollbar {
            width: 6px;
        }

        *::-webkit-scrollbar-track {
            background: transparent;
        }

        *::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 10px;
        }

            *::-webkit-scrollbar-thumb:hover {
                background-color: #aaa;
            }
}

@media (max-width: 768px) {
    * {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        *::-webkit-scrollbar {
            display: none;
        }

}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
  margin-bottom: 60px;
}

.error-msg {
    color: red;
    font-size: 0.8rem;
}

input.error, textarea.error, select.error {
    border: 1px solid red !important;
}


/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Popup khung */
.popup {
    background: #fff;
    border-radius: 12px;
    width: 600px;
    padding: 1rem;
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Header */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .5rem;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


    .popup-header h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
    }

.close {
    font-size: 22px;
    cursor: pointer;
}

/* Body */
.popup-body {
    margin-top: .8rem;
    flex-grow: 1; 
    overflow-y: auto; 
    max-height: calc(80vh - 60px);
    padding-right: 4px; 
}

    .popup-body::-webkit-scrollbar {
        width: 6px;
    }

    .popup-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

/* Product section */
.product-popup {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .product-popup img.product-image-popup {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: 10px;
        object-fit: contain;
    }

/* Info section */
.product-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.details-price-popup {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.3rem;
}

.old-price {
    color: red;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-info {
    margin-top: .5rem;
    font-size: 0.95rem;
    color: #444;
}

/* SKU Options */
.details-tag-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .5rem;
    margin-top: .5rem;
    padding: 0;
    list-style: none;
}

    .details-tag-list li a {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: .4rem .6rem;
        text-decoration: none;
        color: #000;
        font-size: .9rem;
        transition: 0.2s;
    }

        .details-tag-list li a.active,
        .details-tag-list li a:hover {
            color: var(--white) !important;
            background-color: var(--primary) !important;
            transition: all 0.3s ease;
        }

    .details-tag-list img {
        width: 24px;
        height: 24px;
        object-fit: cover;
        margin-right: 5px;
    }

/* Quantity control */
.cart-action-group {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .8rem;
}

.product-action {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

    .product-action button {
        background: #f1f1f1;
        border: none;
        width: 32px;
        height: 32px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .product-action input {
        width: 40px;
        text-align: center;
        border: none;
        font-size: 16px;
    }

/* Add to cart button */
.btn-buy {
    margin-top: 1rem;
    padding: .8rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #28a745;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-buy i {
        margin-right: 6px;
    }
.fixmenufilter {
    padding: 8px 0px 8px 0px !important;
}
@media (max-width: 768px) {
   
    .popup {
        width: 92%;
        padding: .8rem;
    }

    .product-popup {
        flex-direction: column;
        align-items: center;
    }

        .product-popup img.product-image-popup {
            max-width: 100%;
        }

    .details-tag-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*user header*/
.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-circle, .avatar-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

@media (max-width: 575px) {
    .avatar-circle, .avatar-image {
        width: 40px;
        height: 40px;
        font-size: 16px;
        color: #fff;
    }
}

.avatar-image {
    object-fit: cover;
    border: 2px solid #eee;
    width: 32px !important;
    height: 32px !important;
}
/*Profile*/

.nav-tabs-custom li>.active {
    color: var(--primary) !important; 
    background: var(--green-chalk) !important;
}