/* ======================================================
   SHOP / ARCHIVE LAYOUT
====================================================== */

.m29-shop-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.m29-shop-layout .m29-filter-box {
    position: sticky;
    top: 20px;
}

.m29-shop-products,
.m29-shop-products .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* ======================================================
   FILTER BOX
====================================================== */

.m29-filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #eadfca;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.m29-filter-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #293d62;
    font-weight: 700;
}

.m29-filter-group {
    margin-bottom: 14px;
}

.m29-filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.m29-filter-group select,
.m29-filter-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #faf8f3;
    border: 1px solid #e5dac6;
}

.m29-filter-box button {
    width: 100%;
    background: linear-gradient(135deg, #c9a24a, #b8913f);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(201,162,74,0.25);
}

/* ======================================================
   FILTER SUMMARY / TOP BAR
====================================================== */

.m29-filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.m29-active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.m29-chip {
    background: #f5efe3;
    color: #8c6b2f;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 13px;
}

.m29-clear-filter {
    font-size: 13px;
    color: #c89b3c;
    text-decoration: none;
}

.m29-products-topbar {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ece7dc;
}

.m29-results-count {
    font-size: 15px;
    color: #6c6c6c;
    font-weight: 500;
}

/* ======================================================
   PRODUCT GRID
====================================================== */

.m29-shop-products .woocommerce ul.products {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;

    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px !important;

    justify-content: start !important;
    align-content: start !important;
}

.m29-shop-products .woocommerce ul.products::before,
.m29-shop-products .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.m29-shop-products .woocommerce ul.products li.product,
.m29-shop-products .woocommerce-page ul.products li.product {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 14px !important;

    border-radius: 18px;
    border: 1px solid #eadfca;
    background: #fff;
    box-sizing: border-box !important;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.m29-shop-products .woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #dcc8a1;
}

.m29-shop-products .woocommerce ul.products li.first,
.m29-shop-products .woocommerce ul.products li.last {
    clear: none !important;
}

.m29-shop-products .woocommerce ul.products li.product img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover;
    display: block;
    margin-bottom: 14px !important;
    border-radius: 12px;
}

.m29-shop-products .woocommerce ul.products li.product h2,
.m29-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 10px;
    color: #293d62;
    min-height: 70px;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

.m29-shop-products .woocommerce ul.products li.product .price {
    display: block !important;
    font-size: 16px;
    font-weight: 700;
    color: #222 !important;
    margin-top: auto;
}

.m29-shop-products .woocommerce ul.products li.product .button,
.m29-shop-products .woocommerce ul.products li.product .add_to_cart_button,
.m29-shop-products .woocommerce ul.products li.product .product_type_simple {
    display: none !important;
}

/* ======================================================
   PAGINATION
====================================================== */

.m29-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.m29-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.m29-pagination li {
    margin: 0;
    padding: 0;
}

.m29-pagination a,
.m29-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #eadfca;
    background: #fff;
    color: #293d62;
    text-decoration: none !important;
    font-weight: 600;
}

.m29-pagination .current {
    background: #293d62;
    border-color: #293d62;
    color: #fff;
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 980px) {
    .m29-shop-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .m29-shop-layout .m29-filter-box {
        position: static;
    }

    .m29-shop-products .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .m29-shop-products .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* FORCE GRID OVERRIDE */
.m29-shop-products ul.products,
.m29-shop-products .woocommerce ul.products,
.m29-shop-products .products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.m29-shop-products ul.products li.product,
.m29-shop-products .woocommerce ul.products li.product,
.m29-shop-products .products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* =========================================
   CATEGORY / ARCHIVE PAGE - PREMIUM STEP 1
========================================= */

/* Remove sidebar on product category/tag archives */
.tax-product_cat #sidebar,
.tax-product_cat .et_right_sidebar #sidebar,
.tax-product_cat .et_pb_widget_area_right,
.tax-product_cat #main-content .container:before,
.tax-product_tag #sidebar,
.tax-product_tag .et_right_sidebar #sidebar,
.tax-product_tag .et_pb_widget_area_right,
.tax-product_tag #main-content .container:before {
    display: none !important;
}

.tax-product_cat #left-area,
.tax-product_cat .et_right_sidebar #left-area,
.tax-product_tag #left-area,
.tax-product_tag .et_right_sidebar #left-area {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Archive wrapper */
.tax-product_cat .woocommerce-products-header,
.tax-product_tag .woocommerce-products-header {
    margin-bottom: 24px;
}

.tax-product_cat .woocommerce-products-header__title.page-title,
.tax-product_tag .woocommerce-products-header__title.page-title {
    font-size: 46px;
    line-height: 1.1;
    color: #293d62;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Archive description */
.tax-product_cat .term-description,
.tax-product_tag .term-description,
.tax-product_cat .archive-description,
.tax-product_tag .archive-description {
    max-width: 820px;
    color: #5c6575;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 26px;
}

/* Result count + sorting */
.tax-product_cat .woocommerce-result-count,
.tax-product_tag .woocommerce-result-count {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 18px !important;
}

.tax-product_cat .woocommerce-ordering,
.tax-product_tag .woocommerce-ordering {
    margin: 0 0 18px !important;
}

.tax-product_cat .woocommerce-ordering select,
.tax-product_tag .woocommerce-ordering select {
    min-width: 220px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #eadfca;
    background: #faf8f3;
    padding: 0 14px;
    color: #293d62;
}

/* Product grid on category/tag pages */
.tax-product_cat ul.products,
.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #eadfca;
    border-radius: 18px;
    background: #fff;
    box-sizing: border-box;
    transition: all .25s ease;
}

.tax-product_cat ul.products li.product:hover,
.tax-product_tag ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.07);
    border-color: #dcc8a1;
}

.tax-product_cat ul.products li.product img,
.tax-product_tag ul.products li.product img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 14px !important;
}

.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product h2,
.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
.tax-product_tag ul.products li.product h2 {
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #293d62 !important;
    font-weight: 600 !important;
    margin: 0 0 10px !important;
    min-height: 70px;
    overflow: hidden;
}

.tax-product_cat ul.products li.product .price,
.tax-product_tag ul.products li.product .price {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 0 !important;
}

.tax-product_cat ul.products li.product .button,
.tax-product_cat ul.products li.product .add_to_cart_button,
.tax-product_tag ul.products li.product .button,
.tax-product_tag ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* Pagination */
.tax-product_cat nav.woocommerce-pagination,
.tax-product_tag nav.woocommerce-pagination {
    margin-top: 36px;
}

.tax-product_cat nav.woocommerce-pagination ul,
.tax-product_tag nav.woocommerce-pagination ul {
    border: 0 !important;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tax-product_cat nav.woocommerce-pagination ul li,
.tax-product_tag nav.woocommerce-pagination ul li {
    border: 0 !important;
}

.tax-product_cat nav.woocommerce-pagination ul li a,
.tax-product_cat nav.woocommerce-pagination ul li span,
.tax-product_tag nav.woocommerce-pagination ul li a,
.tax-product_tag nav.woocommerce-pagination ul li span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #eadfca;
    background: #fff;
    color: #293d62;
    font-weight: 600;
}

.tax-product_cat nav.woocommerce-pagination ul li span.current,
.tax-product_tag nav.woocommerce-pagination ul li span.current {
    background: #293d62;
    border-color: #293d62;
    color: #fff;
}

/* Mobile */
@media (max-width: 980px) {
    .tax-product_cat ul.products,
    .tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .tax-product_cat .woocommerce-products-header__title.page-title,
    .tax-product_tag .woocommerce-products-header__title.page-title {
        font-size: 34px;
    }

    .tax-product_cat ul.products,
    .tax-product_tag ul.products {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================
   CATEGORY PAGE FIX - REMOVE BLANK FIRST COLUMN
========================================= */
.tax-product_cat ul.products::before,
.tax-product_cat ul.products::after,
.tax-product_tag ul.products::before,
.tax-product_tag ul.products::after {
    display: none !important;
    content: none !important;
}

.tax-product_cat ul.products li.first,
.tax-product_cat ul.products li.last,
.tax-product_tag ul.products li.first,
.tax-product_tag ul.products li.last {
    clear: none !important;
}

.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Use a strict 3-column grid on archive pages */
.tax-product_cat ul.products,
.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    justify-content: start !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
/* =========================================
   BUY BADGE - CATEGORY CARDS
========================================= */
.tax-product_cat ul.products li.product .onsale,
.tax-product_tag ul.products li.product .onsale,
.tax-product_cat ul.products li.product .m29-buy-badge,
.tax-product_tag ul.products li.product .m29-buy-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #c9a24a !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(201,162,74,0.22);
}

/* card must allow badge positioning */
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product {
    position: relative;
}
/* =========================================
   CATEGORY BOTTOM CONTENT / DESCRIPTION
========================================= */
.tax-product_cat .term-description,
.tax-product_tag .term-description,
.tax-product_cat .archive-description,
.tax-product_tag .archive-description {
    margin-top: 40px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #eadfca;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    max-width: 100%;
}

.tax-product_cat .term-description h2,
.tax-product_cat .term-description h3,
.tax-product_tag .term-description h2,
.tax-product_tag .term-description h3,
.tax-product_cat .archive-description h2,
.tax-product_cat .archive-description h3,
.tax-product_tag .archive-description h2,
.tax-product_tag .archive-description h3 {
    color: #293d62;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.tax-product_cat .term-description p,
.tax-product_tag .term-description p,
.tax-product_cat .archive-description p,
.tax-product_tag .archive-description p {
    color: #5c6575;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 14px;
}

.tax-product_cat .term-description a,
.tax-product_tag .term-description a,
.tax-product_cat .archive-description a,
.tax-product_tag .archive-description a {
    color: #c9a24a;
    font-weight: 600;
    text-decoration: none;
}

.tax-product_cat .term-description a:hover,
.tax-product_tag .term-description a:hover,
.tax-product_cat .archive-description a:hover,
.tax-product_tag .archive-description a:hover {
    color: #a88026;
}
/* =========================================================
   ARCHIVE / CATEGORY / TAG PAGE
   Premium Buy badge + bottom info box
   ========================================================= */

/* 1) PREMIUM BUY CHIP */
.woocommerce.archive ul.products li.product .onsale,
.woocommerce.tax-product_cat ul.products li.product .onsale,
.woocommerce.tax-product_tag ul.products li.product .onsale,
.post-type-archive-product ul.products li.product .onsale {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  margin: 0;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(201, 169, 110, 0.55);
  color: #8a6a2f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 3;
}

/* if card/image wrapper hides badge */
.woocommerce.archive ul.products li.product,
.woocommerce.tax-product_cat ul.products li.product,
.woocommerce.tax-product_tag ul.products li.product,
.post-type-archive-product ul.products li.product {
  position: relative;
}

/* 2) BOTTOM ARCHIVE DESCRIPTION / CONTENT BOX */
.tax-product_cat .term-description,
.tax-product_tag .term-description,
.post-type-archive-product .woocommerce-products-header__description,
.woocommerce.archive .woocommerce-products-header__description {
  margin: 40px 0 0;
  padding: 28px 30px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  color: #4b5563;
}

/* bottom section heading */
.tax-product_cat .term-description h2,
.tax-product_cat .term-description h3,
.tax-product_tag .term-description h2,
.tax-product_tag .term-description h3,
.post-type-archive-product .woocommerce-products-header__description h2,
.post-type-archive-product .woocommerce-products-header__description h3,
.woocommerce.archive .woocommerce-products-header__description h2,
.woocommerce.archive .woocommerce-products-header__description h3 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

/* paragraph styling */
.tax-product_cat .term-description p,
.tax-product_tag .term-description p,
.post-type-archive-product .woocommerce-products-header__description p,
.woocommerce.archive .woocommerce-products-header__description p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: #5b6472;
}

.tax-product_cat .term-description p:last-child,
.tax-product_tag .term-description p:last-child,
.post-type-archive-product .woocommerce-products-header__description p:last-child,
.woocommerce.archive .woocommerce-products-header__description p:last-child {
  margin-bottom: 0;
}

/* optional highlight links inside bottom box */
.tax-product_cat .term-description a,
.tax-product_tag .term-description a,
.post-type-archive-product .woocommerce-products-header__description a,
.woocommerce.archive .woocommerce-products-header__description a {
  color: #8a6a2f;
  font-weight: 600;
  text-decoration: none;
}

.tax-product_cat .term-description a:hover,
.tax-product_tag .term-description a:hover,
.post-type-archive-product .woocommerce-products-header__description a:hover,
.woocommerce.archive .woocommerce-products-header__description a:hover {
  color: #6d5221;
  text-decoration: underline;
}

/* mobile */
@media (max-width: 767px) {
  .woocommerce.archive ul.products li.product .onsale,
  .woocommerce.tax-product_cat ul.products li.product .onsale,
  .woocommerce.tax-product_tag ul.products li.product .onsale,
  .post-type-archive-product ul.products li.product .onsale {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 10px;
  }

  .tax-product_cat .term-description,
  .tax-product_tag .term-description,
  .post-type-archive-product .woocommerce-products-header__description,
  .woocommerce.archive .woocommerce-products-header__description {
    margin-top: 28px;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .tax-product_cat .term-description h2,
  .tax-product_cat .term-description h3,
  .tax-product_tag .term-description h2,
  .tax-product_tag .term-description h3,
  .post-type-archive-product .woocommerce-products-header__description h2,
  .post-type-archive-product .woocommerce-products-header__description h3,
  .woocommerce.archive .woocommerce-products-header__description h2,
  .woocommerce.archive .woocommerce-products-header__description h3 {
    font-size: 20px;
  }
}

/* FINAL FORCE - ARCHIVE BUY BADGE */
.tax-product_cat ul.products li.product .onsale,
.tax-product_tag ul.products li.product .onsale,
.post-type-archive-product ul.products li.product .onsale,
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    min-width: unset !important;
    min-height: unset !important;
    line-height: 1 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #c9a24a, #b8913f) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 18px rgba(201,162,74,0.28) !important;
    z-index: 9 !important;
}

.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product,
.post-type-archive-product ul.products li.product,
.woocommerce ul.products li.product {
    position: relative !important;
}
/* =========================================
   ARCHIVE BUY BADGE - EXACT FIX
========================================= */
.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
.tax-product_tag ul.products li.product a.woocommerce-LoopProduct-link,
.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
}

.tax-product_cat ul.products li.product .m29-badge.m29-badge-buy,
.tax-product_tag ul.products li.product .m29-badge.m29-badge-buy,
.post-type-archive-product ul.products li.product .m29-badge.m29-badge-buy {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #c9a24a, #b8913f) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 18px rgba(201,162,74,0.28) !important;
    z-index: 5 !important;
    min-height: auto !important;
    min-width: auto !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}
/* =========================================
   CATEGORY BOTTOM EXTRA SECTIONS - EXACT FIX
========================================= */
.tax-product_cat .m29-category-extras,
.tax-product_tag .m29-category-extras,
.post-type-archive-product .m29-category-extras {
    margin-top: 44px;
    display: grid;
    gap: 20px;
}

/* shared premium card style */
.tax-product_cat .m29-category-extras > section,
.tax-product_tag .m29-category-extras > section,
.post-type-archive-product .m29-category-extras > section {
    background: linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%);
    border: 1px solid #eadfca;
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

/* headings */
.tax-product_cat .m29-category-extras h2,
.tax-product_cat .m29-category-extras h3,
.tax-product_tag .m29-category-extras h2,
.tax-product_tag .m29-category-extras h3,
.post-type-archive-product .m29-category-extras h2,
.post-type-archive-product .m29-category-extras h3 {
    margin: 0 0 14px;
    color: #293d62;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
}

/* body text */
.tax-product_cat .m29-category-extras p,
.tax-product_tag .m29-category-extras p,
.post-type-archive-product .m29-category-extras p {
    margin: 0 0 14px;
    color: #5c6575;
    font-size: 16px;
    line-height: 1.8;
}

/* link list under explore more collections */
.tax-product_cat .m29-related-cat-grid,
.tax-product_tag .m29-related-cat-grid,
.post-type-archive-product .m29-related-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tax-product_cat .m29-related-cat-grid a,
.tax-product_tag .m29-related-cat-grid a,
.post-type-archive-product .m29-related-cat-grid a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eadfca;
    color: #8a6a2f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.tax-product_cat .m29-related-cat-grid a:hover,
.tax-product_tag .m29-related-cat-grid a:hover,
.post-type-archive-product .m29-related-cat-grid a:hover {
    background: #293d62;
    border-color: #293d62;
    color: #fff;
}

/* CTA buttons */
.tax-product_cat .m29-category-cta a,
.tax-product_tag .m29-category-cta a,
.post-type-archive-product .m29-category-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 10px 10px 0 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

/* first button - whatsapp */
.tax-product_cat .m29-category-cta a:first-of-type,
.tax-product_tag .m29-category-cta a:first-of-type,
.post-type-archive-product .m29-category-cta a:first-of-type {
    background: linear-gradient(135deg, #c9a24a, #b8913f);
    color: #fff;
    box-shadow: 0 8px 18px rgba(201,162,74,0.25);
}

/* second button */
.tax-product_cat .m29-category-cta a:last-of-type,
.tax-product_tag .m29-category-cta a:last-of-type,
.post-type-archive-product .m29-category-cta a:last-of-type {
    background: #fff;
    color: #293d62;
    border: 1px solid #d8cfbf;
}

/* trust section blocks */
.tax-product_cat .m29-category-trust,
.tax-product_tag .m29-category-trust,
.post-type-archive-product .m29-category-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
}

.tax-product_cat .m29-category-trust h3,
.tax-product_tag .m29-category-trust h3,
.post-type-archive-product .m29-category-trust h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #293d62;
    font-weight: 700;
}

.tax-product_cat .m29-category-trust p,
.tax-product_tag .m29-category-trust p,
.post-type-archive-product .m29-category-trust p {
    margin: 0;
    font-size: 15px;
}

/* mobile */
@media (max-width: 767px) {
    .tax-product_cat .m29-category-extras > section,
    .tax-product_tag .m29-category-extras > section,
    .post-type-archive-product .m29-category-extras > section {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .tax-product_cat .m29-category-extras h2,
    .tax-product_cat .m29-category-extras h3,
    .tax-product_tag .m29-category-extras h2,
    .tax-product_tag .m29-category-extras h3,
    .post-type-archive-product .m29-category-extras h2,
    .post-type-archive-product .m29-category-extras h3 {
        font-size: 28px;
    }

    .tax-product_cat .m29-category-trust,
    .tax-product_tag .m29-category-trust,
    .post-type-archive-product .m29-category-trust {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   STEP NEXT — MATCH BROWSE-JEWELLERY CARDS TO CATEGORY PAGE
   + MAKE CATEGORY PAGINATION MATCH SHOP PAGE
   ========================================================= */

/* ---------------------------------------------------------
   A) BROWSE-JEWELLERY PRODUCT GRID = PREMIUM CARD STYLE
--------------------------------------------------------- */

/* grid already exists, now force each product into a card */
.m29-shop-products ul.products li.product,
.m29-shop-products .woocommerce ul.products li.product,
.m29-shop-products .products li.product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #fff !important;
    border: 1px solid #eadfca !important;
    border-radius: 22px !important;
    padding: 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.m29-shop-products ul.products li.product:hover,
.m29-shop-products .woocommerce ul.products li.product:hover,
.m29-shop-products .products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #dcc8a1 !important;
}

/* anchor should behave like full card content wrapper */
.m29-shop-products ul.products li.product a.woocommerce-LoopProduct-link,
.m29-shop-products .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.m29-shop-products .products li.product a.woocommerce-LoopProduct-link {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-decoration: none !important;
    height: 100% !important;
    min-height: 100% !important;
}

/* exact Buy chip on browse-jewellery */
.m29-shop-products ul.products li.product .m29-badge.m29-badge-buy,
.m29-shop-products .woocommerce ul.products li.product .m29-badge.m29-badge-buy,
.m29-shop-products .products li.product .m29-badge.m29-badge-buy {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #c9a24a, #b8913f) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 18px rgba(201,162,74,0.28) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    z-index: 5 !important;
}

/* image wrapper */
.m29-shop-products ul.products li.product .et_shop_image,
.m29-shop-products .woocommerce ul.products li.product .et_shop_image,
.m29-shop-products .products li.product .et_shop_image {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #f8f6f1 !important;
}

/* image */
.m29-shop-products ul.products li.product img,
.m29-shop-products .woocommerce ul.products li.product img,
.m29-shop-products .products li.product img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 16px !important;
}

/* title */
.m29-shop-products ul.products li.product .woocommerce-loop-product__title,
.m29-shop-products ul.products li.product h2,
.m29-shop-products .woocommerce ul.products li.product .woocommerce-loop-product__title,
.m29-shop-products .woocommerce ul.products li.product h2,
.m29-shop-products .products li.product .woocommerce-loop-product__title,
.m29-shop-products .products li.product h2 {
    font-size: 16px !important;
    line-height: 1.45 !important;
    color: #293d62 !important;
    font-weight: 600 !important;
    margin: 0 0 10px !important;
    min-height: 70px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* price pinned nicely under title */
.m29-shop-products ul.products li.product .price,
.m29-shop-products .woocommerce ul.products li.product .price,
.m29-shop-products .products li.product .price {
    display: block !important;
    margin-top: auto !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #222 !important;
    line-height: 1.35 !important;
}

/* hide default add to cart if any appears */
.m29-shop-products ul.products li.product .button,
.m29-shop-products ul.products li.product .add_to_cart_button,
.m29-shop-products .woocommerce ul.products li.product .button,
.m29-shop-products .woocommerce ul.products li.product .add_to_cart_button,
.m29-shop-products .products li.product .button,
.m29-shop-products .products li.product .add_to_cart_button {
    display: none !important;
}


/* ---------------------------------------------------------
   B) CATEGORY / ARCHIVE PAGINATION = SAME AS SHOP PAGE
--------------------------------------------------------- */

.tax-product_cat nav.woocommerce-pagination,
.tax-product_tag nav.woocommerce-pagination,
.post-type-archive-product nav.woocommerce-pagination {
    margin-top: 36px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.tax-product_cat nav.woocommerce-pagination ul,
.tax-product_tag nav.woocommerce-pagination ul,
.post-type-archive-product nav.woocommerce-pagination ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    width: auto !important;
}

.tax-product_cat nav.woocommerce-pagination ul li,
.tax-product_tag nav.woocommerce-pagination ul li,
.post-type-archive-product nav.woocommerce-pagination ul li {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tax-product_cat nav.woocommerce-pagination ul li a,
.tax-product_cat nav.woocommerce-pagination ul li span,
.tax-product_tag nav.woocommerce-pagination ul li a,
.tax-product_tag nav.woocommerce-pagination ul li span,
.post-type-archive-product nav.woocommerce-pagination ul li a,
.post-type-archive-product nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid #eadfca !important;
    background: #fff !important;
    color: #293d62 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.tax-product_cat nav.woocommerce-pagination ul li span.current,
.tax-product_tag nav.woocommerce-pagination ul li span.current,
.post-type-archive-product nav.woocommerce-pagination ul li span.current {
    background: #293d62 !important;
    border-color: #293d62 !important;
    color: #fff !important;
}

/* nicer next/prev */
.tax-product_cat nav.woocommerce-pagination ul li a.next,
.tax-product_cat nav.woocommerce-pagination ul li a.prev,
.tax-product_tag nav.woocommerce-pagination ul li a.next,
.tax-product_tag nav.woocommerce-pagination ul li a.prev,
.post-type-archive-product nav.woocommerce-pagination ul li a.next,
.post-type-archive-product nav.woocommerce-pagination ul li a.prev {
    padding: 0 16px !important;
}

/* ---------------------------------------------------------
   C) MOBILE
--------------------------------------------------------- */
@media (max-width: 980px) {
    .m29-shop-products ul.products,
    .m29-shop-products .woocommerce ul.products,
    .m29-shop-products .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .m29-shop-products ul.products,
    .m29-shop-products .woocommerce ul.products,
    .m29-shop-products .products {
        grid-template-columns: 1fr !important;
    }

    .m29-shop-products ul.products li.product img,
    .m29-shop-products .woocommerce ul.products li.product img,
    .m29-shop-products .products li.product img {
        height: 220px !important;
    }

    .m29-shop-products ul.products li.product,
    .m29-shop-products .woocommerce ul.products li.product,
    .m29-shop-products .products li.product {
        border-radius: 18px !important;
        padding: 12px !important;
    }
}
/* =========================================================
   MOBILE FIX — PRODUCT CATEGORY / TAG / ARCHIVE CARDS
   ========================================================= */

@media (max-width: 767px) {

    /* single column on mobile */
    .tax-product_cat ul.products,
    .tax-product_tag ul.products,
    .post-type-archive-product ul.products,
    .woocommerce.archive ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* full card width */
    .tax-product_cat ul.products li.product,
    .tax-product_tag ul.products li.product,
    .post-type-archive-product ul.products li.product,
    .woocommerce.archive ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    /* make the product link act like a proper card */
    .tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
    .tax-product_tag ul.products li.product a.woocommerce-LoopProduct-link,
    .post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link,
    .woocommerce.archive ul.products li.product a.woocommerce-LoopProduct-link {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* image wrapper */
    .tax-product_cat ul.products li.product .et_shop_image,
    .tax-product_tag ul.products li.product .et_shop_image,
    .post-type-archive-product ul.products li.product .et_shop_image,
    .woocommerce.archive ul.products li.product .et_shop_image {
        width: 100% !important;
        margin: 0 0 14px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    /* image size */
    .tax-product_cat ul.products li.product img,
    .tax-product_tag ul.products li.product img,
    .post-type-archive-product ul.products li.product img,
    .woocommerce.archive ul.products li.product img {
        width: 100% !important;
        height: 240px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }

    /* buy badge position */
    .tax-product_cat ul.products li.product .m29-badge.m29-badge-buy,
    .tax-product_tag ul.products li.product .m29-badge.m29-badge-buy,
    .post-type-archive-product ul.products li.product .m29-badge.m29-badge-buy,
    .woocommerce.archive ul.products li.product .m29-badge.m29-badge-buy {
        top: 12px !important;
        left: 12px !important;
        padding: 7px 14px !important;
        font-size: 11px !important;
    }

    /* title */
    .tax-product_cat ul.products li.product .woocommerce-loop-product__title,
    .tax-product_cat ul.products li.product h2,
    .tax-product_tag ul.products li.product .woocommerce-loop-product__title,
    .tax-product_tag ul.products li.product h2,
    .post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
    .post-type-archive-product ul.products li.product h2,
    .woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
    .woocommerce.archive ul.products li.product h2 {
        min-height: auto !important;
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin: 0 0 10px !important;
        word-break: break-word !important;
    }

    /* price */
    .tax-product_cat ul.products li.product .price,
    .tax-product_tag ul.products li.product .price,
    .post-type-archive-product ul.products li.product .price,
    .woocommerce.archive ul.products li.product .price {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    /* sorting full width */
    .tax-product_cat .woocommerce-ordering,
    .tax-product_tag .woocommerce-ordering,
    .post-type-archive-product .woocommerce-ordering,
    .woocommerce.archive .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
    }

    .tax-product_cat .woocommerce-ordering select,
    .tax-product_tag .woocommerce-ordering select,
    .post-type-archive-product .woocommerce-ordering select,
    .woocommerce.archive .woocommerce-ordering select {
        width: 100% !important;
        min-width: 100% !important;
    }
}
/* =========================================================
   MOBILE WIDTH BOOST — CATEGORY PRODUCT CARDS
   ========================================================= */
@media (max-width: 767px) {

    /* main content full width */
    .tax-product_cat #left-area,
    .tax-product_tag #left-area,
    .post-type-archive-product #left-area,
    .woocommerce.archive #left-area {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    /* remove any max width restriction from product list */
    .tax-product_cat ul.products,
    .tax-product_tag ul.products,
    .post-type-archive-product ul.products,
    .woocommerce.archive ul.products {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* make each product stretch fully */
    .tax-product_cat ul.products li.product,
    .tax-product_tag ul.products li.product,
    .post-type-archive-product ul.products li.product,
    .woocommerce.archive ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }

    /* stop inner link from shrinking */
    .tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
    .tax-product_tag ul.products li.product a.woocommerce-LoopProduct-link,
    .post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link,
    .woocommerce.archive ul.products li.product a.woocommerce-LoopProduct-link {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* image area should use full card width */
    .tax-product_cat ul.products li.product .et_shop_image,
    .tax-product_tag ul.products li.product .et_shop_image,
    .post-type-archive-product ul.products li.product .et_shop_image,
    .woocommerce.archive ul.products li.product .et_shop_image {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* slightly larger card on mobile */
    .tax-product_cat ul.products li.product,
    .tax-product_tag ul.products li.product,
    .post-type-archive-product ul.products li.product,
    .woocommerce.archive ul.products li.product {
        padding: 14px !important;
        border-radius: 20px !important;
    }

    /* slightly taller image for better visual balance */
    .tax-product_cat ul.products li.product img,
    .tax-product_tag ul.products li.product img,
    .post-type-archive-product ul.products li.product img,
    .woocommerce.archive ul.products li.product img {
        height: 280px !important;
    }
}
