/* LAIMUT Core — Product archive presentation */
/* ==============================
   4.1 Category top block
===============================*/
body.woocommerce.archive .term-description .lm-category-intro{padding-bottom:10px!important}

body.woocommerce.archive .term-description .header_sec,
body.woocommerce.archive .term-description .header_sec.section, .category-bottom-seo-content .header_sec.section, .lm-category-hero-section {
  padding: 0 !important;
	  margin-top: -20px;
  margin-bottom: 20px;
}


body.woocommerce.archive .term-description .header_sec .row, .lm-category-hero-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
	margin-top: -20px;
  margin-bottom: -40px;
 
}

/* =========================================================
   LAIMUT - Category hero block
   Purpose: SEO-friendly category intro with text-first DOM
========================================================= */

.lm-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media content";
  align-items: stretch;
  margin: 0 0 34px;
  background: var(--lm-bg-soft, #F8F8F8);
}


/* Media
========================================================= */

.lm-category-hero__media {
  grid-area: media;
  min-width: 0;
  overflow: hidden;
}

.lm-category-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}


/* Content
========================================================= */

.lm-category-hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 42px;
  color: var(--lm-text, #2A2622);
}

.lm-category-hero__content p {
  margin: 0 0 18px;
  color: var(--lm-text, #2A2622);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
}

.lm-category-hero__content p:last-child {
  margin-bottom: 0;
}

.lm-category-hero__lead strong {
  color: var(--lm-text-strong, #111111);
  font-weight: 600;
}


/* Trust note
========================================================= */

.lm-category-hero__trust {
  padding: 13px 16px;
  border-left: 2px solid var(--lm-gold-soft, #B79B63);
  border-radius: var(--lm-radius-small, 8px);
  background: rgba(255, 255, 255, .58);
  color: var(--lm-text, #2A2622);
  font-size: 13.5px;
  line-height: 1.65;
	text-align: justify;
  text-align-last: left;
}

/* Tablet
========================================================= */

@media only screen and (max-width: 849px) {
  .lm-category-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media";
    margin-bottom: 30px;
  }

  .lm-category-hero__content {
    max-width: none;
    padding: 24px 22px 26px;
  }

  .lm-category-hero__content p {
    font-size: 14px;
    line-height: 1.7;
  }

  .lm-category-hero__media img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}


/* Mobile
========================================================= */

@media only screen and (max-width: 549px) {
  .lm-category-hero {
    margin-bottom: 26px;
  }

  .lm-category-hero__content {
    padding: 20px 16px 22px;
  }

  .lm-category-hero__content p {
    margin-bottom: 15px;
    font-size: 12.5px;
    line-height: 1.68;
  }

  .lm-category-hero__trust {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.62;
  }
}




/* =========================================================
   08. SHOP / CATEGORY / BRAND / PRODUCT-TAG ARCHIVES
   ========================================================= */

/* ==============================
   24. Shop page
===============================*/

/* Product grid */
body.woocommerce.archive .products {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* ==============================
   Child categories
===============================*/

/*
 * Grid danh mục con độc lập.
 * Được functions.php render trước shop toolbar.
 */
body.woocommerce.archive
.products.laimut-child-categories {
  clear: both;
  width: auto;

  margin-top: 22px;
  margin-bottom: 12px;
}

body.woocommerce.archive
.products.laimut-child-categories
> .product-category {
  margin-bottom: 0 !important;
}


/* Ảnh danh mục con */
body.woocommerce.archive
.products
.product-category
.box-image {
  width: 100%;
  height: 200px;

  aspect-ratio: auto;
  padding-top: 0 !important;

  overflow: hidden;
  border-radius: 10px;

  background: var(--lm-bg-soft);
}

body.woocommerce.archive
.products
.product-category
.box-image img {
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center 35% !important;
}


/* Nội dung danh mục con */
body.woocommerce.archive
.products
.product-category
.box-text {
  padding-top: 12px;
  text-align: center;
}

body.woocommerce.archive
.products
.product-category
.woocommerce-loop-category__title {
  margin: 0;

  color: var(--lm-text-strong);

  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.07em;

  text-align: center;
  text-transform: uppercase;
}
/* ==============================
   Page title
===============================*/

body.woocommerce.archive .shop-page-title {
  padding: 10px 0 8px;
  background: var(--lm-white);
  /*border-bottom: 1px solid var(--lm-border-light);*/
}

body.woocommerce.archive
.shop-page-title
.page-title-inner {
  min-height: auto;
  padding: 0;
  text-align: center!important;
}

body.woocommerce.archive .shop-page-title h1 {
  margin: 0;
  color: var(--lm-text-strong);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Breadcrumb */
body.woocommerce.archive
.shop-page-title
.woocommerce-breadcrumb {
  margin-top: 5px;
  color: var(--lm-text-muted);
  font-size: 12.5px;
  text-align: center;
	padding:0 5px 0 5px;
}

body.woocommerce.archive
.shop-page-title
.woocommerce-breadcrumb a {
  color: var(--lm-sale-text);
  text-decoration: none;
}

body.woocommerce.archive
.shop-page-title
.woocommerce-breadcrumb a:hover {
  color: var(--lm-text-strong);
}

/* ==============================
   Archive price range
===============================*/

body.woocommerce.archive
.laimut-archive-price-range {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;

  color: var(--lm-text-soft);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
	text-align:justify;
}

body.woocommerce.archive
.laimut-archive-price-range__name {
  color: var(--lm-text-strong);
  font-weight: 500;
}

body.woocommerce.archive
.laimut-archive-price-range
strong {
  color: var(--lm-text-strong);
  font-weight: 600;
}

body.woocommerce.archive
.laimut-archive-price-range
a {
  color: var(--lm-text-strong);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.woocommerce.archive
.laimut-archive-price-range
.woocommerce-Price-currencySymbol {
  font-weight: inherit;
}


/* Mobile */
@media only screen and (max-width: 549px) {

  body.woocommerce.archive
  .laimut-archive-price-range {
    margin-bottom: 8px;
    font-size: 11.5px;
    line-height: 1.6;
  }
}

/* ==============================
   Shop toolbar
   Filter + product ordering
===============================*/

body.woocommerce.archive .laimut-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  width: 100%;
  margin: 0 0 20px;
  padding: 0;
}

/* ==============================
   Filter
===============================*/

body.woocommerce.archive
.laimut-shop-toolbar
.category-filtering,
body.woocommerce.archive
.laimut-shop-toolbar
.category-filter-row {
  flex: 0 0 auto;

  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  clear: none !important;
  float: none !important;
}

body.woocommerce.archive
.laimut-shop-toolbar
.filter-button {
  margin: 0 !important;
}

/* ==============================
   Product ordering
===============================*/

body.woocommerce.archive
.laimut-shop-toolbar
.woocommerce-ordering {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  flex: 0 1 auto;
  min-width: 0;

  width: auto;
  margin: 0 0 0 auto;
  padding: 0;

  clear: none;
  float: none !important;
}

/* Label bên trái dropdown */
body.woocommerce.archive
.laimut-shop-toolbar
.woocommerce-ordering::before {
  content: "Sắp xếp theo:";
  flex: 0 0 auto;

  color: var(--lm-text-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* Dropdown */
body.woocommerce.archive
.laimut-shop-toolbar
.woocommerce-ordering
select.orderby {
  flex: 0 1 auto;

  width: auto;
  min-width: 190px;
  max-width: 100%;
  margin: 0;

  border-radius: 4px;
  font-size: 13px;
}

body.woocommerce.archive
.laimut-shop-toolbar
.woocommerce-ordering
select.orderby option {
  font-size: 13px;
}

/* ==============================
   Desktop toolbar
   Vertical alignment + text spacing
===============================*/

@media only screen and (min-width: 850px) {

  /* Cụm Filter + active filters */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .category-filtering.category-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Nút BỘ LỌC */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .filter-button {
    display: inline-flex;
    align-items: center;
    height: 36px;
    min-height: 36px;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1;
    white-space: nowrap;
  }

  /* Icon ↔ chữ BỘ LỌC */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .filter-button i,
  body.woocommerce.archive
  .laimut-shop-toolbar
  .filter-button :is(svg, .icon-equalizer, .icon-filter) {
    margin-right: 6px !important;
  }

  /* Wrapper active filters */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .category-filtering
  > .inline-block,
  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Danh sách active-filter chips */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters li {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
  }

  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 !important;
    line-height: 1.2;
  }

  /* Nhãn Nhỏ nhất/Lớn nhất ↔ giá tiền */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters
  a .woocommerce-Price-amount,
  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters
  a .amount {
    margin-left: 4px !important;
  }
}

/* ==============================
   Mobile toolbar
   Filter + sorting + active filters
===============================*/

@media only screen and (max-width: 549px) {

  /*
   * Hàng 1:
   * BỘ LỌC | Sắp xếp
   *
   * Hàng 2:
   * Các filter đang được chọn.
   */
  body.woocommerce.archive
  .laimut-shop-toolbar {
    display: grid;

    grid-template-columns: auto auto;
    justify-content: space-between;

    align-items: center;

    column-gap: 10px;
    row-gap: 10px;

    width: 100%;
    margin-bottom: 16px;
  }


  /*
   * Flatsome đặt:
   *
   * - nút Filter
   * - active filter widget
   *
   * trong cùng .category-filtering.
   *
   * display: contents giúp hai thành phần con
   * tham gia trực tiếp vào grid toolbar.
   */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .category-filtering.category-filter-row {
    display: contents;
  }


  /* ==============================
     Hàng 1 - Bộ lọc
  ===============================*/

  body.woocommerce.archive
  .laimut-shop-toolbar
  .filter-button {
    grid-column: 1;
    grid-row: 1;

    align-self: center;

    margin: 0 !important;

    white-space: nowrap;
  }


  /* ==============================
     Hàng 1 - Sắp xếp
  ===============================*/

  body.woocommerce.archive
  .laimut-shop-toolbar
  .woocommerce-ordering {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: auto;
    min-width: 0;

    margin: 0 0 0 auto !important;
    padding: 0 !important;

    clear: none !important;
    float: none !important;
  }


  /*
   * Mobile không cần chữ "Sắp xếp theo:"
   * để dành chiều ngang cho dropdown.
   */
  body.woocommerce.archive
  .laimut-shop-toolbar
  .woocommerce-ordering::before {
    display: none;
  }


  body.woocommerce.archive
  .laimut-shop-toolbar
  .woocommerce-ordering
  select.orderby {
    width: clamp(195px, 50vw, 210px);
    min-width: 0;
    max-width: 180px;
    margin: 0;
    font-size: 11px;
  }


  /* ==============================
     Hàng 2 - Active filters
  ===============================*/

  body.woocommerce.archive
  .laimut-shop-toolbar
  .category-filtering
  > .inline-block {
    grid-column: 1 / -1;
    grid-row: 2;

    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
  }


  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
  }


  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters
  ul {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
  }


  body.woocommerce.archive
  .laimut-shop-toolbar
  .widget_layered_nav_filters
  li {
    width: auto;

    margin: 0 !important;
    padding: 0 !important;
  }


  body.woocommerce.archive
	.laimut-shop-toolbar
	.widget_layered_nav_filters
	a {
		display: inline-flex;
		align-items: center;
		gap: 4px;

		max-width: 100%;
		min-height: 28px;

		margin: 0;
		padding: 0 9px;

		border: 1px solid
			var(--lm-border-warm, #E7DED3);

		border-radius:
			var(--lm-radius-pill, 999px);

		background:
			var(--lm-ivory, #FCFAF7);

		color:
			var(--lm-text-soft, #6F675E);

		font-size: 10.5px;
		font-weight: 400;
		line-height: 1.2;

		white-space: nowrap;
	}
}

/* ==============================
   Category description
===============================*/

body.woocommerce.archive
.shop-container
.term-description {
  text-align: justify;
}

/* ==============================
   Pagination
===============================*/

body.woocommerce.archive
.woocommerce-pagination::before {
  content: "Chọn trang để xem thêm sản phẩm";
  display: block;

  margin-bottom: 15px;

  color: var(--lm-text-light);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  text-align: center;
}

body.woocommerce.archive
.woocommerce-pagination
.page-numbers {
  margin-bottom: 20px !important;
}

/* ==============================
   Tablet
===============================*/

@media only screen and (min-width: 550px) and (max-width: 849px) {
  body.woocommerce.archive .shop-page-title {
    padding: 9px 0 6px;
  }

  body.woocommerce.archive .shop-page-title h1 {
    font-size: 19px;
  }

  body.woocommerce.archive
  .shop-page-title
  .woocommerce-breadcrumb {
    margin-bottom: -12px;
  }

  body.woocommerce.archive
  .products.laimut-child-categories {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  body.woocommerce.archive
  .products
  .product-category
  .box-image {
    height: 180px;
  }

}

/* ==============================
   Mobile
===============================*/

@media only screen and (max-width: 549px) {
  body.woocommerce.archive .shop-page-title {
    padding: 8px 0 5px;
  }

  body.woocommerce.archive .shop-page-title h1 {
    font-size: 16px;
    line-height: 1.25;
  }

  body.woocommerce.archive
  .shop-page-title
  .woocommerce-breadcrumb {
    margin-top: 5px;
    margin-bottom: -12px;
    font-size: 10.5px;
  }

  /* Danh mục con */
  body.woocommerce.archive
  .products.laimut-child-categories {
    margin-top: 16px;
    margin-bottom: 14px;
  }

  body.woocommerce.archive
  .products
  .product-category
  .box-image {
    height: 150px;
  }

  body.woocommerce.archive
  .products.laimut-child-categories
  > .product-category {
    margin-bottom: 12px !important;
  }

  body.woocommerce.archive
  .products
  .product-category
  .box-text {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 7px !important;
    padding-bottom: 0 !important;
  }

  body.woocommerce.archive
  .products
  .product-category
  .box-text-inner {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce.archive
  .products
  .product-category
  .box-text h5,
  body.woocommerce.archive
  .products
  .product-category
  .woocommerce-loop-category__title {
    margin: 0 !important;
    padding: 0 !important;

    font-size: 10.5px;
    line-height: 1.25;
    letter-spacing: 0.045em;
  }

}



/* =========================================================
   09. EMPTY ARCHIVE STATE
   ========================================================= */

/* =========================================================
   No products found - Contact CTA
========================================================= */

.shop-container .woocommerce-info {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.shop-container .woocommerce-info
.message-container {
  padding: 0;
}

.shop-container .laimut-no-products-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 24px;

  border: 1px solid var(--lm-burgundy, #8B2D26);
  border-radius: var(--lm-radius-pill, 999px);

  background: var(--lm-burgundy, #8B2D26);
  color: var(--lm-white, #FFFFFF);

  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;

  text-align: center;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
	margin-top:60px;
		margin-bottom:60px;
}

.shop-container .laimut-no-products-cta:hover {
  border-color: var(--lm-burgundy-hover, #74231F);
  background: var(--lm-burgundy-hover, #74231F);
  color: var(--lm-white, #FFFFFF);
  transform: translateY(-1px);
}

.shop-container .laimut-no-products-cta:focus-visible {
  outline: 2px solid var(--lm-text-strong, #111111);
  outline-offset: 3px;
}

@media only screen and (max-width: 549px) {
  .shop-container
  .laimut-no-products-cta {
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
		margin-top:40px;
		margin-bottom:60px;
  }
}



/* Bottom-description collapse (migrated from PHP) */
.category-bottom-seo-content {
            max-width: 1180px;
            position: relative;
            margin: 40px auto 0;
            padding: 0 15px;
        }

        .category-bottom-seo-content.laimut-cat-desc-target {
            transition: max-height .25s ease;
        }

        .category-bottom-seo-content.laimut-cat-desc-target.is-collapsed {
            overflow: hidden;
        }

        .category-bottom-seo-content.laimut-cat-desc-target:not(.is-collapsed) {
            overflow: visible;
        }

        .category-bottom-seo-content .laimut-cat-desc-fade {
            display: none;
        }

        .category-bottom-seo-content.is-collapsed .laimut-cat-desc-fade {
            display: block;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 120px;
            pointer-events: none;
            z-index: 20;
            background: linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, .55) 40%,
                rgba(255, 255, 255, .9) 75%,
                #fff 100%
            );
        }

        .laimut-cat-desc-toggle-wrap {
            position: relative;
            z-index: 30;
            margin-top: 16px;
            padding-bottom: 24px;
            text-align: center;
        }

        .laimut-cat-desc-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 120px;
            padding: 9px 24px;
            border: 1px solid #d0d7de;
            border-radius: 999px;
            background: #fff;
            color: #111;
            font-size: 14px;
            font-weight: 600;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .laimut-cat-desc-toggle-btn:hover {
            border-color: #111;
            box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
        }

        .category-bottom-seo-content ul {
            margin: 16px 0 24px;
            padding-left: 24px;
            list-style-position: outside;
        }

        .category-bottom-seo-content li {
            margin-bottom: 8px;
            padding-left: 4px;
        }

        .category-bottom-seo-content li:last-child {
            margin-bottom: 0;
        }

        @media only screen and (max-width: 549px) {
            .category-bottom-seo-content.is-collapsed .laimut-cat-desc-fade {
                height: 100px;
            }

            .laimut-cat-desc-toggle-wrap {
                margin-top: 14px;
                padding-bottom: 22px;
            }
        }

/* Swarovski archive disclaimer final overrides */
.laimut-swarovski-disclaimer {
  margin: 12px 0 18px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f7f7f7;
  color: #666;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
}

.laimut-swarovski-disclaimer strong {
  color: #333;
  font-weight: 600;
}
@media only screen and (max-width: 849px) {
  .laimut-swarovski-disclaimer { font-size: 11px!important; }
}
@media only screen and (max-width: 549px) {
  .laimut-swarovski-disclaimer { font-size: 9.5px!important; }
}
