/*
Theme Name: Xela Automatic
Theme URI: https://www.xelautomatic.com/
Description: Tema hijo de Astra para Xela Automatic y WooCommerce.
Author: Xela Automatic
Template: astra
Version: 1.0.23
Text Domain: xela-automatic
*/

:root {
  --xela-navy: #1e2a55;
  --xela-navy-deep: #14203f;
  --xela-green: #83c900;
  --xela-green-dark: #5e9700;
  --xela-blue: #2e8bc5;
  --xela-ink: #18213a;
  --xela-text: #4e5668;
  --xela-muted: #eef3f7;
  --xela-line: #dbe3ea;
  --xela-white: #ffffff;
  --xela-radius: 20px;
  --xela-shadow: 0 18px 50px rgba(21, 32, 63, .12);
  --xela-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--xela-text);
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .xela-header { top: 32px; }
a { color: var(--xela-navy); text-decoration: none; }
a:hover { color: var(--xela-green-dark); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--xela-ink); line-height: 1.16; margin: 0 0 18px; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1.15rem; }

.xela-container { width: min(calc(100% - 40px), var(--xela-container)); margin-inline: auto; }
.xela-section { padding: 92px 0; }
.xela-section--soft { background: var(--xela-muted); }
.xela-section--navy { color: rgba(255,255,255,.86); background: var(--xela-navy); }
.xela-section--navy h2, .xela-section--navy h3 { color: #fff; }
.xela-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--xela-green-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.xela-section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.xela-section-heading p { max-width: 680px; margin-inline: auto; }
.xela-grid { display: grid; gap: 28px; }
.xela-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xela-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xela-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.xela-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 23px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--xela-green);
  color: #14203f;
  font-size: .95rem;
  font-weight: 800;
  transition: .2s ease;
}
.xela-btn:hover { transform: translateY(-2px); background: #9ddd16; color: #14203f; }
.xela-btn--blue { background: var(--xela-blue); color: #fff; }
.xela-btn--blue:hover { background: #1975ad; color: #fff; }
.xela-btn--outline { border-color: rgba(255,255,255,.75); background: transparent; color: #fff; }
.xela-btn--outline:hover { border-color: #fff; background: #fff; color: var(--xela-navy); }
.xela-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.xela-topbar { background: linear-gradient(90deg, var(--xela-navy-deep), var(--xela-navy)); color: rgba(255,255,255,.86); font-size: .8rem; letter-spacing: .015em; }
.xela-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 20px; }
.xela-topbar a { color: #fff; }
.xela-topbar__right { display: flex; gap: 22px; }
.xela-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: linear-gradient(100deg, #fff 0%, #fff 70%, #f5f8fb 100%);
  border-bottom: 4px solid var(--xela-green);
  box-shadow: 0 9px 28px rgba(13, 25, 54, .12);
}
.xela-header__inner { display: flex; align-items: center; min-height: 116px; gap: 16px; }
.xela-brand { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 7px 10px 6px; border-radius: 16px; transition: transform .2s ease, background .2s ease; }
.xela-brand:hover { background: rgba(131,201,0,.07); transform: translateY(-1px); }
.xela-brand img { width: 132px; max-height: 98px; object-fit: contain; }
.xela-nav { display: flex; align-items: center; margin-left: auto; }
.xela-nav ul { display: flex; align-items: center; gap: 17px; margin: 0; padding: 0; list-style: none; }
.xela-nav a { position: relative; display: inline-flex; align-items: center; min-height: 46px; color: var(--xela-navy); font-size: .84rem; font-weight: 760; letter-spacing: .02em; }
.xela-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 3px; border-radius: 999px; background: var(--xela-green); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; content: ""; }
.xela-nav .current-menu-item > a, .xela-nav a:hover { color: var(--xela-green-dark); }
.xela-nav .current-menu-item > a::after, .xela-nav a:hover::after { transform: scaleX(1); }
.xela-header__commerce { display: flex; align-items: center; gap: 7px; }
.xela-header__tool { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 7px 9px; border: 1px solid #d8e0e9; border-radius: 10px; background: #fff; color: var(--xela-navy); font-size: .75rem; font-weight: 800; line-height: 1.1; white-space: nowrap; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.xela-header__tool:hover { border-color: var(--xela-green); color: var(--xela-green-dark); transform: translateY(-1px); }
.xela-header__tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xela-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--xela-green); color: var(--xela-navy-deep); font-size: .7rem; font-weight: 900; }
.xela-header__cta { min-height: 46px; margin-left: 0; padding: 10px 16px; background: var(--xela-navy); color: #fff; box-shadow: 0 9px 22px rgba(30,42,85,.18); }
.xela-header__cta:hover { background: var(--xela-green-dark); color: #fff; }
.xela-admin-preview { padding: 9px 0; border-bottom: 1px solid #cad7e5; background: #eef6ff; color: #263d60; font-size: .84rem; }
.xela-admin-preview strong { color: var(--xela-navy); }
.xela-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--xela-navy); cursor: pointer; }
.xela-menu-toggle span, .xela-menu-toggle::before, .xela-menu-toggle::after {
  display: block; width: 26px; height: 2px; margin: 6px auto; background: currentColor; content: "";
}

.xela-hero { position: relative; overflow: hidden; background: var(--xela-navy); color: #fff; }
.xela-slider { position: relative; min-height: 650px; }
.xela-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .75s ease; }
.xela-slide.is-active { opacity: 1; visibility: visible; }
.xela-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xela-slide::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,29,63,.93) 0%, rgba(20,32,63,.76) 45%, rgba(20,32,63,.18) 100%); content: ""; }
.xela-slide__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 650px; max-width: 720px; }
.xela-slide h1, .xela-slide h2 { color: #fff; }
.xela-slide h1 { margin-bottom: 22px; }
.xela-slide h2 { font-size: clamp(2.35rem, 5vw, 4.4rem); }
.xela-slide p { max-width: 640px; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.xela-slider__controls { position: absolute; z-index: 4; right: max(20px, calc((100vw - var(--xela-container))/2)); bottom: 30px; display: flex; gap: 10px; }
.xela-slider__controls button { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(20,32,63,.45); color: #fff; font-size: 1.4rem; cursor: pointer; }
.xela-slider__dots { position: absolute; z-index: 4; left: 50%; bottom: 13px; display: flex; gap: 2px; transform: translateX(-50%); }
.xela-slider__dots button { position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.xela-slider__dots button::after { position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: transparent; transform: translate(-50%,-50%); content: ""; }
.xela-slider__dots button.is-active::after { background: var(--xela-green); border-color: var(--xela-green); }
.xela-slider__pause { position: absolute; z-index: 4; left: max(20px, calc((100vw - var(--xela-container))/2)); bottom: 17px; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(20,32,63,.58); color: #fff; font: inherit; font-size: 1rem; font-weight: 900; cursor: pointer; }
.xela-slider__pause:hover { background: rgba(20,32,63,.86); }
.xela-slider__pause:focus-visible,
.xela-slider__dots button:focus-visible,
.xela-slider__controls button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.xela-card { overflow: hidden; border: 1px solid var(--xela-line); border-radius: var(--xela-radius); background: #fff; box-shadow: var(--xela-shadow); }
.xela-card__media { height: 290px; overflow: hidden; }
.xela-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xela-card:hover .xela-card__media img { transform: scale(1.035); }
.xela-card__body { padding: 30px; }
.xela-list { margin: 18px 0 25px; padding: 0; list-style: none; }
.xela-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid #edf1f4; }
.xela-list li::before { position: absolute; left: 2px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--xela-green); content: ""; }
.xela-feature { padding: 28px; border: 1px solid var(--xela-line); border-radius: 16px; background: #fff; }
.xela-feature__number { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--xela-blue); color: #fff; font-weight: 900; }
.xela-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.xela-split__media img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--xela-radius); box-shadow: var(--xela-shadow); }
.xela-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 24px; margin: 25px 0; }
.xela-check { position: relative; padding-left: 27px; font-weight: 650; }
.xela-check::before { position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border: 4px solid var(--xela-green); border-radius: 50%; content: ""; }
.xela-cta { padding: 62px 0; background: linear-gradient(135deg, var(--xela-navy-deep), var(--xela-navy)); color: rgba(255,255,255,.88); }
.xela-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.xela-cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }

.xela-page-hero { position: relative; min-height: 430px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--xela-navy); }
.xela-page-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,32,63,.95), rgba(20,32,63,.55)); content: ""; }
.xela-page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xela-page-hero__content { position: relative; z-index: 2; max-width: 760px; padding: 80px 0; }
.xela-page-hero h1 { color: #fff; }
.xela-page-hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; }

/* Acabado editorial para las páginas de servicios principales. */
body.page-id-17 .xela-page-hero,
body.page-id-18 .xela-page-hero {
  min-height: 520px;
  border-bottom: 1px solid rgba(131,201,0,.55);
}
body.page-id-17 .xela-page-hero::before,
body.page-id-18 .xela-page-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,12,30,.06), rgba(5,12,30,.28));
  content: "";
}
body.page-id-17 .xela-page-hero::after,
body.page-id-18 .xela-page-hero::after {
  background: linear-gradient(90deg, rgba(10,20,45,.96) 0%, rgba(18,33,68,.82) 48%, rgba(18,33,68,.18) 100%);
}
body.page-id-17 .xela-page-hero__content,
body.page-id-18 .xela-page-hero__content {
  max-width: 790px;
  padding: 105px 0;
}
body.page-id-17 .xela-page-hero .xela-kicker,
body.page-id-18 .xela-page-hero .xela-kicker {
  padding: 6px 11px;
  border: 1px solid rgba(157,222,32,.5);
  border-radius: 999px;
  background: rgba(9,20,46,.42);
  letter-spacing: .16em;
}
body.page-id-17 .xela-page-hero h1,
body.page-id-18 .xela-page-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.7vw, 5.25rem);
  letter-spacing: -.045em;
  text-shadow: 0 4px 28px rgba(0,0,0,.22);
}
body.page-id-17 .xela-page-hero p,
body.page-id-18 .xela-page-hero p {
  max-width: 690px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 1.5vw, 1.23rem);
  line-height: 1.65;
}
body.page-id-17 .xela-page > .xela-section,
body.page-id-18 .xela-page > .xela-section {
  padding: 84px 0;
}
body.page-id-17 .xela-page > .xela-section:nth-of-type(2),
body.page-id-18 .xela-page > .xela-section:nth-of-type(2) {
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid #e4e9ef;
}
body.page-id-17 .xela-page > .xela-section:nth-of-type(2) .xela-split,
body.page-id-18 .xela-page > .xela-section:nth-of-type(2) .xela-split {
  align-items: stretch;
  gap: 72px;
}
body.page-id-17 .xela-page > .xela-section:nth-of-type(2) .xela-card,
body.page-id-18 .xela-page > .xela-section:nth-of-type(2) .xela-card {
  position: relative;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(12,27,58,.14);
}
body.page-id-17 .xela-page > .xela-section:nth-of-type(2) .xela-card::before,
body.page-id-18 .xela-page > .xela-section:nth-of-type(2) .xela-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xela-green), #b5e75a);
  content: "";
}
body.page-id-17 .xela-page > .xela-section:nth-of-type(2) .xela-card__body,
body.page-id-18 .xela-page > .xela-section:nth-of-type(2) .xela-card__body {
  padding: 38px;
}
body.page-id-17 .xela-page .xela-feature,
body.page-id-18 .xela-page .xela-feature {
  border: 0;
  border-top: 3px solid var(--xela-navy);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,31,63,.09);
  transition: transform .22s ease, box-shadow .22s ease;
}
body.page-id-17 .xela-page .xela-feature:hover,
body.page-id-18 .xela-page .xela-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15,31,63,.13);
}
body.page-id-17 .xela-page .xela-btn--blue,
body.page-id-18 .xela-page .xela-btn--blue {
  background: var(--xela-navy);
  box-shadow: 0 10px 24px rgba(20,32,63,.2);
}
body.page-id-17 .xela-page .xela-btn--blue:hover,
body.page-id-18 .xela-page .xela-btn--blue:hover {
  background: var(--xela-green-dark);
}
.xela-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; }
.xela-contact-card { padding: 30px; border-radius: 18px; background: var(--xela-navy); color: rgba(255,255,255,.84); }
.xela-contact-card h3, .xela-contact-card a { color: #fff; }
.xela-contact-form { padding: 36px; border: 1px solid var(--xela-line); border-radius: var(--xela-radius); background: #fff; box-shadow: var(--xela-shadow); }
.xela-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.xela-field { margin-bottom: 18px; }
.xela-field label { display: block; margin-bottom: 7px; color: var(--xela-ink); font-size: .9rem; font-weight: 700; }
.xela-field input, .xela-field select, .xela-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cbd5df; border-radius: 9px; background: #fff; color: var(--xela-ink); font: inherit; }
.xela-field textarea { min-height: 150px; resize: vertical; }
.xela-notice { margin-bottom: 25px; padding: 15px 18px; border-radius: 10px; background: #e8f7df; color: #315b17; }
.xela-notice--error { background: #fff0f0; color: #8a2727; }

.xela-main { min-height: 55vh; }
.xela-content { padding: 72px 0; }
.xela-content > .xela-container { max-width: 900px; }
.xela-legal__updated { margin-bottom: 32px; color: #667085; font-size: .95rem; }
.xela-legal h2 { margin-top: 42px; }
.xela-legal h3 { margin-top: 30px; }
.xela-legal ul, .xela-legal ol { padding-left: 1.4rem; }
.xela-legal li + li { margin-top: 8px; }
.xela-legal__table { width: 100%; margin: 24px 0; border-collapse: collapse; }
.xela-legal__table th, .xela-legal__table td { padding: 14px; border: 1px solid #dfe5ec; text-align: left; vertical-align: top; }
.xela-legal__table th { background: var(--xela-soft); color: var(--xela-navy); }
.xela-legal__notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--xela-green); border-radius: 0 10px 10px 0; background: var(--xela-soft); }
.xela-footer__legal { line-height: 1.8; }
.xela-whatsapp { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 999px; background: #0a9f47; color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(10,159,71,.32); }
.xela-whatsapp:hover { background: #087f3a; color: #fff; transform: translateY(-2px); }
.xela-footer { background: #111a35; color: rgba(255,255,255,.72); }
.xela-footer__main { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 48px; padding: 64px 0; }
.xela-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.xela-footer a { color: rgba(255,255,255,.84); }
.xela-footer a:hover { color: var(--xela-green); }
.xela-footer ul { margin: 0; padding: 0; list-style: none; }
.xela-footer li { margin: 8px 0; }
.xela-footer__logo { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; padding: 10px 16px; border-radius: 14px; background: #fff; }
.xela-footer__brand img { width: 135px; max-height: 100px; object-fit: contain; }
.xela-footer__bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; text-align: center; }

/* WooCommerce */
.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button, .wc-block-components-button {
  border-radius: 9px !important; background: var(--xela-navy) !important; color: #fff !important; font-weight: 800 !important;
}
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--xela-green-dark) !important; }
.woocommerce.archive .woocommerce-products-header { margin: 0 0 16px; }
.woocommerce.archive .woocommerce-products-header__title.page-title {
  margin: 0 0 8px !important;
  font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
  line-height: 1.12;
}
.woocommerce.archive .term-description { max-width: 820px; color: #465168; font-size: 1rem; line-height: 1.5; }
.woocommerce.archive .term-description p { margin-bottom: 0; }
.tax-product_cat .xela-product-search { margin-top: 12px; padding: 13px 16px; }
.xela-quick-filters { margin: 0 0 16px; padding: 0; }
.xela-quick-filters__heading {
  display: block;
  margin-bottom: 8px;
  color: var(--xela-ink);
  font-size: .92rem;
  font-weight: 800;
}
.xela-quick-filters__rail {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-color: #bdc9d6 transparent;
  scrollbar-width: thin;
}
.xela-quick-filters a {
  display: flex;
  flex: 0 0 102px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e4a60;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}
.xela-quick-filter__visual {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d8e0e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(21,32,63,.08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.xela-quick-filter__visual img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}
.xela-quick-filter__all { background: linear-gradient(145deg, #f1f8e8, #fff); color: var(--xela-navy); }
.xela-quick-filter__all svg { width: 30px; height: 30px; fill: currentColor; }
.xela-quick-filter__fallback { color: var(--xela-navy); font-size: 1.5rem; font-weight: 900; }
.xela-quick-filter__label { display: block; max-width: 102px; }
.xela-quick-filters a:hover { color: var(--xela-green-dark); }
.xela-quick-filters a:hover .xela-quick-filter__visual { border-color: #a8cb7a; transform: translateY(-2px); }
.xela-quick-filters a.is-active { color: #31520c; font-weight: 850; }
.xela-quick-filters a.is-active .xela-quick-filter__visual {
  border-color: var(--xela-green);
  box-shadow: 0 0 0 3px #edf8dd, 0 7px 18px rgba(74,132,16,.16);
}
.xela-quick-filters a:focus-visible { outline: 3px solid rgba(31,83,159,.35); outline-offset: 3px; border-radius: 8px; }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 12px; }
.woocommerce .woocommerce-result-count { color: #5c6678; font-size: .9rem; }
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  max-width: 1680px;
  margin: 0 auto 22px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  float: none !important;
  display: flex;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 10px;
  border: 1px solid var(--xela-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(21,32,63,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,32,63,.12); }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { overflow: hidden; border-radius: 9px; background: #f7f9fb; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > .woocommerce-LoopProduct-link {
  position: relative;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 8px;
}
.woocommerce ul.products li.product .ast-woo-product-category {
  margin-bottom: 4px;
  color: #687386;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.3;
  opacity: 1;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.72em;
  margin: 0 0 8px !important;
  color: var(--xela-ink);
  font-size: 1rem !important;
  font-weight: 800;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.woocommerce ul.products li.product .price { margin: auto 0 9px !important; line-height: 1.3; }
.woocommerce ul.products li.product .xela-private-price { font-size: .84rem; line-height: 1.3; }
.woocommerce ul.products li.product .xela-view-product-button {
  align-self: stretch;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 9px 10px !important;
  text-align: center;
  font-size: .84rem;
}
.woocommerce ul.products li.product .ast-on-card-button { display: none !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--xela-green-dark); font-weight: 800; }
.woocommerce .xela-stock-on-order {
  margin: 8px 0 12px;
  color: var(--xela-green-dark);
  font-size: .92rem;
  font-weight: 800;
}
.woocommerce div.product .xela-stock-on-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf8dd;
}
.woocommerce div.product .xela-stock-on-order::before {
  content: "●";
  color: var(--xela-green);
  font-size: .72rem;
}
.xela-store-intro { max-width: 850px; margin: 0 auto 42px; text-align: center; }
.xela-store-intro .xela-actions { justify-content: center; }
.xela-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-bottom: 60px; }
.xela-catalog-card { overflow: hidden; border: 1px solid var(--xela-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(21,32,63,.08); }
.xela-catalog-card img { width: 100%; height: 180px; object-fit: cover; }
.xela-catalog-card > div { display: flex; flex-direction: column; min-height: 190px; padding: 23px; }
.xela-catalog-card h3 { margin-bottom: 10px; color: var(--xela-ink); font-size: 1.2rem; }
.xela-catalog-card p { min-height: 58px; margin-bottom: 18px; color: #465168 !important; font-size: 1rem; font-weight: 500; line-height: 1.55; opacity: 1 !important; }
.xela-catalog-card a { margin-top: auto; color: var(--xela-blue); font-weight: 800; }
.xela-product-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 30px 0 44px; }
.xela-product-category { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; overflow: hidden; min-height: 112px; color: var(--xela-ink); border: 1px solid var(--xela-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(21,32,63,.07); transition: transform .2s ease, box-shadow .2s ease; }
.xela-product-category:hover { color: var(--xela-ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(21,32,63,.12); }
.xela-product-category img { width: 112px; height: 100%; min-height: 112px; object-fit: cover; }
.xela-product-category span { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
.xela-product-category strong { display: block; color: var(--xela-ink); font-size: 1rem; line-height: 1.25; }
.xela-product-category small { display: block; margin-top: 6px; color: #526078; line-height: 1.4; }
.xela-products-title { margin: 0 0 22px; color: var(--xela-ink); }
.xela-product-search { display: grid; grid-template-columns: minmax(230px,.55fr) minmax(360px,1.45fr); align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--xela-line); border-left: 4px solid var(--xela-green); border-radius: 12px; background: #f7fafc; box-shadow: 0 5px 18px rgba(21,32,63,.05); }
.xela-product-search strong { display: block; margin-bottom: 2px; color: var(--xela-ink); font-size: .98rem; }
.xela-product-search span { color: #526078; font-size: .84rem; line-height: 1.35; }
.xela-product-search form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0; }
.xela-product-search input[type="search"] { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bdc9d6; border-radius: 8px; background: #fff; color: var(--xela-ink); font: inherit; }
.xela-product-search button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 8px; background: var(--xela-navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.xela-product-search button:hover { background: var(--xela-green-dark); }
.xela-account-intro { margin: 0 0 34px; padding: 28px; border: 1px solid var(--xela-line); border-left: 5px solid var(--xela-green); border-radius: 16px; background: #f7fafc; }
.xela-account-intro h1 { margin: 6px 0 10px; color: var(--xela-ink); font-size: clamp(1.8rem,3vw,2.5rem); }
.xela-account-intro p { max-width: 780px; color: #465168; }
.xela-account-intro ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.xela-account-intro li { padding: 12px 14px; border-radius: 10px; background: #fff; color: var(--xela-ink); font-size: .92rem; font-weight: 700; }
.xela-account-intro li::before { content: "✓"; margin-right: 8px; color: var(--xela-green-dark); }
.xela-register-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; margin: 18px 0; }
.woocommerce form .xela-register-fields .form-row { float: none; width: auto; margin: 0; padding: 0; }
.xela-register-fields .xela-field-wide { grid-column: 1 / -1; }
.xela-register-fields input, .xela-register-fields select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #bdc9d6; border-radius: 8px; background: #fff; color: var(--xela-ink); }
.xela-approval-help { margin: 12px 0 18px; padding: 12px 14px; border-radius: 9px; background: #edf8dd; color: #345514; font-size: .9rem; line-height: 1.5; }
.xela-product-consult { clear: both; margin-top: 24px; padding: 22px; border: 1px solid var(--xela-line); border-left: 4px solid var(--xela-green); border-radius: 12px; background: #f7fafc; }
.xela-product-consult p { margin-bottom: 16px; color: #3f4b61; }
.xela-private-price { display: inline-block; color: var(--xela-blue) !important; font-size: .93rem; font-weight: 800; line-height: 1.35; }
.xela-price-gate { margin: 22px 0; padding: 22px; border: 1px solid var(--xela-line); border-left: 4px solid var(--xela-green); border-radius: 12px; background: #f7fafc; }
.xela-price-gate strong { display: block; margin-bottom: 6px; color: var(--xela-ink); font-size: 1.05rem; }
.xela-price-gate p { margin-bottom: 15px; color: #465168; }

/* Product pages: keep the purchase summary and technical data compact. */
.single-product .site-main {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 18px;
  padding-left: 18px;
}
.single-product .woocommerce-product-gallery__image a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-product .woocommerce-product-gallery__image img {
  width: auto !important;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.single-product .woocommerce-tabs.wc-tabs-wrapper {
  clear: both;
  width: 100%;
  max-width: 920px;
  margin: 34px auto 0 !important;
}
.single-product .woocommerce-tabs .panel {
  padding: 0 !important;
  color: #465168;
  font-size: .94rem;
  line-height: 1.55;
}
.single-product .woocommerce-tabs .panel > :first-child { margin-top: 0; }
.single-product .woocommerce-tabs .panel p { margin-bottom: .85em; }
.single-product .woocommerce-tabs .panel h3 {
  margin: 20px 0 10px;
  color: var(--xela-ink);
  font-size: 1.18rem;
}
.single-product .woocommerce-tabs table.shop_attributes {
  width: 100%;
  margin: 0 0 14px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .91rem;
}
.single-product .woocommerce-tabs table.shop_attributes th {
  width: 220px;
  padding: 8px 12px !important;
  background: #f7fafc;
  color: var(--xela-ink);
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}
.single-product .woocommerce-tabs table.shop_attributes td {
  padding: 8px 12px !important;
  line-height: 1.4;
  vertical-align: middle;
}
.single-product .woocommerce-tabs table.shop_attributes td p {
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 783px) {
  .single-product .woocommerce div.product div.images {
    width: 41%;
    max-width: 460px;
  }
  .single-product .woocommerce div.product div.summary { width: 54%; }
}
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 155px !important;
  margin: 0 !important;
  padding: 6px;
  aspect-ratio: auto !important;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f9fb;
}
.woocommerce ul.products li.product .xela-product-sku {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eaf0f5;
  color: #334155;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.woocommerce ul.products li.product .xela-stock-on-order {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 7px;
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf8dd;
  font-size: .72rem;
  line-height: 1.2;
}

/* Do not expose stale PayPal widgets from page caches to restricted users. */
.xela-prices-restricted .ppcp-messages,
.xela-prices-restricted .ppc-button-wrapper,
.xela-prices-restricted [id^="ppc-button-"] { display: none !important; }

@media (min-width: 1280px) {
  .woocommerce ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

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

@media (max-width: 782px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .woocommerce ul.products li.product img { height: 150px !important; }
  .single-product .site-main { padding-right: 14px; padding-left: 14px; }
  .single-product .woocommerce-product-gallery__image img { max-height: 360px; }
  .single-product .woocommerce-tabs.wc-tabs-wrapper { margin-top: 24px !important; }
  .single-product .woocommerce-tabs .panel { font-size: .9rem; }
  .single-product .woocommerce-tabs table.shop_attributes th {
    width: 42%;
    padding: 7px 9px !important;
  }
  .single-product .woocommerce-tabs table.shop_attributes td { padding: 7px 9px !important; }
}

@media (max-width: 1180px) {
  .xela-menu-toggle { display: block; }
  .xela-header__commerce { margin-left: auto; }
  .xela-header__cta { display: none; }
  .xela-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 18px 24px 25px; background: #fff; border-bottom: 4px solid var(--xela-green); box-shadow: 0 18px 32px rgba(21,32,63,.12); }
  .xela-nav.is-open { display: block; }
  .xela-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .xela-nav li { border-bottom: 1px solid var(--xela-line); }
  .xela-nav a { display: block; min-height: 0; padding: 13px 4px; }
  .xela-nav a::after { display: none; }
  .xela-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .xela-header { top: 46px; }
  .xela-topbar__inner { justify-content: center; }
  .xela-topbar__right span:first-child { display: none; }
  .xela-header__inner { min-height: 92px; }
  .xela-brand { padding: 5px 7px; }
  .xela-brand img { width: 104px; max-height: 78px; }
  .xela-header__commerce { gap: 4px; }
  .xela-header__tool { min-width: 42px; padding: 7px; }
  .xela-header__tool > span:not(.xela-cart-count) { display: none; }
  .xela-header__tool svg { width: 23px; height: 23px; }
  .xela-slider, .xela-slide__content { min-height: 600px; }
  .xela-slide::after { background: linear-gradient(90deg, rgba(15,29,63,.94), rgba(20,32,63,.67)); }
  .xela-slide__content { padding-bottom: 60px; }
  .xela-section { padding: 68px 0; }
  .xela-grid--2, .xela-grid--3, .xela-grid--4, .xela-split, .xela-contact-grid { grid-template-columns: 1fr; }
  .xela-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .xela-product-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xela-product-search { grid-template-columns: 1fr; }
  .xela-account-intro ul { grid-template-columns: 1fr; }
  .xela-register-fields { grid-template-columns: 1fr; }
  .xela-register-fields .xela-field-wide { grid-column: auto; }
  .xela-split { gap: 35px; }
  .xela-split__media { order: -1; }
  .xela-card__media { height: 240px; }
  .xela-cta__inner { align-items: flex-start; flex-direction: column; }
  .xela-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .xela-legal__table { display: block; overflow-x: auto; font-size: .92rem; }
  .woocommerce-page .ast-woocommerce-container { padding-right: 14px; padding-left: 14px; }
  .woocommerce .woocommerce-breadcrumb { margin-bottom: 14px; line-height: 1.45; }
  .woocommerce.archive .woocommerce-products-header { margin-bottom: 14px; }
  .woocommerce .woocommerce-ordering select { min-height: 44px; padding: 8px 34px 8px 10px; }
  .woocommerce .button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce a.button,
  .wc-block-components-button { min-height: 44px; }
  .woocommerce-account .woocommerce form input.input-text,
  .woocommerce-account .woocommerce form select,
  .woocommerce-account .woocommerce form textarea { min-height: 48px; font-size: 16px; }
  .woocommerce-account .woocommerce form button.button { min-height: 48px; padding: 11px 18px !important; }
  .woocommerce-account .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; }
  .woocommerce-account .woocommerce form input[type="checkbox"] { width: 20px; height: 20px; margin-right: 8px; }
  .woocommerce-account .woocommerce form .password-input { position: relative; display: block; }
  .woocommerce-account .woocommerce form .show-password-input {
    top: 50% !important;
    right: 2px !important;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: translateY(-50%);
  }
  .xela-whatsapp { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  #ast-scroll-top,
  .ast-scroll-to-top-right { right: auto !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; left: 14px !important; }
  .grecaptcha-badge { right: -186px !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; z-index: 60 !important; }
  body.page-id-17 .xela-page-hero,
  body.page-id-18 .xela-page-hero { min-height: 450px; }
  body.page-id-17 .xela-page-hero__content,
  body.page-id-18 .xela-page-hero__content { padding: 76px 0; }
  body.page-id-17 .xela-page > .xela-section:nth-of-type(2) .xela-split,
  body.page-id-18 .xela-page > .xela-section:nth-of-type(2) .xela-split { gap: 36px; }
}

@media (max-width: 560px) {
  .xela-container { width: min(calc(100% - 28px), var(--xela-container)); }
  .xela-topbar__right { gap: 10px; }
  .xela-slider, .xela-slide__content { min-height: 620px; }
  .xela-slider__controls { display: none; }
  .xela-slider__pause { left: 14px; bottom: 17px; }
  .xela-actions { align-items: stretch; flex-direction: column; }
  .xela-btn { width: 100%; }
  .xela-checks, .xela-form-grid { grid-template-columns: 1fr; }
  .xela-catalog-grid { grid-template-columns: 1fr; }
  .xela-store-intro { margin-bottom: 24px; }
  .xela-product-category-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 18px 0 26px;
    padding: 2px 1px 10px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-color: #bdc9d6 transparent;
    scrollbar-width: thin;
  }
  .xela-product-category {
    flex: 0 0 min(82vw, 286px);
    grid-template-columns: 84px 1fr;
    min-height: 88px;
    scroll-snap-align: start;
  }
  .xela-product-category img { width: 84px; min-height: 88px; }
  .xela-product-category span { padding: 11px 12px; }
  .xela-product-category small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    font-size: .82rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .woocommerce.archive .woocommerce-products-header__title.page-title { font-size: 1.85rem !important; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .woocommerce ul.products li.product { padding: 8px; }
  .woocommerce ul.products li.product img { height: 122px !important; padding: 4px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.72em; font-size: .88rem !important; }
  .woocommerce ul.products li.product .ast-woo-product-category { font-size: .7rem; }
  .woocommerce ul.products li.product .xela-private-price { font-size: .78rem; }
  .xela-quick-filters__rail { gap: 10px; scroll-snap-type: inline proximity; }
  .xela-quick-filters a { flex-basis: 84px; min-height: 106px; font-size: .73rem; scroll-snap-align: start; }
  .xela-quick-filter__visual { width: 64px; height: 64px; }
  .xela-quick-filter__label { max-width: 84px; }
  .xela-account-intro { margin-bottom: 24px; padding: 20px 17px; }
  .xela-product-search form { grid-template-columns: 1fr; }
  .xela-product-search button { width: 100%; }
  .xela-contact-form { padding: 24px 18px; }
  .xela-whatsapp span { display: none; }
  .xela-whatsapp { width: 54px; height: 54px; justify-content: center; padding: 0; font-size: 1.35rem; }
}

@media (max-width: 360px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .woocommerce ul.products li.product img { height: 155px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .xela-slide { transition: none; }
  .xela-card:hover .xela-card__media img,
  .woocommerce ul.products li.product:hover,
  .xela-product-category:hover,
  .xela-whatsapp:hover { transform: none; }
}
