/*
Theme Name: AME Event Rental Editorial
Theme URI: https://alquilamuebleseventos.es/
Author: MNA Stands
Author URI: https://mna-stands.com/
Description: Tema WooCommerce/WPML para alquiler de mobiliario, audiovisuales y hospitality. Diseño editorial retail inspirado en una tienda premium, con contenido editable por bloques.
Version: 4.13.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: ame-event-rental
Domain Path: /languages
Tags: ecommerce, woocommerce, translation-ready, custom-logo, custom-colors, block-patterns
*/

/* AME 4.2 emergency header CSS */


/* AME 4.2 header fix: prevent old logo/menu from breaking layout */
.site-header{position:relative;z-index:100;background:var(--ame-paper);border-bottom:1px solid var(--ame-line)}
.site-header .custom-logo-link,.site-header .custom-logo{display:none!important}
.header-main{min-height:82px;position:sticky;top:0;z-index:120;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:26px;padding:14px 28px;background:rgba(246,240,232,.94)}
.brand{min-width:0;width:auto;max-width:310px;flex:0 0 auto}.brand .ame-logo-lockup{max-width:310px}.ame-logo-symbol{flex:0 0 54px}.ame-logo-wordmark strong{white-space:nowrap}.main-nav{min-width:0;overflow:hidden}.ame-nav-list{justify-content:center;gap:clamp(14px,1.6vw,28px);flex-wrap:nowrap}.ame-nav-list li{display:block;white-space:nowrap}.ame-nav-list a{font-size:13px}.header-actions{flex:0 0 auto}.top-line{height:auto;min-height:32px;align-items:center}.site-main{padding-top:0;clear:both}.site-main>article:first-child{margin-top:0}
@media(min-width:1101px){.menu-toggle{display:none!important}.main-nav{display:flex!important}}
@media(max-width:1100px){.header-main{display:flex}.main-nav{display:none}.main-nav.is-open{display:block!important;position:absolute;left:14px;right:14px;top:calc(100% + 8px);background:#fffdf9;border:1px solid var(--ame-line);border-radius:24px;padding:18px;box-shadow:var(--shadow);overflow:visible}.main-nav.is-open .ame-nav-list{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.main-nav.is-open .ame-nav-list a{font-size:17px}.menu-toggle{display:block!important}.brand{max-width:250px}.header-actions{margin-left:auto}}
@media(max-width:680px){.header-main{min-height:72px;padding:10px 14px;gap:12px}.ame-logo-symbol{width:42px;height:42px;flex-basis:42px}.ame-logo-wordmark strong{font-size:20px;letter-spacing:.035em}.ame-logo-wordmark small{font-size:7px;letter-spacing:.2em}.brand{max-width:230px}.icon-link{width:38px;height:38px}.menu-toggle{width:38px;height:38px;padding:8px}.site-header{position:relative}.ame-hero{margin-top:14px}.ame-hero h1{font-size:clamp(40px,12vw,56px);line-height:.96}.lead{font-size:21px}.btn-row .btn{width:100%;}.hero-art-grid{margin-top:10px}}

/* AME 4.3 critical CSS */
.site-footer,.site-footer *,.mna-editorial,.mna-editorial *{color:#fff!important}.site-footer p,.site-footer a,.site-footer span,.mna-editorial p,.mna-editorial span{color:#d8c9ba!important}.btn-primary,.woocommerce a.button,.woocommerce button.button{background:#05070A!important;color:#fff!important}.ame-products-grid{list-style:none!important;margin:0!important;padding:0!important}.solution-editorial-grid{width:min(1360px,calc(100% - 48px))!important;margin-left:auto!important;margin-right:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}.ame-contact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ame-contact-form label{display:grid;gap:7px;font-weight:800}.ame-contact-form label.full,.ame-contact-form button,.ame-contact-form .form-note{grid-column:1/-1}.ame-contact-form input,.ame-contact-form textarea{width:100%;border:1px solid rgba(5,7,10,.12);border-radius:16px;padding:14px 15px;font:inherit}.woocommerce ul.products li.product-category{display:none!important}@media(max-width:900px){.solution-editorial-grid,.ame-contact-form{grid-template-columns:1fr!important}}

/* AME 4.4 catalogue and homepage product fixes */
.ame-products-section,
.wp-block-group.ame-products-section{
  width:min(var(--max),calc(100% - 48px))!important;
  margin:0 auto!important;
  padding:78px 0!important;
  background:transparent!important;
  border:0!important;
}
.ame-products-section .section-head{
  width:100%!important;
  max-width:none!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(260px,.55fr)!important;
  gap:clamp(24px,6vw,90px)!important;
  align-items:end!important;
  margin:0 0 34px!important;
}
.ame-products-section .section-head h2{max-width:920px!important;}
.ame-products-section .section-head>p,
.ame-products-section .section-head p:not(.kicker){max-width:520px!important;margin:0!important;justify-self:end!important;font-size:18px!important;line-height:1.45!important;}
.ame-featured-products{width:100%!important;display:block!important;clear:both!important;}
.ame-featured-products .products,
.ame-catalogue-products .products,
.ame-products-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;width:100%!important;margin:0!important;padding:0!important;list-style:none!important;}
.ame-catalogue-empty{background:#fffdf9;border:1px solid var(--ame-line);border-radius:28px;padding:28px;color:var(--ame-ink);box-shadow:var(--shadow)}
.ame-catalogue-empty p{margin-bottom:0;color:var(--ame-muted)}
.shop-hero.ame-catalogue-header{padding:72px 0 34px!important;}
.shop-hero.ame-catalogue-header h1{font-size:clamp(58px,7vw,110px)!important;margin-bottom:22px!important;}
.shop-hero.ame-catalogue-header .lead{max-width:980px!important;}
.shop-wrap.ame-catalogue-products{padding-top:12px!important;padding-bottom:100px!important;}
.shop-wrap .ame-shop-intro{max-width:760px!important;margin-bottom:28px!important;}
@media(max-width:1000px){
  .ame-products-section .section-head{grid-template-columns:1fr!important;align-items:start!important;gap:12px!important;}
  .ame-products-section .section-head>p,.ame-products-section .section-head p:not(.kicker){justify-self:start!important;max-width:760px!important;}
  .ame-featured-products .products,.ame-catalogue-products .products,.ame-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
  .ame-products-section,.wp-block-group.ame-products-section{width:calc(100% - 28px)!important;padding:52px 0!important;}
  .ame-products-section .section-head h2{font-size:38px!important;line-height:1!important;}
  .ame-products-section .section-head>p,.ame-products-section .section-head p:not(.kicker){font-size:16px!important;}
  .shop-hero.ame-catalogue-header{padding-top:42px!important;}
  .shop-hero.ame-catalogue-header h1{font-size:52px!important;}
}

/* AME 4.7: real WooCommerce/category imagery instead of abstract placeholders */
.hero-art-grid .real-cat-tile,.ame-category-mosaic .real-cat-tile{position:relative;overflow:hidden;text-decoration:none}
.real-cat-tile img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;display:block;z-index:0;filter:saturate(.96) contrast(1.02)}
.real-cat-tile.has-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.72));z-index:1;pointer-events:none}
.real-cat-tile.no-photo{background:linear-gradient(135deg,#111,#2b2622)!important}
.real-cat-tile.no-photo:before{content:"";position:absolute;inset:16px;border-radius:24px;border:1px solid rgba(255,255,255,.12);z-index:1}
.category-tile.real-cat-tile svg,.art-tile.real-cat-tile svg{display:none!important}
.category-tile.real-cat-tile>*:not(img),.art-tile.real-cat-tile>*:not(img){position:relative;z-index:2}
.art-tile.real-cat-tile{display:flex!important;align-items:flex-end;min-height:300px;border-radius:32px;padding:24px;color:#fff}
.art-tile.real-cat-tile.tall{grid-row:span 2}
.art-tile.real-cat-tile .art-caption{position:relative;z-index:2;display:grid;gap:8px;margin-top:auto}
.art-tile.real-cat-tile .art-caption strong{font-size:clamp(24px,3vw,42px);line-height:.95;letter-spacing:-.05em;color:#fff}
.art-tile.real-cat-tile .art-caption em{font-style:normal;color:rgba(255,255,255,.78);font-weight:700;max-width:330px}
.category-tile.real-cat-tile{background:#111!important}
.category-tile.real-cat-tile strong,.category-tile.real-cat-tile em,.category-tile.real-cat-tile span{color:#fff!important;text-shadow:0 1px 18px rgba(0,0,0,.25)}
@media(max-width:780px){.art-tile.real-cat-tile{min-height:220px}.hero-art-grid{grid-template-columns:1fr!important}.art-tile.real-cat-tile.tall{grid-row:auto}.category-tile.real-cat-tile{min-height:320px!important}}

/* AME 4.8 performance + catalogue visibility fixes */
.ame-products-section{content-visibility:auto;contain-intrinsic-size:900px;}
.ame-products-section .section-head{max-width:1320px;margin-left:auto!important;margin-right:auto!important;}
.ame-products-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px!important;list-style:none!important;margin:0!important;padding:0!important;}
.ame-product-card{background:#fffdf9!important;border:1px solid rgba(5,7,10,.12)!important;border-radius:24px!important;padding:14px!important;box-shadow:0 16px 38px rgba(0,0,0,.06)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:12px!important;min-width:0!important;}
.ame-product-card .woocommerce-LoopProduct-link{display:flex!important;flex-direction:column!important;gap:8px!important;text-decoration:none!important;color:var(--ame-ink)!important;}
.ame-product-card .product-image-wrap{display:grid!important;place-items:center!important;background:#fff!important;border-radius:18px!important;aspect-ratio:1/1!important;overflow:hidden!important;margin:0!important;}
.ame-product-card .product-image-wrap img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;}
.ame-product-card .woocommerce-loop-product__title{font-size:18px!important;line-height:1.1!important;margin:4px 0 0!important;color:var(--ame-ink)!important;}
.ame-product-card .price{font-size:15px!important;font-weight:800!important;color:var(--ame-ink)!important;}
.ame-product-card .button{margin-top:auto!important;width:100%!important;text-align:center!important;border-radius:999px!important;background:var(--ame-ink)!important;color:#fff!important;border:1px solid var(--ame-ink)!important;padding:12px 14px!important;line-height:1!important;}
.ame-product-card .button:hover{background:var(--ame-accent)!important;border-color:var(--ame-accent)!important;color:#fff!important;}
.ame-catalogue-empty{background:#fffdf9!important;border:1px solid rgba(5,7,10,.12)!important;border-radius:24px!important;padding:28px!important;box-shadow:0 18px 45px rgba(0,0,0,.06)!important;color:var(--ame-ink)!important;}
.ame-form-notice{border-radius:18px;padding:14px 16px;margin:0 0 18px;font-weight:800}.ame-form-notice.success{background:#e8f7ee;color:#0f6b38}.ame-form-notice.error{background:#fff1ed;color:#a33a1d}
.site-footer a,.site-footer button,.mna-editorial a,.dark-section a{color:#fff!important}.site-footer .btn,.mna-editorial .btn,.dark-section .btn{background:#fff!important;color:#05070A!important;border-color:#fff!important}.site-footer .btn-outline,.mna-editorial .btn-outline,.dark-section .btn-outline{background:transparent!important;color:#fff!important;border-color:rgba(255,255,255,.5)!important}
@media(max-width:900px){.ame-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.ame-product-card{border-radius:20px!important;padding:10px!important}.ame-product-card .woocommerce-loop-product__title{font-size:15px!important}.ame-product-card .button{font-size:13px!important;padding:11px 9px!important}.ame-products-section .section-head{grid-template-columns:1fr!important;gap:12px!important}.ame-products-section .section-head>p{justify-self:start!important}}


/* AME 4.9 category filter bar */
.ame-catalogue-filters{width:min(var(--max,1360px),calc(100% - 48px));margin:0 auto 34px;padding:0 0 8px;}
.ame-filter-title{margin:0 0 14px;color:rgba(5,7,10,.58);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.18em;}
.ame-filter-list{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none;align-items:center;}
.ame-filter-list a{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(5,7,10,.14);background:#fffaf2;color:#05070a;text-decoration:none;border-radius:999px;padding:12px 16px;font-weight:900;font-size:14px;line-height:1;box-shadow:0 10px 24px rgba(5,7,10,.04);}
.ame-filter-list a:hover,.ame-filter-list a.is-active{background:#05070a;color:#fff;border-color:#05070a;}
.ame-filter-list .count{opacity:.58;font-weight:800;}
.ame-filter-list a.is-active .count{opacity:.8;color:#dccbb5;}
.ame-catalogue-products{padding-top:0!important;}
@media(max-width:760px){.ame-catalogue-filters{width:calc(100% - 28px);overflow:hidden;margin-bottom:24px}.ame-filter-list{flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px;scroll-snap-type:x proximity}.ame-filter-list li{flex:0 0 auto;scroll-snap-align:start}.ame-filter-list a{font-size:13px;padding:11px 14px}.ame-catalogue-header{padding-bottom:26px!important}}


/* AME 4.10 full-width footer marquee fix */
.site-footer{overflow:hidden!important;}
.footer-marquee{
  width:100vw!important;
  max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  overflow:hidden!important;
  display:block!important;
  white-space:nowrap!important;
  padding:18px 0!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  background:#05070A!important;
}
.footer-marquee-track{
  display:inline-flex!important;
  align-items:center!important;
  gap:54px!important;
  min-width:max-content!important;
  will-change:transform;
  animation:ame-marquee-full 34s linear infinite!important;
}
.footer-marquee span{
  flex:0 0 auto!important;
  display:inline-block!important;
  font-size:clamp(18px,1.75vw,34px)!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.24em!important;
  color:#F3E5D4!important;
  opacity:.92!important;
}
@keyframes ame-marquee-full{
  0%{transform:translate3d(0,0,0)}
  100%{transform:translate3d(-50%,0,0)}
}
@media(max-width:760px){
  .footer-marquee{padding:14px 0!important;}
  .footer-marquee-track{gap:34px!important;animation-duration:24s!important;}
  .footer-marquee span{font-size:18px!important;letter-spacing:.18em!important;}
}
@media(prefers-reduced-motion:reduce){.footer-marquee-track{animation:none!important;}}

/* AME 4.11 - WooCommerce grid alignment fix */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products.ame-products-grid,
.ame-featured-products ul.products,
.ame-catalogue-products ul.products,
.related.products ul.products,
.upsells.products ul.products,
.cross-sells ul.products{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:24px!important;
  width:min(1320px,calc(100% - 48px))!important;
  max-width:1320px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:0!important;
  list-style:none!important;
  align-items:stretch!important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{
  content:none!important;
  display:none!important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products.ame-products-grid li.product,
.ame-products-grid li.product,
.related.products ul.products li.product,
.upsells.products ul.products li.product,
.cross-sells ul.products li.product{
  float:none!important;
  clear:none!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  grid-column:auto!important;
}
.woocommerce ul.products li.product:nth-child(n),
.woocommerce-page ul.products li.product:nth-child(n){
  clear:none!important;
  margin-right:0!important;
}
.related.products,
.upsells.products,
.cross-sells{
  width:min(1320px,calc(100% - 48px))!important;
  margin:80px auto!important;
}
.related.products>h2,
.upsells.products>h2,
.cross-sells>h2{
  font-size:clamp(36px,5vw,72px)!important;
  line-height:.95!important;
  letter-spacing:-.06em!important;
  margin:0 0 30px!important;
}
.ame-shop-intro,
.woocommerce-result-count,
.woocommerce-ordering{
  width:min(1320px,calc(100% - 48px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:1100px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products.ame-products-grid,
  .ame-featured-products ul.products,
  .ame-catalogue-products ul.products,
  .related.products ul.products,
  .upsells.products ul.products,
  .cross-sells ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:760px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products.ame-products-grid,
  .ame-featured-products ul.products,
  .ame-catalogue-products ul.products,
  .related.products ul.products,
  .upsells.products ul.products,
  .cross-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:calc(100% - 28px)!important;gap:14px!important;}
  .related.products,.upsells.products,.cross-sells{width:calc(100% - 28px)!important;margin:54px auto!important;}
}
@media(max-width:430px){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products.ame-products-grid,
  .ame-featured-products ul.products,
  .ame-catalogue-products ul.products,
  .related.products ul.products,
  .upsells.products ul.products,
  .cross-sells ul.products{grid-template-columns:1fr!important;}
}


/* AME 4.12 - robust full viewport marquee, fixed after product grid patch */
.site-footer .footer-marquee{
  position:relative!important;
  left:50%!important;
  right:50%!important;
  width:100vw!important;
  max-width:100vw!important;
  margin-left:-50vw!important;
  margin-right:-50vw!important;
  overflow:hidden!important;
  display:block!important;
  white-space:nowrap!important;
  background:#05070A!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  padding:20px 0!important;
  box-sizing:border-box!important;
}
.site-footer .footer-marquee-track{
  display:flex!important;
  width:max-content!important;
  min-width:200vw!important;
  max-width:none!important;
  gap:0!important;
  align-items:center!important;
  white-space:nowrap!important;
  will-change:transform!important;
  animation:ame-marquee-412 26s linear infinite!important;
}
.site-footer .footer-marquee-group{
  flex:0 0 100vw!important;
  width:100vw!important;
  min-width:100vw!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-around!important;
  gap:clamp(28px,4vw,74px)!important;
  padding:0 clamp(18px,3vw,48px)!important;
  box-sizing:border-box!important;
}
.site-footer .footer-marquee span{
  flex:0 0 auto!important;
  display:inline-block!important;
  color:#F3E5D4!important;
  font-size:clamp(18px,1.65vw,34px)!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.22em!important;
  opacity:.95!important;
  white-space:nowrap!important;
}
@keyframes ame-marquee-412{
  0%{transform:translate3d(0,0,0)!important;}
  100%{transform:translate3d(-100vw,0,0)!important;}
}
@media(max-width:760px){
  .site-footer .footer-marquee{padding:15px 0!important;}
  .site-footer .footer-marquee-track{animation-duration:18s!important;}
  .site-footer .footer-marquee-group{justify-content:flex-start!important;gap:34px!important;padding:0 20px!important;}
  .site-footer .footer-marquee span{font-size:18px!important;letter-spacing:.18em!important;}
}
@media(prefers-reduced-motion:reduce){.site-footer .footer-marquee-track{animation:none!important;}}
