:root {
    --fresh-red: #E31B23;
    --dark-overlay: rgba(0, 0, 0, 0.4);
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 1. NAVBAR --- */
.navbar {
    margin: 15px 25px !important;
    border-radius: 100px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.05) !important;
    z-index: 1050 !important;
    position: sticky;
    top: 15px;
    transition: var(--transition);
}

/* --- 2. HERO BANNER --- */
.hero-banner, .about-hero {
    height: 70vh;
    margin: 10px 25px 30px 25px;
    border-radius: 40px;
    position: relative;
    background: #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg, .hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    z-index: 1;
}

/* --- 3. CATEGORY CIRCLES (SỬA LỖI HÌNH TO NHỎ) --- */
.cate-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cate-circle {
    width: 120px; /* Cố định kích thước vòng tròn */
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

    .cate-circle img {
        width: 70% !important; /* Đảm bảo icon nằm gọn bên trong */
        height: 70% !important;
        object-fit: contain !important; /* Giữ nguyên tỉ lệ icon, không bị méo */
    }

.cate-circle-wrapper:hover .cate-circle {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- 4. PRODUCT CARDS (ÉP ẢNH VUÔNG ĐỀU) --- */
.product-card {
    border: none !important;
    border-radius: 25px !important;
    background: #fff !important;
    box-shadow: var(--card-shadow) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.img-zoom-container {
    width: 100%;
    aspect-ratio: 1 / 1 !important; /* Ép ảnh sản phẩm thành hình vuông */
    overflow: hidden;
}

    .img-zoom-container img, .product-card img, .card-img-top {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Cắt ảnh vừa khung, không làm méo */
        transition: var(--transition);
    }

.product-card:hover img {
    transform: scale(1.08);
}

/* Tinh chỉnh nội dung Card */
.card-body {
    padding: 1.25rem !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title, .product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    height: 2.8rem; /* Cố định chiều cao tên bánh để các hàng thẳng nhau */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--fresh-red);
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
}

/* Nút Admin Edit */
.btn-edit-admin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

    .btn-edit-admin:hover {
        background: #000;
        color: #fff;
        transform: rotate(15deg);
    }

/* --- 5. NÚT BẤM CHUNG --- */
.btn-fresh-red {
    background: var(--fresh-red);
    color: white !important;
    border-radius: 100px;
    padding: 12px 35px;
    font-weight: 700;
    border: none;
    transition: var(--transition);
}

/* --- 6. TRIỆT TIÊU CÁC PHẦN THỪA --- */
.register-news-box, .newsletter-section, .bg-danger.p-4.rounded-4,
[id*="dang-ky-nhan-tin"], .sidebar-newsletter {
    display: none !important;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    .cate-circle {
        width: 80px;
        height: 80px;
    }

    .hero-banner {
        height: 45vh;
        margin: 10px;
    }

    .navbar {
        margin: 10px !important;
    }
}
