﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Quicksand", sans-serif;
    background: #fff;
    /* Màu chữ: Tối hơn, chuyên nghiệp hơn */
    color: #333;
}

/* ======= HEADER ======= */
.bloomy-header {
    border-bottom: 1px solid #e0e0e0;
}

/* Thanh hotline */
.top-info {
    /* Màu nền: Xám nhạt/trung tính */
    background: #f5f5f5;
    /* Màu chữ/điểm nhấn: Xanh Navy đậm */
    color: #0d47a1;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 40px;
}

    .top-info .social a {
        /* Màu biểu tượng: Xanh Navy đậm */
        color: #0d47a1;
        margin-left: 10px;
        font-size: 18px;
    }
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

    .logo h1 {
        font-weight: 700;
        color: #1976d2;
        margin: 0;
    }

.search-bar {
    max-width: 500px;
    width: 100%;
}

.input-group {
    border: 2px solid #bdbdbd;
}

    .input-group .form-control {
        border: none;
        box-shadow: none;
    }

    .input-group .btn {
        border: none;
        background: #1976d2;
    }

        .input-group .btn:hover {
            background: #0d47a1;
        }




.user-actions {
    flex-shrink: 0;
    gap: 15px;
    position: relative;
}

    .user-actions a,
    .user-actions .dropdown > a {
        color: #0d47a1;
        font-size: 22px;
        text-decoration: none;
    }
.cart .count {
    position: absolute;
    top: -6px;
    right: -10px;
    /* Màu nền đếm giỏ hàng: Xanh Lam mạnh mẽ */
    background: #1976d2;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}
/* Fix dropdown menu bị tràn */
.account-dropdown {
    position: relative;
}

.account-dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem;
    min-width: 200px;
    max-width: 250px;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Đảm bảo dropdown không bị tràn khỏi viewport */
.account-dropdown .dropdown-menu {
    transform: none !important;
    inset: auto !important;
}

/* Style cho dropdown items */
.account-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .account-dropdown .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    /* Style cho phần hiển thị tên user */
    .account-dropdown .dropdown-item.disabled {
        color: #212529;
        background-color: #f8f9fa;
        cursor: default;
    }

/* Đảm bảo button toggle không bị ảnh hưởng */
.account-dropdown .btn {
    background: none;
    border: none;
    padding: 0;
}

    .account-dropdown .btn:hover {
        background: none;
    }

    .account-dropdown .btn:focus {
        box-shadow: none;
        outline: none;
    }

/* ======= MENU NGANG ======= */
.bloomy-nav {
    /* Màu nền: Gradient xám/xanh lạnh */
    background: linear-gradient(to right, #e3f2fd, #e8eaf6);
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

    .bloomy-nav ul {
        list-style: none;
        display: inline-flex;
        gap: 35px;
        margin: 0;
    }

    .bloomy-nav a {
        text-decoration: none;
        /* Màu chữ: Xám than/đen */
        color: #424242;
        font-weight: 600;
        position: relative;
        transition: 0.3s;
    }

        .bloomy-nav a:hover {
            /* Màu hover: Xanh Navy đậm */
            color: #0d47a1;
        }

        .bloomy-nav a::after {
            content: "";
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 0%;
            height: 2px;
            /* Màu gạch chân: Xanh Navy đậm */
            background: #0d47a1;
            transition: width 0.3s;
        }

        .bloomy-nav a:hover::after {
            width: 100%;
        }

/* ======= FOOTER ======= */
.bloomy-footer {
    /* Màu nền: Xám nhạt/trung tính */
    background: #f5f5f5;
    padding-top: 30px;
    margin-top: 60px;
    color: #333;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 25px;
}

.footer-col {
    flex: 1;
    min-width: 240px;
}

    .footer-col h5 {
        /* Màu tiêu đề cột: Xanh Navy đậm */
        color: #0d47a1;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .footer-col p {
        font-size: 14px;
        margin-bottom: 8px;
    }

.social-links a {
    display: inline-block;
    margin-right: 10px;
    /* Màu nền biểu tượng xã hội: Xám nhạt */
    background: #e0e0e0;
    /* Màu biểu tượng: Xanh Navy đậm */
    color: #0d47a1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

    .social-links a:hover {
        /* Màu nền hover: Xanh Navy đậm */
        background: #0d47a1;
        color: #fff;
    }

.footer-bottom {
    /* Màu nền: Xanh Navy đậm */
    background: #0d47a1;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}
