/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --red: #e63946;
    --red-dark: #c1121f;
    --navy: #0a1628;
    --navy2: #1a3a5c;
    --text: #1a1a1a;
    --text-mid: #555;
    --text-light: #888;
    --border: #e8e8e8;
    --bg: #f5f6f8;
    --white: #fff;
    --radius: 6px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
    --shadow: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
    --trans: .18s ease;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Be Vietnam Pro', Arial, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* ===== TOP BAR ===== */
.sticky-header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 200; width: 100%; }
.admin-bar .sticky-header-wrap { top: 32px; }
.top-bar { background: var(--navy); color: rgba(255,255,255,.8); font-size: 12.5px; padding: 7px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar__left, .top-bar__right { display: flex; align-items: center; gap: 14px; }
.top-bar i { margin-right: 4px; font-size: 11px; }
.top-bar a { color: rgba(255,255,255,.8); transition: color var(--trans); }
.top-bar a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header { background: var(--white); border-bottom: 3px solid var(--red); padding: 10px 0; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; }

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon-wrap { width: 48px; height: 48px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.logo-sub { font-size: 11px; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* Search */
.header-search { flex: 1; max-width: 520px; }
.header-search form { display: flex; border: 2px solid var(--red); border-radius: 4px; overflow: hidden; }
.header-search input { flex: 1; border: none; padding: 9px 14px; font-size: 13.5px; outline: none; font-family: inherit; color: var(--text); }
.header-search input::placeholder { color: var(--text-light); }
.header-search button { background: var(--red); color: #fff; border: none; padding: 0 18px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; white-space: nowrap; transition: background var(--trans); display: flex; align-items: center; gap: 6px; }
.header-search button:hover { background: var(--red-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-hotline { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hotline-icon { width: 40px; height: 40px; background: #fff0f1; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 16px; animation: ring 2.5s ease-in-out infinite; }
@keyframes ring { 0%,100%{transform:rotate(0)} 10%,30%{transform:rotate(-12deg)} 20%{transform:rotate(12deg)} }
.hotline-text small { display: block; font-size: 11px; color: var(--text-light); }
.hotline-text strong { display: block; font-size: 16px; color: var(--red); font-weight: 700; }
.header-cart { position: relative; font-size: 22px; color: var(--navy); display: flex; align-items: center; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--trans); }

/* ===== MAIN NAV ===== */
.main-nav { background: var(--navy); }
.main-nav .container { display: flex; }
.nav-menu { display: flex; flex-wrap: nowrap; }
.nav-menu > li { position: relative; flex-shrink: 0; }
.nav-menu > li > a { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.92); padding: 12px 14px; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background var(--trans); }
.nav-menu > li > a i.fa-chevron-down { font-size: 9px; opacity: .7; }
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a { background: var(--red); color: #fff; }
.nav-menu > li:first-child > a { padding-left: 0; }

/* Dropdown */
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--red); z-index: 300; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 9px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); transition: all var(--trans); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #fff5f5; color: var(--red); padding-left: 20px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 188; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 13.5px; cursor: pointer; border: 2px solid transparent; transition: all var(--trans); font-family: inherit; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ===== HERO ===== */
.hero-slider { overflow: hidden; }
.hero-slide { padding: 52px 0; }
.hero-slide .container { display: flex; align-items: center; gap: 48px; }
.hero-content { flex: 1; color: #fff; }
.hero-badge { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; letter-spacing: .5px; }
.hero-content h1 { font-size: 38px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.hero-content h1 span { color: #ffb703; }
.hero-content p { font-size: 15px; opacity: .85; margin-bottom: 28px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats > div { text-align: center; }
.hero-stats strong { display: block; font-size: 24px; font-weight: 700; color: #ffb703; }
.hero-stats span { font-size: 12px; opacity: .7; }
.hero-image { flex: 0 0 380px; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.badge-discount-big { position: absolute; top: -12px; right: -12px; background: var(--red); color: #fff; font-size: 22px; font-weight: 800; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

/* ===== USP BAR ===== */
.usp-bar { background: var(--red); color: #fff; padding: 0; }
.usp-bar .container { display: flex; align-items: stretch; }
.usp-item { display: flex; align-items: center; gap: 10px; padding: 14px 0; flex: 1; justify-content: center; }
.usp-item i { font-size: 22px; opacity: .9; }
.usp-item div { line-height: 1.3; }
.usp-item strong { display: block; font-size: 13px; font-weight: 700; }
.usp-item span { font-size: 11.5px; opacity: .85; }
.usp-sep { width: 1px; background: rgba(255,255,255,.25); margin: 10px 0; }

/* ===== SECTION COMMON ===== */
.section-products { padding: 40px 0 48px; background: #fff; }
.section-category-showcase { padding: 40px 0 48px; background: #fff; }
.section-category-showcase.bg-light { background: var(--bg); }
.section-why-us { padding: 48px 0; background: var(--navy); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-title-wrap {}
.section-title { font-size: 20px; font-weight: 700; color: var(--navy); position: relative; padding-bottom: 10px; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 44px; height: 3px; background: var(--red); border-radius: 2px; }
.text-center { text-align: center; }
.text-center .section-title { display: block; }
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-why-us .section-title { color: #fff; }
.section-sub { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.see-all { font-size: 13px; color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; padding: 6px 14px; border: 1.5px solid var(--red); border-radius: 4px; transition: all var(--trans); }
.see-all:hover { background: var(--red); color: #fff; }

/* ===== CATEGORY TABS ===== */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 4px; }
.tab-btn { padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 20px; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--trans); font-family: inherit; color: var(--text); }
.tab-btn:hover { border-color: var(--red); color: var(--red); }
.tab-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.product-grid--5col { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ===== PRODUCT CARD ===== */
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; transition: box-shadow var(--trans), transform var(--trans); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__thumb { display: block; position: relative; padding-top: 100%; background: #f9f9f9; overflow: hidden; flex-shrink: 0; border-radius: var(--radius) var(--radius) 0 0; }
.product-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__thumb img { transform: scale(1.07); }
.badge-discount { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg,#e63946,#c0303c); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px; z-index: 1; letter-spacing: .3px; box-shadow: 0 2px 8px rgba(230,57,70,.4); }
.badge-new { position: absolute; top: 8px; right: 8px; background: #2ecc71; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 3px; z-index: 1; }
.product-card__body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__name a:hover { color: var(--red); }
.product-card__price { margin-bottom: 10px; }
.price-original { font-size: 12px; color: var(--text-light); text-decoration: line-through; display: block; line-height: 1.3; }
.price-sale { font-size: 16px; font-weight: 700; color: var(--red); display: block; line-height: 1.3; }
.product-card__actions { display: flex; gap: 7px; margin-top: auto; }
.btn-add-cart { flex: 1; background: var(--red); color: #fff; border: none; padding: 7px 4px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; font-family: inherit; transition: background var(--trans); white-space: nowrap; min-width: 0; }
.btn-add-cart:hover { background: var(--red-dark); }
.btn-view-detail { flex: 1; border: 1.5px solid #ccc; color: var(--text-mid); padding: 7px 4px; border-radius: 4px; font-size: 12px; font-weight: 500; text-align: center; transition: all var(--trans); white-space: nowrap; display: flex; align-items: center; justify-content: center; min-width: 0; }
.btn-view-detail:hover { border-color: var(--navy); color: var(--navy); }

/* Loading */
.product-grid.loading { opacity: .5; pointer-events: none; }
.no-products { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--text-light); }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 28px; }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 28px 20px; text-align: center; transition: background var(--trans); }
.why-item:hover { background: rgba(255,255,255,.1); }
.why-icon { width: 60px; height: 60px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.why-icon i { font-size: 24px; color: #fff; }
.why-item h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-item p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ===== FOOTER ===== */
/* ── FOOTER BASE ── */
.site-footer { margin-top: 0; }
.footer-wave { line-height: 0; margin-bottom: -2px; background: var(--bg); }
.footer-wave svg { width: 100%; height: 90px; display: block; }
.footer-top { padding: 52px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-col > p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-col h4 { font-size: 13px; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--red); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; transition: all var(--trans); display: flex; align-items: center; gap: 7px; }
.footer-col ul a i { font-size: 10px; transition: transform .2s; }
.footer-col ul a:hover i { transform: translateX(3px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; font-size: 13px; }
.footer-contact i { color: var(--red); width: 15px; flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--trans); }
.footer-bottom { padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom p { font-size: 12.5px; }

/* ── DARK THEME (default) ── */
.site-footer--dark { background: var(--navy); color: rgba(255,255,255,.7); border-top: 4px solid var(--red); }
.site-footer--dark .footer-top { border-bottom: 1px solid rgba(255,255,255,.07); }
.site-footer--dark .footer-logo .logo-icon-wrap { background: rgba(255,255,255,.08); }
.site-footer--dark .footer-logo .logo-name { color: #fff; }
.site-footer--dark .footer-col > p { color: rgba(255,255,255,.6); }
.site-footer--dark .footer-col h4 { color: #fff; }
.site-footer--dark .footer-col ul a { color: rgba(255,255,255,.6); }
.site-footer--dark .footer-col ul a:hover { color: #fff; }
.site-footer--dark .footer-contact li { color: rgba(255,255,255,.7); }
.site-footer--dark .footer-contact a { color: rgba(255,255,255,.85); }
.site-footer--dark .footer-contact a:hover { color: #fff; }
.site-footer--dark .footer-social a { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.site-footer--dark .footer-social a:hover { background: var(--red); color: #fff; }
.site-footer--dark .footer-bottom { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.06); }
.site-footer--dark .footer-bottom p { color: rgba(255,255,255,.35); }

/* ── LIGHT THEME ── */
.site-footer--light { background: #eaecf2; color: #4b5563; }
.site-footer--light .footer-top { border-bottom: 1px solid #d1d9e6; }
.site-footer--light .footer-logo .logo-icon-wrap { background: #e2e8f0; }
.site-footer--light .footer-logo .logo-name { color: var(--navy); }
.site-footer--light .footer-col > p { color: #6b7280; }
.site-footer--light .footer-col h4 { color: var(--navy); }
.site-footer--light .footer-col ul a { color: #6b7280; }
.site-footer--light .footer-col ul a:hover { color: var(--red); }
.site-footer--light .footer-contact li { color: #4b5563; }
.site-footer--light .footer-contact a { color: var(--navy); font-weight: 600; }
.site-footer--light .footer-contact a:hover { color: var(--red); }
.site-footer--light .footer-social a { background: #fff; color: #6b7280; box-shadow: 0 1px 4px rgba(0,0,0,.08); border: 1px solid #e2e8f0; }
.site-footer--light .footer-social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.site-footer--light .footer-bottom { background: #d8e0ed; border-top: 1px solid #c5cfe0; }
.site-footer--light .footer-bottom p { color: #9ca3af; }

/* ===== FLOATING BUTTONS ===== */
.floating-buttons { position: fixed; right: 14px; bottom: 70px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform var(--trans); text-decoration: none; font-size: 18px; font-weight: 800; color: #fff; }
.float-btn:hover { transform: scale(1.12); }
.float-phone { background: #25d366; animation: pulse 2.5s ease-in-out infinite; }
.float-zalo { background: #0068ff; font-size: 15px; letter-spacing: -1px; }
.float-fb { background: #1877f2; }
.float-top { background: var(--navy); font-size: 16px; opacity: 0; pointer-events: none; transition: opacity var(--trans), transform var(--trans); }
.float-top.visible { opacity: 1; pointer-events: all; }

/* ===== WOO PAGES ===== */
.woo-wrap { padding: 28px 0; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 14px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.product { margin: 0 !important; }
.woocommerce div.product { padding: 28px 0; }
.woocommerce-notices-wrapper { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* ===== SPINNER ===== */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .5s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGE ===== */
.page-content { background: #fff; padding: 32px 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-thumb img { width: 100%; height: 190px; object-fit: cover; }
.post-body { padding: 14px; }
.post-body h2 { font-size: 15px; font-weight: 600; margin-bottom: 7px; line-height: 1.4; }
.post-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .product-grid, .product-grid--5col { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .hero-image { flex: 0 0 300px; }
    .hero-content h1 { font-size: 30px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 782px) {
    .admin-bar .sticky-header-wrap { top: 46px; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .header-search { order: 3; flex: 0 0 100%; max-width: 100%; }
    .header-hotline { display: none; }
    .nav-toggle { display: flex; }
    .site-header { padding: 8px 0; }

    /* Mobile nav */

    .main-nav .container { position: relative; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); z-index: 300; box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
    .dropdown { position: static; box-shadow: none; border-top: none; background: rgba(0,0,0,.25); }
    .has-dropdown .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .nav-overlay.show { display: block; }

    .hero-slide .container { flex-direction: column; gap: 24px; }
    .hero-content h1 { font-size: 26px; }
    .hero-image { display: none; }
    .hero-slide { padding: 36px 0; }
    .hero-stats { gap: 20px; }
    .usp-bar .container { flex-wrap: wrap; gap: 0; }
    .usp-item { flex: 0 0 50%; padding: 12px 8px; justify-content: flex-start; gap: 8px; }
    .usp-sep { display: none; }

    .container { padding: 0 10px; }
    .product-grid, .product-grid--5col { grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; box-sizing: border-box; }
    /* Compact product cards on mobile */
    .product-card__body { padding: 6px 7px 9px; }
    .product-card__name { font-size: 11px; margin-bottom: 4px; -webkit-line-clamp: 2; }
    .product-card__price { margin-bottom: 5px; }
    .price-sale { font-size: 12px; }
    .price-orig { font-size: 10px; }
    .product-card__actions { gap: 4px; }
    .btn-add-cart, .btn-view-detail { font-size: 10px; padding: 5px 2px; }
    .badge-sale { font-size: 10px; padding: 2px 5px; }
    /* Hide category tabs on mobile */
    .category-tabs { display: none; }
    /* Blog/single post lề */
    .entry-content { padding: 0 4px; }
    .woo-wrap.container article { padding: 0 2px; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .posts-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
    .hero-content h1 { font-size: 22px; }
    .hero-btns { flex-direction: column; }
    .why-grid { grid-template-columns: 1fr; }
    .usp-item { flex: 0 0 100%; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-bar .woocommerce-breadcrumb { font-size: 13px; color: var(--text-light); }
.breadcrumb-bar .woocommerce-breadcrumb a { color: var(--red); }
.breadcrumb-bar .woocommerce-breadcrumb a:hover { text-decoration: underline; }

/* ===== ARCHIVE PAGE ===== */
.archive-page { background: var(--bg); min-height: 60vh; }
.archive-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0 48px; }

/* Sidebar */
.shop-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.widget-title { font-size: 13px; font-weight: 800; color: #fff; background: var(--navy); margin: 0; padding: 12px 16px; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.widget-title i { font-size: 13px; opacity: .85; }
.cat-list { padding: 8px 0; }
.cat-list li { margin: 0; }
.cat-list > li > a { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--text); transition: all var(--trans); border-left: 3px solid transparent; }
.cat-list > li > a:hover, .cat-list > li.active > a { background: #fff0f1; color: var(--red); border-left-color: var(--red); }
.cat-list > li > a i { font-size: 11px; color: #adb5bd; margin-right: 2px; transition: transform .2s; }
.cat-list > li.active > a i, .cat-list > li > a:hover i { color: var(--red); transform: rotate(90deg); }
.cat-count { font-size: 11px; background: #f3f4f6; color: #6b7280; padding: 2px 7px; border-radius: 20px; font-weight: 600; }
.cat-list > li.active > a .cat-count { background: #fde8ea; color: var(--red); }
.cat-children { background: #fafafa; border-top: 1px solid #f3f4f6; padding: 4px 0; }
.cat-children li a { display: flex; align-items: center; justify-content: space-between; padding: 7px 16px 7px 32px; font-size: 12px; color: #6b7280; transition: all var(--trans); border-left: 3px solid transparent; }
.cat-children li a:hover, .cat-children li.active a { background: #fff0f1; color: var(--red); border-left-color: var(--red); }
.cat-children li a i { font-size: 9px; margin-right: 6px; color: #d1d5db; }
.price-filter { padding: 10px 0; }
.price-range { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: var(--text); transition: all var(--trans); cursor: pointer; border-left: 3px solid transparent; font-weight: 500; }
.price-range::before { content: ''; width: 16px; height: 16px; border: 2px solid #d1d5db; border-radius: 50%; flex-shrink: 0; transition: all .15s; }
.price-range:hover { background: #fff0f1; color: var(--red); border-left-color: var(--red); }
.price-range:hover::before { border-color: var(--red); }
.price-range.active { background: #fff0f1; color: var(--red); border-left-color: var(--red); font-weight: 700; }
.price-range.active::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,.15); }
.price-range.clear-filter { color: #9ca3af; font-size: 12px; border-left-color: transparent; }
.price-range.clear-filter:hover { color: #ef4444; background: #fef2f2; border-left-color: #ef4444; }
.clear-filter { color: var(--text-light); font-size: 12px; }
.price-custom-form { padding: 12px 16px 14px; border-top: 1px solid #f3f4f6; }
.price-custom-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.price-custom-input { flex: 1; min-width: 0; padding: 7px 10px; border: 1.5px solid #e5e7eb; border-radius: 7px; font-size: 12px; color: var(--text); outline: none; transition: border .15s; font-family: inherit; }
.price-custom-input:focus { border-color: var(--red); }
.price-custom-sep { font-size: 13px; color: #9ca3af; flex-shrink: 0; }
.price-custom-btn { width: 100%; padding: 8px; background: var(--red); color: #fff; border: none; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; font-family: inherit; }
.price-custom-btn:hover { background: var(--red-dark); }

/* Shop main */
.shop-toolbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.shop-toolbar h1 { font-size: 20px; font-weight: 700; color: var(--navy); }
.cat-desc { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.shop-toolbar__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.woocommerce-result-count { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.woocommerce-ordering select { border: 1px solid var(--border); border-radius: 4px; padding: 6px 10px; font-size: 13px; font-family: inherit; }
.woo-pagination { margin-top: 28px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-weight: 600; transition: all var(--trans); }
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.no-products-found { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); }
.no-products-found i { font-size: 48px; color: var(--border); margin-bottom: 16px; }
.no-products-found h3 { font-size: 18px; margin-bottom: 8px; }
.no-products-found p { color: var(--text-light); margin-bottom: 20px; }

/* ===== SINGLE PRODUCT PAGE ===== */
.single-product-page { background: var(--bg); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: var(--radius); padding: 28px; margin: 0; }

/* Gallery */
.gallery-main { position: relative; background: #f9f9f9; border-radius: 8px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.gallery-main:hover img { transform: scale(1.04); }
.product-badge-sale { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 4px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--border); border-radius: 4px; padding: 4px; background: #f9f9f9; transition: border-color var(--trans); cursor: pointer; }
.gallery-thumb:hover { border-color: var(--red); }

/* Product info */
.product-cat-link { display: inline-block; font-size: 12px; color: var(--red); margin-bottom: 8px; }
.product-cat-link i { margin-right: 4px; }
.product-detail__name { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--navy); margin-bottom: 10px; }
.product-detail__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
.stars { color: #f59e0b; font-size: 15px; }
.product-detail__price { background: #fff8f8; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.detail-price-sale { display: block; font-size: 32px; font-weight: 800; color: var(--red); line-height: 1.2; }
.detail-price-orig { display: inline-block; font-size: 16px; color: var(--text-light); text-decoration: line-through; margin-right: 8px; }
.detail-price-save { display: inline-block; font-size: 13px; color: #16a34a; font-weight: 600; background: #dcfce7; padding: 2px 8px; border-radius: 12px; }
.product-detail__short-desc { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 16px; border-left: 3px solid var(--red); padding-left: 12px; }
.product-detail__meta { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.meta-row { font-size: 13px; display: flex; gap: 8px; }
.meta-row span { color: var(--text-light); min-width: 80px; }
.in-stock { color: #16a34a; }
.out-stock { color: var(--red); }
/* ── Product detail actions ── */
.product-detail__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.pda-qty-row { display: flex; align-items: center; gap: 14px; }
.pda-qty-label { font-size: 14px; font-weight: 600; color: #374151; min-width: 70px; }
.pda-qty-ctrl { display: flex; align-items: center; gap: 0; border: 2px solid #d1d5db; border-radius: 10px; overflow: hidden; }
.pda-qty-btn { width: 40px; height: 42px; border: none; background: #f9fafb; font-size: 20px; font-weight: 700; cursor: pointer; color: #374151; transition: .15s; flex-shrink: 0; }
.pda-qty-btn:hover { background: var(--red); color: #fff; }
.pda-qty-val { width: 54px; height: 42px; border: none; border-left: 2px solid #d1d5db; border-right: 2px solid #d1d5db; text-align: center; font-size: 16px; font-weight: 700; font-family: inherit; color: #0a1628; -moz-appearance: textfield; background: #fff; }
.pda-qty-val::-webkit-outer-spin-button, .pda-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; }

.pda-main-row { display: flex; gap: 10px; align-items: stretch; }
.pda-buy-btn { flex: 1; padding: 15px 20px; background: var(--red); color: #fff; border: none; border-radius: 11px; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: .2s; font-family: inherit; letter-spacing: .2px; }
.pda-buy-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(230,57,70,.35); }
.pda-icon-btn { flex-shrink: 0; width: 50px; padding: 0; background: var(--red); color: #fff; border: none; border-radius: 11px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; font-family: inherit; text-decoration: none; }
.pda-icon-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(230,57,70,.35); }
.pda-cart-btn { flex: 1; padding: 15px 20px; background: #fff; color: var(--red); border: 2px solid var(--red); border-radius: 11px; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: .2s; font-family: inherit; }
.pda-cart-btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(230,57,70,.25); }
.pda-icon-btn--outline { background: #fff; color: #0a1628; border: 2px solid #d1d5db; }
.pda-icon-btn--outline:hover { border-color: #0a1628; background: #f8fafc; box-shadow: none; transform: translateY(-1px); color: #0a1628; }
.pda-consult-btn { width: 100%; padding: 14px 20px; background: #fff; color: #0a1628; border: 2px solid #d1d5db; border-radius: 11px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: .2s; font-family: inherit; text-decoration: none; }
.pda-consult-btn:hover { border-color: #0a1628; background: #f8fafc; }
.pda-outofstock { padding: 14px; background: #fef2f2; border: 2px solid #fecaca; border-radius: 11px; text-align: center; color: var(--red); font-weight: 700; font-size: 14px; }

.product-detail__usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-detail__usp > div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); background: var(--bg); padding: 10px 8px; border-radius: 8px; border: 1px solid #e5e7eb; }
.product-detail__usp i { color: var(--red); flex-shrink: 0; }

/* Hide WC default qty/button (we use custom) */
.woocommerce .quantity, .woocommerce div.product form.cart { display: none !important; }

/* Tabs */
.product-tabs { background: #fff; border-radius: var(--radius); padding: 28px; margin: 16px 0; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tab-nav-btn { background: none; border: none; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: inherit; transition: all var(--trans); }
.tab-nav-btn:hover { color: var(--red); }
.tab-nav-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.product-description { font-size: 14px; line-height: 1.8; color: var(--text-mid); }
.product-description p { margin-bottom: 12px; }
.no-content { color: var(--text-light); font-style: italic; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr:nth-child(even) { background: var(--bg); }
.specs-table th { width: 180px; padding: 10px 16px; text-align: left; color: var(--text-mid); font-weight: 600; border: 1px solid var(--border); }
.specs-table td { padding: 10px 16px; border: 1px solid var(--border); }
.fake-reviews { display: flex; flex-direction: column; gap: 16px; }
.review-item { padding: 16px; background: var(--bg); border-radius: 8px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head-info { display: flex; flex-direction: column; gap: 3px; }
.review-head-info strong { font-size: 14px; color: #0a1628; }
.review-avatar { width: 42px; height: 42px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.review-avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #e5e7eb; }
.review-stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.review-item p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin: 0; }
.policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.policy-item { text-align: center; padding: 20px; background: var(--bg); border-radius: 8px; }
.policy-item i { font-size: 28px; color: var(--red); margin-bottom: 10px; }
.policy-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.policy-item p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* Related */
.related-products { background: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }

/* ===== SINGLE POST / PAGE ===== */
.page-content { background: #fff; border-radius: var(--radius); padding: 28px; max-width: 860px; margin: 24px auto 48px; }
.page-content h1 { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.post-hero-img { margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.post-hero-img img { width: 100%; max-height: 400px; object-fit: cover; }
.post-meta { font-size: 13px; color: var(--text-light); margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.post-meta i { color: var(--red); }
.post-content, .page-body { font-size: 14px; line-height: 1.8; color: var(--text-mid); }
.post-content p, .page-body p { margin-bottom: 14px; }
.post-content img { border-radius: 8px; margin: 16px 0; }

/* ===== RESPONSIVE ARCHIVE/PRODUCT ===== */
@media (max-width: 1024px) {
    .archive-layout { grid-template-columns: 200px 1fr; gap: 16px; }
    .product-detail { grid-template-columns: 1fr 1fr; gap: 24px; }
    .policy-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail__usp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .archive-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
    .product-detail__usp { grid-template-columns: repeat(2, 1fr); }
    .policy-grid { grid-template-columns: 1fr 1fr; }
    .product-tabs { padding: 16px; }
    .tabs-nav { gap: 0; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab-nav-btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
    .specs-table th { width: 120px; }
    .related-products { padding: 16px; }
    /* Product actions mobile */
    .pda-main-row { flex-wrap: wrap; }
    .pda-cart-btn { font-size: 14px; padding: 12px 10px; }
    .pda-buy-btn { font-size: 15px !important; padding: 14px 10px !important; }
    .detail-price-sale { font-size: 26px; }
    /* Archive filter sidebar on mobile */
    .archive-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── PRODUCT IMAGE CAROUSEL ──────────────────────────────────────────────── */
.gallery-main { position: relative; overflow: hidden; border-radius: 10px; background: #f8f8f8; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.gallery-main #mainProductImg { transition: opacity .15s ease; width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; }
.gal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(10,22,40,.55); color: #fff; border: none; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s; z-index: 5; line-height: 1;
}
.gal-arrow:hover { background: rgba(10,22,40,.85); }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.gallery-thumb {
    cursor: pointer; border-radius: 6px; border: 2px solid transparent;
    opacity: .72; transition: opacity .2s, border-color .2s;
    object-fit: cover;
}
.gallery-thumb:hover { opacity: 1; border-color: #ccc; }
.gallery-thumb.active { opacity: 1; border-color: var(--red); }
