
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('../font/SVN-Gilroy\ SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary-color: #2E86AB;
    --secondary-color: #19457B;
    --tertiary-color: #0F6B87;
    --text-primary: #000000;
    --text-secondary: #666666;
    --white: #FFFFFF;
    --bg-header: #FFFFFFF7;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 80px;
    --header-height-mobile: 60px;
}

/* Breadcrumbs */
.breadcrumbs-bar {
    padding: 20px 0;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: #0C0C0C;
    text-decoration: underline;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--border-color);
    font-weight: 900;
}

.breadcrumb-item:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* =============================================================================
   HEADER MAIN STRUCTURE
   ============================================================================= */

.vinapet-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #E2E2E4;
    z-index: 1000;
    transition: var(--transition);
    height: var(--header-height);
}

.vinapet-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Navigation Container */
.main-navigation {
    height: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* =============================================================================
   LOGO SECTION (14%)
   ============================================================================= */

.site-branding {
    flex: 0 0 12%;
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
    transition: var(--transition);
}

.site-logo:hover {
    opacity: 0.8;
}

.header-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* =============================================================================
   NAVIGATION MENU (CENTER - FLEXIBLE)
   ============================================================================= */

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: #1F1F1F;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 8px;
    border-radius: var(--border-radius);
    /* transition: var(--transition); */
    position: relative;
}

/* .nav-list a:hover,
.nav-list a:focus {
    color: #1F1F1F;
    background: rgba(46, 134, 171, 0.05);
} */

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--primary-color);
    font-weight: 700;
}

/* =============================================================================
   NAV ACTIONS (28%)
   ============================================================================= */

.nav-actions {
    /* flex: 0 0 28%; */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* Cart Button */
.cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-btn:hover {
    background: rgba(46, 134, 171, 0.1);
    color: var(--primary-color);
}

.cart-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   CART BADGE
   ======================================== */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    opacity: 0.8;
}

.cart-btn svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: 0px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: none; /* Ẩn khi = 0 */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    border: 2px solid white;
    animation: cartBadgePop 0.3s ease;
}

/* Hiển thị khi có item */
.cart-badge.has-items {
    display: flex;
}

/* Animation khi số lượng thay đổi */
@keyframes cartBadgePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-badge.updating {
    animation: cartBadgeUpdate 0.4s ease;
}

@keyframes cartBadgeUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}
/* Shake effect khi add to cart */
@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.cart-btn.shake {
    animation: cartShake 0.5s ease;
}


/* Login Button */
.login-btn {
    background: linear-gradient(90deg, #19457B 0%, #0F6B87 100%);
    box-shadow: 0px 0px 0px 1px #39C3ED;
    box-shadow: 0px 3px 4px 0px #0000002E;
    box-shadow: -1px 1px 0px 0px #EFFEFF40 inset;
    color: var(--white);
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 0px 0px 1px #39C3ED;
    box-shadow: 0px 3px 4px 0px #0000002E;
    box-shadow: -1px 1px 0px 0px #EFFEFF40 inset;
    color: var(--white);
    text-decoration: none;
}

/* =============================================================================
   HAMBURGER BUTTON (MOBILE ONLY) - THAY THẾ CODE CŨ
   ============================================================================= */

/* Ẩn mobile-menu-toggle cũ nếu có */
.mobile-menu-toggle {
    display: none !important;
}

/* Hamburger Button - Ẩn mặc định */
.hamburger-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    margin-right: 6px; /* Khoảng cách với language switcher */
    margin-left: 6px; /* Khoảng cách với logo */
}

.hamburger-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary, #2c3e50);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation khi hamburger active */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 2px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

/* =============================================================================
   MOBILE MENU - CẬP NHẬT
   ============================================================================= */

/* Mobile Menu - Cập nhật từ code cũ */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white, #ffffff);
    box-shadow: var(--shadow-light, 0 2px 10px rgba(0,0,0,0.1));
    border-top: 1px solid var(--border-color, #e9ecef);
    max-height: 0;
    /* overflow: hidden; */
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
    max-height: 500px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    display: block;
    padding: 15px 0;
    color: #19457B;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition, all 0.3s ease);
    font-size: 16px;
}

.mobile-nav-list a:hover {
    color: var(--primary-color, #19457B);
    padding-left: 10px;
}

/* =============================================================================
   RESPONSIVE - MOBILE STYLES - CẬP NHẬT
   ============================================================================= */

@media (max-width: 768px) {
    /* Ẩn desktop menu */
    .nav-menu {
        display: none !important;
    }
    
    /* Hiển thị hamburger button */
    .hamburger-btn {
        display: flex;
    }
    
    /* Hiển thị mobile menu container */
    /* .mobile-menu {
        display: non;
    } */
    
    /* Điều chỉnh nav-actions để hamburger nằm đầu */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Language switcher và các element khác */
    .header-user-actions {
        order: 1;
    }
}

/* Tablet - Vẫn hiển thị desktop menu */
@media (min-width: 769px) {
    .hamburger-btn,
    .mobile-menu {
        display: none !important;
    }
}

/* =============================================================================
   ACCESSIBILITY - THÊM MỚI
   ============================================================================= */

/* Focus styles cho hamburger button */
.hamburger-btn:focus {
    outline: 2px solid #19457B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus styles cho mobile menu links */
.mobile-nav-list a:focus {
    outline: 2px solid #19457B;
    outline-offset: 2px;
    background: rgba(46, 134, 171, 0.1);
}

/* Screen reader text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =============================================================================
   HEADER USER ACTIONS
   ============================================================================= */

/* Container */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Styles cho user-btn mới (account và cart khi đã login) */
.header-user-actions .user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #FFFFFF;
    border: 1.2px solid #AFF0F7;
    border-radius: 8px;
    box-shadow: inset -3px -3px 8px 0px #79E9E4B2;
    color: #19457B;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-user-actions .user-btn:hover {
    transform: translateY(-2px);
    color: #19457B;
    text-decoration: none;
}

.header-user-actions .user-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =============================================================================
   RESPONSIVE DESIGN - CONSOLIDATED
   ============================================================================= */

/* Body offset for fixed header */
body {
    padding-top: var(--header-height);
    margin: 0px !important;
}

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) {
    .header-user-actions .user-btn .btn-text,
    .header-user-actions .login-btn .btn-text {
        display: inline;
    }

    .language-switcher {
        padding: 0px !important;
    }
}

/* fix bugs two row */
@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-list a {
        padding: 0px 8px;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-list {
        gap: 12px;
    }
    
    .nav-list a {
        padding: 0 4px;
    }
    
    .login-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* User actions responsive */
    .header-user-actions .account-btn .btn-text,
    .header-user-actions .login-btn .btn-text {
        display: inline;
    }
    
    .header-user-actions .cart-btn .btn-text {
        display: none;
    }
    
    .header-user-actions .cart-btn svg {
        margin-right: 0;
    }
    
    .language-switcher {
        padding: 0px !important;
    }
}

/* Mobile và iPad (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }
    
    body {
        padding-top: var(--header-height-mobile);
    }
    
    .vinapet-header {
        height: var(--header-height-mobile);
    }
    
    .site-branding {
        flex: 0 0 25%;
    }
    
    .header-logo-img {
        max-height: 35px;
    }
    
    .nav-actions {
        flex: 0 0 auto;
        gap: 8px;
    }
    
    /* User Actions Mobile Styles */
    .header-user-actions {
        gap: 5px;
    }
    
    /* New user-btn styles for mobile */
    .header-user-actions .user-btn {
        padding: 10px 12px;
        /* min-width: 44px;
        min-height: 44px; */
    }
    
    .header-user-actions .user-btn .btn-text {
        display: none;
    }
    
    .header-user-actions .user-btn svg {
        margin-right: 0;
        width: 20px;
        height: 20px;
    }
    
    /* Responsive cho nút đăng nhập - GIỮ NGUYÊN CHỮ "ĐĂNG NHẬP" */
    .header-user-actions .login-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* KHÔNG ẩn text cho login button - giữ nguyên chữ "Đăng nhập" */
    .header-user-actions .login-btn .btn-text {
        display: inline !important;
    }
    
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
}

/* =============================================================================
   ANIMATIONS & EFFECTS
   ============================================================================= */

/* Header scroll animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vinapet-header {
    animation: fadeInDown 0.5s ease-out;
}

/* Menu item hover effects */
.nav-list li {
    position: relative;
    /* overflow: hidden; */
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============================================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vinapet-header {
        border-bottom: 2px solid var(--text-primary);
    }
    
    .nav-list a {
        color: var(--text-primary);
    }
    
    .login-btn {
        border: 2px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .vinapet-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-menu {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list a {
        padding: 4px 0;
        color: var(--text-primary);
    }
    
    body {
        padding-top: 0;
    }
}

<<<<<<< HEAD
/* Language Switcher - riêng biệt không phải button */
.language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #19457B;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-switcher:hover {
    color: #19457B;
}

.language-switcher svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

/* Language text control */
.language-switcher .lang-text-short {
    display: none;
}

.language-switcher .lang-text-full {
    display: inline;
}

/* Mobile/iPad responsive */
@media (max-width: 768px) {
    .language-switcher .lang-text-full {
        display: none !important;
    }
    .language-switcher .lang-text-short {
        display: inline !important;
    }
    
    .language-switcher {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .language-switcher svg {
        margin-right: 4px;
        width: 16px;
        height: 16px;
    }
}
=======
>>>>>>> origin/sang1310
/* =============================================================================
   DROPDOWN MENU STYLES - FIXED Z-INDEX
   ============================================================================= */

/* Fix z-index cho navigation */
.main-navigation {
    position: relative;
    z-index: 1002;
}

.nav-list {
    position: relative;
    z-index: 1002;
}

/* Dropdown cho menu desktop */
.nav-list .menu-item-has-children {
    position: relative;
    z-index: 1002;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-heavy);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000 !important;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.menu-item-has-children:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(46, 134, 171, 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Dropdown arrow animation */
.menu-item-has-children .nav-link {
    display: flex;
    align-items: center;
}

<<<<<<< HEAD
/* =============================================================================
   MOBILE DROPDOWN STYLES
   ============================================================================= */

=======
   /* =============================================================================
   MOBILE DROPDOWN STYLES
   ============================================================================= */

/* Style cho button toggle */
.mobile-dropdown-toggle {
    /* Reset button default styles */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    
    /* Style giống link trong mobile menu */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    color: #19457B;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition, all 0.3s ease);
    font-size: 16px;
    text-align: left; /* Căn text về bên trái */
}

/* Focus state cho accessibility */
.mobile-dropdown-toggle:focus {
    outline: 2px solid #19457B;
    outline-offset: 2px;
    background: rgba(46, 134, 171, 0.05);
}

/* Style cũ vẫn giữ nguyên */
>>>>>>> origin/sang1310
.mobile-menu-item-has-children .mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-arrow {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
<<<<<<< HEAD
    background: rgba(46, 134, 171, 0.05);
=======
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.mobile-menu-item-has-children.active .mobile-submenu {
    max-height: 200px;
    padding: 8px 0;
}

.mobile-menu-item-has-children.active .mobile-arrow {
    transform: rotate(45deg);
}

.mobile-submenu a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-submenu a:hover {
    color: var(--primary-color);
}

.mobile-arrow {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
>>>>>>> origin/sang1310
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.mobile-menu-item-has-children.active .mobile-submenu {
    max-height: 200px;
    padding: 8px 0;
}

.mobile-menu-item-has-children.active .mobile-arrow {
    transform: rotate(45deg);
}

.mobile-submenu a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-submenu a:hover {
    background: rgba(46, 134, 171, 0.1);
<<<<<<< HEAD
    border-left-color: var(--primary-color);
=======
>>>>>>> origin/sang1310
    color: var(--primary-color);
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }
    
    .menu-item-has-children:hover .dropdown-menu {
        display: block;
    }
<<<<<<< HEAD
=======
}

/* =============================================================================
   LANGUAGE SWITCHER RESPONSIVE
   ============================================================================= */

/* Desktop: Hiển thị gtranslate trong header */
.language-switcher.desktop-only {
    display: block;
}

/* Mobile: Ẩn gtranslate trong header */
.mobile-language-switcher {
    display: none;
}

/* Mobile breakpoint - khi có hamburger button */
@media (max-width: 768px) {
    /* Ẩn language switcher ở header desktop */
    .language-switcher.desktop-only {
        display: none !important;
    }
    
    /* Hiển thị language switcher trong mobile menu */
    .mobile-language-switcher {
        display: block;
        padding: 20px 0 10px 0;
        border-top: 1px solid #f0f0f0;
        text-align: center;
    }
    
    /* Style cho gtranslate widget trong mobile menu */
    .mobile-language-switcher .gtranslate_wrapper {
        display: inline-block;
    }
>>>>>>> origin/sang1310
}