/* ============================================================
   REDESIGN.CSS  –  Energetic/Bold theme  –  primary #17a2b8
   ============================================================ */

:root {
    --primary:       #17a2b8;
    --primary-dark:  #0f7a8a;
    --primary-light: #e0f5f9;
    --accent:        #fd7e14;
    --accent-dark:   #e06c00;
    --dark:          #0d1b2a;
    --dark-2:        #162032;
    --white:         #ffffff;
    --light:         #f0f5f8;
    --gray:          #6c757d;
    --radius:        10px;
    --shadow:        0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.18);
    --transition:    all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Desktop: đảm bảo #header-top hiện, mobile-nav ẩn */
@media (min-width: 768px) {
    #header-top { display: block !important; }
}

/* ── Global ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; }
a { text-decoration: none; }
.mr-1 { margin-right: 4px; }
.g-3 { gap: 16px 0; }

/* ============================================================
   HEADER  –  sticky, dark topbar + white nav
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

/* Topbar */
#header-top {
    background: #17a2b8 !important;
    padding: 7px 0 !important;
    border-bottom: none !important;
}
#header-top h1 { margin: 0; }
#header-top .logoimg { width: 130px !important; }

#header-top .top-info { display: flex; align-items: center; height: 100%; }
#header-top nav#subnav { background: none; padding: 0; width: 100%; }
#header-top #subnav .navbar { flex-direction: row; justify-content: flex-end; align-items: center; gap: 2px; padding: 0; }
#header-top #subnav li { padding: 0; border: none; float: none; }
#header-top #subnav li > a {
    color: rgba(255,255,255,0.82) !important;
    font-size: 12.5px !important;
    padding: 5px 10px !important;
    border-radius: 6px;
    display: flex; align-items: center; gap: 5px;
    line-height: 1;
    transition: var(--transition);
}
#header-top #subnav li > a p { display: none !important; }
#header-top #subnav li > a:hover { background: rgba(255,255,255,0.10) !important; color: #fff !important; }
#header-top #subnav li > a i { font-size: 14px; color: var(--primary); }
#header-top #subnav li .content-dropdown {
    top: calc(100% + 8px);
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}
#header-top #subnav .cart-count {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
}
.btn-green { background: var(--primary) !important; border-color: var(--primary) !important; }
.btn-green:hover { background: var(--primary-dark) !important; }

/* Nav menu bar */
#header-mid {
    background: #fff !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}
#header-mid .container { padding: 0 15px; }
/* Mobile-only elements – hidden on desktop */
.mobile-drawer-header { display: none; }
.close-menu { display: none !important; }
/* Hide category icons from menu items (desktop + mobile) */
#header-mid .menu-main ul li a i { display: none !important; }
.menu-main { display: block; }
.menu-main ul {
    display: flex; align-items: center;
    list-style: none; margin: 0; padding: 0;
    flex-wrap: nowrap;
}
.menu-main ul li { position: relative; }
.menu-main ul li > a {
    display: block;
    padding: 15px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}
.menu-main ul li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px 2px 0 0;
    transition: var(--transition);
}
.menu-main ul li > a:hover { color: var(--primary) !important; }
.menu-main ul li > a:hover::after, .menu-main ul li.active > a::after { left: 0; right: 0; }

.menu-main .content-dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    border-top: 3px solid var(--primary);
}
.menu-main .content-dropdown a.dropdown-item {
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: var(--dark) !important;
}
.menu-main .content-dropdown a.dropdown-item::after { display: none; }
.menu-main .content-dropdown a.dropdown-item:hover { background: var(--primary-light); color: var(--primary) !important; }

/* Mobile nav – hidden on desktop (style.css đã có display:none, giữ nguyên) */
/* Chỉ style khi nó được hiện ở mobile breakpoint */
@media (max-width: 767px) {
    .mobile-nav {
        background: var(--dark) !important;
        padding: 10px 16px !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        box-shadow: none !important;
    }
    .mobile-nav .mobile-logo img { height: 34px; filter: brightness(0) invert(1); }
    .mobile-nav .mobile-group-btn ul { display: flex; align-items: center; gap: 4px;justify-content: end; }
    .mobile-nav .mobile-group-btn ul li a { color: rgba(255,255,255,0.85); font-size: 18px; padding: 6px 8px; display: block; }
    .mobile-nav .mobile-group-btn ul li a .cart-count,
    .mobile-nav .mobile-group-btn ul li a .wishlist-count {
        font-size: 10px;
        background: var(--accent);
        color: #fff;
        border-radius: 50%;
        width: 17px; height: 17px;
        display: inline-flex; align-items: center; justify-content: center;
        vertical-align: middle;
    }
    .mobile-nav .open-close i { color: rgba(255,255,255,0.85); font-size: 22px; cursor: pointer; }
    .mobile-nav .wishlist-icon { display: none !important; }

    /* Logo – clip tagline bằng object-fit */
    .mobile-logo { display: flex; align-items: center; overflow: hidden; height: 30px; }
    .mobile-logo img { height: 46px !important; width: auto; object-fit: cover; object-position: top; }

    /* Hotline pill */
    .mobile-hotline { flex: 1; display: flex; justify-content: center; }
    .mobile-hotline a {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(243,146,0,.18);
        border: 1.5px solid rgba(243,146,0,.55);
        border-radius: 20px;
        padding: 4px 12px;
        color: #f39200; font-weight: 800; font-size: 14px;
        text-decoration: none; white-space: nowrap;
        line-height: 1;
    }
    .mobile-hotline a i { font-size: 12px; }

    /* Mobile: header-mid là sidebar slide-in, không sticky */
    header { position: relative !important; }
    #header-mid {
        background: var(--dark-2) !important;
        border-top: none !important;
        padding: 0 !important;
    }
    .menu-main ul li > a { color: rgba(255,255,255,0.85) !important; }
    .menu-main ul li > a::after { display: none; }
}

/* ============================================================
   HOMEPAGE – HERO SLIDER
   ============================================================ */
.hero-slider-section { position: relative; overflow: hidden; }
.hero-slider-section .owl-carousel .item { position: relative; line-height: 0; }
.hero-slider-section .owl-carousel .item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,27,42,0.80) 0%, rgba(23,162,184,0.25) 100%);
    display: flex;
    align-items: center;
    padding: 0 8%;
}
.hero-text { max-width: 560px; }
.hero-text h2 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    margin-bottom: 14px;
}
.hero-text h2 span { color: var(--primary); }
.hero-text p {
    font-size: 17px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    line-height: 1.6;
}
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    padding: 13px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 24px rgba(23,162,184,0.40);
    transition: var(--transition);
    margin-right: 10px;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(23,162,184,0.55); }
.btn-hero-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.75);
    color: #fff !important;
    padding: 11px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Slider nav */
.hero-slider-section .owl-nav button.owl-prev,
.hero-slider-section .owl-nav button.owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255,255,255,0.18) !important;
    border: 2px solid rgba(255,255,255,0.45) !important;
    color: #fff !important;
    width: 48px !important; height: 48px !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
    backdrop-filter: blur(4px);
}
.hero-slider-section .owl-nav button:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
.hero-slider-section .owl-nav .owl-prev { left: 20px !important; }
.hero-slider-section .owl-nav .owl-next { right: 20px !important; }
.hero-slider-section .owl-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); }
.hero-slider-section .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.4) !important;
    width: 8px !important; height: 8px !important;
    border-radius: 50% !important;
    transition: var(--transition) !important;
}
.hero-slider-section .owl-dots .owl-dot.active span {
    background: var(--primary) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1dc9e8 100%);
    padding: 26px 0;
}
.stats-bar .row { align-items: center; }
.stat-item { text-align: center; color: #fff; padding: 8px; }
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.88;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.stat-divider { border-color: rgba(255,255,255,0.25); margin: 0; height: 50px; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title-wrap { text-align: center; margin-bottom: 40px; }
.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-title-wrap h2 {
    font-size: 30px;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.2;
}
.title-line {
    width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 8px auto 0;
}
.section-view-all {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 9px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 32px;
}
.section-view-all:hover { background: var(--primary); color: #fff !important; }

/* ── Category product sections ── */
.cat-section { padding: 60px 0; }
.cat-section-alt { background: var(--light); }

.cat-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.cat-section-header .section-title-wrap {
    margin-bottom: 0;
    text-align: left;
}
.cat-section-title-left { text-align: left; }
.cat-section-title-left .title-line { margin: 8px 0 0 0; }

.section-view-all-inline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.section-view-all-inline:hover { background: var(--primary); color: #fff !important; }

/* ── Owl carousel nav – category sections ── */
.cat-section .owl-carousel { position: relative; }
.cat-section .owl-stage-outer { padding: 12px 2px; }

.cat-section .owl-nav {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

.cat-section .owl-nav button {
    pointer-events: all;
    width: 44px; height: 44px;
    border-radius: 50% !important;
    background: #fff !important;
    border: none !important;
    color: var(--primary) !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    transition: all 0.25s ease;
    outline: none !important;
    flex-shrink: 0;
}

.cat-section .owl-nav button:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(23,162,184,0.35);
}

.cat-section .owl-nav button.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.cat-section .owl-nav .owl-prev { margin-left: -22px; }
.cat-section .owl-nav .owl-next { margin-right: -22px; }

/* ============================================================
   CATEGORY SECTION
   ============================================================ */
.category-section { padding: 64px 0 48px; background: var(--light); }
.category-card {
    background: #fff;
    border-radius: 14px;
    text-align: center;
    padding: 28px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
    display: block;
}
.category-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.cat-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(23,162,184,0.30);
    transition: var(--transition);
}
.category-card:hover .cat-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 6px 20px rgba(253,126,20,0.35);
    transform: scale(1.08);
}
.category-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); margin: 0; }

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section { padding: 64px 0; background: #fff; }
.products-section .row { margin-left: -8px; margin-right: -8px; }
.products-section .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
.product-card-new {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card-new:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.product-badge.sale { background: linear-gradient(135deg, #dc3545, #c0392b); }
.product-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.product-img-wrap img {
    max-height: 100%; max-width: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s ease;
}
.product-card-new:hover .product-img-wrap img { transform: scale(1.07); }
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.45;
    flex: 1;
}
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--primary); }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price-main { font-size: 16px; font-weight: 900; color: var(--primary); }
.product-price-old { font-size: 12px; color: var(--gray); text-decoration: line-through; }
.product-card-actions { display: flex; border-top: 1px solid #f0f0f0; }
.btn-detail {
    flex: 1;
    background: #fff;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border-right: 1px solid #f0f0f0;
}
.btn-detail:hover { background: var(--primary-light); }
.btn-buy {
    flex: 1;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.btn-buy:hover { background: var(--primary-dark); }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
    padding: 72px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: -30%; right: -5%;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(23,162,184,0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.promo-banner::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -5%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(253,126,20,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.promo-text { position: relative; z-index: 1; }
.promo-text .promo-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.promo-text h2 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.promo-text h2 span { color: var(--primary); }
.promo-text p { color: rgba(255,255,255,0.70); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.btn-promo {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(23,162,184,0.35);
    transition: var(--transition);
    margin-right: 10px;
}
.btn-promo:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(23,162,184,0.50); }
.btn-promo-ghost {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.40);
    color: rgba(255,255,255,0.85) !important;
    padding: 11px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-promo-ghost:hover { border-color: #fff; color: #fff !important; background: rgba(255,255,255,0.08); }
.promo-img { position: relative; z-index: 1; text-align: center; }
.promo-img img {
    max-height: 320px;
    filter: drop-shadow(0 20px 50px rgba(23,162,184,0.35));
    transition: transform 0.5s ease;
}
.promo-img img:hover { transform: translateY(-8px) scale(1.02); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: 64px 0; background: var(--light); }
.blog-card-new {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.blog-card-new:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.blog-thumb {
    height: 195px;
    overflow: hidden;
    position: relative;
}
.blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.blog-card-new:hover .blog-thumb img { transform: scale(1.07); }
.blog-thumb .blog-cat-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.45;
    flex: 1;
}
.blog-body h3 a { color: inherit; }
.blog-body h3 a:hover { color: var(--primary); }
.blog-body p { font-size: 12.5px; color: var(--gray); line-height: 1.6; margin: 0 0 12px; }
.blog-read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 4px;
}
.blog-read-more:hover { color: var(--accent); gap: 8px; }

/* ============================================================
   POLICY / USP SECTION
   ============================================================ */
#policy {
    background: #fff !important;
    padding: 52px 0 !important;
    border-top: 1px solid #e9ecef;
}
#policy .item_policy { padding: 16px; }
#policy .info_policy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
}
.policy-icon-wrap {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(23,162,184,0.28);
    transition: var(--transition);
}
.item_policy:hover .policy-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(23,162,184,0.40);
}
.policy-icon-wrap img { width: 34px; filter: brightness(0) invert(1); }
.policy-icon-wrap i { font-size: 26px; color: #fff; }
#policy .description h4 { font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
#policy .description h4 a { color: inherit; }
#policy .description h4 a:hover { color: var(--primary); }
#policy .description p { font-size: 13px; color: var(--gray); margin: 0; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark) !important; }

/* Brand bar */
.footer-brand-bar {
    background: var(--dark);
    padding: 40px 0 0;
    border-top: 3px solid var(--primary);
}
.footer-logo {
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.footer-tagline {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    margin-bottom: 28px;
}
.footer-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0 auto 0;
}

/* Column divider */
.footer-col-divider {
    width: 1px;
    height: 100%;
    min-height: 160px;
    background: rgba(255,255,255,0.08);
    margin: 0 auto;
}

/* Links grid 2 cột */
.footer-links-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    padding: 0 !important;
    list-style: none !important;
}
.footer-links-grid li { margin-bottom: 7px !important; }

.footer-midde { padding: 52px 0 32px !important; background: var(--dark) !important; }
.footer-midde h3 {
    color: var(--primary) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-midde ul { list-style: none; padding: 0; margin: 0; }
.footer-midde ul li { margin-bottom: 9px; }
.footer-midde ul li > a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px;
    transition: var(--transition);
    display: inline-block;
}
.footer-midde ul li > a:hover { color: var(--primary) !important; padding-left: 4px; }
.footer-midde ul li > label {
    color: rgba(255,255,255,0.40);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
}
.footer-midde ul li p { margin: 0 0 4px; }
.footer-midde ul li p > a#phone-footer {
    color: var(--primary) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
.footer-midde ul li p > a#phone-footer:hover { color: #fff !important; }

.footer-midde .form-control {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
}
.footer-midde .form-control::placeholder { color: rgba(255,255,255,0.35) !important; }
.footer-midde .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(23,162,184,0.18) !important;
    outline: none;
}
.footer-midde .btn-green {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    transition: var(--transition) !important;
}
.footer-midde .btn-green:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    transform: translateY(-2px);
}

.footer-midde .nav.icon { flex-wrap: nowrap; gap: 8px; }
.footer-midde .nav.icon li a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.75) !important;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-midde .nav.icon li a:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-3px);
}

.copyright {
    background: rgba(0,0,0,0.28) !important;
    padding: 18px 0 !important;
}
.copyright p { color: rgba(255,255,255,0.45) !important; font-size: 11.5px !important; margin: 0 !important; line-height: 1.7; }
.copyright .navbar-footer { justify-content: flex-end; gap: 0; }
.copyright .navbar-footer li a { color: rgba(255,255,255,0.45) !important; font-size: 12px; padding: 2px 10px; }
.copyright .navbar-footer li a:hover { color: var(--primary) !important; }

/* Back to top */
.c-back-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 999; }
.j-uptt {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(23,162,184,0.40);
    transition: var(--transition);
    color: #fff !important;
}
.j-uptt:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(23,162,184,0.55); }

/* Modal search */
.modal-search-header { background: var(--dark); }
.container-search-header .wrap-search-header input { color: var(--dark); }
.container-search-header .btn-hide-modal-search { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .hero-text h2 { font-size: 34px; }
    .promo-text h2 { font-size: 28px; }
}
@media (max-width: 767px) {
    #header-top .row > div:first-child { display: none; }
    .hero-text h2 { font-size: 26px; }
    .hero-text p { font-size: 14px; }
    .btn-hero, .btn-hero-outline { padding: 10px 22px; font-size: 13px; }
    .hero-slider-section .owl-carousel .item img { height: 320px; }
    .stat-number { font-size: 26px; }
    .section-title-wrap h2 { font-size: 24px; }
    .promo-banner { padding: 48px 0; }
    .promo-text h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .hero-overlay { padding: 0 20px; }
    .hero-text h2 { font-size: 22px; }
    .btn-hero-outline { display: none; }
}

/* ============================================================
   PRODUCT CARD  (.pc-*)
   ============================================================ */
#list-product-all.produc.row {
    margin-left: -8px;
    margin-right: -8px;
}
#list-product-all .col-xl-3,
#list-product-all .col-lg-4,
#list-product-all .col-md-4,
#list-product-all .col-6 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px !important;
}

.pc-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.pc-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.11);
    transform: translateY(-4px);
    border-color: #c8edf3;
}

/* Image */
.pc-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1;
}
.pc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .35s ease;
    padding: 8px;
}
.pc-card:hover .pc-img { transform: scale(1.06); }

/* Overlay on hover */
.pc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 162, 184, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.pc-card:hover .pc-overlay { opacity: 1; }
.pc-overlay-btn {
    background: #fff;
    color: #17a2b8;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badge */
.pc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 2;
    color: #fff;
}
.pc-badge--sale { background: #e53935; }
.pc-badge--new  { background: #17a2b8; }

/* Body */
.pc-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pc-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-name a { color: #1a1a1a; text-decoration: none; }
.pc-name a:hover { color: #17a2b8; }
.pc-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    margin-top: auto;
}
.pc-price {
    font-size: 16px;
    font-weight: 700;
    color: #17a2b8;
}
.pc-price-old {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

/* Full-width detail button */
.pc-btn-detail-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    background: #17a2b8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.pc-btn-detail-full:hover { background: #138496; color: #fff; text-decoration: none; }

/* Mobile */
@media (max-width: 575px) {
    .pc-body { padding: 10px 10px 12px; }
    .pc-name { font-size: 13px; }
    .pc-price { font-size: 14px; }
    .pc-btn-detail-full { font-size: 12px; padding: 8px 0; }
}

/* Consult form feedback */
.consult-success { margin-top:8px; padding:8px 12px; border-radius:8px; background:#d4edda; color:#155724; font-size:13px; font-weight:600; }
.consult-error   { margin-top:8px; padding:8px 12px; border-radius:8px; background:#f8d7da; color:#721c24; font-size:13px; font-weight:600; }

/* Hot badge on product cards */
.pc-hot-badge { position:absolute; top:8px; right:8px; background:#e74c3c; color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px; z-index:2; animation:ph-pulse 2s infinite; pointer-events:none; }
@keyframes ph-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(231,76,60,.4)} 50%{box-shadow:0 0 0 5px rgba(231,76,60,0)} }

/* ============================================================
   MOBILE NAVIGATION — slide-in drawer
   ============================================================ */
@media (max-width: 991px) {

    /* ── Top bar ── */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 56px;
        background: #17a2b8;
        z-index: 2000;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,.18);
    }
    .mobile-logo img {
        height: 32px;
        filter: brightness(0) invert(1);
        display: block;
    }
    .mobile-group-btn ul {
        display: flex; align-items: center; gap: 4px;
        margin: 0; padding: 0; list-style: none;
    }
    .mobile-group-btn ul li a,
    .mobile-group-btn ul li .open-close {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 40px;
        color: #fff; font-size: 18px;
        border-radius: 8px;
        text-decoration: none;
        cursor: pointer;
        transition: background .15s;
        position: relative;
    }
    .mobile-group-btn ul li a:hover,
    .mobile-group-btn ul li .open-close:hover { background: rgba(255,255,255,.2); }
    .mobile-group-btn .cart-count,
    .mobile-group-btn .wishlist-count {
        position: absolute; top: 2px; right: 2px;
        background: #f39200; color: #fff;
        font-size: 10px; font-weight: 700;
        min-width: 16px; height: 16px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
    }

    /* ── Push body down so content isn't under top bar ── */
    body { padding-top: 56px; }

    /* ── Backdrop ── */
    #mobile-nav-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 2998;
    }
    #mobile-nav-backdrop.active { display: block; }

    /* ── Drawer ── */
    #header-mid {
        position: fixed !important;
        top: 0 !important; left: -320px !important;
        width: 300px !important; max-width: 85vw !important;
        height: 100% !important;
        background: #fff !important;
        z-index: 2999 !important;
        overflow-y: auto !important;
        transition: left .3s ease !important;
        display: block !important;
        border: none !important;
        padding-top: 0 !important;
    }
    #header-mid.show-menu { left: 0 !important; }

    /* ── Drawer header ── */
    .mobile-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #17a2b8;
        position: sticky; top: 0; z-index: 1;
    }
    .mobile-drawer-header img { height: 28px; filter: brightness(0) invert(1); }
    .mobile-drawer-close {
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-size: 20px; cursor: pointer;
        border-radius: 6px; transition: background .15s;
        border: none; background: transparent;
    }
    .mobile-drawer-close:hover { background: rgba(255,255,255,.2); }

    /* ── Drawer menu items ── */
    .menu-main { float: none !important; width: 100% !important; }
    #header-mid .menu-main ul li { list-style: none !important; }
    #header-mid .menu-main ul li::before,
    #header-mid .menu-main ul li::marker { display: none !important; content: '' !important; }
    #header-mid .menu-main ul li a i { display: none !important; }
    .menu-main ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        padding: 8px 0 !important;
        margin: 0 !important;
    }
    .menu-main > ul > li {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .menu-main > ul > li > a {
        display: flex !important;
        align-items: center !important;
        padding: 13px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        text-transform: uppercase !important;
        letter-spacing: .4px !important;
        text-decoration: none !important;
    }
    .menu-main > ul > li > a:hover { background: #f5fbfc !important; color: #17a2b8 !important; }

    /* Dropdown inside drawer */
    .menu-main .content-dropdown {
        position: static !important;
        display: none !important;
        background: #f8fbfc !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 4px !important;
    }
    .menu-main .has-dropdown.open .content-dropdown { display: block !important; }
    .menu-main .content-dropdown .dropdown-item {
        padding: 10px 20px 10px 36px !important;
        font-size: 13px !important;
        color: #444 !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }
    .menu-main .content-dropdown .dropdown-item:hover { background: #e8f4f8 !important; color: #17a2b8 !important; }

    /* Dropdown toggle arrow */
    .menu-main .has-dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 11px;
        margin-left: auto;
        transition: transform .25s;
        color: #aaa;
    }
    .menu-main .has-dropdown.open > a::after { transform: rotate(180deg); }

    /* ── Hide desktop header-top on mobile ── */
    #header-top { display: none !important; }
    .close-menu { display: none !important; }
}
