/* Extracted from the saved Shop template: keep styles outside Interactivity Router regions. */



/* =========================
   TIÊU ĐỀ SHOP
========================= */
.lw-shop-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 0 32px !important;
  padding: 30px 24px 38px;
  background: #FDF3F4;
  color: #6d4e3d;
}

.lw-shop-intro__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.lw-shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #78685d;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.lw-shop-breadcrumb a {
  color: #6d4e3d;
  text-underline-offset: 3px;
}

.lw-shop-intro h1 {
  margin: 0 0 12px !important;
  color: #6d4e3d !important;
  font-family: "Newsreader", serif !important;
  font-size: clamp(30px, 3.2vw, 46px) !important;
  font-weight: 600 !important;
  font-style: italic !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center;
}

.lw-shop-intro p {
  margin: 0 !important;
  color: #78685d;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.8;
  text-align: center;
}

/* =========================
   NỘI DUNG SHOP
========================= */
body:has(.lw-shop-intro) main {
  color: #6d4e3d;
}

body:has(.lw-shop-intro) main
:where(
  p, label, input, select, button,
  legend, .woocommerce-result-count,
  .woocommerce-ordering,
  .woocommerce-breadcrumb
) {
  font-family: "Montserrat", sans-serif !important;
  font-style: normal !important;
}

/* =========================
   BỘ LỌC
========================= */
/* Áp dụng cho các khối lọc WooCommerce */
body:has(.lw-shop-intro)
main :where(
  .wp-block-woocommerce-product-filters,
  .wp-block-woocommerce-product-filter,
  .wp-block-woocommerce-filter-wrapper,
  .wp-block-woocommerce-product-categories,
  .wp-block-woocommerce-attribute-filter,
  .wp-block-woocommerce-price-filter,
  .wp-block-woocommerce-rating-filter
) {
  color: #6d4e3d;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px;
  line-height: 1.7;
}

/* Tiêu đề bộ lọc */
body:has(.lw-shop-intro)
main :where(
  .wp-block-woocommerce-product-filters,
  .wp-block-woocommerce-product-filter,
  .wp-block-woocommerce-filter-wrapper,
  .wp-block-woocommerce-product-categories,
  .wp-block-woocommerce-attribute-filter,
  .wp-block-woocommerce-price-filter,
  .wp-block-woocommerce-rating-filter
) :where(h2, h3, h4, .wp-block-heading) {
  margin-bottom: 16px !important;
  color: #6d4e3d !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
}

/* Nhãn và liên kết bộ lọc */
body:has(.lw-shop-intro)
main :where(
  .wp-block-woocommerce-product-filters,
  .wp-block-woocommerce-product-filter,
  .wp-block-woocommerce-filter-wrapper,
  .wp-block-woocommerce-product-categories,
  .wp-block-woocommerce-attribute-filter,
  .wp-block-woocommerce-price-filter,
  .wp-block-woocommerce-rating-filter
) :where(a, span, label, button) {
  font-family: "Montserrat", sans-serif !important;
  font-style: normal !important;
}

body:has(.lw-shop-intro)
main input[type="checkbox"],
body:has(.lw-shop-intro)
main input[type="radio"] {
  accent-color: #bb747d;
}

/* Class tùy chọn cho cột bộ lọc */
body:has(.lw-shop-intro) .lw-shop-filters {
  box-sizing: border-box;
  padding: 22px !important;
  border: 1px solid #eadfd5;
  border-radius: 14px;
  background: #fff;
}

body:has(.lw-shop-intro)
.lw-shop-filters :where(h2, h3, h4, .wp-block-heading) {
  color: #6d4e3d !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
}

/* =========================
   THANH SẮP XẾP
========================= */
body:has(.lw-shop-intro) .woocommerce-result-count {
  color: #78685d;
  font-size: 13px;
  line-height: 1.7;
}

body:has(.lw-shop-intro)
.woocommerce-ordering select,
body:has(.lw-shop-intro)
.wc-block-catalog-sorting select {
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #dcc4ad;
  border-radius: 8px;
  background: #fff;
  color: #6d4e3d;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px;
}

/* =========================
   ẢNH SẢN PHẨM
========================= */
/* Hỗ trợ danh sách sản phẩm dạng block và dạng cũ */
body:has(.lw-shop-intro)
.wc-block-components-product-image img,
body:has(.lw-shop-intro)
.wc-block-grid__product-image img,
body:has(.lw-shop-intro)
ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 12px;
  background: #fbf7f2;
}

/* =========================
   TÊN SẢN PHẨM
========================= */
body:has(.lw-shop-intro)
.wc-block-components-product-name,
body:has(.lw-shop-intro)
.wc-block-grid__product-title,
body:has(.lw-shop-intro)
.woocommerce-loop-product__title,
body:has(.lw-shop-intro)
.wp-block-post-title a {
  color: #6d4e3d !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none;
}

/* Tiêu đề tên sản phẩm dạng Product Collection */
body:has(.lw-shop-intro)
.wc-block-product .wp-block-post-title {
  margin: 12px 0 6px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.6 !important;
}

/* =========================
   GIÁ SẢN PHẨM
========================= */
body:has(.lw-shop-intro)
.wc-block-components-product-price,
body:has(.lw-shop-intro)
.wc-block-grid__product-price,
body:has(.lw-shop-intro)
ul.products li.product .price {
  color: #6d4e3d !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.6;
}

body:has(.lw-shop-intro)
.wc-block-components-product-price *,
body:has(.lw-shop-intro)
.wc-block-grid__product-price *,
body:has(.lw-shop-intro)
ul.products li.product .price * {
  font-family: "Montserrat", sans-serif !important;
  font-style: normal !important;
}

body:has(.lw-shop-intro)
.wc-block-components-product-price ins,
body:has(.lw-shop-intro)
ul.products li.product .price ins {
  text-decoration: none;
}

/* =========================
   NÚT SẢN PHẨM
========================= */
body:has(.lw-shop-intro)
.wc-block-components-product-button
.wc-block-components-product-button__button,
body:has(.lw-shop-intro)
.wc-block-grid__product-add-to-cart a,
body:has(.lw-shop-intro)
ul.products li.product .button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px !important;
  border: 1px solid #e89ba1 !important;
  border-radius: 8px !important;
  background: #fad7d8 !important;
  color: #6d4e3d !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

body:has(.lw-shop-intro)
.wc-block-components-product-button
.wc-block-components-product-button__button:hover,
body:has(.lw-shop-intro)
.wc-block-grid__product-add-to-cart a:hover,
body:has(.lw-shop-intro)
ul.products li.product .button:hover {
  background: #e89ba1 !important;
}

/* =========================
   PHÂN TRANG
========================= */
body:has(.lw-shop-intro)
.wp-block-query-pagination {
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  font-family: "Montserrat", sans-serif !important;
}

body:has(.lw-shop-intro)
.wp-block-query-pagination-numbers .page-numbers,
body:has(.lw-shop-intro)
.woocommerce-pagination .page-numbers li a,
body:has(.lw-shop-intro)
.woocommerce-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 0 3px;
  padding: 8px;
  border: 1px solid #ead0cc;
  border-radius: 50%;
  color: #6d4e3d;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px;
  font-style: normal;
  text-decoration: none;
}

body:has(.lw-shop-intro)
.wp-block-query-pagination-numbers .current,
body:has(.lw-shop-intro)
.woocommerce-pagination .page-numbers li span.current {
  background: #fad7d8;
}

/* =========================
   FOCUS
========================= */
body:has(.lw-shop-intro)
main a:focus-visible,
body:has(.lw-shop-intro)
main button:focus-visible,
body:has(.lw-shop-intro)
main select:focus-visible {
  outline: 2px solid #a86570;
  outline-offset: 3px;
}

/* =========================
   ĐIỆN THOẠI
========================= */
@media (max-width: 700px) {
  .lw-shop-intro {
    padding: 24px 18px 28px;
    margin-bottom: 24px !important;
  }

  .lw-shop-intro h1 {
    font-size: 30px !important;
  }

  .lw-shop-intro p {
    font-size: 13px;
  }

  body:has(.lw-shop-intro) .lw-shop-filters {
    padding: 16px !important;
  }
}


/* Cho vùng tiêu đề rộng bằng khối Main */
main:has(.lw-shop-intro) .lw-shop-intro {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch;
}

main:has(.lw-shop-intro)
> .wp-block-html:has(.lw-shop-intro) {
  width: 100% !important;
  max-width: none !important;
}


/* Hai cột rộng như ảnh mẫu */
main .lw-shop-columns {
  box-sizing: border-box;
  width: calc(100vw - 64px) !important;
  max-width: 1320px !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 40px !important;
  padding: 0 !important;
  gap: 38px !important;
  align-items: flex-start !important;
}

/* Cột bộ lọc và cột sản phẩm */
@media (min-width: 1000px) {
  main .lw-shop-columns > .wp-block-column:first-child {
    flex: 0 0 240px !important;
    min-width: 0;
  }

  main .lw-shop-columns > .wp-block-column:last-child {
    flex: 1 1 0 !important;
    min-width: 0;
  }
}

/* Khung bộ lọc */
.lw-shop-columns > .wp-block-column:first-child {
  box-sizing: border-box;
  padding: 20px 18px;
  background: #ffffff;
  border: 1px solid #efdfd8;
  border-radius: 12px;
}

/* Bỏ giới hạn chiều rộng bên trong cột sản phẩm */
.lw-shop-columns > .wp-block-column:last-child > * {
  max-width: none !important;
}

/* Khoảng cách giữa các sản phẩm */
.lw-shop-columns .wc-block-product-template {
  gap: 22px 18px !important;
}

/* Bo nhẹ góc ảnh */
.lw-shop-columns .wc-block-components-product-image img {
  border-radius: 8px !important;
}

/* Nút màu hồng */
.lw-shop-columns .wp-block-woocommerce-product-button
.wc-block-components-product-button__button {
  background: #e89ba1 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Màn hình nhỏ */
@media (max-width: 999px) {
  main .lw-shop-columns {
    width: calc(100vw - 36px) !important;
    gap: 24px !important;
  }
}


/* Tiêu đề: hồng nhạt chuyển sang kem */
main .lw-shop-intro {
  background: linear-gradient(
    120deg,
    #fad7d8 0%,
    #FDF3F4 55%,
    #fbe1e2 100%
  ) !important;
  border-bottom: 1px solid #efd2ce;
}

main .lw-shop-intro h1 {
  color: #6d4e3d !important;
}

/* Bộ lọc: nền kem và viền hồng */
main .lw-shop-columns > .wp-block-column:first-child {
  background: #FDF3F4 !important;
  border: 1px solid #edc8c9 !important;
  border-radius: 12px !important;
  padding: 22px 18px !important;
}

/* Tránh hai khung bộ lọc lồng nhau */
.lw-shop-columns .lw-shop-filters {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Khoảng cách giữa các nhóm bộ lọc */
.lw-shop-columns
> .wp-block-column:first-child
.wp-block-woocommerce-product-filter {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edc8c9;
}

.lw-shop-columns
> .wp-block-column:first-child
.wp-block-woocommerce-product-filter:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.lw-shop-columns input[type="checkbox"],
.lw-shop-columns input[type="radio"] {
  accent-color: #df8792;
}

/* Ô nhập giá */
.lw-shop-columns input[type="number"] {
  background: #ffffff !important;
  color: #6d4e3d !important;
  border: 1px solid #e3c9c0 !important;
  border-radius: 6px !important;
}

/* Thẻ sản phẩm */
.lw-shop-columns
.wc-block-product-template > .wc-block-product {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #f0dfd7;
  border-radius: 10px;
  padding: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lw-shop-columns
.wc-block-product-template > .wc-block-product:hover {
  border-color: #e89ba1;
  box-shadow: 0 6px 18px rgba(109, 78, 61, .08);
}

/* Hình sản phẩm */
.lw-shop-columns .wc-block-components-product-image img {
  border-radius: 8px !important;
}

/* Tên sản phẩm và giá căn giữa */
.lw-shop-columns .wp-block-post-title,
.lw-shop-columns .wp-block-woocommerce-product-price {
  text-align: center !important;
  color: #6d4e3d !important;
}

/* Nút sản phẩm */
.lw-shop-columns
.wc-block-components-product-button__button {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 40px;
  background: #e89ba1 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.lw-shop-columns
.wc-block-components-product-button__button:hover {
  background: #d9818c !important;
}

/* Ô sắp xếp */
.lw-shop-columns .woocommerce-ordering select {
  background: #fffaf6 !important;
  border: 1px solid #e5b7b9 !important;
  border-radius: 8px !important;
  color: #6d4e3d !important;
}

/* Số trang đang chọn */
.lw-shop-columns .wp-block-query-pagination-numbers .current {
  background: #e89ba1 !important;
  border-color: #e89ba1 !important;
  color: #ffffff !important;
}


/* Nút xem chi tiết từng sản phẩm */
.lw-shop-columns .wp-block-read-more {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 42px;
  margin: 16px 0 0 !important;
  padding: 11px 14px !important;

  background: #e89ba1 !important;
  color: #ffffff !important;
  border: 1px solid #e89ba1 !important;
  border-radius: 8px !important;

  font-family: "Montserrat", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;

  transition: background .2s ease, border-color .2s ease;
}

.lw-shop-columns .wp-block-read-more:hover {
  background: #d6818c !important;
  border-color: #d6818c !important;
}

.lw-shop-columns .wp-block-read-more:focus-visible {
  outline: 2px solid #6d4e3d;
  outline-offset: 3px;
}
