/* Shop Page Layout Overrides - Figma Node 9849:267755 */
.w2w-plp-section {
  display: block;
  width: 100%;
  background: #ffffff;
  padding: 0 0 60px;
}

.w2w-plp-section .container,
.post-type-archive-product #primary .w2w-plp-section .container,
.post-type-archive-product .site-main .w2w-plp-section .container,
.woocommerce-shop #primary .w2w-plp-section .container,
.archive.tax-product_cat #primary .w2w-plp-section .container,
.archive.tax-product_cat .site-main .w2w-plp-section .container {
  width: 100% !important;
  max-width: 1920px !important;
  margin: 0 auto !important;
  padding: 0 160px !important;
  box-sizing: border-box !important;
}

/* Back navigation bar */
.w2w-plp-back-bar {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 24px;
}

.w2w-plp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #363635;
  font-family: "Noto Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.2px;
  transition: opacity 0.2s ease;
}

.w2w-plp-back-btn:hover {
  opacity: 0.8;
  color: #30a67f;
}

.w2w-plp-back-btn svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* Toolbar Controls */
.w2w-plp-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.w2w-plp-mobile-toolbar {
  display: none;
}

.w2w-plp-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.w2w-plp-controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.w2w-plp-filter-btn-wrap {
  display: inline-flex;
}

.w2w-plp-filter-btn-wrap .btn-filters,
.w2w-plp-filter-btn-wrap button,
.w2w-plp-filter-btn-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #363635 !important;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14px;
  text-decoration: none;
  border: 1px solid #D0D0CE !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.w2w-plp-filter-btn-wrap .btn-filters:hover,
.w2w-plp-filter-btn-wrap button:hover,
.w2w-plp-filter-btn-wrap a:hover {
  background: #F7F9F8 !important;
  border-color: #9A9A98 !important;
  color: #363635 !important;
}

.w2w-plp-filter-btn-wrap .btn-filters img,
.w2w-plp-filter-btn-wrap button img,
.w2w-plp-controls-left .custom-sorting .sort-toggle .sort-icon img {
  filter: none;
  opacity: 0.85;
}

.w2w-plp-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #363635;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #D0D0CE;
  cursor: pointer;
}

.w2w-plp-controls-left .custom-sorting {
  position: relative;
}

.w2w-plp-controls-left .custom-sorting .sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #D0D0CE;
  background: #ffffff;
  color: #363635;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.w2w-plp-controls-left .custom-sorting .sort-toggle:hover {
  background: #F7F9F8;
  border-color: #9A9A98;
  color: #363635;
}

.w2w-plp-sort-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #D0D0CE;
  background: #ffffff;
  color: #363635;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}

.w2w-plp-sort-box span.label {
  color: #70706d;
  flex: 0 0 auto;
}

.w2w-plp-sort-box form.woocommerce-ordering {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.w2w-plp-sort-box select.orderby {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #363635 !important;
  font-family: Lato, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 20px 0 0 !important;
  margin: 0 !important;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

.w2w-plp-sort-box .sort-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.w2w-plp-category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.w2w-plp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #D0D0CE;
  background: #ffffff;
  color: #7C7C7A;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.w2w-plp-pill:hover {
  background: #F5FBF9;
  border-color: #9A9A98;
  color: #363635;
  font-weight: 500;
}

.w2w-plp-pill.active,
.w2w-plp-pill.active:hover {
  background: #E6F4EF;
  border-color: #9A9A98;
  color: #363635;
  font-weight: 700;
}

/* Category FAQ Helper Notice Banner */
.w2w-plp-faq-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 63px;
  padding: 0 24px;
  border-radius: 12px;
  background: #f7f9f8;
  border: 1px solid #e2e8e5;
}

.w2w-plp-faq-banner p {
  margin: 0;
  color: #363635;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.w2w-plp-faq-banner .btn-faq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  padding: 0 20px;
  border-radius: 8px;
  background: #30a67f;
  color: #ffffff;
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Pagination Row (Figma Node 9849:267921) */
.w2w-plp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.w2w-plp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 54px;
  padding: 0 32px;
  border-radius: 32px;
  border: 1px solid #b4b4b3;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.w2w-plp-page-btn--next {
  border-color: #30a67f;
}

.w2w-plp-page-btn:hover:not(.w2w-plp-page-btn--disabled) {
  border-color: #30a67f;
  background: #e6f4ef;
}

.w2w-plp-page-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #dcdcdb;
}

.w2w-plp-page-info {
  color: #000000;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .w2w-plp-pagination {
    gap: 40px;
  }
}

.w2w-plp-page-btn:hover {
  background: #30a67f;
  color: #ffffff;
}

.w2w-plp-page-info {
  color: #363635;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive adjustments */
/* Product Grid 7-column layout (Figma Node 9849:267780).
   archive-product.php emits rows sized for 7 columns (7 cards / 5 cards + promo), so the
   rows are flattened into one grid: narrower column counts then reflow instead of
   pushing the promo onto its own row, and `dense` backfills any hole the promo leaves. */
.w2w-plp-section .custom-product-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 24px 14px;
  width: 100%;
  align-items: stretch;
}

.w2w-plp-section .custom-product-grid>.product-row:not(.w2w-plp-bottom-promo-row) {
  display: contents;
}

/* Cards fill their grid track — fixed 220px left a right-side gap */
.w2w-plp-section .product-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  gap: 12px;
  border-radius: 20px;
}

/* Card spacing — Figma 9849:267783. Figma gaps are between trimmed text (cap top to
   baseline): 12px image→brand, 10px brand→name, 13.5px between groups, 12px badge→price.
   The margins below subtract each line box's leading. Cards stretch to the tallest card
   in the row, so the buttons take the slack and still line up across the row. */
@media (min-width: 1025px) {
  .w2w-plp-section .product-card {
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .w2w-plp-section .product-card .title-box {
    justify-content: flex-start !important;
    min-height: 0 !important;
    margin-top: 9px !important;
    row-gap: 1px !important;
  }

  .w2w-plp-section .product-card .title-box:not(:has(.product-brand)) {
    margin-top: 5px !important;
  }

  .w2w-plp-section .product-card .product-brand {
    margin: 0 !important;
  }

  .w2w-plp-section .product-card .offer-row {
    margin-top: 8px !important;
  }

  .w2w-plp-section .product-card .offer-badge {
    padding: 2px 4px 3px !important;
  }

  .w2w-plp-section .product-card.product .price-line {
    margin-top: -2px !important;
  }

  .w2w-plp-section .product-card.product .offer-row+.price-line {
    margin-top: 3px !important;
  }

  .w2w-plp-section .product-card .price-line .sqm,
  .w2w-plp-section .product-card .price-line sup {
    line-height: 0 !important;
  }

  .w2w-plp-section .product-card .swatches {
    margin-top: 6px !important;
  }

  .w2w-plp-section .product-card .product-swatches {
    gap: 8px !important;
  }

  .w2w-plp-section .product-card .loop-action-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 13.5px !important;
  }

  .w2w-plp-section .product-card .loop-action-box .btn-add-to-sample,
  .w2w-plp-section .product-card .loop-action-box .btn-add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 47px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }
}

.w2w-plp-section .product-card .product-thumb {
  width: 100%;
  height: 250px;
  border-radius: 20px;
}

.w2w-plp-section .product-card .product-thumb img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover;
  border-radius: 20px;
}

/* Discount chip + price row - Figma Node 9849:267784 */
@media (min-width: 981px) {
  .w2w-plp-section .product-card .offer-row {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .w2w-plp-section .product-card .offer-row .rrp {
    display: none !important;
  }

  .w2w-plp-section .product-card .offer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    border: 0;
    border-radius: 2px;
    background: #30a67f;
    color: #ffffff;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.12px;
    text-align: center;
    white-space: nowrap;
  }

  .w2w-plp-section .product-card .price-line {
    container-type: inline-size;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    margin: 0 !important;
    white-space: nowrap;
  }

  .w2w-plp-section .product-card .price-line a {
    flex: 0 0 auto;
    color: #363635;
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(15px, 10cqi, 22px);
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.22px;
    white-space: nowrap;
    text-decoration: none;
  }

  .w2w-plp-section .product-card .price-line a .sqm {
    font-size: 0.64em;
    color: inherit;
  }

  .w2w-plp-section .product-card .bestseller-regular-price {
    display: inline-block !important;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #444441;
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(11px, 6.5cqi, 16px);
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.2px;
    opacity: 0.6;
    white-space: nowrap;
    text-decoration: line-through;
  }

  .w2w-plp-section .product-card .bestseller-regular-price .woocommerce-Price-amount,
  .w2w-plp-section .product-card .bestseller-regular-price bdi {
    font-weight: 400;
  }

  .w2w-plp-section .product-card .bestseller-regular-price .sqm {
    font-size: 0.64em;
    font-weight: 400;
    color: inherit;
  }
}

/* Discount chip + price row, mobile - Figma Node 9849:272553 */
@media (max-width: 980px) {
  .w2w-plp-section .product-card .offer-row {
    display: flex;
    align-items: center;
    margin: 0 0 -4px;
    padding: 0;
  }

  .w2w-plp-section .product-card .offer-row .rrp {
    display: none !important;
  }

  .w2w-plp-section .product-card .offer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    border: 0;
    border-radius: 2px;
    background: #30a67f;
    color: #ffffff;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.12px;
    text-align: center;
    white-space: nowrap;
  }

  .w2w-plp-section .product-card .price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 0;
    width: 100%;
    margin: 0 !important;
  }

  .w2w-plp-section .product-card .price-line a {
    color: #363635;
    font-family: "Noto Sans", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.22px;
    white-space: nowrap;
    text-decoration: none;
  }

  .w2w-plp-section .product-card .price-line a .sqm {
    font-size: 14px;
    color: inherit;
  }

  .w2w-plp-section .product-card .bestseller-regular-price {
    display: inline-block !important;
    color: #444441;
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.64px;
    opacity: 0.6;
    white-space: nowrap;
    text-decoration: line-through;
  }

  .w2w-plp-section .product-card .bestseller-regular-price .woocommerce-Price-amount,
  .w2w-plp-section .product-card .bestseller-regular-price bdi {
    font-weight: 400;
  }

  .w2w-plp-section .product-card .bestseller-regular-price .sqm {
    font-size: 10px;
    font-weight: 400;
    color: inherit;
  }
}

/* Even rows with promo banner (spans 2 of 7 columns ≈ 446px @ 1600) */
/* Pinned to the last two columns at every column count; `dense` fills the cells before it */
.w2w-plp-section .product-row.even-row .promo-card {
  grid-column: -3 / -1;
  min-width: 0;
  width: auto;
  border-radius: 40px;
  background: #e6f4ef;
  box-shadow: none;
  padding: 24px;
  gap: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}

/* Figma gaps are 49px between trimmed text; margins subtract each line box's leading */
.w2w-plp-section .promo-card .promo-title {
  color: #1f8462;
  font-family: "Noto Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.14px;
  margin: 0 0 32.6px;
}

.w2w-plp-section .promo-card .promo-copy {
  color: #1f8462;
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.64px;
  margin: 0 0 43.2px;
}

.w2w-plp-section .promo-card .promo-copy p {
  margin: 0;
}

/* Prices sit on the last copy line without growing it */
.w2w-plp-section .promo-card .promo-copy s,
.w2w-plp-section .promo-card .promo-copy del {
  color: rgba(54, 54, 53, 0.5);
  font-family: Lato, sans-serif;
  font-size: 22px;
  line-height: 0;
  letter-spacing: 0.52px;
  text-decoration: line-through 2px #1f8462;
}

.w2w-plp-section .promo-card .promo-copy .promo-price {
  color: #1f8462;
  font-family: "Noto Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 0;
  letter-spacing: 0.22px;
}

.w2w-plp-section .promo-card a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 168px;
  height: 51px;
  margin: 0;
  padding: 0 20px;
  gap: 20px;
  border-radius: 20px;
  border: 1px solid rgba(54, 54, 53, 0.5);
  background: rgba(48, 166, 127, 0.8);
  color: #e6f4ef;
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.w2w-plp-section .promo-card a.btn:hover {
  background: #30a67f;
  color: #ffffff;
  border-color: #363635;
  text-decoration: none;
}

/* Promo cards and bottom banner */
.w2w-plp-section .w2w-plp-bottom-promo-row {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
}

.w2w-plp-section .w2w-plp-bottom-promo-row .promo-card {
  width: 100%;
  grid-column: 1 / -1;
}

/* Grid Breakpoints */
@media (max-width: 1600px) {
  .w2w-plp-section .custom-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .w2w-plp-section .custom-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {

  .w2w-plp-section .product-row,
  .w2w-plp-section .product-row.odd-row,
  .w2w-plp-section .product-row.even-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* On mobile: Hide row-level inline promo cards so products stay in clean 2-col flow */
  .w2w-plp-section .promo-card.w2w-plp-inline-promo,
  .w2w-plp-section .product-row.even-row .promo-card.w2w-plp-inline-promo {
    display: none !important;
  }

  /* Show dedicated single bottom promo banner matching Figma Node 9849:272566 */
  .w2w-plp-section .w2w-plp-bottom-promo-row {
    display: flex !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  .w2w-plp-section .w2w-plp-bottom-promo-row .promo-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    border-radius: 20px !important;
    background: #e6f4ef !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  .w2w-plp-section .promo-card .promo-title {
    color: #1f8462 !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 28px !important;
    letter-spacing: -0.12px !important;
    margin: 0 !important;
    text-transform: capitalize !important;
  }

  .w2w-plp-section .promo-card .promo-copy {
    color: #1f8462 !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    letter-spacing: 0.64px !important;
    margin: 0 !important;
  }

  .w2w-plp-section .promo-card a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 54px !important;
    padding: 0 20px !important;
    border-radius: 20px !important;
    background: rgba(48, 166, 127, 0.8) !important;
    border: 1px solid rgba(54, 54, 53, 0.5) !important;
    color: #e6f4ef !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    letter-spacing: 0.2px !important;
    margin: 0 !important;
  }

  .w2w-plp-section .custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  .w2w-plp-section .product-row,
  .w2w-plp-section .product-row.odd-row,
  .w2w-plp-section .product-row.even-row {
    display: contents !important;
  }

  .w2w-plp-section .custom-product-grid .product-card {
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .w2w-plp-pagination {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 599px) {
  .w2w-plp-section .custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Beat legacy responsive.css flex 50% cards on mobile PLP */
@media (max-width: 767px) {
  .w2w-plp-section .custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .w2w-plp-section .custom-product-grid .product-row.odd-row,
  .w2w-plp-section .custom-product-grid .product-row.even-row {
    display: contents !important;
  }

  .w2w-plp-section .custom-product-grid .product-card,
  .w2w-plp-section .custom-product-grid .product-row .product-card {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 10px 8px !important;
    gap: 0px !important;
  }

  .product-card .title-box {
    min-height: 40px;
  }

  .product-card .product-title {
    min-height: 48px;
  }

  .product-card .swatches {
    margin: 6px 0px;
  }

  .w2w-plp-section .product-card .product-thumb {
    height: 180px !important;
    margin-bottom: 4px;
  }

  .w2w-plp-section .product-card .product-thumb img {
    height: 180px !important;
  }

  .w2w-plp-section .product-card .title-box {
    row-gap: 0;
  }

  .w2w-plp-section .product-card .product-brand {
    color: #1f8462 !important;
    line-height: 16px;
  }

  .w2w-plp-section .product-card .product-swatches {
    flex-wrap: wrap;
    gap: 8px;
  }

  .w2w-plp-section .product-card .product-swatches .swatch {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  .w2w-plp-section .product-card .product-swatches .more-swatches a {
    color: #444441;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.12px;
    opacity: 0.6;
  }

  .w2w-plp-section .product-card .more-swatches-label {
    display: none;
  }
}

@media (max-width: 374px) {

  .w2w-plp-section .product-card .loop-action-box .btn-add-to-sample,
  .w2w-plp-section .product-card .loop-action-box .btn-add-to-cart {
    font-size: 16px !important;
  }
}

@media (max-width: 1440px) {

  .w2w-plp-section .container,
  .post-type-archive-product #primary .w2w-plp-section .container,
  .post-type-archive-product .w2w-plp-section .container,
  .woocommerce-shop #primary .w2w-plp-section .container,
  .archive.tax-product_cat #primary .w2w-plp-section .container,
  .archive.tax-product_cat .w2w-plp-section .container {
    padding: 0 40px !important;
  }
}

@media (max-width: 980px) {

  .w2w-plp-section .container,
  .post-type-archive-product #primary .w2w-plp-section .container,
  .post-type-archive-product .w2w-plp-section .container,
  .woocommerce-shop #primary .w2w-plp-section .container,
  .archive.tax-product_cat #primary .w2w-plp-section .container,
  .archive.tax-product_cat .w2w-plp-section .container {
    padding: 0 16px !important;
  }

  /* Hide Desktop Controls Row on Mobile */
  .w2w-plp-controls-row {
    display: none !important;
  }

  /* Show Figma Mobile Toolbar (Node 9849:272537) */
  .w2w-plp-mobile-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  /* Mobile Category Dropdown (Carpets v) */
  .w2w-plp-mobile-cat-dropdown {
    position: relative;
    flex: 0 0 auto;
  }

  .w2w-plp-mobile-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #363635;
    background: #e6f4ef;
    color: #363635;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* Category menu mirrors the mobile Sort dropdown */
  .w2w-plp-mobile-cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 170px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin: 0;
    padding: 20px 5px;
    border: 0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 12px -2px rgba(54, 54, 53, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    list-style: none;
    z-index: 999;
    box-sizing: border-box;
  }

  .w2w-plp-mobile-cat-menu.open {
    display: flex;
  }

  .w2w-plp-mobile-cat-menu li {
    display: flex;
    align-items: center;
    align-self: stretch;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .w2w-plp-mobile-cat-menu li:hover {
    background: #e6f4ef;
  }

  .w2w-plp-mobile-cat-menu li a {
    display: block;
    padding: 0;
    color: #000000;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
  }

  .w2w-plp-mobile-cat-menu li a:hover {
    background: transparent;
    color: #000000;
  }

  .w2w-plp-mobile-cat-menu li:has(> a.active),
  .w2w-plp-mobile-actions .sort-dropdown li:has(> a.active) {
    background: #e6f4ef;
  }

  .w2w-plp-mobile-cat-menu li a.active,
  .w2w-plp-mobile-actions .sort-dropdown li a.active {
    background: transparent;
    font-weight: 700;
  }

  /* Mobile Actions: Sort button + Filter icon */
  .w2w-plp-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Sort button (Node 9849:272543) */
  .w2w-plp-mobile-actions .custom-sorting {
    position: relative;
  }

  .w2w-plp-mobile-actions .custom-sorting .sort-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(54, 54, 53, 0.5) !important;
    background: #ffffff !important;
    color: #363635 !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* Prevent legacy responsive.css from rendering a duplicate ":after" "Sort" text on mobile */
  .w2w-plp-mobile-actions .custom-sorting .sort-toggle::after {
    content: none !important;
    display: none !important;
  }

  .w2w-plp-mobile-actions .custom-sorting .sort-toggle .sort-icon img {
    width: 20px;
    height: 20px;
  }

  /* Filter Icon Button (Node 9849:272546) */
  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap {
    flex: 0 0 auto;
  }

  /* Hide the duplicate desktop button rendered by shortcode on mobile */
  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap .btn-filters.sm-hidden {
    display: none !important;
  }

  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap .btn-filters,
  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap button,
  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(54, 54, 53, 0.5) !important;
    background: #ffffff !important;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* Hide filter text label on mobile, leaving just the icon */
  .w2w-plp-mobile-actions .w2w-plp-filter-btn-wrap span {
    display: none !important;
  }

  .w2w-plp-toolbar {
    gap: 16px;
    margin-bottom: 24px;
  }

  /* FAQ banner on mobile (Node 9849:272547) */
  .w2w-plp-faq-banner {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 12px 16px !important;
    gap: 8px !important;
    align-items: flex-end !important;
    background: #f5fbf9 !important;
    border-radius: 10px !important;
    border: none !important;
  }

  .w2w-plp-faq-banner p {
    font-size: 14px !important;
    line-height: 24px !important;
    color: #363635 !important;
    width: 100% !important;
  }

  .w2w-plp-faq-banner .btn-faq {
    align-self: flex-end !important;
    background: transparent !important;
    color: #30a67f !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    height: auto !important;
    text-decoration: none !important;
  }

  /* Mobile 2-column products grid styling (Figma 9849:272553) */
  .w2w-plp-section .product-card {
    justify-content: flex-start !important;
  }

  .w2w-plp-section .product-card .loop-action-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
  }

  .w2w-plp-section .product-card .loop-action-box .btn-add-to-sample,
  .w2w-plp-section .product-card .loop-action-box .btn-add-to-cart {
    width: 100% !important;
    height: 47px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 32px !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .w2w-plp-section .product-card .loop-action-box .btn-add-to-sample {
    border: 1px solid #30a67f !important;
    background: #ffffff !important;
    color: #30a67f !important;
  }

  .w2w-plp-section .product-card .loop-action-box .btn-add-to-cart {
    border: 0 !important;
    background: #30a67f !important;
    color: #e6f4ef !important;
  }

  /* Filter Popup Responsive Overlay & Modal Adjustments */
  .w2wfp-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }

  .w2wfp-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .w2wfp-modal-card {
    padding: 16px !important;
    border-radius: 16px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .w2wfp-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 12px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .w2wfp-clear {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
    border: 1px solid #7c7c7a !important;
    background: transparent !important;
    color: #7c7c7a !important;
    white-space: nowrap !important;
    height: auto !important;
    min-height: unset !important;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
  }

  .w2wfp-sections {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 4px !important;
  }

  .w2wfp-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    max-height: 160px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    margin-bottom: 0 !important;
  }

  /* Hide empty filter section containers if any exist */
  .w2wfp-section:empty,
  .w2wfp-section:has(.w2wfp-chips:empty) {
    display: none !important;
  }

  .w2wfp-footerbar {
    display: flex !important;
    gap: 12px !important;
    justify-content: space-between !important;
    margin-top: 16px !important;
    padding-top: 8px !important;
  }

  .w2wfp-cancel,
  .w2wfp-apply {
    flex: 1 !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    border-radius: 24px !important;
    justify-content: center !important;
  }
}