/* ONE V15 — buscador visible, catálogo con filtros a la izquierda. */
:root {
  --one-gutter: clamp(20px, 4vw, 80px);
  --one-width: 1240px;
  --one-header-width: 1480px;
}
.one-wrap { width: calc(100% - var(--one-gutter) * 2); }
.one-header-inner {
  display: grid; grid-template-columns: 245px minmax(0, 1fr) 42px auto;
  grid-template-areas: "brand search cart quote" "nav nav nav nav";
  column-gap: 28px; row-gap: 0; padding-top: 18px; min-height: 136px;
}
.site-header .one-brand { grid-area: brand; min-width: 0; margin: 0; }
.site-header .one-word { font-size: 48px; }
.site-header .one-brand-sub { font-size: 12px; }
.site-header .one-divider { height: 43px; margin-inline: 12px; }
.one-header-search { grid-area: search; min-width: 0; max-width: 650px; width: 100%; justify-self: center; }
.one-header-search .one-product-search-form > label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.one-header-search .one-search-controls { display: flex; gap: 0; }
.one-header-search .one-search-field { flex: 1; min-width: 0; }
.one-header-search input[type="search"] { width: 100%; height: 48px; border: 1px solid #c8c8c8; border-right: 0; border-radius: 6px 0 0 6px; background: #f8f8f8; padding-inline: 16px; font-size: 16px; }
.one-header-search .one-search-controls > button { width: 52px; min-height: 48px; padding: 0; border-radius: 0 6px 6px 0; background: var(--one-red); color: #fff; }
.one-header-search .one-search-controls > button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.one-header-search .one-search-controls > button > svg { width: 23px; height: 23px; }
.one-header-search .one-search-suggestions { z-index: 130; }
.site-header .one-cart { grid-area: cart; margin: 0; }
.site-header .one-quote { grid-area: quote; min-width: 144px; font-size: 13px; padding-inline: 18px; }
.one-nav { grid-area: nav; position: static; margin: 10px 0 0; border-top: 1px solid var(--one-border); width: 100%; }
.one-menu { justify-content: center; gap: clamp(22px, 3vw, 50px); white-space: nowrap; }
.one-menu > li > a, .one-search-toggle { font-size: 17px; padding: 17px 0; letter-spacing: 0; line-height: 1.4; }
.one-menu > li > a::after { bottom: 8px; }
.one-menu .sub-menu a { font-size: 15px; }
.one-hero { min-height: 330px; background-image: linear-gradient(90deg, rgba(8,8,8,.8), rgba(8,8,8,.58) 40%, rgba(8,8,8,.05) 78%), url('../images/fondo-maigas-cocina-industrial.webp'); background-position: center top; }
.one-hero-inner { padding-top: 38px; padding-bottom: 62px; }
.one-hero h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.04; }
.one-hero-copy { font-size: 17px; max-width: 500px; }
.one-kicker { color: #fff; }
.one-benefits article { padding-inline: 16px; }
.one-benefits h2 { font-size: 14px; }
.one-benefits p { font-size: 12px; }
.one-featured { padding-block: 42px; }
.one-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.one-product-card { display: flex; flex-direction: column; min-height: 0; }
.one-product-image { min-height: 190px; padding: 18px; }
.one-product-image img { width: 100%; height: 170px; object-fit: contain; }
.one-product-info { flex: 1; padding: 16px 18px 18px; }
.one-product-category { font-size: 11px; color: #666; margin-bottom: 7px; }
.one-product-info h3 { font-size: 17px; line-height: 1.35; margin-bottom: 14px; min-height: 4.05em; overflow-wrap: normal; }
.one-product-price { margin-top: auto; margin-bottom: 14px; font-size: 22px; }
.one-more { min-height: 32px; font-size: 12px; color: var(--one-red-dark); }
.one-category-card strong { font-size: 17px; }
.one-category-card small { font-size: 13px; }
.one-category-card em { font-size: 12px; }
.one-category-icon .one-icon { width: 56px; height: 56px; stroke-width: 1.7; }
.one-icon-whatsapp { stroke: none; }
.one-share-intro { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 24px; background: #fff; border: 1px solid var(--one-border); border-radius: 8px; }
.one-share-intro-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; background: #fff0f0; color: var(--one-red); border-radius: 50%; }
.one-share-intro h3 { margin: 0 0 4px; font-size: 18px; }
.one-share-intro p { margin: 0; font-size: 14px; color: #555; }
.one-product-share { width: 100%; margin-block: 20px; padding-top: 18px; border-top: 1px solid #e5e5e5; }
.one-product-share h2 { font-size: 17px; margin: 0 0 12px; }
.one-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.one-share-actions > a, .one-share-actions > button {
  min-height: 40px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #d7d7d7; border-radius: 5px; padding: 8px 10px;
  background: #fff; color: #333; font-size: 13px; line-height: 1.2; font-weight: 700; cursor: pointer;
}
.one-share-actions > .one-share-whatsapp { color: #087d3e; border-color: #b8d9c6; background: #f4fbf7; }
.one-share-actions > a:hover, .one-share-actions > button:hover { background: #f0f0f0; }
.one-share-actions > [hidden] { display: none !important; }
.one-share-actions .one-icon { width: 18px; height: 18px; }
.one-share-status { display: block; margin-top: 8px; color: #087d3e; font-size: 12px; }
.one-share-status:empty { display: none; }
.one-product-share-compact { margin: 10px 0 0; padding-top: 12px; }
.one-product-share-compact .one-share-actions { gap: 6px; }
.one-product-share-compact .one-share-actions > a, .one-product-share-compact .one-share-actions > button { font-size: 12px; padding-inline: 8px; }
.shop-shell > .one-wrap { max-width: 1480px; }
.one-search-results { padding-top: 0; }
.one-catalog-banner { background: #1e1e1e; color: #fff; padding: 34px 0; margin-bottom: 36px; text-align: center; }
.one-catalog-banner h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); }
.one-catalog-banner p:last-child { margin: 8px 0 0; font-size: 17px; }
.one-catalog-banner .one-eyebrow { color: #ffb7b7; font-size: 12px; }
.one-catalog-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 30px; align-items: start; }
.one-catalog-results { min-width: 0; }
.one-catalog-results:only-child { grid-column: 1 / -1; }
.one-catalog-filters { min-width: 0; background: #fff; padding: 0 22px 22px 0; border-right: 1px solid var(--one-border); }
.one-catalog-filters summary { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 19px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.one-catalog-filters summary > span { white-space: nowrap; }
.one-catalog-filters summary::-webkit-details-marker { display: none; }
.one-catalog-filters summary > .one-icon:first-child { width: 21px; height: 21px; color: var(--one-red); }
.one-catalog-filters .one-filter-chevron { display: none; }
.one-filter-count { margin: 16px 0 24px; color: #555; font-size: 14px; }
.one-filter-count strong { display: block; margin-top: 5px; color: #222; }
.one-filter-group { display: block; margin: 0 0 20px; padding: 18px 0 0; border: 0; border-top: 1px solid #e5e5e5; min-width: 0; }
.one-filter-group > label, .one-filter-group > legend { display: block; padding: 0; margin-bottom: 9px; font-size: 13px; text-transform: uppercase; font-weight: 800; color: #444; }
.one-filter-form input[type="search"], .one-filter-form input[type="number"], .one-filter-form select {
  width: 100%; max-width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c8c8c8; border-radius: 5px; color: #222; background: #fff; padding: 10px; font-size: 14px;
}
.one-filter-form select { padding-right: 26px; }
.one-filter-search-field { position: relative; }
.one-filter-search-field input { padding-right: 34px !important; }
.one-filter-search-field > svg { position: absolute; right: 10px; top: 13px; color: #777; pointer-events: none; width: 18px; height: 18px; }
.one-filter-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.one-filter-price legend { float: left; width: 100%; grid-column: 1 / -1; }
.one-filter-price > div { min-width: 0; }
.one-filter-price > div > label { display: block; font-size: 12px; margin-bottom: 6px; color: #666; }
.one-filter-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 20px; }
.one-filter-stock input { width: 17px; height: 17px; accent-color: var(--one-red); }
.one-filter-submit { width: 100%; min-height: 44px; display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; background: var(--one-red); border: 0; border-radius: 5px; font-size: 14px; font-weight: 800; cursor: pointer; }
.one-filter-submit:hover { background: var(--one-red-dark); }
.one-filter-reset { display: block; width: fit-content; margin: 14px auto 0; font-size: 13px; color: #555; text-decoration: underline; text-underline-offset: 3px; }
.one-catalog-results ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px; }
.one-catalog-results ul.products li.product { display: flex; flex-direction: column; padding: 18px !important; }
.one-catalog-results ul.products li.product > .woocommerce-loop-product__link { display: flex; flex: 1; flex-direction: column; }
.one-catalog-results ul.products li.product a img { width: 100%; height: 200px; object-fit: contain; }
.one-catalog-results ul.products li.product .price { margin-top: auto !important; padding-top: 12px; }
.one-catalog-results ul.products li.product > .button { margin-top: 8px; align-self: flex-start; }
.one-catalog-results ul.products li.product .woocommerce-loop-product__title { min-height: 4.05em; }
.one-catalog-results .woocommerce-pagination { margin-top: 30px; }
.one-search-empty { max-width: none; box-shadow: none; }
:is(.one-filter-form, .one-share-actions) :is(input, select, button, a):focus-visible { outline: 3px solid var(--one-red); outline-offset: 3px; }
@media (min-width: 1700px) {
  .one-catalog-results ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 1100px) {
  .one-header-inner { grid-template-columns: 215px minmax(0, 1fr) 40px auto; gap: 18px; row-gap: 0; }
  .site-header .one-brand-sub { font-size: 10px; }
  .site-header .one-word { font-size: 43px; }
  .site-header .one-quote { min-width: 124px; font-size: 12px; padding-inline: 12px; }
  .one-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one-catalog-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 22px; }
  .one-catalog-results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 980px) {
  .one-header-inner { grid-template-columns: minmax(0, 1fr) 44px 38px; grid-template-areas: "brand toggle cart" "search search search"; min-height: 0; padding-block: 12px; gap: 10px; }
  .site-header .one-brand { width: fit-content; }
  .one-menu-toggle { display: block; grid-area: toggle; margin: 0; width: 44px; }
  .site-header .one-quote { display: none; }
  .one-header-search { max-width: none; }
  .one-header-search input[type="search"], .one-header-search .one-search-controls > button { min-height: 44px; height: 44px; }
  .one-nav { position: fixed; inset: var(--one-nav-top, 158px) 0 0; margin: 0; width: 100%; padding: 12px var(--one-gutter) 28px; border-top: 0; opacity: 0; visibility: hidden; background: #fff; }
  .one-nav.is-open { opacity: 1; visibility: visible; }
  .one-menu { display: block; }
  .one-menu > li > a { padding-block: 17px; font-size: 18px; }
  .one-menu .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; }
  .one-hero { min-height: 330px; background-position: center; }
  .one-hero-inner { padding-top: 42px; padding-bottom: 65px; }
  .one-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .one-benefits article { min-height: 82px; }
}
@media (max-width: 760px) {
  .one-topbar { font-size: 11px; }
  .one-topbar-inner > a { min-width: 0; }
  .one-topbar-inner > a span { white-space: nowrap; max-width: none; overflow: hidden; text-overflow: ellipsis; }
  .one-catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .one-catalog-filters { border: 1px solid #ddd; padding: 16px; border-radius: 6px; }
  .one-catalog-filters summary { font-size: 18px; }
  .one-catalog-filters .one-filter-chevron { display: block; margin-left: auto; }
  .one-catalog-filters details[open] .one-filter-chevron { transform: rotate(180deg); }
  .one-filter-content { padding-top: 6px; }
  .one-catalog-banner { padding-block: 26px; margin-bottom: 24px; }
  .one-hero { min-height: 340px; background-image: linear-gradient(90deg, rgba(8,8,8,.85), rgba(8,8,8,.6)), url('../images/fondo-maigas-cocina-industrial.webp'); background-position: center; }
  .one-hero h1 { font-size: clamp(30px, 7vw, 44px); }
  .one-hero-actions { display: flex; max-width: none; }
  .one-hero-actions a { min-height: 44px; font-size: 12px; padding-inline: 12px; }
  .one-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .one-benefits article { padding: 12px 9px; gap: 10px; border-bottom: 0 !important; }
  .one-benefits article:nth-child(-n+2) { border-bottom: 1px solid #ddd !important; }
  .one-benefits article:nth-child(2n) { border-right: 0; }
  .one-benefit-icon .one-icon { width: 28px; height: 28px; }
  .one-benefits h2 { font-size: 12px; }
  .one-benefits p { font-size: 11px; }
  .one-product-grid { gap: 14px; }
  .one-product-image { min-height: 155px; }
  .one-product-image img { height: 135px; }
  .one-product-info { padding: 14px; }
  .one-product-info h3 { font-size: 16px; }
  .one-share-intro { align-items: flex-start; padding: 18px; }
  .one-share-intro h3 { font-size: 16px; }
  .one-catalog-results ul.products { gap: 12px; }
  .one-catalog-results ul.products li.product { padding: 12px !important; }
  .one-catalog-results ul.products li.product a img { height: 160px; }
  .one-catalog-results ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
  .one-catalog-results ul.products li.product .price { font-size: 17px !important; }
  .one-catalog-results ul.products li.product > .button { font-size: 11px !important; padding: 8px 10px !important; }
  .one-catalog-results .one-share-actions > a, .one-catalog-results .one-share-actions > button { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .site-header .one-word { font-size: 36px; }
  .site-header .one-brand-sub { font-size: 10px; }
  .site-header .one-divider { height: 32px; margin-inline: 8px; }
  .one-header-inner { gap: 8px; }
  .one-header-search input[type="search"] { font-size: 14px; padding-inline: 12px; }
  .one-product-grid { grid-template-columns: minmax(0, 1fr); }
  .one-product-card { display: grid; grid-template-columns: 35% minmax(0, 1fr); }
  .one-product-image { padding: 12px; }
  .one-product-info h3 { min-height: 0; font-size: 16px; }
  .one-product-price { font-size: 21px; }
  .one-category-card { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding-inline: 18px; }
  .one-category-icon .one-icon { width: 42px; height: 42px; }
}
@media (max-width: 350px) {
  :root { --one-gutter: 14px; }
  .site-header .one-brand-sub { font-size: 9px; }
  .site-header .one-word { font-size: 32px; }
  .one-catalog-results ul.products { grid-template-columns: minmax(0, 1fr) !important; }
}
