/**
 * Theme Name:     Storefront Child new
 * Author:         Automattic
 * Template:       storefront
 * Text Domain:	   storefront-child-new
 * Description:    Storefront is the perfect theme for your next WooCommerce project. Designed and developed by WooCommerce Core developers, it features a bespoke integration with WooCommerce itself plus many of the most popular customer facing WooCommerce extensions. There are several layout &amp; color options to personalise your shop, multiple widget regions, a responsive design and much more. Developers will love its lean and extensible codebase making it a joy to customize and extend. Looking for a WooCommerce theme? Look no further!
 */
/*
Theme Name: Thế Giới Hoa Hồng Child
Template: storefront
Version: 2.0.0
Description: Child theme tối ưu giao diện Header & Menu theo phong cách Bouqs.
*/

/* =========================================================
   BOUQS STYLE HEADER & NAVIGATION
   ========================================================= */

/* Tổng thể Header phẳng, hiện đại, nhiều khoảng trắng */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f2f2f2 !important;
    padding: 15px 0 !important;
}

/* Khung chứa rộng rãi, thoáng đãng */
.tgh-bouqs-header-wrap {
    width: 100% !important;
    background-color: #ffffff !important;
}

.tgh-bouqs-header-wrap .tgh-bouqs-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 25px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Điều hướng chính */
.tgh-bouqs-header-wrap #site-navigation,
.tgh-bouqs-header-wrap .primary-navigation {
    display: block !important;
    width: auto !important;
    background: transparent !important;
    float: none !important;
}

@media (min-width: 768px) {
    .tgh-bouqs-header-wrap .primary-navigation > ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .tgh-bouqs-header-wrap .primary-navigation > ul > li {
        margin: 0 8px !important;
        position: relative !important;
    }

    /* Phong cách chữ menu cấp 1: Gọn gàng, tinh tế */
    .tgh-bouqs-header-wrap .primary-navigation > ul > li > a {
        padding: 12px 16px !important;
        font-weight: 500 !important;
        font-size: 15px !important;
        letter-spacing: -0.2px !important;
        color: #111111 !important;
        text-transform: capitalize !important;
        transition: color 0.2s ease !important;
    }

    /* Hiệu ứng đổi màu nhẹ nhàng khi hover */
    .tgh-bouqs-header-wrap .primary-navigation > ul > li > a:hover {
        color: #d81b60 !important;
        background-color: transparent !important;
    }
}

/* =========================================================
   MENU ĐA TẦNG (DROPDOWN) HIỆN ĐẠI
   ========================================================= */
.main-navigation ul ul {
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    min-width: 230px !important;
    display: none !important; 
    padding: 12px 0 !important;
    z-index: 9999 !important;
}

.main-navigation ul li:hover > ul {
    display: block !important; 
}

.main-navigation ul ul a {
    color: #333333 !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    border-bottom: none !important;
}

.main-navigation ul ul a:hover {
    color: #d81b60 !important;
    background-color: #fcf4f7 !important;
}

/* Mũi tên phân cấp thanh lịch */
.tgh-bouqs-header-wrap .primary-navigation > ul > li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: 'FontAwesome';
    font-size: 9px;
    margin-left: 6px;
    vertical-align: middle;
    color: #666;
}

/* =========================================================
   THANH GIỎ HÀNG (CART) SANG TRỌNG BÊN PHẢI
   ========================================================= */
.site-header .site-header-cart {
    float: right !important;
    margin-top: -50px !important;
    margin-right: 25px !important;
    position: relative !important;
    z-index: 1000 !important;
}

.site-header .site-header-cart .cart-contents {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.site-header .site-header-cart .cart-contents:hover {
    background: #d81b60 !important;
    transform: translateY(-1px);
}

/* Responsive Mobile */
@media (max-width: 767px) {
    .tgh-bouqs-header-wrap .tgh-bouqs-container {
        display: block !important;
    }

    .site-header .site-header-cart {
        float: none !important;
        margin: 15px 0 0 0 !important;
        text-align: center !important;
    }
}
/* =========================================================
   MŨI TÊN PHÂN CẤP CHUẨN SVG (KHÔNG LỖI FONT)
   ========================================================= */

/* 1. Mũi tên cho menu cấp 1 */
.tgh-bouqs-header-wrap .primary-navigation > ul > li.menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}

.tgh-bouqs-header-wrap .primary-navigation > ul > li.menu-item-has-children > a::after {
    content: "" !important;
    width: 6px;
    height: 6px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

/* Xoay mũi tên khi hover vào menu cha */
.tgh-bouqs-header-wrap .primary-navigation > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    border-color: #d81b60; /* Đổi sang màu hồng thương hiệu khi hover */
}

/* 2. Mũi tên cho menu cấp 2 (nếu có cấp con nữa trỏ sang phải) */
.main-navigation ul ul li.menu-item-has-children > a {
    position: relative;
}

.main-navigation ul ul li.menu-item-has-children > a::after {
    content: "" !important;
    position: absolute;
    right: 15px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: translateY(-50%) rotate(-45deg);
}