/* Sticky footer: on short pages (empty cart, no results...) the footer sits at the
   bottom of the screen instead of right under the content. Long pages are unchanged. */
.body-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.body-wrapper > footer {
  margin-top: auto;
}

/* Listing pages (body.page-wide): use the whole screen width and show more product
   columns as the screen gets wider, instead of two cards in a narrow centred column.
   Phones (< 768px) keep the original two columns. */
@media (min-width: 768px) {
  body.page-wide .container {
    max-width: none;
    padding-left: 30px;
    padding-right: 30px;
  }
  body.page-wide .row-10 > .col-6,
  body.page-wide .row-5 > .col-6 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  /* The banner images are only ~1100px wide: keep the banner at its original size
     (centred) so it does not get blurry or cropped when the page is stretched. */
  body.page-wide .hero-slider-wrapper {
    max-width: 1110px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1200px) {
  body.page-wide .row-10 > .col-6,
  body.page-wide .row-5 > .col-6 {
    flex-basis: 25%;
    max-width: 25%;
  }
}
@media (min-width: 1600px) {
  body.page-wide .row-10 > .col-6,
  body.page-wide .row-5 > .col-6 {
    flex-basis: 20%;
    max-width: 20%;
  }
}

/* "Related products" grid on the product detail page: 3-4 columns on wide screens
   instead of two huge cards. (Listing pages are handled by body.page-wide above.) */
@media (min-width: 768px) {
  body:not(.page-wide) .all-products-wrapper .row-10 > .col-6 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
@media (min-width: 1200px) {
  body:not(.page-wide) .all-products-wrapper .row-10 > .col-6 {
    flex-basis: 25%;
    max-width: 25%;
  }
}

/* Right-click menu on product cards + "added to cart" toast */
#product-ctx-menu {
  position: fixed;
  z-index: 2000;
  min-width: 190px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid #e6e6e6;
}
#product-ctx-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #1c1c1c;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
#product-ctx-menu button:hover,
#product-ctx-menu button:focus {
  background: #efeefe;
  color: #4a44f2;
  outline: none;
}
#product-ctx-menu .ctx-icon {
  font-size: 16px;
  line-height: 1;
}
#cart-toast {
  position: fixed;
  z-index: 2100;
  left: 50%;
  bottom: 110px;                 /* above the fixed Home/Zalo/Facebook/Call bar */
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #1f9d55;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
#cart-toast.error {
  background: #d82426;
}

/* Checkout: result message and honeypot field (invisible to people, bots fill it in) */
.cart-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid;
}
.cart-error {
  background: #fdecec;
  border-color: #f5c2c1;
  color: #a8201f;
}
.cart-notice {
  background: #e8f7ee;
  border-color: #b9e4c9;
  color: #1a7a40;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Header: favourites + cart buttons next to the menu button */
header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
header .header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
/* The icon files have no viewBox, so scale them with a transform, not width/height */
header .header-action svg {
  transform: scale(1.5);
  transform-origin: center;
}
header .header-action svg path,
header .header-action svg * {
  fill: #666666;
  opacity: 1;
}
header .header-action:hover svg *,
header .header-action.active svg * {
  fill: #4a44f2;
}
header .header-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #d82426;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
}
header .header-badge[hidden] {
  display: none;
}

/* Small phones: make room for the two extra buttons */
@media (max-width: 480px) {
  header .header-wrapper .row {
    margin-left: -6px;
    margin-right: -6px;
  }
  header .header-wrapper .row > [class*="col"] {
    padding-left: 6px;
    padding-right: 6px;
  }
  header .header-logo img {
    width: 100px;
  }
  header .header-actions {
    gap: 6px;
  }
  header .header-action {
    width: 24px;
  }
  header .header-search form input {
    padding-left: 32px;
    padding-right: 8px;
  }
  header .header-search form svg {
    left: 11px;
  }
}

/* Product detail: image on the left, product info on the right (tablet/desktop).
   On phones the two blocks stay stacked as before. */
@media (min-width: 768px) {
  .product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
    padding-top: 20px;
  }
  .product-detail-gallery,
  .product-detail-info {
    min-width: 0;                 /* let the slider shrink inside the grid cell */
  }
  .product-detail-gallery .slick-list {
    border-radius: 12px;          /* the phone layout rounds only the bottom corners */
  }
  .product-detail-info .container {
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .product-detail-info .product-content-header__main-info .title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .product-detail-info .product-content-header__main-info .price {
    font-size: 28px;
  }
  .product-detail-info .shop-product-button {
    margin: 20px 0;
  }
  .product-detail-info .shop-product-button button.buy {
    border-radius: 8px;
    padding: 16px 0;
  }
}

/* Product detail: favourite button next to the product name */
button.product-fav {
  min-width: 56px;
  padding: 6px 8px;
  border: none;
  border-radius: 10px;
  background: none;
  color: #4a44f2;
  cursor: pointer;
  align-self: flex-start;
}
button.product-fav .count {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}
button.product-fav:hover,
button.product-fav:focus {
  background: #efeefe;
  outline: none;
}
button.product-fav.active {
  background: #4a44f2;
  color: #fff;
}
button.product-fav.active svg *,
button.product-fav:hover svg * {
  opacity: 1;
}
button.product-fav.active svg * {
  fill: #fff;
}

/* Cart page (tablet/desktop): keep the product lines the same width as the title bar and
   the "Tổng giỏ hàng" block instead of stretching across the whole screen. */
@media (min-width: 768px) {
  .cart-product-area {
    width: 100%;                 /* needed: .body-wrapper is a flex column, auto margins would shrink it */
    box-sizing: border-box;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  .cart-product-area .cart-product {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Cart: remove-product button (top-right corner of each cart line) */
.cart-product {
  position: relative;
}
.cart-product .cart-remove-form {
  position: absolute;
  top: 4px;
  right: 8px;
  margin: 0;
  z-index: 2;
}
.cart-product .cart-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  color: #666;
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}
.cart-product .cart-remove:hover,
.cart-product .cart-remove:focus {
  background: #d82426;
  color: #fff;
  outline: none;
}

/* Favourites page: the price floats right, so contain it inside the card */
#wishlist-grid .grid-product__content .price::after {
  content: "";
  display: block;
  clear: both;
}
#wishlist-grid .grid-product {
  background: #fff;
  padding-bottom: 10px;
}
#wishlist-grid .grid-product__image .icon.active {
  background-color: #4a44f2;
}

/* ===== Higher contrast: tinted page, white cards with clear borders, darker text ===== */
:root {
  --c-page: #e9edf3;        /* page background (cards stand out on it) */
  --c-card: #ffffff;
  --c-line: #c3cbd8;        /* borders */
  --c-line-strong: #9aa6b8;
  --c-text: #1b2230;
  --c-muted: #4a5568;
  --c-accent: #3a34e0;
}
body { background: var(--c-page); color: var(--c-text); }
header, header .header-wrapper { background: #fff; }
header .header-wrapper { border-bottom: 1px solid var(--c-line-strong); box-shadow: 0 2px 6px rgba(20, 30, 50, 0.12); }
.header-search input, #header-search-input { background: #fff; border: 1px solid var(--c-line-strong); color: var(--c-text); }
.header-search input:focus, #header-search-input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(58, 52, 224, 0.15); }
.bg-color--grey { background: transparent !important; border: 0; }   /* Back / title bar: no tint, no line */
h1, h2, h3, h4, h5, .title a, .section-title { color: #0f1520; }
.grid-product__content .category, .category, .category a { color: var(--c-muted); }

/* product cards */
.grid-product, .featured-product {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 30, 50, 0.12);
  overflow: hidden;
}
.grid-product:hover, .featured-product:hover { border-color: var(--c-line-strong); box-shadow: 0 4px 14px rgba(20, 30, 50, 0.2); }
.grid-product__image, .featured-product__image { background: #fff; border-bottom: 1px solid #e3e8f0; }

/* home: tiles + sections */
.shop-products-area, .cart-product-area, .grand-total, .discount-code-wrapper { background: transparent; }
.cart-product { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 1px 5px rgba(20, 30, 50, 0.1); }
.border-bottom--medium { border-bottom: 0 !important; }
.discount-code input[type=text], .discount-code input[type=email], .discount-code textarea {
  background: #fff; border: 1px solid var(--c-line-strong); color: var(--c-text);
}
.discount-code input:focus, .discount-code textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(58, 52, 224, 0.15); }
.cart-plus-minus-box { border: 1px solid var(--c-line-strong); background: #fff; }

/* quick filter panel */
.shop-filter { background: #fff !important; border-top: 1px solid var(--c-line); border-bottom: 2px solid var(--c-line-strong); box-shadow: 0 6px 14px rgba(20, 30, 50, 0.14); }
.shop-filter-block__title { color: #0f1520; border-bottom: 1px solid var(--c-line); padding-bottom: 4px; }
.shop-filter input[type=checkbox] { accent-color: var(--c-accent); }
.shop-filter-btn.cancel-btn { border: 1px solid var(--c-line-strong); color: var(--c-text); }

/* footer + bottom bar */
footer { border-top: 1px solid var(--c-line-strong); }
.footer-nav, .footer-nav-wrapper { border: 1px solid var(--c-line); box-shadow: 0 -2px 10px rgba(20, 30, 50, 0.18); }

/* product page */
.product-detail-info, .product-detail-gallery { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 14px; box-shadow: 0 1px 6px rgba(20, 30, 50, 0.1); }

/* checkout form fields: clearly visible borders (beats the theme's near-white border) */
.discount-code input[type=text], .discount-code input[type=email], .discount-code input[type=tel], .discount-code textarea {
  border: 1px solid #9aa6b8 !important; border-radius: 6px; background: #fff;
}
.discount-code input:focus, .discount-code textarea:focus { border-color: #3a34e0 !important; box-shadow: 0 0 0 3px rgba(58, 52, 224, 0.15); outline: none; }

/* the fixed header is taller than the page's top padding: give the Back / title / action row some air below it */
.breadcrumb-area { padding-top: 32px !important; }
.shop-header { padding-top: 16px; }

/* Same top bar on every page: logo / search / icons and the Back - title - action row always span the full width */
@media (min-width: 768px) {
  header .container,
  .breadcrumb-area .container,
  .shop-header > .container {
    max-width: none;
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* always reserve the scrollbar so short pages (empty favourites / cart) are not 15px wider than long ones */
html { overflow-y: scroll; }

/* Long model codes / pasted rich text must never widen the page on phones */
.product-content-description, .product-content-description * { overflow-wrap: anywhere; word-break: break-word; }
.product-content-description img, .product-content-description iframe, .product-content-description video { max-width: 100%; height: auto; }
.product-content-description table { max-width: 100%; display: block; overflow-x: auto; }
.space-mt--20 > .cart-alert { margin-bottom: 14px; }

/* product lists: "how many of how many" line and the load-more button */
.list-count { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--c-muted); }
.list-more { text-align: center; margin: 4px 0 18px; }
.list-more__status { margin: 0 0 8px; font-size: 14px; color: var(--c-muted); }
.list-more__button { min-width: 240px; padding: 13px 24px; border: 0; border-radius: 10px; background: var(--c-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.list-more__button:disabled { opacity: 0.6; cursor: default; }
.list-more[hidden], .list-count[hidden], .list-more__button[hidden] { display: none; }

/* page numbers: keep clear of the footer line below; wrap on narrow screens */
.phantrang { height: auto; position: relative; padding: 8px 0 36px; }
.phantrang:empty { display: none; }
.phantrang ul { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; margin: 0; padding: 0; }
.phantrang ul li a { display: block; }
.phantrang ul li.active a { color: #fff; }
.products-area .phantrang { margin-top: 28px; }
#all-products { scroll-margin-top: 100px; }

/* technical specification table in the product description */
.product-content-description table.spec-table { margin: 8px 0 18px; border-collapse: collapse; background: #fff; font-size: 14px; line-height: 1.4; }
.product-content-description table.spec-table td { padding: 7px 10px; border: 1px solid #d5dce7; vertical-align: middle; overflow-wrap: break-word; word-break: normal; }
.product-content-description table.spec-table tr:nth-child(even) td { background: #f6f8fb; }

/* ===== Side menu (categories) ===== */
.offcanvas-menu {
  top: 0; bottom: 0; height: auto; width: 340px; max-width: 88vw; padding: 0;
  display: flex; flex-direction: column;
  background: #f3f5f9; background-image: none;
  box-shadow: -12px 0 32px rgba(15, 23, 42, 0.22); transition: transform 0.3s ease, visibility 0.3s;
}
.body-wrapper.active-overlay:before { z-index: 9000; background: rgba(15, 23, 42, 0.45); }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px 16px 20px; background: #0a6fc2; color: #fff; }
.menu-head__title { font-size: 17px; font-weight: 700; }
.menu-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.menu-close:hover, .menu-close:focus-visible { background: rgba(255, 255, 255, 0.32); }
.menu-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.menu-body a { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: #172033; line-height: 1.35; }
.menu-all, .menu-group { margin-bottom: 12px; background: #fff; border: 1px solid #dde3ec; border-radius: 12px; overflow: hidden; }
.menu-body a.menu-all { padding: 13px 14px; font-weight: 700; }
.menu-body a.menu-group__title { padding: 13px 14px; font-size: 14.5px; font-weight: 700; color: #0a5fa8; border-bottom: 1px solid #e7ecf3; }
.menu-group.is-single .menu-group__title { border-bottom: 0; }
.menu-group.is-single .menu-list { display: none; }
.menu-list { margin: 0; padding: 4px 0; list-style: none; }
.menu-list a { padding: 10px 14px; font-size: 14px; border-left: 3px solid transparent; }
.menu-list a > span:first-child { flex: 1; }
.menu-list a:after { content: "\203A"; color: #9aa6b8; font-size: 18px; line-height: 1; }
.menu-body a:hover, .menu-body a:focus-visible { background: #eef5fd; color: #0a5fa8; }
.menu-body a.is-active { background: #e3f0fc; color: #0a5fa8; font-weight: 700; }
.menu-list a.is-active { border-left-color: #0a6fc2; }
.menu-count { min-width: 30px; padding: 2px 8px; border-radius: 20px; background: #eef1f6; color: #4a5568; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; }
.menu-foot { display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dde3ec; }
.menu-foot a { flex: 1; padding: 11px 8px; border-radius: 10px; text-align: center; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.menu-foot .menu-call { background: #d82426; color: #fff; }
.menu-foot .menu-zalo { background: #fff; color: #0a6fc2; border: 1px solid #0a6fc2; }
#wishlist-empty { padding-bottom: 40px; }        /* the footer must not cover the "Xem sản phẩm" button */

/* header buttons with a caption under each icon */
header .header-actions { align-items: flex-start; gap: 8px; }
header .header-actions .header-action,
header .header-actions .header-menu-trigger {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: auto; min-width: 52px; height: auto; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none;
}
header .header-actions .header-icon { display: flex; align-items: center; justify-content: center; height: 26px; }
header .header-actions .header-label { margin-top: 2px; font-size: 12px; line-height: 14px; font-weight: 500; white-space: nowrap; color: #3d4657; }
header .header-actions .header-action:hover .header-label,
header .header-actions .header-action.active .header-label,
header .header-actions .header-menu-trigger:hover .header-label { color: #4a44f2; }
header .header-actions .header-badge { top: -6px; right: auto; left: calc(50% + 7px); }
/* tablet and desktop: the name sits right beside its icon */
@media (min-width: 768px) {
  header .header-actions { align-items: center; gap: 18px; }
  header .header-actions .header-action,
  header .header-actions .header-menu-trigger { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
  header .header-actions .header-icon { width: 30px; }
  header .header-actions .header-label { margin-top: 0; font-size: 14px; }
  header .header-actions .header-badge { top: -7px; left: 18px; }
}
@media (max-width: 480px) {
  header .header-actions { gap: 2px; }
  header .header-actions .header-action,
  header .header-actions .header-menu-trigger { min-width: 36px; }
  header .header-actions .header-label { font-size: 10px; }
  header .header-logo img { width: 84px; }
}

/* long model pairs (FCQ71KAVEA/RZQ71LV1) must wrap inside the two-column cards on phones */
.grid-product__content, .featured-product__content { min-width: 0; }
.grid-product__content .title, .grid-product__content .title a, .featured-product__content .title { overflow-wrap: anywhere; }
.row-10 > [class*="col"], .row-5 > [class*="col"] { min-width: 0; }

/* product cards on PHONES only (upright, or sideways = touch screen with little height):
   round "add to cart" button just left of the heart. Computers use the right-click menu. */
.card-cart { display: none; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  .grid-product__image .card-cart, .featured-product__image .card-cart {
    position: absolute; z-index: 3; top: 0; right: 36px; display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: #0a3d7a; box-shadow: 0 2px 8px rgba(20, 30, 50, 0.22); cursor: pointer;
  }
  .card-cart:active { background: #0a3d7a !important; color: #fff !important; }
  .card-cart.is-busy { opacity: 0.6; cursor: default; }
  /* the heart gets the same white circle, otherwise it disappears into the picture */
  .grid-product__image button.icon, .featured-product__image button.icon { z-index: 3; display: flex; align-items: center; justify-content: center; background-color: #fff; box-shadow: 0 2px 8px rgba(20, 30, 50, 0.22); }
  .grid-product__image button.icon svg *, .featured-product__image button.icon svg * { fill: #4a44f2; opacity: 1; }
  .grid-product__image button.icon.active, .featured-product__image button.icon.active { background-color: #4a44f2; }
  .grid-product__image button.icon.active svg *, .featured-product__image button.icon.active svg * { fill: #fff; }
}

/* ===== Dark blue top area: hotline strip + logo / search / buttons ===== */
header, header .header-wrapper, header .pageTop { background: #0a3d7a; }
header .pageTop, header .pageTop a { color: #fff; }
header .pageTop a:hover { color: #bfe3ff; }
header .pageTop img { box-sizing: content-box; padding: 2px 4px; border-radius: 4px; background: #fff; }
header .header-wrapper { border-bottom: 1px solid #072c59 !important; box-shadow: 0 2px 8px rgba(7, 30, 64, 0.35); }
/* the header uses assets/img/logo_dark.png (transparent, white lettering) so the logo sits directly on the blue */
header .header-actions .header-action svg path,
header .header-actions .header-action svg *,
header .header-actions .header-menu-trigger svg * { fill: #fff; }
header .header-actions .header-label { color: #fff; }
header .header-actions .header-action:hover svg *,
header .header-actions .header-action.active svg *,
header .header-actions .header-menu-trigger:hover svg * { fill: #9fd4ff; }
header .header-actions .header-action:hover .header-label,
header .header-actions .header-action.active .header-label,
header .header-actions .header-menu-trigger:hover .header-label { color: #9fd4ff; }
header .header-search input:focus, header #header-search-input:focus { border-color: #9fd4ff; box-shadow: 0 0 0 3px rgba(159, 212, 255, 0.45); }

/* wide screens: the header uses the same 1110px column as the banner, so that the logo starts at the
   banner's left edge, the buttons (and the hotline) end at its right edge and the search box is dead centre */
@media (min-width: 1200px) {
  header .header-wrapper .container { box-sizing: border-box; max-width: 1110px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  header .header-wrapper .row { display: grid; grid-template-columns: minmax(0, 1fr) 400px minmax(0, 1fr); align-items: center; }
  header .header-wrapper .row > [class*="col"] { max-width: none; width: auto; }
  header .header-wrapper .row > .col-auto:first-child { justify-self: start; }
  header .header-wrapper .row > .col-auto:last-child { justify-self: end; }
  header .header-search, header .header-search form, header .header-search input { width: 100%; max-width: none; }
  header .pageTop { padding-right: max(20px, calc(50% - 555px)); }
}

/* ===== White page between a dark blue top and a dark blue bottom ===== */
body { background: #fff; }
.hero-slider.bg-color--grey { background: #fff !important; border-bottom: 0; }
.body-wrapper.space-pb--120 { padding-bottom: 0; }                 /* the footer itself reaches the bottom edge */
.body-wrapper > footer { border-top: 0; background: #0a3d7a; padding-bottom: 100px; }   /* room for the fixed Home / Zalo / Call bar */
footer .footer { margin: 0; padding: 0 16px; border: 0; background: transparent; color: #fff; }
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 10px; padding: 22px 0 18px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
footer .footer-links a { padding: 2px 22px; border-left: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-size: 13.5px; text-transform: uppercase; text-align: center; }
footer .footer-links a:first-child { border-left: 0; }
footer .footer .logo { margin: 0 0 16px; }
footer .footer .logo img { width: 280px; max-width: 80%; height: auto; margin: 0; }
footer .footer .address { row-gap: 18px; column-gap: 24px; }
footer .footer .address p, footer .footer .address span, footer .footer .menu_news, footer .footer .menu_news a { color: #fff; }
footer .footer a:hover, footer .footer .menu_news a:hover { color: #9fd4ff; }
@media (max-width: 767px) {
  footer .footer-links { flex-direction: column; row-gap: 4px; }
  footer .footer-links a { border-left: 0; padding: 6px 10px; font-size: 13px; }
}

/* ===== Quick filter: white panel with dark blue text; a left column on computers ===== */
.shop-filter { background: #fff !important; color: #0a3d7a; }
.shop-filter__heading { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 16px; font-weight: 700; text-transform: uppercase; color: #0a3d7a; }
.shop-filter .shop-filter-block__title { color: #0a3d7a; font-size: 15px; font-weight: 700; border-bottom: 0; }
.shop-filter label, .shop-filter .irs-from, .shop-filter .irs-to { color: #0a3d7a !important; }
.shop-filter input[type=checkbox] { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; accent-color: #0a3d7a; }
.shop-filter .widget-price-range .irs--round .irs-bar { background: #0a3d7a; }
.shop-filter .widget-price-range .irs--round .irs-handle { border-color: #0a3d7a; }
.shop-filter .shop-filter-btn.apply-btn { background: #0a3d7a; border-color: #0a3d7a; color: #fff; }
.shop-filter .shop-filter-btn.cancel-btn { color: #0a3d7a; border-color: #0a3d7a; }
@media (min-width: 768px) {
  .shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; }
  .shop-layout > .shop-filter { display: block !important; position: sticky; top: 96px; height: auto !important; margin-top: 30px; padding: 0 !important; border: 0; border-right: 1px solid #dde3ec; box-shadow: none; }
  .shop-layout > .shop-filter .container { max-width: none; padding: 0 18px 0 15px; }
  .shop-layout > .shop-filter .shop-filter-block { margin-bottom: 0 !important; padding-bottom: 16px; margin-top: 0; border-bottom: 1px solid #e6ebf2; }
  .shop-layout > .shop-filter .shop-filter-block + .shop-filter-block { padding-top: 16px; }
  .shop-layout > .shop-filter .shop-filter-block:last-child { border-bottom: 0; }
  .shop-layout > .shop-filter .shop-filter-block__content ul li { display: block; margin: 0 0 11px; }
  .shop-layout > .shop-filter .shop-filter-btn { width: 100%; margin: 0; }
  .shop-layout > .shop-filter .shop-filter-btn.cancel-btn { display: none; }
  .shop-layout > .shop-products-area .container { max-width: none; }
  body.page-wide .shop-header #filter-trigger { visibility: hidden; }     /* the filter is always open here */
}
.shop-layout > .shop-main { min-width: 0; }
@media (min-width: 768px) {
  .shop-layout > .shop-main .container { max-width: none; }
  .shop-header #filter-trigger { visibility: hidden; }
}

/* narrow windows (768-991px): slimmer filter column, two products per row, product page stacked */
@media (min-width: 768px) and (max-width: 991px) {
  .shop-layout { grid-template-columns: 200px minmax(0, 1fr); padding: 0 6px; }
  .shop-layout > .shop-filter .container { padding: 0 10px 0 8px; }
  body .shop-layout > .shop-main .row-10 > .col-6, body .shop-layout > .shop-main .row-5 > .col-6,
  body .shop-layout > .shop-products-area .row-10 > .col-6 { flex: 0 0 50%; max-width: 50%; }
  .shop-layout > .shop-main .product-detail-layout { display: block; }
}

/* computers: the Home / Zalo / Facebook / Call bar is a short pill in the middle, so it no longer covers the filter column */
@media (min-width: 768px) {
  .footer-nav-wrapper { left: 50%; right: auto; bottom: 10px; width: 360px; padding: 0 14px; transform: translateX(-50%); border-radius: 40px; justify-content: space-between; }
  .footer-nav-wrapper .footer-nav-single { width: 68px; height: 62px; }
  /* a column taller than the window scrolls on its own, so its button can always be reached */
  .shop-layout > .shop-filter { max-height: calc(100vh - 106px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
}

/* ===== Phones: the filter is a drawer from the left ===== */
.filter-open { display: none; }
@media (max-width: 767px) {
  .shop-filter { display: block !important; position: fixed; z-index: 9600; top: 0; bottom: 0; left: 0; width: 290px; max-width: 82vw; height: auto !important; padding: 18px 0 30px !important; overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: 8px 0 28px rgba(15, 23, 42, 0.25); transform: translateX(-110%); visibility: hidden; transition: transform 0.28s ease, visibility 0.28s; }
  .shop-filter.is-open { transform: none; visibility: visible; }
  .shop-filter .container { padding: 0 18px; }
  .shop-filter .shop-filter-block { margin-bottom: 0 !important; padding: 0 0 16px; border-bottom: 1px solid #e6ebf2; }
  .shop-filter .shop-filter-block + .shop-filter-block { padding-top: 16px; }
  .shop-filter .shop-filter-block:last-child { display: flex; gap: 10px; border-bottom: 0; }
  .shop-filter .shop-filter-block__content ul li { display: block; margin: 0 0 14px; }
  .shop-filter .shop-filter-btn { flex: 1; margin: 0; padding-left: 8px; padding-right: 8px; font-size: 14px; }
  #filter-backdrop { position: fixed; z-index: 9500; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 23, 42, 0.45); }
  body.filter-locked { overflow: hidden; }
  .filter-open { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px 15px; padding: 9px 16px; border: 1px solid #0a3d7a; border-radius: 22px; background: #fff; color: #0a3d7a; font-size: 14px; font-weight: 600; cursor: pointer; }
}
