/* Giao diện kiểu DeWalt: gọn, nhiều khoảng trắng, thông tin kỹ thuật lên trước, hành động rõ ràng */

/* ---- thẻ sản phẩm: chip thông số thay dòng "Liên hệ nhận báo giá" lặp ở mọi thẻ ---- */
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; min-height: 26px; }
.card-specs span {
  font: 700 11px/1 var(--font-body, Inter, Arial, sans-serif); letter-spacing: .03em; text-transform: uppercase;
  color: #2b2b2b; background: #f1f1f1; border-left: 3px solid var(--starker-orange, #F86803); padding: 6px 8px;
}
.product-card-footer .product-price { display: none; }
.product-card-actions .quick-view-btn, .product-card-actions .quote-card-btn { min-height: 40px; font-size: 12.5px; }
.product-card .product-title { line-height: 1.35; }

/* ---- trang danh mục: hero gọn, thanh kết quả + sắp xếp + bộ lọc ---- */
.collection-hero { padding: 26px 0 !important; }
.collection-hero p {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 760px;
}
.collection-stats { display: none !important; }
.plp-subcats { display: none; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.plp-subcats::-webkit-scrollbar { display: none; }
.plp-subcat {
  flex: 0 0 auto; padding: 9px 14px; border: 1px solid #d9d9d9; background: #fff; color: #111; font: 700 13px/1 var(--font-body, Inter, Arial);
  text-decoration: none; border-radius: 999px; white-space: nowrap;
}
.plp-subcat.is-current { background: #111; border-color: #111; color: #fff; }
.plp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; border-bottom: 3px solid var(--starker-orange, #F86803); margin-bottom: 14px; }
.plp-count { font: 400 14px var(--font-body, Inter, Arial); color: #555; }
.plp-count b { font-size: 20px; color: #111; margin-right: 4px; }
.plp-sort { display: flex; align-items: center; gap: 8px; font: 700 12px var(--font-body, Inter, Arial); text-transform: uppercase; letter-spacing: .04em; color: #555; }
.plp-sort select { padding: 9px 12px; border: 1px solid #cfcfcf; background: #fff; font: 600 14px var(--font-body, Inter, Arial); color: #111; border-radius: 0; }
.plp-filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; }
.plp-filters:empty { display: none; }
.plp-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.plp-group > span { font: 700 11px var(--font-body, Inter, Arial); text-transform: uppercase; letter-spacing: .05em; color: #777; margin-right: 2px; }
.plp-chip {
  border: 1px solid #cfcfcf; background: #fff; color: #111; padding: 8px 12px; font: 700 12.5px/1 var(--font-body, Inter, Arial);
  cursor: pointer; border-radius: 999px;
}
.plp-chip small { color: #888; font-weight: 600; margin-left: 4px; }
.plp-chip:hover { border-color: #111; }
.plp-chip.is-active { background: #111; border-color: #111; color: #fff; }
.plp-chip.is-active small { color: #ddd; }
.plp-clear { border: 0; background: none; color: var(--starker-orange-dark, #BC4F02); font: 700 12.5px var(--font-body, Inter, Arial); text-decoration: underline; cursor: pointer; padding: 8px 4px; }
.plp-note { margin: 4px 0 16px; font: 400 13px/1.5 var(--font-body, Inter, Arial); color: #6b7280; }
.plp-empty { padding: 30px; border: 1px dashed #cfcfcf; text-align: center; color: #555; display: none; }

/* ---- trang sản phẩm: ghi chú giá đại lý gọn + thanh hành động cố định ---- */
.pdp-quote-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font: 700 16px var(--font-body, Inter, Arial); color: #111; }
.pdp-quote-tag { background: var(--starker-orange, #F86803); color: #fff; font: 800 11px/1 var(--font-body, Inter, Arial); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; }
.pdp-specs { margin-top: 4px; }
.pdp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 4px solid var(--starker-orange, #F86803);
  box-shadow: 0 -6px 24px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(20px, calc((100% - var(--starker-max, 1440px)) / 2 + 20px)); transform: translateY(110%); transition: transform .25s ease;
}
.pdp-sticky.is-visible { transform: translateY(0); }
.pdp-sticky-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdp-sticky-info img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid #eee; }
.pdp-sticky-info small { display: block; color: #777; font: 700 11px var(--font-body, Inter, Arial); letter-spacing: .04em; }
.pdp-sticky-info b { display: block; font: 700 14px/1.3 var(--font-body, Inter, Arial); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.pdp-sticky-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.pdp-sticky-actions .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
body.template-product { padding-bottom: 76px; }

/* ---- điện thoại ---- */
@media (max-width: 992px) {
  .plp-subcats { display: flex; }
  .catalog-sidebar { display: none; }
  .catalog-layout { display: block; }
}
@media (max-width: 768px) {
  .collection-hero { padding: 18px 0 !important; }
  .collection-hero p, .collection-hero .hero-eyebrow { display: none; }
  .collection-hero h1 { font-size: 26px !important; margin: 0; }
  .plp-bar { flex-wrap: wrap; }
  .plp-filters { gap: 10px 14px; }
  .plp-group { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .plp-group::-webkit-scrollbar { display: none; }
  .plp-chip { flex: 0 0 auto; }
  .floating-contact { display: none !important; }       /* đã có thanh dưới (Gọi | Zalo | Báo giá) → bỏ nút nổi đè nội dung */
  .mobile-sticky-actions { grid-template-columns: 1fr 1fr 1.5fr !important; }
  body.template-product .mobile-sticky-actions { display: none !important; }
  .pdp-sticky { transform: none; padding: 8px 10px; gap: 8px; border-top-width: 3px; }
  .pdp-sticky-info { display: none; }
  .pdp-sticky-actions { width: 100%; }
  .pdp-sticky-actions .btn { flex: 1; padding: 0 8px; font-size: 13px; min-height: 46px; }
  .pdp-sticky-actions .btn-primary { flex: 2.2; }
  .card-specs span { font-size: 10px; padding: 5px 6px; }
}

/* thẻ cao đều nhau: nút luôn nằm đáy thẻ */
.product-card { display: flex; flex-direction: column; }
.product-card .product-card-body { flex: 1; display: flex; flex-direction: column; }
.product-card .product-card-footer { margin-top: auto; }

/* trang sản phẩm: nút Zalo/Hotline nổi nằm trên thanh hành động, không đè nút */
body.template-product .floating-contact { bottom: 96px !important; }
.pdp-quote-note + .card-specs { margin: 2px 0 14px; }

@media (max-width: 768px) {
  .collection-hero + .section { padding-top: 14px !important; }
}

/* thanh so sánh đang mở: đặt thanh hành động ngay phía trên, không che nhau */
body.compare-bar-active .pdp-sticky { bottom: 91px; }
body.compare-bar-active .floating-contact { bottom: 190px !important; }

/* thanh so sánh khi chưa mở thì ẩn hẳn (trước đây chỉ trượt xuống, lộ ra trên điện thoại khi bỏ thanh dưới) */
.compare-bar:not(.is-open) { visibility: hidden; pointer-events: none; }
@media (max-width: 768px) { body.template-product .compare-bar { bottom: 0; } }

.pdp-sticky .lbl-short { display: none; }
@media (max-width: 768px) {
  .pdp-sticky .lbl-long { display: none; }
  .pdp-sticky .lbl-short { display: inline; }
}

/* =================== ĐỢT 2 — bám DeWalt: chữ giãn rộng, nav trái + tiện ích phải, bộ lọc cột trái, ô danh mục con =================== */
:root { --font-heading: 'Archivo', 'Archivo Black', Arial, sans-serif; }
h1, h2, h3, h4, .section-title h2, .hero h1, .collection-hero h1, .page-hero h1 {
  font-family: var(--font-heading); font-stretch: 125%; font-weight: 900; letter-spacing: -.5px;
}
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.03; letter-spacing: -1px; }
.section-title h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }

/* thanh điều hướng: căn trái, tiện ích bên phải */
@media (min-width: 993px) {
  .starker-nav { justify-content: flex-start; gap: 28px; }
  .starker-nav .nav-utility { margin-left: auto; display: flex; gap: 22px; font-weight: 600; font-size: 13px; }
  .starker-nav .nav-utility a { color: rgba(255,255,255,.85); text-transform: none; }
  .starker-nav .nav-utility a:hover { color: var(--starker-orange, #F86803); }
}
@media (max-width: 992px) { .nav-utility { display: none; } }

/* danh mục: tiêu đề + ô danh mục con (máy tính) */
.plp-explore { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; text-transform: uppercase; }
.plp-tiles { display: none; position: relative; margin: 0 0 30px; }
.plp-tiles-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.plp-tiles-track::-webkit-scrollbar { display: none; }
.plp-tile { flex: 0 0 calc((100% - 56px) / 5); scroll-snap-align: start; text-decoration: none; color: #111; display: block; text-align: center; }
.plp-tile-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid #e5e5e5; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.plp-tile-img img { width: 82%; height: 82%; object-fit: contain; }
.plp-tile:hover .plp-tile-img, .plp-tile.is-current .plp-tile-img { border-color: var(--starker-orange, #F86803); box-shadow: 0 0 0 1px var(--starker-orange, #F86803) inset; }
.plp-tile-name { display: block; margin-top: 12px; font: 800 13.5px/1.25 var(--font-heading); font-stretch: 125%; text-transform: uppercase; letter-spacing: .2px; }
.plp-tiles-arrow { position: absolute; top: 34%; z-index: 3; width: 38px; height: 38px; border: 0; background: var(--starker-orange, #F86803); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.plp-tiles-arrow.prev { left: -10px; } .plp-tiles-arrow.next { right: -10px; }
@media (min-width: 993px) { .plp-tiles { display: block; } }

/* bộ lọc cột trái (máy tính); trên điện thoại dùng chip */
.plp-side { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid #e5e5e5; }
.plp-side h3 { font-size: 15px; margin: 0 0 8px; letter-spacing: .5px; }
.plp-side-group { border-top: 1px solid #eee; padding: 10px 0; }
.plp-side-group summary { cursor: pointer; font: 800 12px var(--font-body, Inter, Arial); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 8px; }
.plp-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; font: 500 14px var(--font-body, Inter, Arial); cursor: pointer; }
.plp-check input { width: 17px; height: 17px; accent-color: var(--starker-orange, #F86803); }
.plp-check small { color: #888; margin-left: auto; }
.plp-side .plp-clear { margin-top: 6px; }
@media (min-width: 993px) { .plp-filters { display: none; } .plp-subcats { display: none !important; } }

/* băng chuyền sản phẩm trang chủ (như "Featured products" của DeWalt) */
.carousel-wrap { position: relative; }
.home-carousel { display: flex !important; gap: 20px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.home-carousel::-webkit-scrollbar { display: none; }
.home-carousel > .product-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; min-width: 0; }
.carousel-arrow { position: absolute; top: 34%; z-index: 4; width: 42px; height: 42px; border: 0; background: var(--starker-orange, #F86803); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.carousel-arrow.prev { left: -14px; } .carousel-arrow.next { right: -14px; }
.carousel-arrow:hover { background: var(--starker-orange-dark, #BC4F02); }
@media (max-width: 992px) { .home-carousel > .product-card { flex-basis: calc((100% - 20px) / 2.2); } .carousel-arrow { display: none; } }
@media (max-width: 560px) { .home-carousel > .product-card { flex-basis: 72%; } }

/* ---- "Chi tiết kỹ thuật" (như công tắc Technical Details của DeWalt) + huy hiệu MỚI ---- */
.plp-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 700 12px var(--font-body, Inter, Arial); text-transform: uppercase; letter-spacing: .05em; color: #444; user-select: none; }
.plp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.plp-switch i { width: 38px; height: 22px; border-radius: 22px; background: #cfcfcf; position: relative; transition: background .15s; flex: 0 0 auto; }
.plp-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.plp-switch input:checked + i { background: var(--starker-orange, #F86803); }
.plp-switch input:checked + i::after { transform: translateX(16px); }
.plp-switch input:focus-visible + i { outline: 2px solid #111; outline-offset: 2px; }
.card-techs { display: none; list-style: none; margin: 0 0 12px; padding: 0; font: 400 12.5px/1.35 var(--font-body, Inter, Arial); color: #333; }
body.show-techs .card-techs { display: block; }
.card-techs li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #ececec; }
.card-techs li span { color: #777; }
.card-techs li b { font-weight: 700; text-align: right; }
.card-badge-new {
  position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--starker-orange, #F86803); color: #fff;
  font: 800 11px/1 var(--font-body, Inter, Arial); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px;
}
.product-image { position: relative; }
.plp-bar { flex-wrap: wrap; row-gap: 10px; }

/* thanh breadcrumb tối như DeWalt */
.breadcrumb-bar { background: #1b1b1b !important; border: 0 !important; }
.breadcrumb-bar .breadcrumb, .breadcrumb-bar .breadcrumb a, .breadcrumb-bar .breadcrumb span { color: #d6d6d6; }
.breadcrumb-bar .breadcrumb a:hover { color: var(--starker-orange, #F86803); }
.breadcrumb-bar .breadcrumb-current { color: #fff !important; font-weight: 700; }
