/* ================================
   CART + ACCOUNT ICONS
================================ */

/* Cart + account icon group */

.pbd-cart-account-icons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
  position: relative !important;
  z-index: 99999 !important;
  overflow: visible !important;
  line-height: 1 !important;
}

/* Cart and account clickable icons */

.pbd-header-cart-icon,
.pbd-header-account-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  min-height: 31px !important;
  max-width: 31px !important;
  max-height: 31px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  position: relative !important;
  line-height: 1 !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

/* Icon SVG styling */

.pbd-cart-svg svg,
.pbd-account-svg svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
  overflow: visible !important;
}

/* Cart count badge */

.pbd-cart-count {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #c9973f !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

/* Hover effect */

.pbd-header-cart-icon:hover svg,
.pbd-header-account-icon:hover svg {
  opacity: 0.8 !important;
}

/* Nicepage anti-cutoff fix */

.u-header,
.u-header .u-sheet,
.u-header .u-group,
.u-header .u-container-layout,
.u-header .u-shortcode,
.u-header .u-html {
  overflow: visible !important;
}

.pbd-cart-account-icons,
.pbd-cart-account-icons * {
  box-sizing: border-box !important;
}

/* ================================
   MOBILE CART + ACCOUNT SIZE FIX
   Made bigger by 4px
================================ */

@media only screen and (max-width: 991px) {
  html body .pbd-cart-account-icons {
    gap: 8px !important;
    line-height: 1 !important;
  }

  html body .pbd-header-cart-icon,
  html body .pbd-header-account-icon {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    max-width: 27px !important;
    max-height: 27px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body .pbd-cart-svg,
  html body .pbd-account-svg {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .pbd-cart-svg svg,
  html body .pbd-account-svg svg {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
    stroke-width: 1.75 !important;
  }

  html body .pbd-cart-count {
    top: -7px !important;
    right: -8px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    line-height: 18px !important;
  }
}

/* Extra small phones */

@media only screen and (max-width: 575px) {
  html body .pbd-cart-account-icons {
    gap: 6px !important;
  }

  html body .pbd-header-cart-icon,
  html body .pbd-header-account-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  html body .pbd-cart-svg,
  html body .pbd-account-svg {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
  }

  html body .pbd-cart-svg svg,
  html body .pbd-account-svg svg {
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
    stroke-width: 1.65 !important;
  }

  html body .pbd-cart-count {
    top: -7px !important;
    right: -7px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    line-height: 17px !important;
  }
}

/* ================================
   EXISTING WOOCOMMERCE CSS
================================ */

.count {
  background-color: #ffffff;
  color: #473a3a;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 24px;
  background-color: #ffffff;
}

.woocommerce ul.products li.product .price {
  font-size: 18px;
  font-weight: 500;
  background-color: #ffffff;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover {
  background-color: #C6A15B;
  color: #000000;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button {
  background-color: #C6A15B;
  color: #000000;
  font-weight: 300;
}

.woocommerce ul.products li.product .button {
  background-color: #C6A15B;
}

.woocommerce ul.products li.product a {
  background-color: #faf5f5;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title {
  font-size: 24px;
}

.count {
  display: none !important;
}

.woocommerce ul.products li.product .button {
  background-color: #C6A15B;
}

/* Hover */

.woocommerce ul.products li.product .button:hover {
  background-color: #E8D8C3 !important;
}

/* Selected / active / focused */

.woocommerce ul.products li.product .button:focus,
.woocommerce ul.products li.product .button:active {
  background-color: #E8D8C3 !important;
}

/* ================================
   RELATED PRODUCTS SECTION ALIGNMENT
================================ */

#pbd-related-products-section {
  width: 100%;
  clear: both;
}

.pbd-related-products-wrap {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  text-align: left !important;
}

/* Main heading */

.pbd-related-products-title {
  text-align: left !important;
  font-size: 30px;
  font-weight: 500;
  color: #130000;
  margin-bottom: 25px;
}

/* Hide default WooCommerce "Related products" heading */

.pbd-related-products-wrap .related.products > h2 {
  display: none !important;
}

/* Product grid: 4 desktop/laptop */

.pbd-related-products-wrap ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Remove black bullet dots */

.pbd-related-products-wrap ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
  text-align: left !important;
}

.pbd-related-products-wrap ul.products li.product::before,
.pbd-related-products-wrap ul.products li.product::after {
  display: none !important;
}

/* Product image */

.pbd-related-products-wrap ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  margin-bottom: 18px !important;
}

/* Product title */

.pbd-related-products-wrap .woocommerce-loop-product__title {
  text-align: left !important;
  color: #C6A15B !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  margin: 0 0 10px !important;
}

/* Price colour */

.pbd-related-products-wrap .price,
.pbd-related-products-wrap .price span,
.pbd-related-products-wrap .price bdi {
  color: #130000 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-align: left !important;
}

/* Button style */

.pbd-related-products-wrap .button {
  background-color: #C6A15B !important;
  color: #130000 !important;
  border: none !important;
  border-radius: 8px !important;
  min-width: 180px !important;
  height: 43px !important;
  padding: 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin-top: 14px !important;
}

.pbd-related-products-wrap .button:hover,
.pbd-related-products-wrap .button:focus,
.pbd-related-products-wrap .button:active {
  background-color: #E8D8C3 !important;
  color: #130000 !important;
}

/* Tablet landscape + mobile: 2 next to each other */

@media (max-width: 1024px) {
  .pbd-related-products-wrap ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .pbd-related-products-title {
    font-size: 24px !important;
  }

  .pbd-related-products-wrap .button {
    min-width: 100% !important;
    width: 100% !important;
  }
}

.u-price-wrapper .u-price,
.u-price-wrapper .u-old-price {
  margin-top: auto;
  margin-bottom: auto;
  white-space: nowrap !important;
  display: inline-block !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover {
  background-color: #C6A15B;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
  background-color: #C6A15B;
  font-weight: 400;
}

.woocommerce ul.products li.product a img {
  background-color: #ffffff;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  background-color: #fffafa;
}
.u-backlink.u-clearfix.u-grey-80 {
    display: none !important;}

/* Floating side search button */
.pbd-floating-search {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px 0 0 14px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FiboSearch icon inside floating box */
.pbd-floating-search .dgwt-wcas-search-wrapp {
    min-width: auto !important;
    width: 48px !important;
    margin: 0 !important;
}

.pbd-floating-search .dgwt-wcas-search-icon {
    color: #000000 !important;
    width: 22px !important;
    height: 22px !important;
}

/* Remove extra spacing */
.pbd-floating-search form,
.pbd-floating-search .dgwt-wcas-search-form {
    margin: 0 !important;
}

/* Mobile */
@media only screen and (max-width: 768px) {
    .pbd-floating-search {
        width: 42px !important;
        height: 42px !important;
        top: 58% !important;
    }

    .pbd-floating-search .dgwt-wcas-search-wrapp {
        width: 42px !important;
    }

    .pbd-floating-search .dgwt-wcas-search-icon {
        width: 19px !important;
        height: 19px !important;
    }
}
/* Remove Nicepage button borders from footer links */
.u-footer .u-btn,
.u-footer a.u-btn,
footer .u-btn,
footer a.u-btn {
  border: none !important;
  border-color: transparent !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
}

/* Optional: keep links clean on hover/focus */
.u-footer .u-btn:hover,
.u-footer .u-btn:focus,
.u-footer a.u-btn:hover,
.u-footer a.u-btn:focus,
footer .u-btn:hover,
footer .u-btn:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #d4af37 !important; /* gold hover */
}