/* Giao diện bán hàng (tiền tố aph-). Màu lấy từ --aph, --aph2, --aph-d (đặt trong aph-core.php) */
:root { --aph: #0a5bb5; --aph2: #1d8be6; --aph-d: #07356e; }
body.home { overflow-x: clip; }

/* Font */
.aph, .aph h1, .aph h2, .aph h3, .aph h4, .aph p, .aph a, .aph b, .aph span, .aph div, .aph label, .aph em, .aph li, .aph small,
body.archive.woocommerce .site-content, body.single-product, body.single-product .site-content { font-family: "Noto Sans", Roboto, "Segoe UI", Tahoma, Arial, sans-serif !important; }
.aph h1, .aph h2 { font-weight: 700 !important; }

/* Ẩn thanh trên cùng (SĐT + email) */
.top-header, .top-header-desktop { display: none !important; }

/* Bỏ nút thêm vào giỏ */
.single_add_to_cart_button, form.cart .quantity, .add_to_cart_button, .ajax_add_to_cart, a.button.product_type_simple, a.button.product_type_variable, .woocommerce a.button.add_to_cart_button { display: none !important; }

.home .banner, .home .main-content .products.rdtheme-archive-products { display: none !important; }
.home .content-area { padding-top: 0 !important; padding-bottom: 0 !important; }
.aph { width: 100vw; margin-left: calc(50% - 50vw); color: #1b2236; font-size: 16px; line-height: 1.55; }
.aph * { box-sizing: border-box; }
.aph a { text-decoration: none; }
.aph h1, .aph h2, .aph h3, .aph p { margin: 0; }
.aph-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.aph-ico { display: inline-flex; width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; flex: none; }
.aph-ico svg { width: 100%; height: 100%; fill: currentColor; }

/* Nút */
.aph .aph-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; cursor: pointer; }
.aph .aph-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.aph .aph-btn-call { background: linear-gradient(135deg, #f76707, #e8590c); color: #fff; }
.aph .aph-btn-zalo { background: #0068ff; color: #fff; }
.aph .aph-btn-line { background: #fff; color: var(--aph); border-color: var(--aph); }
.aph .aph-btn-line:hover { background: var(--aph); color: #fff; }
.aph .aph-btn-white { background: #fff; color: #c2410c; }
.aph .aph-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.aph .aph-btn-ghost:hover { background: #fff; color: var(--aph); }
.aph .aph-btn-lg { padding: 14px 28px; font-size: 16px; }
.aph-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.aph-hero { position: relative; background: radial-gradient(circle at 85% 15%, rgba(80,170,255,.32), transparent 45%), linear-gradient(135deg, var(--aph) 0%, var(--aph-d) 100%); color: #fff; padding: 60px 0 70px; overflow: hidden; }
.aph-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.aph-eyebrow { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.aph .aph-hero h1 { font-size: 40px; line-height: 1.15; color: #fff; margin-bottom: 14px; }
.aph-hero-txt > p { font-size: 18px; color: #dbe3ff; max-width: 560px; margin-bottom: 24px; }
.aph-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aph-stats span { background: rgba(255,255,255,.12); border-radius: 10px; padding: 8px 14px; font-size: 14px; color: #dbe3ff; }
.aph-stats b { color: #fff; font-size: 18px; margin-right: 4px; }
.aph-hero-cards { position: relative; min-height: 400px; }
.aph .aph-hero-card { position: absolute; width: 58%; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 24px 48px rgba(0,0,0,.4); color: #1b2236; display: flex; flex-direction: column; gap: 6px; transition: transform .25s; }
.aph .aph-hero-card:hover { transform: translateY(-6px) rotate(0); }
.aph-hero-card img { width: 100%; height: 220px; object-fit: contain; border-radius: 10px; }
.aph-hc1 { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.aph-hc2 { right: 0; bottom: 0; transform: rotate(3deg); z-index: 2; }
.aph-hc-tag { position: absolute; top: 12px; left: 12px; background: #e63946; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.aph-hc-name { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aph-hc-price { color: #d6336c; font-weight: 700; font-size: 16px; }
.aph-hc-price del { color: #8a93a8; font-weight: 400; font-size: 12px; }
.aph-hc-price ins { text-decoration: none; }

/* Thanh tin cậy */
.aph-trust { background: #fff; border-bottom: 1px solid #e6ebf5; }
.aph-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.aph-trust-in > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; }
.aph-trust-in .aph-ico { grid-row: span 2; width: 40px; height: 40px; margin: 0; padding: 9px; border-radius: 12px; background: #eaf0ff; color: var(--aph); }
.aph-trust-in b { font-size: 15px; line-height: 1.2; }
.aph-trust-in span:not(.aph-ico) { font-size: 13px; color: #5b6580; }

/* Khối mua hàng dạng tab (CSS thuần) */
.aph-shop { padding: 52px 0 44px; background: linear-gradient(180deg, #f1f7ff 0%, #ffffff 100%); }
.aph-shop-head { text-align: center; margin-bottom: 22px; }
.aph .aph-shop-head h2 { font-size: 30px; line-height: 1.2; color: var(--aph); }
.aph-shop-head p { color: #5b6580; margin-top: 6px; }
.aph-tabin { position: absolute; opacity: 0; pointer-events: none; }
.aph-tabbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.aph .aph-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; border: 2px solid #d5def2; color: var(--aph); font-weight: 700; font-size: 16px; cursor: pointer; transition: all .15s; user-select: none; }
.aph-tab .aph-ico { margin: 0; width: 22px; height: 22px; }
.aph .aph-tab em { font-style: normal; background: #eaf0ff; color: var(--aph); border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.aph .aph-tab:hover { border-color: var(--aph2); }
#aphtab-0:checked ~ .aph-tabbar .aph-tab:nth-child(1), #aphtab-1:checked ~ .aph-tabbar .aph-tab:nth-child(2),
#aphtab-2:checked ~ .aph-tabbar .aph-tab:nth-child(3), #aphtab-3:checked ~ .aph-tabbar .aph-tab:nth-child(4) { background: var(--aph); border-color: var(--aph); color: #fff; box-shadow: 0 8px 18px rgba(30,51,120,.25); }
#aphtab-0:checked ~ .aph-tabbar .aph-tab:nth-child(1) em, #aphtab-1:checked ~ .aph-tabbar .aph-tab:nth-child(2) em,
#aphtab-2:checked ~ .aph-tabbar .aph-tab:nth-child(3) em, #aphtab-3:checked ~ .aph-tabbar .aph-tab:nth-child(4) em { background: rgba(255,255,255,.25); color: #fff; }
.aph-panel { display: none; }
#aphtab-0:checked ~ .aph-panels .aph-panel-0, #aphtab-1:checked ~ .aph-panels .aph-panel-1,
#aphtab-2:checked ~ .aph-panels .aph-panel-2, #aphtab-3:checked ~ .aph-panels .aph-panel-3 { display: block; animation: aph-fade .25s ease; }
@keyframes aph-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aph-panel-in { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.aph-side { background: #fff; border: 1px solid #e1e8f5; border-radius: 16px; padding: 16px; position: sticky; top: 90px; }
.aph .aph-side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7a849e; margin: 4px 0 6px; font-weight: 700; }
.aph-side ul { list-style: none; margin: 0 0 12px; padding: 0; }
.aph-side li { margin: 0; padding: 0; }
.aph .aph-side li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: #1b2236; font-size: 14px; font-weight: 600; }
.aph .aph-side li a::after { content: "\203A"; color: #9aa5c0; font-size: 18px; line-height: 1; }
.aph .aph-side li a:hover { background: #eaf0ff; color: var(--aph); }
.aph .aph-side-all { display: block; text-align: center; margin-top: 6px; padding: 10px; border-radius: 10px; background: var(--aph); color: #fff; font-weight: 700; font-size: 14px; }
.aph .aph-side-all:hover { background: var(--aph2); }

/* Lưới + thẻ sản phẩm */
.aph-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aph-pc { background: #fff; border: 1px solid #e6ebf5; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.aph-pc:hover { box-shadow: 0 14px 30px rgba(30,51,120,.18); transform: translateY(-4px); border-color: #b9c8ee; }
.aph .aph-pc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; padding: 10px; }
.aph-pc-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.aph-pc:hover .aph-pc-img img { transform: scale(1.06); }
.aph-badge { position: absolute; top: 10px; font-size: 12px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.aph-badge-hot { left: 10px; background: #e63946; }
.aph-badge-sale { right: 10px; background: #f59f00; }
.aph-pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.aph .aph-pc-title { font-size: 16px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.aph .aph-pc-title a { color: #1b2236; }
.aph .aph-pc-title a:hover { color: var(--aph); }
.aph-pc-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.aph-pc-specs li { background: #eef3ff; color: var(--aph); font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 3px 9px; margin: 0; }
.aph-price { color: #d6336c; font-weight: 700; font-size: 19px; margin: auto 0 10px; padding-top: 2px; }
.aph-price del { color: #8a93a8; font-weight: 400; font-size: 13px; margin-right: 4px; }
.aph-price ins { text-decoration: none; }
.aph-contact { color: var(--aph); font-size: 15px; }
.aph-pc-cta { display: flex; gap: 8px; }
.aph .aph-pc-cta .aph-btn { flex: 1; padding: 10px 8px; font-size: 14px; border-radius: 10px; }
.aph .aph-pc-call { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff4ec; color: #e8590c; border: 2px solid #ffd8bf; transition: all .15s; }
.aph-pc-call .aph-ico { margin: 0; }
.aph .aph-pc-call:hover { background: #e8590c; color: #fff; }
.aph-panel-more { text-align: center; margin-top: 24px; }

/* Dải tư vấn, 3 bước, tổng kho */
.aph-band { background: linear-gradient(135deg, #e8590c, #c92a2a); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
.aph-band-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.aph .aph-band h2 { font-size: 26px; color: #fff; margin-bottom: 6px; }
.aph-band p { opacity: .95; max-width: 640px; }
.aph-sec { padding: 52px 0 40px; background: linear-gradient(180deg, #eaf6ff 0%, #ffffff 90%); }
.aph-sec-head { margin-bottom: 22px; }
.aph .aph-sec-head h2 { font-size: 28px; line-height: 1.2; color: var(--aph); }
.aph-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aph-steps > div { position: relative; background: #fff; border: 1px solid #dbe6fb; border-radius: 16px; padding: 22px; box-shadow: 0 6px 16px rgba(30,51,120,.06); }
.aph-steps > div:not(:last-child)::after { content: "\2192"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); width: 18px; text-align: center; color: var(--aph); font-weight: 700; z-index: 2; }
.aph-n { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--aph), var(--aph2)); color: #fff; font-weight: 700; margin-bottom: 10px; }
.aph-steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.aph-steps p { color: #5b6580; font-size: 15px; }
.aph-kho { background: linear-gradient(135deg, var(--aph), var(--aph-d)); color: #fff; padding: 48px 0; }
.aph-kho-in { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.aph .aph-kho h2 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.aph-kho-addr { display: flex; align-items: flex-start; font-size: 17px; font-weight: 600; margin-bottom: 8px !important; }
.aph-kho-txt > p { color: #dbe3ff; margin-bottom: 18px; }

/* ===== TRANG DANH MỤC ===== */
.aph.aph-flat { width: auto; margin-left: 0; }
body.archive.woocommerce .banner-content h1 { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; text-align: center; color: var(--aph); }
body.archive.woocommerce .banner, body.archive.woocommerce .banner-content, body.single-product .banner, body.single-product .banner-content,
body.post-type-archive-product .banner, body.post-type-archive-product .banner-content { min-height: 0 !important; height: auto !important; margin: 0 !important; }
body.archive.woocommerce .banner, body.post-type-archive-product .banner, body.single-product .banner { padding: 18px 0 !important; }
body.archive.woocommerce .banner-content, body.post-type-archive-product .banner-content, body.single-product .banner-content { padding: 0 !important; }
body.archive.woocommerce .banner-content ul, body.single-product .banner-content ul { margin: 0; padding: 0; font-size: 13px; }
body.archive.woocommerce .content-area, body.single-product .content-area { padding-top: 28px !important; padding-bottom: 50px !important; }
body.archive.woocommerce .main-content .rdtheme-archive-products { row-gap: 18px; }
body.archive.woocommerce .main-content .rdtheme-archive-products > .product { flex: 0 0 33.3333%; max-width: 33.3333%; display: flex; margin: 0; }
body.archive.woocommerce .main-content .rdtheme-archive-products > .product > .aph { width: 100%; display: flex; }
body.archive.woocommerce .main-content .rdtheme-archive-products .aph-pc { width: 100%; }
body.archive.woocommerce .main-content .rdtheme-archive-products > .product.col-12 { flex: 0 0 100%; max-width: 100%; }
body.archive.woocommerce .woocommerce-ordering select { border: 1px solid #c9d5ee; border-radius: 10px; padding: 8px 12px; }

/* Bộ lọc cột bên */
.aph-filter { background: #fff; border: 1px solid #e1e8f5; border-radius: 14px; margin-bottom: 18px; overflow: hidden; }
.aph-filter > summary { list-style: none; cursor: default; padding: 14px 16px; font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--aph), var(--aph2)); display: flex; justify-content: space-between; align-items: center; }
.aph-filter > summary::-webkit-details-marker { display: none; }
.aph-fbody { padding: 10px 16px 16px; }
.aph-fgroup { padding: 4px 0; }
.aph .aph-fgroup h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7a849e; font-weight: 700; }
.aph-flist { list-style: none; margin: 0; padding: 0; }
.aph-flist li { margin: 0; padding: 0; }
.aph .aph-flist a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; color: #1b2236; font-size: 14px; font-weight: 500; }
.aph .aph-flist a em { font-style: normal; color: #8a93a8; font-weight: 400; font-size: 12px; }
.aph .aph-flist a:hover { background: #eaf0ff; color: var(--aph); }
.aph .aph-flist a.is-on { background: #f0f4ff; color: var(--aph); font-weight: 600; }
.aph .aph-flist a.is-on em { color: var(--aph); }
.aph .aph-fsub { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #9aa3b8; font-weight: 700; margin: 12px 0 2px 10px; }
.aph .aph-fsub:first-child { margin-top: 0; }

/* ===== TRANG SẢN PHẨM ===== */
body.single-product { color: #1b2236; }
body.single-product .banner-content ul, body.single-product .banner-content .breadcrumb-trail { font-size: 13px; }
body.single-product .single-product-top-1 { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
body.single-product .single-product-top-1 > .rtin-left { flex: 0 0 min(46%, 520px); max-width: 100%; box-sizing: border-box; background: #fff; border: 1px solid #e1e8f5; border-radius: 16px; padding: 18px; box-shadow: 0 6px 24px rgba(30,51,120,.06); }
body.single-product .single-product-top-1 > .rtin-left img { mix-blend-mode: multiply; }
body.single-product .single-product-top-1 > .rtin-right { flex: 1 1 380px; min-width: 0; }
body.single-product .rtin-right h1.product_title, body.single-product .product_title { font-size: 28px !important; font-weight: 800 !important; color: var(--aph) !important; line-height: 1.25 !important; margin: 0 0 14px !important; }
body.single-product .related h2 { font-size: 22px; font-weight: 800; color: var(--aph); text-align: left; }
body.single-product .regional-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
body.single-product .regional-prices h4 { grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #7a849e; }
body.single-product .regional-prices br { display: none; }
body.single-product .regional-prices label { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; cursor: pointer; padding: 12px 14px; border: 1.5px solid #dbe3f5; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; color: #5b6580; transition: border-color .15s, background .15s, box-shadow .15s; }
body.single-product .regional-prices label input { position: absolute; opacity: 0; pointer-events: none; }
body.single-product .regional-prices label .woocommerce-Price-amount { font-size: 22px; font-weight: 800; color: #d6336c; line-height: 1.2; }
body.single-product .regional-prices label:has(input:checked) { border-color: var(--aph2); background: #f0f4ff; box-shadow: 0 4px 14px rgba(47,102,224,.15); }
body.single-product .regional-prices label:has(input:checked)::after { content: "\2713"; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--aph2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.aph-pdp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.aph-pdp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px; text-decoration: none !important; color: #fff !important; transition: transform .15s, box-shadow .15s; }
.aph-pdp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20,40,100,.22); }
.aph-pdp-btn span:not(.aph-ico) { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.aph-pdp-btn small { font-size: 12px; opacity: .85; font-weight: 500; }
.aph-pdp-btn b { font-size: 18px; font-weight: 800; }
.aph-pdp-btn .aph-ico { margin: 0; width: 24px; height: 24px; }
.aph-pdp-call { background: linear-gradient(135deg, #d6336c, #f0603a); }
.aph-pdp-zalo { background: linear-gradient(135deg, var(--aph), var(--aph2)); }
.aph-pdp-trust { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #f6f9ff; border: 1px solid #e1e8f5; border-radius: 12px; display: grid; gap: 9px; }
.aph-pdp-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #2c3550; margin: 0; padding: 0; }
.aph-pdp-trust .aph-ico { width: 18px; height: 18px; margin: 0; color: var(--aph2); }
body.single-product .product_meta-area { font-size: 13px; color: #6b7590; border-top: 1px solid #edf1fa; padding-top: 12px; }
body.single-product .product_meta-area a { color: var(--aph2); }
body.single-product .woocommerce-tabs ul.tabs { border-bottom: 2px solid #e8eefb; margin-bottom: 20px; }
body.single-product .woocommerce-tabs ul.tabs li a { font-size: 15px; font-weight: 700; color: #7a849e; padding: 12px 18px; }
body.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--aph); }
body.single-product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--aph2); margin-bottom: -2px; }
body.single-product .woocommerce-Tabs-panel { font-size: 15px; line-height: 1.7; }
.aph-sticky { display: none; }

/* ===== BẢNG ===== */
.entry-content table, .post-content table, .woocommerce-Tabs-panel table, .product-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: #1b2236; background: #fff; border: 1px solid #dbe3f5; border-radius: 12px; overflow: hidden; }
.entry-content table th, .entry-content table td, .post-content table th, .post-content table td,
.woocommerce-Tabs-panel table th, .woocommerce-Tabs-panel table td, .product-content table th, .product-content table td { padding: 11px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid #edf1fa; }
.entry-content table tr:last-child > *, .post-content table tr:last-child > *, .woocommerce-Tabs-panel table tr:last-child > *, .product-content table tr:last-child > * { border-bottom: 0; }
.entry-content table thead th, .post-content table thead th, .woocommerce-Tabs-panel table thead th, .product-content table thead th { background: var(--aph); color: #fff; font-weight: 700; font-size: 14px; }
.entry-content table tbody td:first-child, .post-content table tbody td:first-child, .woocommerce-Tabs-panel table tbody td:first-child, .product-content table tbody td:first-child,
.entry-content table tbody th, .post-content table tbody th, .woocommerce-Tabs-panel table tbody th, .product-content table tbody th { background: #f6f9ff; color: #2c3550; font-weight: 600; width: 36%; }
.entry-content table tbody tr:nth-child(even) td:not(:first-child), .post-content table tbody tr:nth-child(even) td:not(:first-child),
.woocommerce-Tabs-panel table tbody tr:nth-child(even) td:not(:first-child), .product-content table tbody tr:nth-child(even) td:not(:first-child) { background: #fbfcff; }
.entry-content table tbody tr:hover td, .post-content table tbody tr:hover td, .woocommerce-Tabs-panel table tbody tr:hover td, .product-content table tbody tr:hover td { background: #eef3ff; }

/* ===== MEGA MENU (desktop) ===== */
@media (min-width: 992px) {
  .main-navigation ul.menu > li { position: relative; }
  .main-navigation ul.menu > li > ul.sub-menu { display: none !important; flex-direction: row; gap: 6px; position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important; min-width: 520px; width: max-content; max-width: 820px; padding: 18px 20px !important; margin: 0 !important; background: #fff !important; border: 1px solid #e1e8f5 !important; border-top: 3px solid var(--aph2) !important; border-radius: 0 0 14px 14px; box-shadow: 0 22px 44px rgba(20,40,100,.16) !important; opacity: 1 !important; visibility: visible !important; transform: none !important; z-index: 9999; }
  .main-navigation ul.menu > li:hover > ul.sub-menu, .main-navigation ul.menu > li:focus-within > ul.sub-menu { display: flex !important; }
  .main-navigation ul.menu > li > ul.sub-menu > li { flex: 1 1 0; min-width: 150px; position: static !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; float: none !important; width: auto !important; }
  .main-navigation ul.menu > li > ul.sub-menu > li > a { display: block !important; padding: 0 10px 8px !important; margin: 0 0 6px; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; color: #7a849e !important; background: transparent !important; border-bottom: 1px solid #edf1fa; pointer-events: none; cursor: default; }
  .main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu { display: block !important; position: static !important; width: auto !important; min-width: 0 !important; opacity: 1 !important; visibility: visible !important; transform: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > a { display: block !important; padding: 7px 10px !important; border-radius: 8px; font-size: 14px !important; font-weight: 500 !important; color: #1b2236 !important; background: transparent !important; text-transform: none; white-space: nowrap; transition: background .15s, color .15s; }
  .main-navigation ul.menu > li > ul.sub-menu > li > ul.sub-menu > li > a:hover { background: #eaf0ff !important; color: var(--aph) !important; }
  /* Menu phẳng (toàn link đơn) -> danh sách dọc */
  .main-navigation ul.menu > li:hover > ul.sub-menu:not(:has(> li.menu-item-has-children)), .main-navigation ul.menu > li:focus-within > ul.sub-menu:not(:has(> li.menu-item-has-children)) { display: block !important; min-width: 200px; width: max-content; padding: 12px !important; }
  .main-navigation ul.menu > li > ul.sub-menu:not(:has(> li.menu-item-has-children)) > li > a { pointer-events: auto; cursor: pointer; display: block !important; padding: 8px 12px !important; border: 0; margin: 0; font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0; text-transform: none; color: #1b2236 !important; border-radius: 8px; white-space: nowrap; }
  .main-navigation ul.menu > li > ul.sub-menu:not(:has(> li.menu-item-has-children)) > li > a:hover { background: #eaf0ff !important; color: var(--aph) !important; }
  .main-navigation ul.menu > li > ul.sub-menu > li.menu-item-has-children::after, .main-navigation ul.menu > li > ul.sub-menu > li.menu-item-has-children::before,
  .main-navigation ul.menu > li > ul.sub-menu li.menu-item-has-children > a::after, .main-navigation ul.menu > li > ul.sub-menu li.menu-item-has-children > a::before { display: none !important; content: none !important; }
}

/* Footer info */
.ap-footer-info { padding: 14px 15px; text-align: center; font-size: 14px; border-top: 1px solid rgba(255,255,255,.15); color: #fff; }
.ap-footer-info a { color: #fff; font-weight: 700; }

/* Tablet */
@media (max-width: 991px) {
  .aph-hero-in { grid-template-columns: 1fr; }
  .aph-hero-cards { min-height: 330px; max-width: 540px; width: 100%; margin: 8px auto 0; }
  .aph-hero-card img { height: 170px; }
  .aph .aph-hero h1 { font-size: 32px; }
  .aph-trust-in { grid-template-columns: 1fr 1fr; }
  .aph-band-in { flex-direction: column; align-items: flex-start; }
  .aph-panel-in { grid-template-columns: 1fr; gap: 16px; }
  .aph-side { position: static; padding: 12px; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; align-items: center; }
  .aph .aph-side h3 { display: none; }
  .aph-side ul { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; }
  .aph .aph-side li a { white-space: nowrap; background: #f1f5ff; border: 1px solid #c9d5ee; border-radius: 999px; padding: 7px 14px; }
  .aph .aph-side li a::after { display: none; }
  .aph .aph-side-all { display: none; }
  body.archive.woocommerce .main-content .rdtheme-archive-products > .product { flex-basis: 50%; max-width: 50%; }
  body.archive.woocommerce .row > div:has(> .sidebar-widget-area) { order: -1; }
  .aph-fbody { padding: 8px 12px 12px; }
  .aph-flist { display: flex; flex-wrap: wrap; gap: 6px; }
  .aph .aph-flist a { border: 1px solid #d5def2; border-radius: 999px; padding: 6px 12px; font-size: 13px; gap: 6px; }
  .aph .aph-flist a.is-on { background: var(--aph); color: #fff; border-color: var(--aph); }
  .aph .aph-flist a.is-on em { color: #cfd8f7; }
  .aph .aph-fsub { flex: 0 0 100%; margin: 8px 0 0; }
  .aph-filter { margin-bottom: 12px; }
  .aph-filter > summary { cursor: pointer; padding: 11px 14px; font-size: 15px; }
  .aph-filter > summary::after { content: "+"; font-size: 22px; line-height: 1; }
  .aph-filter[open] > summary::after { content: "\2013"; }
}

/* Mobile */
@media (max-width: 767px) {
  .aph-hero { padding: 34px 0 44px; }
  .aph .aph-hero h1 { font-size: 26px; }
  .aph-hero-txt > p { font-size: 16px; }
  .aph-hero-cards { min-height: 270px; }
  .aph-hero-card img { height: 130px; }
  .aph .aph-shop-head h2, .aph .aph-sec-head h2, .aph .aph-kho h2 { font-size: 22px; }
  .aph-shop { padding: 36px 0 32px; }
  .aph-tabbar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .aph .aph-tab { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
  .aph-pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aph-pc-body { padding: 10px; }
  .aph .aph-pc-title { font-size: 14px; }
  .aph-price { font-size: 16px; }
  .aph .aph-pc-cta .aph-btn { padding: 9px 4px; font-size: 13px; }
  .aph .aph-pc-call { flex-basis: 40px; }
  .aph-cta .aph-btn { flex: 1 1 100%; }
  .aph-steps { grid-template-columns: 1fr; }
  .aph-steps > div:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -18px; transform: translateX(-50%); }
  body.archive.woocommerce .banner-content h1 { font-size: 22px; }
  body.archive.woocommerce .banner, body.post-type-archive-product .banner, body.single-product .banner { padding: 12px 0 !important; }
  body.archive.woocommerce .content-area, body.single-product .content-area { padding-top: 14px !important; padding-bottom: 30px !important; }
  body.archive.woocommerce .main-content .rdtheme-archive-products > .product { padding-left: 5px; padding-right: 5px; }
  body.single-product { padding-bottom: 66px; }
  body.single-product .product_title { font-size: 22px !important; }
  body.single-product .single-product-top-1 { gap: 18px; }
  body.single-product .single-product-top-1 > .rtin-left { flex: 1 1 100%; }
  .aph-pdp-cta { grid-template-columns: 1fr; }
  body.single-product .regional-prices label .woocommerce-Price-amount { font-size: 19px; }
  .aph-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 10px; background: #fff; box-shadow: 0 -6px 20px rgba(20,40,100,.15); }
  .aph-sticky a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #fff !important; text-decoration: none !important; }
  .aph-sticky .aph-ico { margin: 0; }
  .aph-sticky-call { background: linear-gradient(135deg, #d6336c, #f0603a); }
  .aph-sticky-zalo { background: linear-gradient(135deg, var(--aph), var(--aph2)); }
  .entry-content table, .post-content table, .woocommerce-Tabs-panel table, .product-content table { display: block; overflow-x: auto; font-size: 14px; }
  .entry-content table tbody td:first-child, .post-content table tbody td:first-child, .woocommerce-Tabs-panel table tbody td:first-child, .product-content table tbody td:first-child { width: auto; }
}
