@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --v2-primary: #0b2c6b;       /* Exact Navy Blue from Mockup */
    --v2-dark: #000000;          /* Pitch Black */
    --v2-accent: #f97316;        /* Accent Orange */
    --v2-accent-hover: #ea580c;
    --v2-text-dark: #1f2937;
    --v2-text-light: #e8edf5;
    --v2-text-muted: #9ca3af;
    --v2-bg-light: #f3f4f6;
    --v2-font: 'Inter', sans-serif;
}

/* Global modifications */
h1, h2, h3, h4, h5, h6, .home-section-title, .collection-title {
    font-family: var(--v2-font) !important;
}

/* ===== HEADER TOPBAR (WHITE/LIGHT GREY) ===== */
.header-top-bar {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    font-family: var(--v2-font);
}

.header-top-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #333333 !important;
}

.header-top-link {
    color: #333333 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-top-link:hover {
    color: var(--v2-accent) !important;
}

/* Header Search Form */
.header-search-wrap {
    width: 300px;
    position: relative;
}

.header-search-wrap form {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 34px;
}

.header-search-wrap input.form-control {
    border: none !important;
    box-shadow: none !important;
    padding: 6px 35px 6px 12px !important;
    height: 100% !important;
    font-size: 13px !important;
    background: transparent !important;
    color: #000 !important;
}

.header-search-wrap input.form-control::placeholder {
    color: #999 !important;
}

.header-search-wrap .search-submit-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 35px;
    background: transparent;
    border: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header-search-wrap .search-submit-btn:hover {
    color: var(--v2-accent);
}

.header-search-wrap .serch-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    color: #000;
}

/* ===== MAIN TOPBAR (WHITE) ===== */
.topbar {
    border-bottom: 1px solid #f3f4f6;
}


/* Service badges in middle */
.header-services-badges {
    flex-grow: 1;
}

.service-badge-item {
    font-family: var(--v2-font);
}

/* badge-icon-circle: nền trắng, border xám — giống v1 */
.badge-icon-circle {
    width: 54px;
    height: 54px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s;
}

.badge-icon-circle:hover {
    border-color: #9ca3af;
}

.badge-icon-circle svg {
    stroke: #555;
}

.badge-text-wrap {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Cart Icon — hình tròn cam to giống v1 */
.cart-btn-link-v2 {
    color: #111 !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: opacity .2s;
}

.cart-btn-link-v2:hover {
    opacity: .85;
}

.cart-icon-wrapper-v2 {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background-color: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.cart-icon-wrapper-v2 .count-label {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
    padding: 0 4px;
}

/* Hotline Capsule Button */
.hotline-capsule-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--v2-accent);
    border-radius: 30px;
    padding: 4px 16px 4px 6px;
    color: var(--v2-accent) !important;
    text-decoration: none !important;
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
}

.hotline-capsule-btn .capsule-icon {
    width: 28px;
    height: 28px;
    background: var(--v2-accent);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 13px;
    transition: all 0.25s ease;
}

.hotline-capsule-btn:hover {
    background: var(--v2-accent);
    color: #fff !important;
}

.hotline-capsule-btn:hover .capsule-icon {
    background: #fff;
    color: var(--v2-accent);
}

/* Mobile search overlay */
.mobile-search-box-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.mobile-search-box-wrap form {
    flex-grow: 1;
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

.mobile-search-box-wrap form input {
    border: none !important;
    height: 40px !important;
    box-shadow: none !important;
}

.mobile-search-box-wrap form button {
    background: transparent;
    border: none;
    padding: 0 15px;
    color: var(--v2-text-muted);
}

.mobile-search-box-wrap .close-mobile-search {
    font-size: 28px;
    color: var(--v2-text-muted);
    cursor: pointer;
    margin-left: 15px;
    text-decoration: none !important;
}

/* ===== BLACK NAVIGATION BAR ===== */
.navbar-v2 {
    background-color: var(--v2-dark);
    min-height: 50px;
}

/* Nav Menu Inner */
.nav-inner-v2 {
    display: flex;
    align-items: stretch;
    height: 50px;
    width: 100%;
}

.nav-inner-v2 .site-menu {
    height: 100%;
    width: 100%;
}

.nav-inner-v2 .site-menu > ul {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-inner-v2 .site-menu > ul > li {
    display: flex;
    align-items: stretch;
}

.nav-inner-v2 .site-menu > ul > li > a {
    color: #fff !important;
    text-transform: uppercase;
    font-family: var(--v2-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    height: 100%;
}

.nav-inner-v2 .site-menu > ul > li:hover > a,
.nav-inner-v2 .site-menu > ul > li.active > a {
    color: var(--v2-accent) !important;
    background-color: rgba(255,255,255,0.08);
}

.nav-inner-v2 .site-menu .t-h-dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    top: 100%;
    background: #fff;
    padding: 10px 0;
}

.nav-inner-v2 .site-menu .t-h-dropdown-menu a {
    font-family: var(--v2-font);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    color: var(--v2-text-dark) !important;
    display: block;
    text-decoration: none !important;
}

.nav-inner-v2 .site-menu .t-h-dropdown-menu a:hover {
    color: var(--v2-accent) !important;
    background-color: var(--v2-bg-light);
}

/* ===== HOMEPAGE SLIDER OVERRIDES ===== */
.slider-area-wrapper {
    background-color: #fff;
}

.hero-slider .item {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background-size: 100% auto !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
}

.hero-slider .owl-carousel .owl-item .item::before {
    content: '';
    display: block;
    padding-top: 42%;
}

/* ===== SECTION TITLES ===== */
.home-section-title-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 35px;
}

.home-section-title-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 1;
}

.home-section-title {
    display: inline-block;
    background-color: #fff;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    color: var(--v2-text-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== PRODUCT CARD V2 ===== */
.product-card-v2 {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-v2:hover {
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.06);
    border-color: #e5e7eb;
}

.product-thumb-v2 {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* square ratio */
    background: #fafafa;
}

.product-thumb-v2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-v2:hover .product-thumb-v2 img {
    transform: scale(1.04);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--v2-accent);
    color: #fff;
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    z-index: 5;
}

.badge-out-of-stock {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #9ca3af;
    color: #fff;
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 2px;
    z-index: 5;
}

.product-title-v2 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title-v2 a {
    color: var(--v2-text-dark) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.product-title-v2 a:hover {
    color: var(--v2-accent) !important;
}

.product-price-row-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.price-current-v2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--v2-accent);
}

.price-old-v2 {
    font-size: 13px;
    color: var(--v2-text-muted);
}

.btn-buy-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #111827;
    color: #111827 !important;
    font-family: var(--v2-font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    height: 38px;
    width: 100%;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-radius: 2px;
    cursor: pointer;
}

.btn-buy-v2:hover {
    background: #111827;
    color: #fff !important;
}

.disabled-buy-v2 {
    border-color: #d1d5db;
    color: var(--v2-text-muted) !important;
}

.disabled-buy-v2:hover {
    background: #f3f4f6;
    color: var(--v2-text-dark) !important;
    border-color: #9ca3af;
}

/* ===== BLACK FOOTER OVERRIDES ===== */
footer.site-footer.bg-dark-footer,
.site-footer.bg-dark-footer {
    background-color: #000000 !important;
    background: #000000 !important;
    color: var(--v2-text-light) !important;
    padding-top: 60px !important;
}

.bg-dark-footer .widget-title {
    color: #fff !important;
    font-family: var(--v2-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 8px;
}

.bg-dark-footer .widget-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--v2-accent);
}

.bg-dark-footer a {
    color: var(--v2-text-light) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.bg-dark-footer a:hover {
    color: var(--v2-accent) !important;
}

.footer-shop-name {
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links-list li {
    margin-bottom: 10px;
    padding-left: 12px;
    position: relative;
}

.footer-links-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--v2-accent);
    border-radius: 50%;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6) !important;
}

.copyright-text a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.copyright-text a:hover {
    color: var(--v2-accent) !important;
}

/* Lazy loading — ảnh chưa load giữ đúng kích thước, không bị to */
img.lazy:not([src]) {
    visibility: hidden;
}

img.lazy {
    min-height: 0 !important;
    transition: opacity .3s ease;
}
#preloader img {
    max-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
}

/* ===== STICKY HEADER ===== */
.navbar-stuck .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1) !important;
    background: #fff !important;
}

.navbar-stuck .navbar-v2 {
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    top: var(--topbar-height, 102px) !important;
}

/* Bù padding cho body khi header fixed */
.navbar-stuck-offset {
    padding-top: var(--header-total-height, 152px) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .header-services-badges {
        display: none !important;
    }
    .topbar {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* Hero slider full width & no gap overrides */
.slider-area-wrapper {
    margin-top: 0px !important;
}

.hero-slider {
    border-radius: 0px !important;
}

/* Custom styling for the categories dropdown inside the header v2 */
.header-category-dropdown .left-category-area {
    width: 100% !important;
    border: none !important;
    background: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

.header-category-dropdown .left-category-area .category-header {
    display: none !important; /* Hide the grey "DANH MỤC" header box */
}

.header-category-dropdown .left-category-area .category-list {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Disable category sub-menu hover flyouts on desktop */
.left-category-area .category-list .c-item:hover .sub-c-box,
.left-category-area .category-list .sub-c-box .child-c-box:hover .child-category {
    display: none !important;
}

/* Show submenu only on click (active classes) */
.left-category-area .category-list .c-item.show-sub .sub-c-box {
    display: block !important;
}

.left-category-area .category-list .sub-c-box .child-c-box.show-child .child-category {
    display: block !important;
}

/* Hide mobile menu and mobile search triggers on desktop explicitly */
@media (min-width: 992px) {
    .site-header .toolbar .toolbar-item.mobile-menu-toggle,
    .site-header .toolbar .toolbar-item.mobile-search-trigger {
        display: none !important;
    }
}

/* ===== PRODUCT CARD V2 UNIFICATION ===== */
.product-card {
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #f3f4f6 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
}

.product-card:hover {
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.06) !important;
    border-color: #e5e7eb !important;
}

.product-card .product-thumb {
    padding: 0 !important;
    background: #fafafa !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    position: relative !important;
    border-radius: 4px 4px 0 0 !important;
}

.product-card .product-thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.product-card .product-title {
    height: 40px !important;
    line-height: 20px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    margin: 10px 0 !important;
    text-align: center !important;
}

.product-card .product-title a {
    color: var(--v2-text-dark) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.2s ease !important;
}

.product-card .product-title a:hover {
    color: var(--v2-accent) !important;
}

.product-card .product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--v2-accent) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.product-card .product-price del {
    font-size: 13px !important;
    color: var(--v2-text-muted) !important;
    font-weight: normal !important;
    order: 2 !important;
}

/* Bỏ các icon yêu thích, giỏ hàng, so sánh khi hover vào sản phẩm */
.product-card .product-button-group {
    display: none !important;
}

/* Định dạng chiều rộng cố định cho cột Logo và cột Danh mục sản phẩm trên Desktop */
@media (min-width: 992px) {
    .logo-column-v2 {
        flex: 0 0 250px !important;
        max-width: 250px !important;
        width: 250px !important;
    }
    
    .category-column-v2 {
        flex: 0 0 250px !important;
        max-width: 250px !important;
        width: 250px !important;
    }
    
    .menu-column-v2 {
        flex: 1 !important;
        max-width: calc(100% - 250px) !important;
        width: calc(100% - 250px) !important;
    }
}

/* Canh giữa logo trong khối chứa logo */
.logo-column-v2 .site-branding {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.logo-column-v2 .site-logo img {
    margin: 0 auto !important;
}




