/*
Theme Name: Sullivan Child Theme
Template: sullivan
Version: 1.0
Author: Eduardo Romero
Author URI: https://www.eduardorq.es
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
*/


/* =========================================================
   INDEX
   =========================================================
   01. Design tokens
   02. Fonts
   03. Base typography / global styles
   04. Layout / containers
   05. Header / navigation - shared
   06. Header cart / account (shared + responsive)
   09. TranslatePress - mobile menu integration
   10. WooCommerce - global
   11. WooCommerce - product grid
   12. WooCommerce - single product spacing
   13. Product image hover
   14. Sullivan item-grid products
   15. WooCommerce tabs
   16. Product archive / filters
   16b. Product grids
   17. Footer
   18. Search layout
   19. Misc
   ========================================================= */


/* =========================================================
   01. Design tokens
   ========================================================= */

:root {
  --container-max-width: 1280px;
  --container-width: 90%;

  --color-text: #666666;
  --color-text-hover: #838383;
  --color-black: #000;
  --color-white: #fff;

  --font-body: "Brandon-Regular", serif;
  --font-title-light: "Brandon-GrotesqueLight", serif;
  --font-title-bold: "Brandon-GrotesqueBold", serif;
  --font-alt: "Noticia Text", serif;

  --font-size-body: 13px;
  --line-height-body: 1.42857143;

  --pill-radius: 9999px;

  --spacing-site-content: 40px;
  --spacing-gap: 24px;

  --sale-badge-z: 9999;
	
  --search-layer-z: 90000;
  --search-results-layer-z: 90001;
  --mobile-header-search-z: 70003;

  --product-thumb-ratio-padding: 150%; /* 2:3 */
}


/* =========================================================
   02. Fonts
   ========================================================= */

@font-face {
  font-family: "Brandon-GrotesqueLight";
  src: url("../../../wp-includes/fonts/Brandon_Grotesque_light.eot");
  src:
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.eot?#iefix") format("embedded-opentype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.otf") format("opentype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.svg") format("svg"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.ttf") format("truetype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.woff") format("woff"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_light.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Brandon-GrotesqueBold";
  src: url("../../../wp-includes/fonts/Brandon_Grotesque_bold.eot");
  src:
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.eot?#iefix") format("embedded-opentype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.otf") format("opentype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.svg") format("svg"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.ttf") format("truetype"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.woff") format("woff"),
    url("../../../wp-includes/fonts/Brandon_Grotesque_bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Brandon-Regular";
  src: url("../../../wp-includes/fonts/Brandon_reg.eot");
  src:
    url("../../../wp-includes/fonts/Brandon_reg.eot?#iefix") format("embedded-opentype"),
    url("../../../wp-includes/fonts/Brandon_reg.otf") format("opentype"),
    url("../../../wp-includes/fonts/Brandon_reg.svg") format("svg"),
    url("../../../wp-includes/fonts/Brandon_reg.ttf") format("truetype"),
    url("../../../wp-includes/fonts/Brandon_reg.woff") format("woff"),
    url("../../../wp-includes/fonts/Brandon_reg.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Font Awesome 5";
  src: url("../../../wp-includes/fonts/fontawesome-webfont.eot?v=4.5.0");
  src:
    url("../../../wp-includes/fonts/fontawesome-webfont.eot?#iefix&v=4.5.0") format("embedded-opentype"),
    url("../../../wp-includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),
    url("../../../wp-includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"),
    url("../../../wp-includes/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype"),
    url("../../../wp-includes/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular") format("svg");
  font-weight: 400;
  font-style: normal;
}


/* =========================================================
   03. Base typography / global styles
   ========================================================= */

body,
p {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
  color: var(--color-text) !important;
}

h5,
h6 {
  font-family: var(--font-alt) !important;
  line-height: var(--line-height-body) !important;
  color: var(--color-text) !important;
}

/* Link hover styling */
body a:hover,
.single-pagination a:hover .title,
.site-nav .current-menu-item > a,
.content-search a:hover h2,
.sullivan-widget-list a:hover .title,
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-item > div > a,
li.product a:hover .woocommerce-loop-product__title {
  text-decoration: none !important;
  color: var(--color-text-hover) !important;
}


/* =========================================================
   04. Layout / containers
   ========================================================= */

.section-inner.thin {
  max-width: var(--container-max-width) !important;
}

#site-content {
  padding: 0 !important;
}

.section-inner + .section-inner {
  margin-top: 0 !important;
}

.body-inner {
  background: var(--color-white) !important;
}


/* =========================================================
   05. Header / navigation - shared
   ========================================================= */

.site-header {
  max-width: var(--container-max-width) !important;
  width: var(--container-width) !important;
  border-bottom: 2px solid var(--color-black) !important;

  position: relative !important;
  z-index: 20000 !important;
  overflow: visible !important;
}

.site-header .section-inner,
.site-header .section-inner.thin {
  position: relative !important;
  overflow: visible !important;
}

.site-nav {
  position: relative !important;
  z-index: 20001 !important;
  overflow: visible !important;
}

.site-nav ul {
  padding: 10px 0 0 0 !important;
}

.site-nav,
.site-header .toggle p,
.site-nav ul a,
.mobile-menu li a,
.mobile-menu .trp-language-switcher-container > a,
.mobile-menu .trp-language-switcher-container .sub-menu a,
input[type="search"] {
  font-family: var(--font-body) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  font-size: 11px !important;
  font-weight: normal !important;
  line-height: var(--line-height-body) !important;
}

.site-nav ul a,
.site-nav ul li:first-child::before,
.site-nav ul::after {
  background: #f4efe9 !important;
}

.site-nav li a {
  color: var(--color-black) !important;
}

/* Submenus / dropdowns */
.site-nav ul,
.site-nav li {
  overflow: visible !important;
}

.site-nav .sub-menu,
.site-nav ul ul {
  position: absolute !important;
  z-index: 20002 !important;
}

/* Header icons and old WPML selector position */
.header-search,
.header-account,
.header-cart,
.wpml-ls-statics-shortcode_actions.wpml-ls {
  top: 10% !important;
  position: absolute !important;
  transform: translateY(-50%) !important;
  left: unset !important;
}

.wpml-ls-statics-shortcode_actions.wpml-ls {
  left: 0 !important;
}

/* =========================================================
   06. Header cart / account
   ========================================================= */

/* Header cart layering */
.site-header .header-cart {
  position: absolute !important;
  z-index: 30000 !important;
  overflow: visible !important;
}

.site-header .header-cart > a,
.site-header .header-cart .cart-toggle,
.site-header .header-cart .toggle {
  position: relative !important;
  z-index: 30001 !important;
  pointer-events: auto !important;
}

.site-header .header-cart .widget_shopping_cart,
.site-header .header-cart .cart-dropdown,
.site-header .header-cart .mini-cart {
  z-index: 30002 !important;
  background: var(--color-white) !important;
}

.site-header .header-cart .widget_shopping_cart_content,
.site-header .header-cart .woocommerce-mini-cart,
.site-header .header-cart .cart_list,
.site-header .header-cart .woocommerce-mini-cart-item,
.site-header .header-cart .woocommerce-mini-cart__total,
.site-header .header-cart .woocommerce-mini-cart__buttons {
  position: static !important;
  z-index: auto !important;
  transform: none !important;
}

/* Account dropdown */
.site-header .header-account {
  position: absolute !important;
  z-index: 30000 !important;
  overflow: visible !important;
}

.site-header .header-account > a,
.site-header .header-account .account-toggle,
.site-header .header-account .toggle {
  position: relative !important;
  z-index: 30001 !important;
  pointer-events: auto !important;
}

.site-header .header-account > ul,
.site-header .header-account .sub-menu,
.site-header .header-account .account-menu,
.site-header .header-account .account-dropdown,
.site-header .header-account .my-account-menu,
.site-header .header-account .woocommerce-MyAccount-navigation {
  z-index: 30002 !important;
  background: var(--color-white) !important;
  pointer-events: auto !important;
}

.site-header .header-account ul,
.site-header .header-account li {
  overflow: visible !important;
}

/* Mini-cart content shared by desktop and mobile */
.site-header .header-cart .widget_shopping_cart_content {
  display: block !important;
  width: 100% !important;
  background: var(--color-white) !important;
}

.site-header .header-cart .woocommerce-mini-cart,
.site-header .header-cart ul.cart_list {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: var(--color-white) !important;
}

.site-header .header-cart .woocommerce-mini-cart-item,
.site-header .header-cart ul.cart_list li {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) 24px !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 0 14px !important;
  margin: 0 0 14px !important;
  border-bottom: 1px solid rgba(0,0,0,0.10) !important;
  background: var(--color-white) !important;
}

.site-header .header-cart .woocommerce-mini-cart-item > a:not(.remove),
.site-header .header-cart ul.cart_list li > a:not(.remove) {
  grid-column: 2 / 3 !important;
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.site-header .header-cart .woocommerce-mini-cart-item img,
.site-header .header-cart ul.cart_list li img {
  width: 74px !important;
  height: 92px !important;
  max-width: 74px !important;
  object-fit: cover !important;
  object-position: center top !important;
  float: none !important;
  margin: 0 !important;
}

.site-header .header-cart .woocommerce-mini-cart-item .remove,
.site-header .header-cart ul.cart_list li .remove {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
}

.site-header .header-cart .woocommerce-mini-cart-item dl,
.site-header .header-cart .woocommerce-mini-cart-item .variation,
.site-header .header-cart ul.cart_list li dl,
.site-header .header-cart ul.cart_list li .variation {
  grid-column: 2 / 4 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: var(--color-text) !important;
}

.site-header .header-cart .woocommerce-mini-cart-item .quantity,
.site-header .header-cart ul.cart_list li .quantity {
  grid-column: 2 / 4 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: var(--color-text) !important;
  text-align: left !important;
}

.site-header .header-cart .woocommerce-mini-cart__total,
.site-header .header-cart .total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px 0 14px !important;
  background: var(--color-white) !important;
  border-bottom: 0 !important;
}

.site-header .header-cart .woocommerce-mini-cart__buttons,
.site-header .header-cart .buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--color-white) !important;
}

.site-header .header-cart .woocommerce-mini-cart__buttons a,
.site-header .header-cart .buttons a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-radius: var(--pill-radius) !important;
  background: #111 !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
}

/* Desktop cart dropdown */
@media (min-width: 1001px) {
  .site-header .header-cart .widget_shopping_cart,
  .site-header .header-cart .cart-dropdown,
  .site-header .header-cart .mini-cart {
    position: absolute !important;
    top: calc(100% + 18px) !important;
    right: 0 !important;
    left: auto !important;
    width: 360px !important;
    max-width: 360px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.14) !important;
    padding: 16px !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .shop_table.cart .coupon input[type="text"] {
    margin: 0 10px 0 0 !important;
  }

  input[type="text"] {
    border: 1px solid rgb(225, 225, 229) !important;
    border-image: none !important;
  }
}

/* Mobile header + cart dropdown */
@media (max-width: 1000px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    position: relative !important;
    z-index: 50000 !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .site-header .section-inner,
  .site-header .section-inner.thin {
    position: relative !important;
    z-index: 50001 !important;
    overflow: visible !important;
  }

  .site-header .nav-toggle,
  .site-header .menu-toggle,
  .site-header .toggle.nav-toggle,
  .site-header .toggle-menu,
  .site-header .toggle {
    position: relative !important;
    z-index: 80000 !important;
    pointer-events: auto !important;
  }

  .nav-toggle {
    left: 0 !important;
    top: 35px !important;
    width: 25px !important;
  }

  .header-account,
  .header-cart,
  .wpml-ls-statics-shortcode_actions.wpml-ls {
    top: 40% !important;
  }

  .site-header .header-cart {
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    right: 0 !important;
    transform: none !important;
    z-index: 70000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  .site-header .header-cart > a,
  .site-header .header-cart .cart-toggle,
  .site-header .header-cart .toggle {
    position: relative !important;
    z-index: 70001 !important;
    pointer-events: auto !important;
  }

  .site-header .header-cart .widget_shopping_cart,
  .site-header .header-cart .cart-dropdown,
  .site-header .header-cart .mini-cart {
    position: fixed !important;
    top: 86px !important;
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 110px) !important;
    z-index: 70002 !important;
    pointer-events: auto !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.18) !important;
    padding: 16px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* =========================================================
   09. TranslatePress - mobile menu integration
   ========================================================= */

@media (max-width: 1000px) {

  /* Hide every external TranslatePress switcher on mobile */
  body .trp-language-switcher,
  body .trp-floating-language-switcher,
  body .trp-floater-ls,
  body .trp_language_switcher_shortcode,
  body .trp-language-switcher-container {
    display: none !important;
  }

  /* Show only the TranslatePress switcher inside Sullivan mobile menu */
  body .mobile-menu .trp-language-switcher-container,
  body .mobile-menu .trp-language-switcher,
  body .mobile-menu .trp_language_switcher_shortcode {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Mobile menu links: match desktop main navigation */
  .mobile-menu li a,
  .mobile-menu .trp-language-switcher-container > a,
  .mobile-menu .trp-language-switcher-container .menu-toggle-wrapper > a,
  .mobile-menu .trp-language-switcher-container .sub-menu a,
  .mobile-menu .trp-language-switcher a {
    font-family: var(--font-body) !important;
    font-size: 11px !important;
    font-weight: normal !important;
    line-height: var(--line-height-body) !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--color-black) !important;
    text-decoration: none !important;
  }

  /* Keep mobile menu items tappable without changing typography */
  .mobile-menu li a,
  .mobile-menu .trp-language-switcher-container > a,
  .mobile-menu .trp-language-switcher-container .menu-toggle-wrapper > a,
  .mobile-menu .trp-language-switcher a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 5vw !important;
  }

  /* TranslatePress flags, if enabled */
  .mobile-menu .trp-language-switcher-container img,
  .mobile-menu .trp-language-switcher-container .trp-flag-image,
  .mobile-menu .trp-language-switcher img,
  .mobile-menu .trp-language-switcher .trp-flag-image {
    display: inline-block !important;
    width: 18px !important;
    height: auto !important;
    margin-right: 8px !important;
  }

  .mobile-menu .trp-language-switcher-container .sub-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-menu li a:hover,
  .mobile-menu .trp-language-switcher-container a:hover,
  .mobile-menu .trp-language-switcher a:hover {
    color: var(--color-text-hover) !important;
  }
}


/* =========================================================
   10. WooCommerce - global
   ========================================================= */

.woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-family: var(--font-title-light) !important;
  font-size: 16px !important;
  color: var(--color-black);
  margin: 0 0 6px;
}

.price {
  font-family: var(--font-title-bold) !important;
  font-size: 16px !important;
}

.item-grid li,
.woocommerce-loop-product__title,
.price {
  text-align: center !important;
}

.woocommerce-result-count {
  display: none !important;
}

.shop-start .woocommerce-products-header {
  display: block !important;
}

.woocommerce-info {
  background: #111 !important;
}

.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product {
  font-size: 1em !important;
}

.wc-block-grid__product,
.woocommerce-loop-product__link {
  color: var(--color-black) !important;
}

/* Buttons */
.add_to_cart_button,
.product_type_simple,
.product_type_variable {
  color: var(--color-white) !important;
  background-color: #32373c !important;
  border-radius: var(--pill-radius) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  padding: calc(0.667em + 2px) calc(1.333em + 2px) !important;
  margin-top: 10px !important;
}

.button,
.add_to_cart_button {
  font-family: var(--font-body) !important;
  display: inline-block !important;
  border-radius: var(--pill-radius) !important;
  text-transform: uppercase !important;
}


/* =========================================================
   11. WooCommerce - product grid
   ========================================================= */

.woocommerce.columns-3 ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .woocommerce.columns-3 ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .woocommerce.columns-3 ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   12. WooCommerce - single product spacing
   ========================================================= */

.single-product #site-content {
  padding: var(--spacing-site-content) 0 !important;
}

.single-product #site-content .woocommerce {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   13. Product image hover
   ========================================================= */

.product-image-wrapper {
  position: relative;
  display: grid;
  perspective: 900px;
}

/* Both images occupy the same cell */
.product-image-wrapper img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;

  transition: transform 0.6s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Default state */
.product-image-wrapper.has-secondary img.primary-image {
  transform: rotateY(0deg);
}

.product-image-wrapper.has-secondary img.secondary-image {
  transform: rotateY(-180deg);
}

/* Hover state */
.product-image-wrapper.has-secondary:hover img.primary-image {
  transform: rotateY(180deg);
}

.product-image-wrapper.has-secondary:hover img.secondary-image {
  transform: rotateY(0deg);
}


/* =========================================================
   14. Sullivan item-grid products
   ========================================================= */

ul.item-grid li.product a.woocommerce-loop-product__link,
ul.item-grid li.product a.woocommerce-LoopProduct-link {
  display: block !important;
}

/* Fixed ratio box */
ul.item-grid li.product .product-image-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: var(--product-thumb-ratio-padding) !important;
  overflow: hidden !important;
  z-index: 1;
  perspective: 900px;
}

/* Fill box */
ul.item-grid li.product .product-image-wrapper img.primary-image,
ul.item-grid li.product .product-image-wrapper img.secondary-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;

  transition: transform 0.6s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Default state */
ul.item-grid li.product .product-image-wrapper.has-secondary img.primary-image {
  transform: rotateY(0deg);
}

ul.item-grid li.product .product-image-wrapper.has-secondary img.secondary-image {
  transform: rotateY(-180deg);
}

/* Hover state */
ul.item-grid li.product .product-image-wrapper.has-secondary:hover img.primary-image {
  transform: rotateY(180deg);
}

ul.item-grid li.product .product-image-wrapper.has-secondary:hover img.secondary-image {
  transform: rotateY(0deg);
}

/* Keep titles aligned */
ul.item-grid li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
}


/* =========================================================
   15. WooCommerce tabs
   ========================================================= */

.single-product div.product .woocommerce-tabs {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-gap);
}

/* Stop sticky/column bleed into footer */
.single-product div.product .woocommerce-tabs ul.tabs {
  flex: 0 0 260px;
  margin: 0;
  padding: 0;
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Right panel spacing */
.single-product div.product .woocommerce-tabs .panel,
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
  flex: 1 1 auto;
  margin: 0;
  padding-left: 16px;
}

/* Fix chevron overlap */
.single-product div.product .woocommerce-tabs ul.tabs li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 36px;
  position: relative;
  line-height: 1.3;
}

.single-product div.product .woocommerce-tabs ul.tabs li a::after,
.single-product div.product .woocommerce-tabs ul.tabs li::after {
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Disable pseudo-elements used for column background */
.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs::after {
  content: none !important;
  display: none !important;
}

/* Remove equal-height hacks that created huge scroll */
.single-product div.product .woocommerce-tabs,
.single-product div.product .woocommerce-tabs ul.tabs {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Give the whole tabs area its own stacking context */
.single-product .product-lower-wrapper .woocommerce-tabs {
  position: relative !important;
  z-index: 10 !important;
}

/* Make the tabs bar sit above anything else */
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs {
  position: relative !important;
  z-index: 50 !important;
  pointer-events: auto !important;
}

/* Ensure each tab and link can receive clicks */
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li,
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li a {
  position: relative !important;
  z-index: 60 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Prevent pseudo-elements from stealing clicks */
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li::before,
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li::after,
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li a::before,
.single-product .product-lower-wrapper .woocommerce-tabs ul.tabs.wc-tabs li a::after {
  pointer-events: none !important;
}

/* Panels below tabs */
.single-product .product-lower-wrapper .woocommerce-tabs .woocommerce-Tabs-panel {
  position: relative !important;
  z-index: 20 !important;
}

/* Hide empty/positioned sidebar that can overlap tabs */
.single-product .product-lower-wrapper > .section-inner > aside.sidebar {
  display: none !important;
}

@media (max-width: 768px) {

  .single-product div.product .woocommerce-tabs {
    display: block !important;
    gap: 0 !important;
  }

  .single-product div.product .woocommerce-tabs .panel,
  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding-left: 0;
  }

  /* Tabs bar becomes horizontal pills */
  .single-product div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;

    width: 100% !important;
    max-width: 100% !important;

    overflow-x: visible !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    padding: 10px 12px !important;
    margin: 16px 0 12px 0 !important;

    position: static !important;
    height: auto !important;
    min-height: 0 !important;

    background: transparent !important;
    border: 0 !important;
  }

  .single-product div.product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .single-product div.product .woocommerce-tabs ul.tabs li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 10px 14px !important;
    border-radius: 9999px !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    writing-mode: horizontal-tb !important;
    transform: none !important;

    line-height: 1 !important;
    text-decoration: none !important;

    border: 1px solid #e6e6e6 !important;
    background: #fff !important;
  }

  .single-product div.product .woocommerce-tabs ul.tabs li.active a {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
  }

  .single-product div.product .woocommerce-tabs ul.tabs li a::after,
  .single-product div.product .woocommerce-tabs ul.tabs li::after {
    content: none !important;
    display: none !important;
  }

  .single-product div.product .woocommerce-tabs .panel,
  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 16px 0 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid #f0f0f0 !important;
  }

  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin: 0 0 12px 0 !important;
  }

  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel ul,
  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel ol {
    margin: 0 0 12px 18px !important;
  }

  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel li {
    margin: 0 0 6px 0 !important;
  }

  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel table th,
  .single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel table td {
    padding: 10px 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: top !important;
  }
}


/* =========================================================
   16. Product archive / filters
   16b. Product grids
   Canonical version
   ========================================================= */

/* Desktop layout */
.shop-archive-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Legacy archive layout support */
.bohemy-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar container */
.bohemy-shop-sidebar .widget {
  margin-bottom: 24px;
}

/* YITH filters */
.bohemy-shop-sidebar .yith-wcan-filters {
  width: 100%;
}

.bohemy-shop-sidebar .yith-wcan-filter .filter-title {
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
}

.bohemy-shop-sidebar .yith-wcan-filter .filter-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bohemy-shop-sidebar .yith-wcan-filter .filter-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.bohemy-shop-sidebar .yith-wcan-filter .filter-item a.term-label {
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Sidebar in desktop must be normal flow */
#bohemy-filters-drawer.shop-sidebar {
  position: static !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Toolbar */
.bohemy-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px;
}

.bohemy-archive-toolbar .woocommerce-ordering {
  margin: 0 !important;
}

/* Desktop: no toggle / no overlay / no drawer header */
@media (min-width: 1024px) {
  .bohemy-filters-toggle,
  .bohemy-filters-overlay,
  #bohemy-filters-drawer .bohemy-filters-drawer-header {
    display: none !important;
  }

  #bohemy-filters-drawer .yith-wcan-filter .filter-content {
    display: block !important;
  }
}

/* Mobile + tablet filters */
@media (max-width: 1023px) {

  .shop-archive-layout,
  .bohemy-shop-layout {
    display: block;
  }

  .bohemy-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex: 1 1 50%;

    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 9999px;
    background: #fff;

    font-family: var(--font-body) !important;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 11px;

    cursor: pointer;
    user-select: none;
  }

  .bohemy-archive-toolbar {
    gap: 10px;
  }

  .bohemy-archive-toolbar .woocommerce-ordering {
    flex: 1 1 50%;
  }

  .bohemy-archive-toolbar .woocommerce-ordering select {
    width: 100%;
    border-radius: 9999px;
  }

  .bohemy-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 99998;
  }

  body.bohemy-filters-open .bohemy-filters-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  #bohemy-filters-drawer.shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;

    height: 100vh !important;
    width: min(420px, 88vw) !important;

    background: #fff !important;
    z-index: 99999 !important;

    transform: translateX(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transition: transform .25s ease, opacity .2s ease !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;

    box-shadow: -10px 0 30px rgba(0,0,0,.12) !important;
    padding: 16px 18px 22px !important;
  }

  body.bohemy-filters-open #bohemy-filters-drawer.shop-sidebar {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.bohemy-filters-open {
    overflow: hidden;
  }

  #bohemy-filters-drawer .bohemy-filters-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 6px 0 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 14px;
  }

  #bohemy-filters-drawer .bohemy-filters-drawer-title {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
  }

  #bohemy-filters-drawer .bohemy-filters-close {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid #e6e6e6;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  #bohemy-filters-drawer .yith-wcan-filter .filter-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 16px 0 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 11px;
  }

  #bohemy-filters-drawer .yith-wcan-filter .filter-title::after {
    content: "▾";
    font-size: 14px;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }

  #bohemy-filters-drawer .yith-wcan-filter .filter-content {
    display: none;
  }

  #bohemy-filters-drawer .yith-wcan-filter.is-open .filter-content {
    display: block;
  }

  #bohemy-filters-drawer .yith-wcan-filter.is-open .filter-title::after {
    transform: rotate(180deg);
  }
}


/* =========================================================
   17. Footer
   ========================================================= */

body footer {
  background: var(--color-white) !important;
}

body footer a {
  text-transform: capitalize !important;
}

.section-inner.credits {
  background: var(--color-black) !important;
  text-align: center !important;
  position: relative;
  display: block ruby;
}

.credits {
  padding: 10px 0 !important;
}

@media (max-width: 768px) {

  body footer {
    padding: 28px 0 !important;
  }

  body footer .section-inner,
  body footer .footer-inner,
  body footer .footer-widgets,
  body footer .widgets,
  body footer .widget-area {
    width: 90% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body footer .footer-widgets,
  body footer .widgets,
  body footer .widget-area {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body footer .widget {
    margin: 0 !important;
    padding: 0 !important;
  }

  body footer .widget + .widget {
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding-top: 16px !important;
  }

  body footer .widget-title,
  body footer h3,
  body footer h4 {
    margin: 0 0 10px 0 !important;
    font-family: var(--font-title-bold) !important;
    font-size: 11px !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: #111 !important;
  }

  body footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body footer ul li {
    margin: 0 !important;
    padding: 0 !important;
  }

  body footer a {
    display: block !important;
    padding: 7px 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #666 !important;
    text-transform: none !important;
  }

  body footer a:hover {
    color: #111 !important;
  }

  body footer hr,
  body footer .widget::before,
  body footer .widget::after {
    display: none !important;
    content: none !important;
  }

  body footer .fab,
  body footer i[class*="fa"],
  body footer .social a i {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body footer .social,
  body footer .social-menu,
  body footer .social-icons,
  body footer .widget .menu,
  body footer .widget ul.menu {
    gap: 12px !important;
  }

  body footer .social-menu,
  body footer .social-icons,
  body footer .widget_social_icons ul,
  body footer .widget .social-links,
  body footer .widget .social-links ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body footer .social-menu a,
  body footer .social-icons a,
  body footer .widget_social_icons a,
  body footer .social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 9999px !important;
    padding: 0 !important;
  }

  .section-inner.credits {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 0 !important;
    background: #000 !important;
    text-align: center !important;
  }

  .section-inner.credits,
  .section-inner.credits p,
  .section-inner.credits a {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: rgba(255,255,255,0.75) !important;
    letter-spacing: .06em !important;
    text-transform: none !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body footer .footer-widgets,
  body footer .widgets,
  body footer .widget-area {
    grid-template-columns: 1fr 1fr !important;
  }

  body footer .widget + .widget {
    border-top: none !important;
    padding-top: 0 !important;
  }
}


/* =========================================================
   18. Search layout
   ========================================================= */

.woocommerce-product-search-container .row {
  display: flex;
}

.woocommerce-product-search-container .col-md-3 {
  flex: 1;
}

.woocommerce-product-search-container .col-md-9 {
  flex: 3;
}

/* Header search must always sit above the main navigation */
.site-header .header-search {
  z-index: var(--search-layer-z) !important;
  overflow: visible !important;
}

/* Search wrappers must not clip the autocomplete panel */
.site-header .header-search form,
.site-header .header-search .search-form,
.site-header .header-search .woocommerce-product-search,
.site-header .header-search .woocommerce-product-search-container,
.site-header .header-search .dgwt-wcas-search-wrapp,
.site-header .header-search .aws-container {
  position: relative !important;
  z-index: var(--search-layer-z) !important;
  overflow: visible !important;
}

/* Ajax/FiboSearch/WooCommerce autocomplete results */
.site-header .header-search .dgwt-wcas-suggestions-wrapp,
.site-header .header-search .autocomplete-suggestions,
.site-header .header-search .aws-search-result,
.site-header .header-search .search-results,
.site-header .header-search .search-dropdown,
.dgwt-wcas-suggestions-wrapp,
.autocomplete-suggestions,
.aws-search-result {
  z-index: var(--search-results-layer-z) !important;
}

/* Prevent the main menu from painting above the open search results */
.site-header .site-nav {
  z-index: 20001 !important;
}


/* =========================================================
   19. Misc
   ========================================================= */

/* Hide slider dots */
ol.flex-control-nav.flex-control-paging {
  display: none !important;
}

/* Fixed language switcher legacy support */
.pll-parent-menu-item {
  position: fixed !important;
}

/* Menu widget typography */
.widget_nav_menu li a {
  font-family: var(--font-alt) !important;
  font-size: 13px !important;
}

/* Icons */
.fab {
  font-size: 20px !important;
}

/* Content lists */
.entry-content ul {
  margin-left: 0 !important;
}

/* Hero slider spacing */
.hero-slider .slide .section-inner {
  padding: 350px 0 !important;
}

/* Subheading style */
.subheading {
  font-size: 14px !important;
  font-family: var(--font-title-bold) !important;
  font-weight: bolder !important;
  text-transform: uppercase !important;
}

/* Sale badge layering */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
}

.woocommerce span.onsale,
.woocommerce-page span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  position: absolute !important;
  z-index: var(--sale-badge-z) !important;
}

/* Keep wrapper below sale badge */
.woocommerce ul.products li.product .product-image-wrapper {
  position: relative;
  z-index: 1;
}

/* Hidden tags and categories in product page */
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as{
    display: none !important;
}

.grecaptcha-badge {
	visibility: hidden !important;
}

/* =========================================================
   WooCommerce search filters - tablet/mobile responsive
   ========================================================= */

@media (max-width: 1023px) {
  body:is(.search, .search-results, .search-no-results) :is(
    .woocommerce-product-search-container .row,
    .shop-archive-layout,
    .bohemy-shop-layout
  ) {
    display: block !important;
    width: 90% !important;
    max-width: var(--container-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body:is(.search, .search-results, .search-no-results)
  .woocommerce-product-search-container :is(.col-md-3, .col-md-9) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(
    .shop-sidebar,
    .woocommerce-sidebar,
    .widget-area
  ) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 22px !important;
    width: 100% !important;
    margin: 0 0 34px !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel__group {
    margin: 0 !important;
    min-width: 0 !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel__label {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel__select {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  body:is(.search, .search-results, .search-no-results) .shop-products {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(.item-grid, ul.products) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(.item-grid, ul.products) > li.product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }
}

@media (max-width: 600px) {
  body:is(.search, .search-results, .search-no-results) #site-content {
    padding-top: 24px !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(.page-title, h1) {
    font-size: 34px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    margin-bottom: 14px !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(
    .woocommerce-product-search-container .row,
    .shop-archive-layout,
    .bohemy-shop-layout
  ) {
    width: calc(100% - 28px) !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 30px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel__label {
    font-size: 17px !important;
  }

  body:is(.search, .search-results, .search-no-results) .bohemy-search-filter-panel__select {
    min-height: 46px !important;
    padding: 10px 36px 10px 12px !important;
  }

  body:is(.search, .search-results, .search-no-results) :is(.item-grid, ul.products) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 12px !important;
  }

  body:is(.search, .search-results, .search-no-results) .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.15 !important;
    min-height: 0 !important;
    margin-top: 8px !important;
  }

  body:is(.search, .search-results, .search-no-results) .price {
    font-size: 14px !important;
  }

  body:is(.search, .search-results, .search-no-results) .onsale {
    top: 10px !important;
    right: 10px !important;
  }
}

/* =========================================================
   WooCommerce product grid - force 2 columns on mobile
   ========================================================= */

@media (max-width: 767px) {

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  body.search .item-grid,
  body.search-results .item-grid,
  body.search-no-results .item-grid,
  body.search ul.products,
  body.search-results ul.products,
  body.search-no-results ul.products,
  .woocommerce ul.item-grid,
  .woocommerce-page ul.item-grid,
  ul.item-grid.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 28px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after,
  .woocommerce ul.item-grid::before,
  .woocommerce ul.item-grid::after,
  .woocommerce-page ul.item-grid::before,
  .woocommerce-page ul.item-grid::after {
    display: none !important;
    content: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .woocommerce ul.products[class*="columns-"] li.product,
  .woocommerce-page ul.products[class*="columns-"] li.product,
  .woocommerce ul.item-grid li.product,
  .woocommerce-page ul.item-grid li.product,
  ul.item-grid.products li.product {
    display: block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product:nth-child(n),
  .woocommerce-page ul.products li.product:nth-child(n),
  .woocommerce ul.item-grid li.product:nth-child(n),
  .woocommerce-page ul.item-grid li.product:nth-child(n) {
    clear: none !important;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img,
  .woocommerce ul.item-grid li.product a img,
  .woocommerce-page ul.item-grid li.product a img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.item-grid li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.item-grid li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
  }

  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price,
  .woocommerce ul.item-grid li.product .price,
  .woocommerce-page ul.item-grid li.product .price {
    font-size: 14px !important;
  }
}

/* =========================================================
   Header search - mobile
   ========================================================= */

@media (max-width: 1000px) {
  .site-header {
    min-height: 76px !important;
    padding-bottom: 0 !important;
  }

  .site-header .section-inner,
  .site-header .section-inner.thin {
    min-height: 76px !important;
  }

  /* Cart remains at the far right. */
  .site-header .header-cart {
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 70000 !important;
  }

  /* Compact search icon immediately to the left of the cart. */
  .site-header form.header-search,
  .site-header .header-search {
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    right: 50px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    z-index: var(--mobile-header-search-z) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-header form.header-search .screen-reader-text,
  .site-header form.header-search .search-screen-reader-text,
  .site-header .header-search .screen-reader-text,
  .site-header .header-search .search-screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
  }

  .site-header form.header-search label,
  .site-header .header-search label {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 22px auto !important;
    cursor: pointer !important;
    z-index: 2 !important;
  }

  .site-header form.header-search input[type="search"],
  .site-header .header-search input[type="search"] {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: transparent !important;
    caret-color: transparent !important;
    opacity: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    font-size: 16px !important;
    line-height: 34px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    z-index: 1 !important;
  }

  .site-header form.header-search input[type="search"]::placeholder,
  .site-header .header-search input[type="search"]::placeholder,
  .site-header form.header-search input[type="search"]::-webkit-input-placeholder,
  .site-header .header-search input[type="search"]::-webkit-input-placeholder,
  .site-header form.header-search input[type="search"]:-ms-input-placeholder,
  .site-header .header-search input[type="search"]:-ms-input-placeholder,
  .site-header form.header-search input[type="search"]::-moz-placeholder,
  .site-header .header-search input[type="search"]::-moz-placeholder {
    color: transparent !important;
    opacity: 0 !important;
  }

  /* Expanded search field. */
  .site-header form.header-search:focus-within,
  .site-header .header-search:focus-within {
    top: 62px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 44px !important;
    max-height: none !important;
    background: var(--color-white) !important;
    overflow: visible !important;
    z-index: var(--search-layer-z) !important;
  }

  .site-header form.header-search:focus-within label,
  .site-header .header-search:focus-within label {
    width: 44px !important;
    height: 46px !important;
    right: auto !important;
    left: 0 !important;
    background-size: 20px auto !important;
  }

  .site-header form.header-search:focus-within input[type="search"],
  .site-header .header-search:focus-within input[type="search"] {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 44px !important;
    padding: 10px 12px 10px 44px !important;
    margin: 0 !important;
    border: 1px solid #e1e1e5 !important;
    border-radius: 0 !important;
    background: var(--color-white) !important;
    color: #111 !important;
    caret-color: #111 !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    cursor: text !important;
  }

  .site-header form.header-search:focus-within input[type="search"]::placeholder,
  .site-header .header-search:focus-within input[type="search"]::placeholder {
    color: #767676 !important;
    opacity: 1 !important;
  }

  .site-header form.header-search .compact-search-results,
  .site-header .header-search .compact-search-results {
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    z-index: var(--search-results-layer-z) !important;
  }

  .site-header .header-cart .widget_shopping_cart,
  .site-header .header-cart .cart-dropdown,
  .site-header .header-cart .mini-cart {
    top: 86px !important;
    max-height: calc(100vh - 110px) !important;
  }
}

/* =========================================================
   WooCommerce pagination - show numeric pages on mobile
   ========================================================= */

@media (max-width: 767px) {

  .woocommerce nav.woocommerce-pagination,
  nav.woocommerce-pagination {
    clear: both !important;
    width: 100% !important;
    margin: 52px auto 34px !important;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers,
  nav.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;

    position: relative !important;
    width: 100% !important;
    min-height: 34px !important;

    margin: 0 !important;
    padding: 0 72px !important;
    box-sizing: border-box !important;

    list-style: none !important;
    border: 0 !important;
    overflow: visible !important;
  }

  /*
   * Hide all page items first.
   * Then we selectively show:
   * - Previous
   * - first two pages
   * - dots
   * - current page
   * - last two pages
   * - Next
   */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li,
  nav.woocommerce-pagination ul.page-numbers li {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-child(-n+3),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:nth-last-child(-n+3),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.dots),
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.current),
  nav.woocommerce-pagination ul.page-numbers li:nth-child(-n+3),
  nav.woocommerce-pagination ul.page-numbers li:nth-last-child(-n+3),
  nav.woocommerce-pagination ul.page-numbers li:has(.dots),
  nav.woocommerce-pagination ul.page-numbers li:has(.current) {
    display: inline-flex !important;
  }

  /* Keep "Anterior" fixed to the left */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.prev),
  nav.woocommerce-pagination ul.page-numbers li:has(.prev) {
    display: inline-flex !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* Keep "Siguiente" fixed to the right */
  .woocommerce nav.woocommerce-pagination ul.page-numbers li:has(.next),
  nav.woocommerce-pagination ul.page-numbers li:has(.next) {
    display: inline-flex !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .woocommerce nav.woocommerce-pagination a.page-numbers,
  .woocommerce nav.woocommerce-pagination span.page-numbers,
  nav.woocommerce-pagination a.page-numbers,
  nav.woocommerce-pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 22px !important;
    height: 32px !important;
    padding: 0 4px !important;
    margin: 0 !important;

    font-family: var(--font-body) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: var(--color-text) !important;

    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;

    opacity: 1 !important;
    visibility: visible !important;
  }

  .woocommerce nav.woocommerce-pagination span.page-numbers.current,
  nav.woocommerce-pagination span.page-numbers.current {
    font-family: var(--font-title-bold) !important;
    color: var(--color-black) !important;
  }

  .woocommerce nav.woocommerce-pagination a.prev,
  .woocommerce nav.woocommerce-pagination a.next,
  nav.woocommerce-pagination a.prev,
  nav.woocommerce-pagination a.next {
    min-width: auto !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }
}

.woocommerce-products-header {
	margin: 10px auto 0px auto !important;
}

/* =========================================================
   Product archive filters / YITH toolbar
   ========================================================= */

/* Hide legacy archive toolbar and external ordering controls. */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .tax-product_brand) .bohemy-archive-toolbar,
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .tax-product_brand) .woocommerce-ordering {
  display: none !important;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .tax-product_brand)
.bohemy-product-archive-toolbar .woocommerce-ordering {
  display: block !important;
}

.woocommerce .bohemy-product-archive-toolbar {
  --bohemy-toolbar-control-width: 220px;
  --bohemy-toolbar-control-height: 43px;
  --bohemy-toolbar-gap: 14px;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: var(--bohemy-toolbar-gap) !important;
  width: 90% !important;
  max-width: var(--container-max-width) !important;
  margin: 0 auto 72px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-filters {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .bohemy-product-archive-filters :is(
  .bohemy-top-filter-widget,
  .yith-wcan-filters,
  .yith-wcan-filters form,
  .filters-container,
  form.filters-container
) {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: var(--bohemy-toolbar-gap) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .bohemy-product-archive-filters .yith-wcan-filter {
  display: block !important;
  flex: 0 0 var(--bohemy-toolbar-control-width) !important;
  width: var(--bohemy-toolbar-control-width) !important;
  min-width: var(--bohemy-toolbar-control-width) !important;
  max-width: var(--bohemy-toolbar-control-width) !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-filters :is(.filter-title, .yith-wcan-filter h3, .yith-wcan-filter h4) {
  display: block !important;
  height: 18px !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: 18px !important;
  color: var(--color-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.woocommerce .bohemy-product-archive-filters :is(.widget-title, .bohemy-top-filter-widget-title) {
  display: none !important;
}

/* Hide duplicate/original YITH selects while keeping the visible replacement. */
.woocommerce .bohemy-product-archive-filters .yith-wcan-filter :is(
  select:not(:last-of-type),
  select[multiple],
  select[size]:not([size="1"]),
  select.select2-hidden-accessible,
  select[aria-hidden="true"]
) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -999999px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.woocommerce .bohemy-product-archive-filters .yith-wcan-filter select:last-of-type:not([multiple]),
.woocommerce .bohemy-product-archive-filters .yith-wcan-filter select[size="1"],
.woocommerce .bohemy-product-archive-ordering select,
.woocommerce .bohemy-product-archive-ordering .orderby {
  display: block !important;
  width: 100% !important;
  height: var(--bohemy-toolbar-control-height) !important;
  min-height: var(--bohemy-toolbar-control-height) !important;
  max-height: var(--bohemy-toolbar-control-height) !important;
  margin: 0 !important;
  padding: 0 38px 0 14px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: var(--bohemy-toolbar-control-height) !important;
  color: var(--color-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-filters .select2-container {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: var(--bohemy-toolbar-control-height) !important;
  min-height: var(--bohemy-toolbar-control-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  line-height: var(--bohemy-toolbar-control-height) !important;
  color: var(--color-text) !important;
}

.woocommerce .bohemy-product-archive-filters .select2-container :is(
  .select2-selection,
  .select2-selection--single,
  .select2-selection--multiple
) {
  display: block !important;
  width: 100% !important;
  height: var(--bohemy-toolbar-control-height) !important;
  min-height: var(--bohemy-toolbar-control-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-filters .select2-container .select2-selection__rendered {
  display: block !important;
  height: calc(var(--bohemy-toolbar-control-height) - 2px) !important;
  padding: 0 38px 0 14px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: calc(var(--bohemy-toolbar-control-height) - 2px) !important;
  color: var(--color-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-filters .select2-container .select2-selection__arrow {
  height: calc(var(--bohemy-toolbar-control-height) - 2px) !important;
  top: 0 !important;
  right: 8px !important;
}

.woocommerce .bohemy-product-archive-ordering {
  display: block !important;
  flex: 0 0 var(--bohemy-toolbar-control-width) !important;
  width: var(--bohemy-toolbar-control-width) !important;
  min-width: var(--bohemy-toolbar-control-width) !important;
  max-width: var(--bohemy-toolbar-control-width) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce .bohemy-product-archive-ordering::before {
  content: "" !important;
  display: block !important;
  height: 18px !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}

.woocommerce .bohemy-product-archive-ordering form {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tablet: keep the original two-column wrapping behavior. */
@media (min-width: 768px) and (max-width: 1180px) {
  .woocommerce .bohemy-product-archive-toolbar {
    justify-content: center !important;
  }

  .woocommerce .bohemy-product-archive-filters :is(
    .yith-wcan-filters,
    .yith-wcan-filters form,
    .filters-container,
    form.filters-container
  ) {
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: calc((220px * 2) + 14px) !important;
  }
}

@media (max-width: 767px) {
  .woocommerce .bohemy-product-archive-toolbar {
    --bohemy-toolbar-control-width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin: 0 auto 24px !important;
  }

  .woocommerce .bohemy-product-archive-ordering {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  .woocommerce .bohemy-product-archive-ordering::before {
    display: none !important;
    content: none !important;
  }

  .woocommerce .bohemy-product-archive-filters {
    order: 2 !important;
    width: 100% !important;
    justify-content: stretch !important;
  }

  .woocommerce .bohemy-product-archive-filters :is(
    .bohemy-top-filter-widget,
    .yith-wcan-filters,
    .yith-wcan-filters form,
    .filters-container,
    form.filters-container
  ) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    gap: 10px !important;
  }

  .woocommerce .bohemy-product-archive-filters .yith-wcan-filter {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  .woocommerce .bohemy-product-archive-filters :is(.filter-title, .yith-wcan-filter h3, .yith-wcan-filter h4) {
    display: none !important;
  }

  .woocommerce .bohemy-product-archive-filters select,
  .woocommerce .bohemy-product-archive-ordering select,
  .woocommerce .bohemy-product-archive-ordering .orderby,
  .woocommerce .bohemy-product-archive-filters .select2-container :is(
    .select2-selection,
    .select2-selection--single,
    .select2-selection--multiple
  ) {
    border-radius: 999px !important;
  }
}

/* =========================================================
   Product grids - archives + Rebajas
   ========================================================= */

body.bohemy-rebajas-page .bohemy-rebajas-catalogo {
  width: 100%;
  max-width: none;
}

body.bohemy-rebajas-page .bohemy-rebajas-header {
  display: block !important;
  width: var(--container-width) !important;
  max-width: var(--container-max-width) !important;
  margin: 10px auto 20px !important;
  padding: 0 !important;
  text-align: center !important;
}

body.bohemy-rebajas-page .bohemy-rebajas-header .woocommerce-products-header__title {
  display: block !important;
  margin: 0 !important;
  text-align: center !important;
}

body.bohemy-rebajas-page .bohemy-rebajas-products {
  width: var(--container-width) !important;
  max-width: var(--container-max-width) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand
) .woocommerce ul.item-grid,
body.bohemy-rebajas-page .bohemy-rebajas-products ul.item-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 40px !important;
  row-gap: 72px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand
) .woocommerce ul.item-grid > li.product,
body.bohemy-rebajas-page .bohemy-rebajas-products ul.item-grid > li.product {
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand
) .woocommerce ul.item-grid > li.product::marker,
body.bohemy-rebajas-page .bohemy-rebajas-products ul.item-grid > li.product::marker {
  content: none !important;
  font-size: 0 !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand
) .woocommerce ul.item-grid > li.product::before,
body.bohemy-rebajas-page .bohemy-rebajas-products ul.item-grid > li.product::before {
  display: none !important;
  content: none !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand,
  body.bohemy-rebajas-page
) ul.item-grid li.product .woocommerce-loop-product__title {
  min-height: 2.8em !important;
  margin: 22px 0 10px !important;
  font-family: var(--font-title-light) !important;
  font-size: 16px !important;
  font-weight: normal !important;
  line-height: 1.2 !important;
  color: var(--color-black) !important;
  text-align: center !important;
}

:is(
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag,
  body.tax-product_brand,
  body.bohemy-rebajas-page
) ul.item-grid li.product .price {
  display: block !important;
  margin: 0 !important;
  font-family: var(--font-title-bold) !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.tax-product_brand
  ) .woocommerce ul.item-grid,
  body.bohemy-rebajas-page .bohemy-rebajas-products ul.item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 28px !important;
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.tax-product_brand,
    body.bohemy-rebajas-page
  ) ul.item-grid li.product .woocommerce-loop-product__title {
    min-height: 0 !important;
    margin: 10px 0 7px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  :is(
    body.post-type-archive-product,
    body.tax-product_cat,
    body.tax-product_tag,
    body.tax-product_brand,
    body.bohemy-rebajas-page
  ) ul.item-grid li.product .price {
    font-size: 14px !important;
  }
}

/* =========================================================
   HOME - MetaSlider 26963
   Formato vertical y recorte central en móvil
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Sacamos únicamente este slider del contenedor del 90%
     * para que ocupe todo el ancho del móvil.
     */
    body.home #metaslider-id-26963 {
        position: relative !important;

        width: 100vw !important;
        max-width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }


    /*
     * Altura vertical del slider.
     *
     * 390px de ancho -> unos 565px de alto.
     */
    body.home #metaslider_26963,
    body.home #metaslider_26963 .flex-viewport,
    body.home #metaslider_26963 ul.slides,
    body.home #metaslider_26963 ul.slides > li {
        height: clamp(500px, 145vw, 620px) !important;
        min-height: 0 !important;
    }


    /*
     * El viewport de FlexSlider es el encargado
     * de ocultar las zonas laterales de la fotografía.
     */
    body.home #metaslider_26963 .flex-viewport {
        position: relative !important;
        overflow: hidden !important;
    }


    /*
     * IMPORTANTE:
     * NO modificamos el ancho del <li>.
     *
     * FlexSlider calcula ese ancho mediante JavaScript
     * para poder seguir desplazando las diapositivas.
     */
    body.home #metaslider_26963 ul.slides > li {
        position: relative !important;
        overflow: hidden !important;

        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }


    /*
     * Por si la diapositiva tiene un enlace alrededor
     * de la imagen.
     */
    body.home #metaslider_26963 ul.slides > li > a {
        display: block !important;

        width: 100% !important;
        height: 100% !important;
    }


    /*
     * Imagen real del slider.
     *
     * Aquí está el cambio fundamental:
     * - ocupa toda la altura vertical
     * - mantiene proporciones
     * - recorta izquierda/derecha
     * - mantiene el centro de la fotografía
     */
    body.home #metaslider_26963 img.slider-26963.msDefaultImage {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        max-width: none !important;
        max-height: none !important;

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

        object-fit: cover !important;
        object-position: 50% 50% !important;
    }

}

/* =========================================================
   Cart - coupon field, buttons and error message
   ========================================================= */

.woocommerce-cart table.cart td.actions {
  padding-top: 24px;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  column-gap: 10px !important;
  row-gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  flex: 0 1 290px !important;
  width: 290px !important;
  min-width: 220px !important;
  max-width: 290px !important;
  height: 46px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.woocommerce-cart table.cart td.actions .coupon button[name="apply_coupon"] {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 46px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"] {
  height: 46px;
  white-space: nowrap;
}

.woocommerce-cart table.cart td.actions .coupon .coupon-error-notice {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  text-align: left !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .woocommerce-cart table.cart td.actions {
    display: block !important;
    width: 100% !important;
    padding: 20px 0 0 !important;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column !important;
    width: 100% !important;
    column-gap: 0 !important;
    row-gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .woocommerce-cart table.cart td.actions .coupon::before,
  .woocommerce-cart table.cart td.actions .coupon::after {
    display: none !important;
    content: none !important;
  }

  .woocommerce-cart table.cart td.actions .coupon label {
    display: none !important;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon button[name="apply_coupon"],
  .woocommerce-cart table.cart td.actions button[name="update_cart"] {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .woocommerce-cart table.cart td.actions button[name="update_cart"] {
    margin-top: 12px !important;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    flex: none !important;
    text-align: left !important;
  }

  .woocommerce-cart table.cart td.actions .coupon button[name="apply_coupon"] {
    flex: none !important;
  }

  .woocommerce-cart table.cart td.actions .coupon .coupon-error-notice {
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* =========================================================
   Nacex shipping methods
   ========================================================= */

#shipping_method label:has(img[src*="nacex" i]) {
  position: relative !important;
  padding-left: 25px !important;
  font-family: var(--font-body) !important;
  font-size: var(--font-size-body) !important;
  font-weight: normal !important;
  font-style: normal !important;
  line-height: var(--line-height-body) !important;
  color: var(--color-text) !important;
}

#shipping_method label:has(img[src*="nacex" i]) img {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: block !important;
  width: 20px !important;
  height: auto !important;
  max-width: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

#shipping_method label:has(img[src*="nacex" i]) .woocommerce-Price-amount {
  white-space: nowrap !important;
  font-weight: normal !important;
}
