body .dgwt-wcas-search-wrapp {
  margin-bottom: 0;
}

body .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
  border-radius: 8px;
}

/* Tablet & Mobile: override FiboSearch default 10px padding to match Figma */
@media (max-width: 999px) {
  body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    padding: 8px 16px;
  }
}

body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  height: 44px;
  min-height: 44px;
  border: 1px solid #2b9947 !important;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 26px;
  color: #59402E;
  background-color: #fff;
}

body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover {
  background-color: #fff;
}

body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
  color: #59402E;
  opacity: 0.6;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 26px;
  font-style: normal;
}

body .dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
  border-color: #2b9947 !important;
  border-radius: 8px;
}

body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent !important;
}

body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit svg {
  width: 20px;
  height: 20px;
}

body .dgwt-wcas-style-pirx.dgwt-wcas-has-submit .dgwt-wcas-search-submit svg path {
  fill: #59402E;
}

/* ==========================================================================
   Desktop: Search Results Layout
   2-column grid: sidebar (categories + blog) | products
   ========================================================================== */

body .dgwt-wcas-suggestions-wrapp {
  max-width: 1664px;
  width: 100% !important;
  margin: 0 auto;
  left: 0 !important;
  right: 0 !important;

  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 0;

  padding: 0 24px 24px 24px !important;
  border-radius: 12px !important;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.12);
  background: #fff;
  overflow: hidden;
}

/* Categories — grid col 1, row 1 */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Blog/Posts — grid col 1, row 2. Below categories in sidebar */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  border-top: 1px solid #e4e5e7;
  padding-right: 24px;
  padding-top: 20px;
  margin-top: 20px;
  box-sizing: border-box;
}

/* Products — grid col 2, spans both rows; border-left matches full products height */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #e4e5e7;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #939598;
  line-height: 40px;
  margin: 0;
  padding: 0;
}

/* Category links */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories .dgwt-wcas-suggestion .dgwt-wcas-st {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #4a4a4a;
}

/* Blog links */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog .dgwt-wcas-suggestion .dgwt-wcas-st {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #353638;
}

/* Product title */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-st {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #4a4a4a;
}

/* Sale price (red) */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sp ins {
  color: #ef4444;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
}

/* Strikethrough original price */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sp del {
  color: #4a4a4a;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories .dgwt-wcas-st-breadcrumbs {
  display: none;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
  line-height: 24px;
  padding: 6px 0;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover {
  text-decoration: none !important;
}

/* Product grid — 4 columns with gap */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-section-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Product cards — column layout (no border on desktop per Figma) */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product {
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  resize: none !important;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-sp {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* Price range — keep dash separator and amounts inline */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sp > span {
  display: inline !important;
}

/* Regular price (non-sale) — Barlow Medium per Figma */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sp .woocommerce-Price-amount {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 24px;
}

/* Product content wrapper — stack vertically */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
  flex-direction: column;
  padding: 8px 0;
  row-gap: 4px;
  width: 100%;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp .dgwt-wcas-sp {
  padding-left: 0;
}

/* Product image — full width, 180px height, cover */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-si {
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  overflow: hidden !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-si img {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 180px !important;
  max-height: 180px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  width: 100% !important;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product.dgwt-wcas-sp {
  padding: 0;
}

/* Product description — hidden in search results per design */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sd {
  display: none;
}

/* "SEE ALL PRODUCTS" button — inline-flex, not full width */
body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-view-all {
  background-color: #2b9947;
  color: #fff !important;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  text-decoration: none !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: auto !important;
  gap: 6px !important;
  height: 30px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  margin-top: 0 !important;
  transition: background-color 0.15s ease;
}

body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-view-all:hover {
  background-color: #237a3a;
}

/* ==========================================================================
   Tablet/Mobile: Search Results Layout
   Single column, section dividers, 2-col product grid
   ========================================================================== */

@media (max-width: 1024px) {
  /* --- Inline dropdown mode (non-overlay) --- */
  body .dgwt-wcas-suggestions-wrapp {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
    border-radius: 12px !important;
    box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    overflow-y: auto;
    max-height: 70vh;
  }

  /* Section dividers between categories/products/blog */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-section {
    margin-bottom: 16px;
  }

  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-section + .dgwt-wcas-suggestion-section {
    border-top: 1px solid #ededed;
    padding-top: 16px;
  }

  /* Remove sidebar border — single column */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories,
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog {
    border-right: none;
    padding-right: 0;
  }

  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog {
    border-top: 1px solid #ededed;
    padding-top: 16px;
  }

  /* Product grid — 3 columns on tablet */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-section-content,
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 13px !important;
  }

  /* Product cards — column layout */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 8px;
    border-radius: 8px !important;
    border: none !important;
    background: #fff;
    overflow: hidden;
  }

  /* Product image — responsive, contained */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si {
    width: 100% !important;
    max-width: 145px;
  }

  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
    width: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
  }

  /* Product content wrapper */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
    flex-direction: column !important;
    padding: 0 !important;
    row-gap: 12px !important;
    width: 100%;
  }

  /* Product price */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
    padding: 0 !important;
  }

  /* "SEE ALL PRODUCTS" link — tablet/mobile */
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-view-all,
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-view-all {
    text-decoration: none !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 30px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    margin-top: 12px !important;
  }

  /* --- Overlay mode (mobile fullscreen search) --- */
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp {
    top: 68px !important;
    padding: 24px;
    display: grid !important;
    grid-template-columns: 1fr;
    padding-bottom: 50px;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
  }

  /* Section ordering in overlay */
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products {
    grid-column: 1;
  }

  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories {
    grid-row: 1;
    height: auto;
  }

  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products {
    grid-row: 2;
  }

  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog {
    grid-row: 3;
  }

  /* Section dividers & sidebar border removal — applies to both inline and overlay */
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-categories,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-blog {
    border-right: none;
    padding-right: 0;
  }

  /* --- Overlay bar styles --- */
  .dgwt-wcas-om-bar button.dgwt-wcas-om-return,
  .dgwt-wcas-om-bar button.dgwt-wcas-om-return:active,
  .dgwt-wcas-om-bar button.dgwt-wcas-om-return:focus,
  .dgwt-wcas-om-bar button.dgwt-wcas-om-return:hover {
    background-color: transparent !important;
  }

  .js-dgwt-wcas-overlay-mobile .js-dgwt-wcas-om-bar {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 22px;
    height: auto;
    background: var(--background-1, #fff);
    box-shadow: 0 -1px 0 0 rgba(225, 227, 229, 0.5) inset;
  }

  .js-dgwt-wcas-overlay-mobile .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    border-radius: 8px !important;
    border: 1px solid #2b9947 !important;
  }

  .js-dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-si {
    max-width: 145px;
  }

  .js-dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product .dgwt-wcas-si img {
    border-radius: var(--Border-border-6, 6px);
  }
}

/* ==========================================================================
   Mobile: 2-column grid, no card borders
   ========================================================================== */

@media (max-width: 689px) {
  /* 2-column product grid on mobile (≤689px); tablet (690–1024px) uses 3 columns */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-section-content,
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-layout-grid,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-section-products .dgwt-wcas-section-content,
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .dgwt-wcas-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Remove product card borders on mobile */
  body .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-product {
    border: none !important;
  }
}

/* ==========================================================================
   Small Mobile: Adjustments
   ========================================================================== */

@media (max-width: 425px) {
  /* Smaller padding */
  body .dgwt-wcas-suggestions-wrapp {
    padding: 20px 16px 16px !important;
  }
}
