/*
Theme Name: Aviles
Theme URI: https://aviles-sabor-de-mexico.desselite.chatgpt.site/
Author: Merkadex
Author URI: https://merkadex.com/
Description: Tema de Productos Avilés preparado para editar todas las páginas interiores con Elementor.
Version: 2.3.27
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: aviles-elementor
*/

:root {
  --av-red: #a70f1f;
  --av-red-dark: #780815;
  --av-gold: #d3a13a;
  --av-ink: #211713;
  --av-cream: #f6f0e8;
  --av-paper: #fffdf9;
  --av-muted: #71655e;
  --av-blue: #0c4c7a;
  --av-radius: 22px;
  --av-shadow: 0 18px 50px rgba(55, 25, 13, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--av-ink);
  background: var(--av-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: Georgia, 'Times New Roman', serif; line-height: 1.05; }
p { margin: 0 0 1em; }

.av-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid rgba(64, 37, 25, .12);
  backdrop-filter: blur(12px);
}
.av-header-inner {
  width: min(1220px, calc(100% - 42px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.av-logo img, .av-logo .custom-logo { display: block; width: 145px; max-height: 62px; object-fit: contain; }
.av-main-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.av-main-nav a { font-size: 14px; font-weight: 700; }
.av-main-nav a:hover, .av-main-nav .current-menu-item > a { color: var(--av-red); }
.av-menu-toggle { display: none; appearance: none; border: 0; background: var(--av-red); color: #fff; padding: 10px 14px; border-radius: 999px; font-weight: 700; }

.av-main { min-height: 65vh; overflow: hidden; }
.av-elementor-page .av-content { padding: 0; }
.av-content { width: min(1180px, calc(100% - 40px)); margin: 50px auto; }
.elementor-page .av-content { width: 100%; margin: 0; }

.elementor-section.av-section > .elementor-container,
.elementor-section.av-hero > .elementor-container,
.elementor-section.av-band > .elementor-container,
.elementor-section.av-grid > .elementor-container,
.elementor-section.av-cta > .elementor-container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px !important;
  margin: auto;
}
.elementor-section.av-section { padding: 82px 0; }
.elementor-section.av-section.av-tight { padding: 48px 0; }
.elementor-section.av-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(211,161,58,.4), transparent 28%), linear-gradient(125deg, #3a150d, #120b08 58%, #75101b);
}
.elementor-section.av-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -180px 25%;
  height: 300px;
  border: 2px solid rgba(211,161,58,.35);
  border-radius: 50%;
  transform: rotate(-5deg);
}
.av-hero h1 { font-size: clamp(44px, 6vw, 76px); color: #fff; }
.av-hero h2, .av-hero h3, .av-band h2, .av-band h3, .av-cta h2 { color: #fff; }
.av-hero p { max-width: 650px; color: rgba(255,255,255,.82); font-size: 18px; }
.av-hero .elementor-image img { max-height: 520px; object-fit: contain; filter: drop-shadow(0 28px 32px rgba(0,0,0,.35)); }
.av-eyebrow .elementor-heading-title, .av-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--av-gold) !important;
}
.av-lead { font-size: 19px; color: var(--av-muted); }
.av-section-title .elementor-heading-title { font-size: clamp(34px, 5vw, 56px); }
.av-section-title em { color: var(--av-red); font-style: normal; }

.elementor-widget-button .elementor-button {
  background: var(--av-red);
  border: 1px solid var(--av-red);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  box-shadow: none;
}
.elementor-widget-button .elementor-button:hover { background: var(--av-red-dark); border-color: var(--av-red-dark); }
.av-button-light .elementor-button { background: #fff; border-color: #fff; color: var(--av-red); }
.av-button-outline .elementor-button { background: transparent; border-color: var(--av-red); color: var(--av-red); }

.elementor-section.av-grid > .elementor-container { display: grid; gap: 22px; }
.elementor-section.av-grid.av-grid-2 > .elementor-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elementor-section.av-grid.av-grid-3 > .elementor-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elementor-section.av-grid.av-grid-4 > .elementor-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.elementor-section.av-grid.av-grid-5 > .elementor-container { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.elementor-section.av-grid > .elementor-container > .elementor-column { width: 100% !important; }

.av-card > .elementor-widget-wrap,
.av-product-card > .elementor-widget-wrap,
.av-recipe-card > .elementor-widget-wrap,
.av-brand-card > .elementor-widget-wrap,
.av-channel-card > .elementor-widget-wrap,
.av-person-card > .elementor-widget-wrap,
.av-timeline-item > .elementor-widget-wrap {
  height: 100%;
  overflow: hidden;
  padding: 24px !important;
  background: #fff;
  border: 1px solid rgba(63, 33, 19, .12);
  border-radius: var(--av-radius);
  box-shadow: 0 10px 30px rgba(55, 25, 13, .07);
}
.av-card:hover > .elementor-widget-wrap,
.av-product-card:hover > .elementor-widget-wrap,
.av-recipe-card:hover > .elementor-widget-wrap { transform: translateY(-4px); box-shadow: var(--av-shadow); }
.av-card > .elementor-widget-wrap,
.av-product-card > .elementor-widget-wrap,
.av-recipe-card > .elementor-widget-wrap { transition: transform .22s ease, box-shadow .22s ease; }
.av-card .elementor-image img, .av-product-card .elementor-image img, .av-recipe-card .elementor-image img {
  width: 100%;
  height: 270px;
  object-fit: contain;
  border-radius: 16px;
}
.av-product-card .elementor-heading-title, .av-recipe-card .elementor-heading-title { font-size: 23px; }
.av-meta { color: var(--av-red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.av-trust { background: #fff; border-bottom: 1px solid rgba(63,33,19,.1); box-shadow: 0 12px 28px rgba(55,25,13,.08); }
.av-trust .elementor-widget-wrap { justify-content: center; text-align: center; padding: 22px 12px !important; }
.av-trust .elementor-heading-title { font-family: Arial, Helvetica, sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }

.av-cream { background: var(--av-cream); }
.av-band { padding: 80px 0; color: #fff; background: linear-gradient(115deg, var(--av-red-dark), var(--av-red)); }
.av-band.av-blue { background: linear-gradient(115deg, #092e4c, var(--av-blue)); }
.av-band p { color: rgba(255,255,255,.82); }
.av-band .elementor-image img { max-height: 430px; object-fit: contain; }
.av-brand-logo img { width: auto !important; max-width: 250px; max-height: 110px; object-fit: contain; }
.av-logo-panel > .elementor-widget-wrap { background: #fff; border-radius: var(--av-radius); padding: 35px !important; }

.av-filter-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #fff; border: 1px solid rgba(63,33,19,.12); border-radius: 16px; box-shadow: 0 8px 28px rgba(55,25,13,.08); }
.av-filter-wrap label { font-weight: 800; }
.av-filter-wrap select { min-width: 280px; padding: 13px 42px 13px 15px; border: 1px solid #cfc4bb; border-radius: 999px; background: #fff; font: inherit; }
.av-product-card[hidden] { display: none !important; }

.av-profile > .elementor-widget-wrap { padding: 30px !important; background: #fff; border: 1px solid rgba(63,33,19,.12); border-radius: var(--av-radius); }
.av-profile .elementor-image img { width: 120px; height: 120px; object-fit: contain; padding: 14px; border: 3px solid var(--av-red); border-radius: 50%; }
.av-instagram-tag { color: var(--av-red); font-weight: 800; }
.av-recipe-card .elementor-image img { background: var(--av-cream); }
.av-recipe-card::before { content: '●'; position: absolute; z-index: 2; top: 16px; right: 20px; color: #2ba45b; }

.av-channel-card:nth-child(odd) > .elementor-widget-wrap { background: var(--av-cream); }
.av-channel-number .elementor-heading-title { color: var(--av-gold); font-family: Arial, sans-serif; font-size: 38px; }

.av-purpose > .elementor-widget-wrap { padding: 40px !important; border-radius: var(--av-radius); color: #fff; background: linear-gradient(135deg, var(--av-red-dark), var(--av-red)); }
.av-purpose h2, .av-purpose h3 { color: #fff; }
.av-person-card .elementor-image img { width: 100%; height: 380px; object-fit: cover; object-position: top; border-radius: 16px; filter: sepia(.55); }

.av-timeline { position: relative; }
.av-timeline::before { content: ''; position: absolute; top: 50%; left: 4%; right: 4%; height: 3px; background: linear-gradient(90deg, var(--av-gold), var(--av-red)); }
.av-timeline-item { position: relative; }
.av-timeline-item::before { content: ''; position: absolute; top: -12px; left: 50%; z-index: 2; width: 18px; height: 18px; transform: translateX(-50%); background: var(--av-red); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--av-gold); }
.av-timeline-year .elementor-heading-title { color: var(--av-red); font-family: Arial, sans-serif; font-size: 30px; }

.av-gallery .elementor-image img { width: 100%; height: 430px; object-fit: cover; border-radius: var(--av-radius); }
.av-certs .elementor-image img { width: 100%; max-height: 420px; object-fit: contain; border-radius: var(--av-radius); }

.av-product-detail .elementor-image img { width: 100%; max-height: 590px; object-fit: contain; filter: drop-shadow(0 25px 30px rgba(55,25,13,.22)); }
.av-product-facts > .elementor-widget-wrap { padding: 32px !important; background: var(--av-cream); border-radius: var(--av-radius); }
.av-product-facts .elementor-heading-title { font-size: 22px; }

.av-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.av-contact-form p { margin: 0; }
.av-contact-form .av-field-full { grid-column: 1 / -1; }
.av-contact-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.av-contact-form input, .av-contact-form select, .av-contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfc4bb;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.av-contact-form textarea { min-height: 150px; resize: vertical; }
.av-contact-form button { cursor: pointer; border: 0; border-radius: 999px; padding: 14px 25px; background: var(--av-red); color: #fff; font-weight: 800; }
.av-form-success { padding: 16px 20px; margin-bottom: 20px; border-radius: 12px; background: #e7f7ec; color: #196f35; font-weight: 700; }
.av-form-error { padding: 16px 20px; margin-bottom: 20px; border-radius: 12px; background: #fff0ed; color: #94202c; font-weight: 700; }

.av-cta { padding: 60px 0; color: #fff; background: linear-gradient(105deg, var(--av-red-dark), #b31225); }
.av-cta > .elementor-container { align-items: center; }
.av-cta p { color: rgba(255,255,255,.82); }

.av-site-footer { padding: 55px 0 26px; color: #fff; background: #270c0e; }
.av-footer-grid { width: min(1180px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.av-footer-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.av-footer-logos img { width: auto; max-width: 135px; max-height: 55px; object-fit: contain; }
.av-site-footer h3 { color: #fff; font-size: 22px; }
.av-site-footer p, .av-site-footer a { color: rgba(255,255,255,.76); }
.av-footer-links { list-style: none; padding: 0; margin: 0; }
.av-footer-links li { margin-bottom: 7px; }
.av-footer-bottom { width: min(1180px, calc(100% - 40px)); margin: 35px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: 13px; }

@media (max-width: 980px) {
  .av-menu-toggle { display: block; }
  .av-main-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 20px; background: #fff; box-shadow: var(--av-shadow); }
  .av-main-nav.is-open { display: block; }
  .av-main-nav ul { align-items: flex-start; flex-direction: column; gap: 14px; }
  .elementor-section.av-grid.av-grid-4 > .elementor-container,
  .elementor-section.av-grid.av-grid-5 > .elementor-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-timeline::before { display: none; }
  .av-timeline-item::before { top: 18px; left: 18px; }
}

@media (max-width: 700px) {
  .av-header-inner { width: min(100% - 28px, 1180px); min-height: 72px; }
  .av-logo img, .av-logo .custom-logo { width: 118px; }
  .av-main-nav { top: 72px; }
  .elementor-section.av-section, .elementor-section.av-hero, .elementor-section.av-band { padding: 58px 0; }
  .elementor-section.av-hero > .elementor-container,
  .elementor-section.av-section > .elementor-container,
  .elementor-section.av-band > .elementor-container,
  .elementor-section.av-grid > .elementor-container,
  .elementor-section.av-cta > .elementor-container { width: min(100% - 28px, 1180px); }
  .elementor-section.av-grid.av-grid-2 > .elementor-container,
  .elementor-section.av-grid.av-grid-3 > .elementor-container,
  .elementor-section.av-grid.av-grid-4 > .elementor-container,
  .elementor-section.av-grid.av-grid-5 > .elementor-container { grid-template-columns: 1fr; }
  .av-card .elementor-image img, .av-product-card .elementor-image img, .av-recipe-card .elementor-image img { height: 240px; }
  .av-filter-wrap { align-items: stretch; flex-direction: column; }
  .av-filter-wrap select { min-width: 0; width: 100%; }
  .av-contact-form { grid-template-columns: 1fr; }
  .av-contact-form .av-field-full { grid-column: auto; }
  .av-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Catálogo administrable y widgets de productos Avilés. */
.aviles-products-showcase { padding: clamp(70px, 8vw, 120px) clamp(18px, 3vw, 44px); background: #fffdfa; }
.aviles-products-showcase__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 56px; }
.aviles-products-showcase__eyebrow { margin: 0 0 18px; color: #a71922; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.aviles-products-showcase__heading h2, .aviles-catalog-widget > h2 { margin: 0; color: #201812; font: 400 clamp(40px, 5vw, 70px)/1 Georgia, serif; letter-spacing: -.04em; }
.aviles-products-showcase__button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 24px; border: 1px solid #a71922; border-radius: 7px; color: #a71922; font-size: 14px; font-weight: 800; }
.aviles-products-showcase__button:hover, .aviles-dynamic-product__button:hover { color: white; background: #a71922; }
.aviles-dynamic-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.aviles-dynamic-products--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aviles-dynamic-product { min-width: 0; overflow: hidden; border: 1px solid rgba(65,41,27,.1); border-radius: 0 0 18px 18px; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.aviles-dynamic-product:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(48,28,17,.1); }
.aviles-dynamic-product__image { height: 285px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e8edf0, #c2ccd3); }
.aviles-dynamic-products--featured .aviles-dynamic-product__image { height: 305px; }
.aviles-dynamic-product__image img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.aviles-dynamic-product:hover .aviles-dynamic-product__image img { transform: scale(1.04); }
.aviles-dynamic-product__body { min-height: 220px; display: flex; align-items: flex-start; flex-direction: column; padding: 23px 18px 20px; }
.aviles-dynamic-product__meta { margin: 0 0 24px; color: #a71922; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.aviles-dynamic-product h3 { min-height: 54px; margin: 0 0 20px; color: #201812; font: 400 21px/1.15 Georgia, serif; }
.aviles-product-stores { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 0 0 16px; }
.aviles-product-store { min-height: 29px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid rgba(65,41,27,.13); border-radius: 5px; background: #fff; color: #65564c; font: 800 8px/1 Arial, sans-serif; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.aviles-product-store b { color: #a71922; font-size: 10px; }
.aviles-product-store:hover { border-color: #a71922; background: #fff8f7; color: #a71922; }
.aviles-product-stores--detail { gap: 9px; margin-bottom: 18px; }
.aviles-product-stores--detail .aviles-product-store { min-height: 42px; padding: 0 14px; border-radius: 8px; font-size: 11px; }
.aviles-dynamic-product__button { min-height: 42px; display: inline-flex; align-items: center; margin-top: auto; padding: 0 17px; border: 1px solid #a71922; border-radius: 7px; color: #a71922; font-size: 12px; font-weight: 800; transition: color .2s ease, background .2s ease; }
.aviles-catalog-widget { width: min(1460px, calc(100% - 48px)); margin: auto; padding: 90px 0 120px; }
.aviles-catalog-widget--with-hero { padding: 0; }
.aviles-catalog-widget--with-hero .catalog-section { padding: 70px 0 115px; }
.aviles-catalog-widget > h2 { margin-bottom: 45px; }
.aviles-products-empty { padding: 30px; border: 1px dashed rgba(65,41,27,.2); border-radius: 12px; color: #6e6258; text-align: center; }
.aviles-managed-product { padding-bottom: 100px; }

@media (max-width: 1250px) {
  .aviles-dynamic-products--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .aviles-dynamic-products, .aviles-dynamic-products--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aviles-products-showcase__heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .aviles-dynamic-products, .aviles-dynamic-products--featured { grid-template-columns: 1fr; }
  .aviles-dynamic-product__image, .aviles-dynamic-products--featured .aviles-dynamic-product__image { height: 310px; }
  .aviles-catalog-widget { width: calc(100% - 28px); }
}

/* Integración de la composición original dentro del lienzo de Elementor. */
.av-content,
.av-content > .elementor,
.aviles-v2-elementor-section,
.aviles-v2-elementor-section > .elementor-container,
.aviles-v2-elementor-section .elementor-column,
.aviles-v2-elementor-section .elementor-widget-wrap,
.aviles-v2-elementor-section .elementor-widget-html,
.aviles-v2-elementor-section .elementor-widget-container { width: 100%; max-width: none !important; }
.aviles-v2-elementor-section,
.aviles-v2-elementor-section > .elementor-container,
.aviles-v2-elementor-section .elementor-column-gap-no > .elementor-column > .elementor-element-populated,
.aviles-v2-elementor-section .elementor-widget-wrap,
.aviles-v2-elementor-section .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
.aviles-v2-elementor-section .elementor-widget-html { margin: 0 !important; }
.elementor-editor-active .aviles-v2-elementor-section { outline: 1px dashed rgba(167,25,34,.22); }
.main-nav > ul { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li > a { position: relative; display: block; padding: 30px 0; }
.main-nav > ul > li > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 22px; height: 2px; background: var(--gold); transition: right .25s ease; }
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after,
.main-nav > ul > li.current_page_item > a::after,
.main-nav > ul > li.current-menu-ancestor > a::after { right: 0; }
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_item > a,
.main-nav > ul > li.current-menu-ancestor > a,
.mobile-menu .current-menu-item > a { color: var(--red); }
.mobile-menu .current-menu-item > a { background: var(--cream); }
.mobile-menu .av-fallback-menu { margin: 0; padding: 0; list-style: none; }
.mobile-menu nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu nav a { display: block; }
.av-language { position: relative; display: block; font-size: 13px; font-weight: 800; }
.av-language summary { display: flex; align-items: center; gap: 7px; padding: 9px 4px; cursor: pointer; list-style: none; white-space: nowrap; }
.av-language summary::-webkit-details-marker { display: none; }
.av-language summary img,
.av-language-options img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
.av-language-arrow { font-size: 16px; line-height: 1; transition: transform .2s ease; }
.av-language[open] .av-language-arrow { transform: rotate(180deg); }
.av-language-options { position: absolute; top: calc(100% + 5px); right: 0; z-index: 100; min-width: 145px; margin: 0; padding: 6px; list-style: none; border: 1px solid rgba(72,45,29,.12); border-radius: 10px; background: #fffdfa; box-shadow: 0 16px 40px rgba(35,20,12,.16); }
.av-language-options a,
.av-language-options span { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 6px; white-space: nowrap; }
.av-language-options a:hover,
.av-language-options a:focus-visible { background: var(--cream); color: var(--red); }
.av-language-options [aria-current="page"] { color: var(--red); }
@media (max-width: 700px) {
  .header-tools { gap: 14px; }
  .av-language { display: block; }
}
.aviles-v2-form > .elementor-container { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 90px 0; }
.aviles-v2-form-column > .elementor-widget-wrap { padding: clamp(24px, 5vw, 60px) !important; border-radius: 22px; background: #fff; box-shadow: 0 20px 45px rgba(52,28,18,.08); }

/* Catálogo en vivo y ficha administrable. */
[hidden] { display: none !important; }
.inner-hero--catalog .inner-shell { position: relative; z-index: 2; }
.aviles-catalog-widget-hero { width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%); }
@media (min-width: 761px) {
  .aviles-catalog-widget-hero { min-height: 480px; }
  .aviles-catalog-widget-hero .inner-hero__copy h1 { max-width: 560px; }
}
.inner-hero--has-photo { isolation: isolate; }
.aviles-catalog-hero-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: hidden; }
.aviles-catalog-hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,11,8,.9) 0%, rgba(37,14,10,.76) 39%, rgba(32,13,10,.52) 100%); pointer-events: none; }
.aviles-catalog-hero-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.elementor .aviles-catalog-widget-hero .aviles-catalog-hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.aviles-catalog-wrap .catalog-section { padding: 70px 0 115px; }
.aviles-card-grid { align-items: stretch; }
.aviles-card-grid .catalog-product { display: flex; flex-direction: column; min-width: 0; }
.aviles-card-grid .catalog-product__image { flex: 0 0 auto; height: 285px; background: #f7f2ec; }
.aviles-card-grid .catalog-product__image img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; padding: 8px; object-fit: contain; mix-blend-mode: normal; }
.aviles-image-pending { display: grid; place-items: center; width: 100%; height: 100%; color: #ae9183; font: italic 30px/1 Georgia,serif; }
.aviles-card-grid .catalog-product .brand-pill { display: block; width: 100%; margin: 16px 0 10px; padding: 7px 10px; }
.aviles-card-grid .catalog-product__actions { gap: 8px 10px; align-items: center; justify-content: flex-start; margin-top: auto; }
.aviles-card-grid .catalog-product__actions > a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; margin: 0; color: #a71922; font-size: 16px; line-height: 1.25; white-space: nowrap; }
.aviles-card-grid .aviles-product-stores--catalog { display: flex; flex: 0 1 auto; justify-content: flex-start; gap: 8px; max-width: 100%; width: auto; margin: 0; }
.aviles-card-grid .aviles-product-store { min-height: 40px; margin: 0; padding: 0 12px; border-radius: 7px; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.aviles-card-grid .aviles-product-store b { display: none; }
.aviles-filter-empty { padding: 48px 20px; border: 1px dashed #d6c6bd; border-radius: 15px; color: #70635b; text-align: center; }
.aviles-managed-product .product-detail__grid { align-items: start; }
.product-detail__grid--no-image { grid-template-columns: 1fr; }
.product-detail__grid--no-image .product-detail__copy { max-width: 780px; }
.aviles-managed-product .product-gallery__main { height: clamp(420px, 48vw, 720px); padding: 0; background: #f7f2ec; }
.aviles-managed-product .product-gallery__main img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: normal; filter: none; }
.aviles-managed-product .product-gallery__thumbs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); }
.aviles-gallery-thumb { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; padding: 5px; border: 1px solid rgba(65,41,27,.15); border-radius: 12px; background: #fff; cursor: pointer; }
.aviles-gallery-thumb.is-active, .aviles-gallery-thumb:hover { border-color: var(--red); box-shadow: 0 0 0 2px rgba(167,25,34,.09); }
.aviles-gallery-thumb img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: normal; }
.aviles-managed-product .product-detail__copy { padding-top: 16px; }
.aviles-managed-product .product-detail__description { margin: 24px 0 0; }
.aviles-buy-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.aviles-buy-links .aviles-product-stores--detail { display: flex; flex-wrap: wrap; width: auto; margin: 0; }
.aviles-buy-links .aviles-product-store { min-height: 42px; }
.aviles-retailer-logos { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 15px; }
.aviles-retailer-logo { box-sizing: border-box; min-width: 118px; min-height: 76px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid rgba(65,41,27,.1); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-align: center; }
.aviles-retailer-logo img { display: block; width: auto; max-width: 130px; height: auto; max-height: 52px; object-fit: contain; }
.aviles-retailer-logo--text { max-width: 180px; }
.aviles-buy-online-label { margin: 22px 0 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aviles-product-tabs [role='tabpanel'] { min-height: 75px; }
.aviles-product-tabs [role='tabpanel'] > :last-child { margin-bottom: 0; }
.aviles-related-section .section-heading { margin-bottom: 38px; }
.aviles-related-section .related-card a > span { padding: 0; }
.aviles-related-section .related-card img { mix-blend-mode: normal; }
.aviles-catalog-return { padding-bottom: 90px; }
.site-footer .social-links { flex-wrap: wrap; }
.site-footer .social-links a, .site-footer .social-links .social-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; }
.site-footer .social-links a:hover { border-color: #ffd477; color: #ffd477; }
.site-footer .social-links .is-unlinked { opacity: .65; cursor: default; }
.site-footer .footer-legal { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; font-size: 12px; }
.site-footer .footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .footer-origin { display: flex; align-items: center; gap: 14px; margin-top: 25px; }
.footer-brand .footer-origin strong { min-width: 0; margin: 0; max-width: 170px; line-height: 1.35; }
.footer-brand .footer-origin__emblem { display: block; flex: 0 0 var(--aviles-origin-size, 76px); width: var(--aviles-origin-size, 76px); height: var(--aviles-origin-size, 76px); max-width: none; margin: 0; object-fit: contain; }

@media (max-width: 850px) {
  .inner-hero--has-photo .inner-hero__copy { max-width: 720px; }
  .aviles-live-catalog .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aviles-managed-product .product-gallery__main { height: 560px; }
}

@media (max-width: 620px) {
  .inner-hero--has-photo .inner-hero__copy { max-width: none; padding: 55px 0 68px; }
  .aviles-catalog-hero-image::after { background: rgba(25,10,8,.76); }
  .aviles-catalog-wrap .catalog-section { padding: 48px 0 80px; }
  .aviles-catalog-widget--with-hero .catalog-section { padding: 48px 0 80px; }
  .aviles-live-catalog .catalog-grid { grid-template-columns: 1fr; }
  .aviles-live-catalog .catalog-product__image { height: 300px; }
  .aviles-managed-product .product-gallery__main { height: 420px; }
  .aviles-managed-product .product-detail__grid { gap: 26px; padding-bottom: 45px; }
  .aviles-related-section .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aviles-related-section .related-card a > span { height: 150px; }
  .footer-brand .footer-origin__emblem { flex-basis: var(--aviles-origin-size-mobile, 64px); width: var(--aviles-origin-size-mobile, 64px); height: var(--aviles-origin-size-mobile, 64px); }
}

@media (max-width: 1020px) {
  .main-nav > ul { justify-content: flex-end; gap: 18px; }
}

@media (max-width: 700px) {
  .main-nav > ul { display: none; }
  .aviles-v2-form > .elementor-container { width: min(100% - 28px, 1180px); padding: 65px 0; }
  .aviles-v2-form-column > .elementor-widget-wrap { padding: 24px !important; }
}
