/* GOYA 1.5.2 — classic product tabs only. No fonts loaded; no display rules on panels. */
body.single-product.goya-modern-tabs div.product .woocommerce-tabs {
  --gpt-red: var(--goya-red, #d9000d);
  --gpt-ink: #20252b;
  --gpt-muted: #646b75;
  --gpt-line: #e6e8ec;
  --gpt-tint: #fff5f5;
  box-sizing: border-box;
  clear: both;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-top: 36px !important;
  padding-top: 0 !important;
  border: 0 !important;
  font-family: var(--goya-font-sans, inherit);
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs {
  box-sizing: border-box;
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 8px !important;
  border: 1px solid var(--gpt-line) !important;
  border-radius: 18px !important;
  background: #f6f7f8 !important;
  box-shadow: none !important;
  list-style: none;
  overflow: visible !important;
  isolation: isolate;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs::before,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs::after,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li::before,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li::after {
  content: none !important;
  display: none !important;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li {
  display: flex !important;
  flex: 1 1 auto;
  float: none !important;
  position: relative;
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  height: auto;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 12px 18px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--gpt-ink) !important;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: 0;
  text-transform: none !important;
  text-align: center;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
@media (hover: hover) {
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--gpt-red) !important;
    background: #fff !important;
    border-color: #edc8ca !important;
  }
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li.active a,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li.ui-tabs-active a {
  color: var(--gpt-red) !important;
  background: #fff !important;
  border-color: var(--gpt-red) !important;
  box-shadow: 0 2px 7px rgba(122, 0, 8, .07), inset 0 0 0 .5px var(--gpt-red);
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a:focus-visible {
  outline: 2px solid var(--gpt-red);
  outline-offset: 2px;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .gpt-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -8px 2px 16px;
  padding: 0;
  color: var(--gpt-muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .gpt-scroll-hint[hidden] {
  display: none !important;
}
/* Do not set display/visibility/hidden on any tab panel; Woo owns its active state. */
body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .woocommerce-Tabs-panel {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin: 0 0 18px !important;
  padding: clamp(20px, 2.4vw, 36px) !important;
  border: 1px solid var(--gpt-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(24, 32, 44, .035);
  color: #424851;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  overflow-x: auto; /* Safe local fallback for wide legacy content without JavaScript. */
  scroll-margin-top: 110px;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .woocommerce-Tabs-panel > :first-child { margin-top: 0; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .woocommerce-Tabs-panel > :last-child { margin-bottom: 0; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .woocommerce-Tabs-panel img {
  max-width: 100%;
  height: auto;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro {
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro > *,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-copy { min-width: 0; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro h2,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-copy h2 {
  font-family: inherit;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -.015em;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs {
  border: 1px solid var(--gpt-line);
  border-top: 3px solid var(--gpt-red);
  border-radius: 14px;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs h3 {
  font-family: inherit;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  padding: 18px;
  background: var(--gpt-tint);
  color: #8a0610;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dl > div {
  grid-template-columns: minmax(90px, .72fr) minmax(0, 1.28fr);
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dt,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dd {
  min-width: 0;
  font-size: 14px;
  padding: 12px 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dt { background: #f7f8f9; color: #333a44; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-steps article { border-radius: 12px; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-note { border-radius: 0 12px 12px 0; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-copy--about { border-radius: 14px; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .gpt-table-scroll {
  max-width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .gpt-table-scroll:focus-visible {
  outline: 2px solid var(--gpt-red);
  outline-offset: 2px;
}
body.single-product.goya-modern-tabs div.product .woocommerce-tabs .gpt-table-scroll > table { margin: 0; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs input,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs select,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs textarea,
body.single-product.goya-modern-tabs div.product .woocommerce-tabs button { font-family: inherit; max-width: 100%; box-sizing: border-box; }
body.single-product.goya-modern-tabs div.product .woocommerce-tabs textarea { width: 100%; }
/* A horizontal strip is confined to the tab list; never to the whole product page. */
@media (max-width: 1023px) {
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #c6cbd2 transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 8px;
  }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { height: 3px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar-thumb { background: #c6cbd2; border-radius: 3px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
    max-width: min(320px, calc(100vw - 68px)) !important;
  }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a {
    min-height: 44px;
    font-size: 14px !important;
    padding: 11px 15px !important;
  }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs { margin-top: 26px !important; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs { border-radius: 15px !important; gap: 7px; padding: 7px !important; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a { border-radius: 10px !important; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .woocommerce-Tabs-panel {
    padding: 18px 16px !important;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.75;
  }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro h2,
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-tab-copy h2 { font-size: 23px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-tab-intro { gap: 24px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs h3 { font-size: 17px; padding: 14px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dt,
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs .goya-product-specs dd { padding: 11px 12px; font-size: 13px; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs input,
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs select,
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs li a { transition: none; }
}
@media print {
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs ul.tabs { display: none !important; }
  body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .gpt-scroll-hint { display: none !important; }
}

body.single-product.goya-modern-tabs div.product .woocommerce-tabs > .woocommerce-Tabs-panel:focus-visible { outline: 2px solid var(--gpt-red); outline-offset: 2px; }
