/* Trang chủ Tổng kho Alaska – bố cục bán hàng. Tiền tố aph- */
body.home { overflow-x: clip; }

/* Font: Noto Sans (web đã tải sẵn, đủ dấu tiếng Việt) */
.aph,
.aph h1, .aph h2, .aph h3, .aph p, .aph a, .aph b, .aph span, .aph div, .aph label, .aph em, .aph li {
  font-family: "Noto Sans", Roboto, "Segoe UI", Tahoma, Arial, sans-serif !important;
}
.aph h1, .aph h2 { font-weight: 700 !important; }

.home .banner,
.home .main-content .products.rdtheme-archive-products { display: none !important; }
.home .content-area { padding-top: 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: #1e3378; border-color: #1e3378; }
.aph .aph-btn-line:hover { background: #1e3378; 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: #1e3378; }
.aph .aph-btn-lg { padding: 14px 28px; font-size: 16px; }
.aph-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tuyết rơi nhẹ (trang trí) */
.aph-snow { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1.6px, transparent 2.2px), radial-gradient(circle, rgba(255,255,255,.35) 1.2px, transparent 2px);
  background-size: 140px 140px, 90px 90px; background-position: 0 0, 45px 30px; animation: aph-snow 24s linear infinite; }
@keyframes aph-snow { to { background-position: 0 140px, 45px 120px; } }
@media (prefers-reduced-motion: reduce) { .aph-snow { animation: none; } }

/* Hero */
.aph-hero { position: relative; background: radial-gradient(circle at 85% 15%, rgba(25,180,230,.35), transparent 45%), linear-gradient(135deg, #1e3378 0%, #0f1d4d 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: 42px; 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; }
.aph-sticker { position: absolute; left: 38%; bottom: 6px; z-index: 3; width: 96px; height: 96px; border-radius: 50%; background: #e63946; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,.35); border: 3px dashed rgba(255,255,255,.8); transform: rotate(-10deg); }
.aph-sticker b { font-size: 15px; }

/* 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: #1e3378; }
.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: #1e3378; }
.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 { --c: #1e3378; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; border: 2px solid #d5def2; color: #1e3378; font-weight: 700; font-size: 16px; cursor: pointer; transition: all .15s; user-select: none; }
.aph .aph-tab-mat { --c: #0e9fcf; }
.aph .aph-tab-dh { --c: #e8590c; }
.aph-tab .aph-ico { margin: 0; width: 22px; height: 22px; }
.aph .aph-tab em { font-style: normal; background: #eaf0ff; color: #1e3378; border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.aph .aph-tab:hover { border-color: var(--c); }

#aphtab-dong:checked ~ .aph-tabbar .aph-tab-dong,
#aphtab-mat:checked ~ .aph-tabbar .aph-tab-mat,
#aphtab-dh:checked ~ .aph-tabbar .aph-tab-dh { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 8px 18px rgba(30,51,120,.25); }
#aphtab-dong:checked ~ .aph-tabbar .aph-tab-dong em,
#aphtab-mat:checked ~ .aph-tabbar .aph-tab-mat em,
#aphtab-dh:checked ~ .aph-tabbar .aph-tab-dh em { background: rgba(255,255,255,.25); color: #fff; }
#aphtab-dong:focus-visible ~ .aph-tabbar .aph-tab-dong,
#aphtab-mat:focus-visible ~ .aph-tabbar .aph-tab-mat,
#aphtab-dh:focus-visible ~ .aph-tabbar .aph-tab-dh { outline: 3px solid #ffb703; outline-offset: 2px; }

.aph-panel { display: none; }
#aphtab-dong:checked ~ .aph-panels .aph-panel-dong,
#aphtab-mat:checked ~ .aph-panels .aph-panel-mat,
#aphtab-dh:checked ~ .aph-panels .aph-panel-dh { display: block; animation: aph-fade .25s ease; }
@keyframes aph-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.aph-panel-sub { text-align: center; color: #5b6580; margin-bottom: 18px; }
.aph-panel-in { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

/* Cột lọc */
.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: #1e3378; }
.aph .aph-side-all { display: block; text-align: center; margin-top: 6px; padding: 10px; border-radius: 10px; background: #1e3378; color: #fff; font-weight: 700; font-size: 14px; }
.aph .aph-side-all:hover { background: #2f66e0; }

/* 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: #f6f9ff; padding: 10px; }
.aph-pc-img img { width: 100%; height: 100%; object-fit: contain; 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: #1e3378; }
.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: #1e3378; 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: #1e3378; 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 */
.aph-band { margin: 0; background: linear-gradient(135deg, #e8590c, #c92a2a); color: #fff; padding: 34px 0; position: relative; overflow: hidden; }
.aph-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.1); }
.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; }

/* Khối chung (3 bước) */
.aph-sec { padding: 52px 0 12px; }
.aph-sec--ice { background: linear-gradient(180deg, #eaf6ff 0%, #ffffff 90%); padding-bottom: 40px; }
.aph-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.aph-sec-title { display: flex; align-items: center; }
.aph .aph-sec-head h2 { font-size: 28px; line-height: 1.2; color: #1e3378; }
.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: #1e3378; 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, #1e3378, #2f66e0); 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; }

/* Tổng kho */
.aph-kho { position: relative; overflow: hidden; background: linear-gradient(135deg, #1e3378, #0f1d4d); color: #fff; padding: 48px 0; }
.aph-kho-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.aph-kho-in:has(.aph-kho-img) { grid-template-columns: 1fr 1fr; }
.aph-kho-img img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.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 SẢN PHẨM ===== */
.aph.aph-flat { width: auto; margin-left: 0; }

body.archive.woocommerce .site-content h1,
body.archive.woocommerce .site-content h2,
body.archive.woocommerce .site-content h3,
body.archive.woocommerce .site-content h4,
body.archive.woocommerce .site-content p,
body.archive.woocommerce .site-content li,
body.archive.woocommerce .site-content a,
body.archive.woocommerce .site-content div,
body.archive.woocommerce .site-content select,
body.archive.woocommerce .site-content td,
body.archive.woocommerce .site-content th {
  font-family: "Noto Sans", Roboto, "Segoe UI", Tahoma, Arial, sans-serif !important;
}
body.archive.woocommerce .banner-content h1 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; text-align: center; color: #1e3378; }

/* Thanh chip lọc nhanh */
.aph-bar { margin: 0 0 18px; background: #f4f7fc; border: 1px solid #e1e8f5; border-radius: 14px; padding: 10px 14px; }
.aph-bar-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.aph-bar-lb { flex: 0 0 112px; padding-top: 7px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #7a849e; font-weight: 700; }
.aph-bar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aph .aph-chip { background: #fff; color: #1e3378; border: 1px solid #c9d5ee; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; transition: all .15s; }
.aph .aph-chip em { font-style: normal; color: #8a93a8; font-weight: 400; margin-left: 3px; font-size: 12px; }
.aph .aph-chip:hover, .aph .aph-chip.is-on { background: #1e3378; color: #fff; border-color: #1e3378; }
.aph .aph-chip:hover em, .aph .aph-chip.is-on em { color: #cfd8f7; }

/* Lưới 3 cột, thẻ cao bằng nhau */
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%; }
.aph-list .aph-pc { flex-direction: row; }
.aph-list .aph-pc-img { flex: 0 0 260px; aspect-ratio: auto; min-height: 200px; }
.aph-list .aph-pc-body { justify-content: center; }

/* Cột bên */
.aph-consult { background: linear-gradient(135deg, #1e3378, #0f1d4d); color: #fff; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.aph-consult b { display: block; font-size: 17px; margin-bottom: 4px; }
.aph-consult p { opacity: .9; margin-bottom: 12px; font-size: 14px; }
.aph .aph-consult .aph-btn { width: 100%; margin-bottom: 8px; }
body.archive.woocommerce .sidebar-widget-area .widget { background: #fff; border: 1px solid #e1e8f5; border-radius: 14px; padding: 16px; margin-bottom: 18px; }
body.archive.woocommerce .sidebar-widget-area .widgettitle { color: #1e3378; font-size: 17px; font-weight: 700; }
body.archive.woocommerce .woocommerce-ordering select { border: 1px solid #c9d5ee; border-radius: 10px; padding: 8px 12px; }

@media (max-width: 991px) {
  body.archive.woocommerce .main-content .rdtheme-archive-products > .product { flex-basis: 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .aph-bar-row { flex-direction: column; gap: 2px; }
  .aph-bar-lb { flex: none; padding-top: 2px; }
  .aph-bar-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .aph .aph-chip { white-space: nowrap; }
  .aph-list .aph-pc { flex-direction: column; }
  .aph-list .aph-pc-img { flex: none; aspect-ratio: 4 / 3; }
  body.archive.woocommerce .main-content .rdtheme-archive-products > .product { padding-left: 5px; padding-right: 5px; }
}

/* Footer info */
.ap-footer-info { padding: 14px 15px; text-align: center; font-size: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.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: 34px; }
  .aph-trust-in { grid-template-columns: 1fr 1fr; }
  .aph-kho-in:has(.aph-kho-img) { grid-template-columns: 1fr; }
  .aph-band-in { flex-direction: column; align-items: flex-start; }
  /* Cột lọc chuyển thành hàng chip vuốt ngang phía trên lưới */
  .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; -webkit-overflow-scrolling: touch; }
  .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; }
}

/* Mobile */
@media (max-width: 767px) {
  .aph-hero { padding: 34px 0 44px; }
  .aph .aph-hero h1 { font-size: 28px; }
  .aph-hero-txt > p { font-size: 16px; }
  .aph-hero-cards { min-height: 270px; }
  .aph-hero-card img { height: 130px; }
  .aph-sticker { width: 78px; height: 78px; font-size: 11px; left: 34%; }
  .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%); }
}
