@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Press+Start+2P&family=Russo+One&display=swap');

:root {
  --aec-brown: #2e1e12;
  --aec-brown-2: #4b2a14;
  --aec-wine: #4a0404;
  --aec-orange: #e94b12;
  --aec-wood: #75401e;
  --aec-green: #78bd2b;
  --aec-lime: #b9e447;
  --aec-gold: #f4bd2d;
  --aec-cream: #fffaf1;
  --aec-paper: #ffffff;
  --aec-ink: #2c211b;
}

.aec-store, .aec-category-carousel { box-sizing: border-box; font-family: "Chakra Petch", sans-serif; }
.aec-store *, .aec-category-carousel * { box-sizing: border-box; }

/* Carrusel blanco y marrón, como el menú principal del blog. */
.aec-category-carousel {
  position: relative;
  width: calc(100vw - clamp(24px, 4vw, 72px));
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #eadfd4;
  border-bottom: 4px solid var(--aec-orange);
  box-shadow: 0 10px 24px rgba(46,30,18,.12);
}
.aec-category-carousel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg,rgba(46,30,18,.022) 0 1px,transparent 1px 4px); }
.aec-carousel-track { display: flex; width: max-content; animation: aec-marquee 34s linear infinite; }
.aec-category-carousel:hover .aec-carousel-track,
.aec-category-carousel:focus-within .aec-carousel-track { animation-play-state: paused; }
.aec-category-carousel a { display: flex; align-items: center; gap: .65rem; min-height: 64px; padding: 0 2.4rem; color: #8b4513 !important; font: 400 .9rem "Russo One",sans-serif; letter-spacing: .11em; text-decoration: none !important; text-transform: uppercase; white-space: nowrap; transition: color .2s ease,background .2s ease; }
.aec-category-carousel a:hover { color: var(--aec-wine) !important; background: #fff7ec; }
.aec-category-carousel a span { font-size: 1.25rem; }
@keyframes aec-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .aec-carousel-track { animation: none; } }

/* Secciones blancas y franja marrón heredadas de la portada. */
.aec-store {
  position: relative;
  width: calc(100vw - clamp(24px, 4vw, 72px));
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  margin: 2rem auto 4rem;
  color: var(--aec-ink);
  background: linear-gradient(rgba(255,255,255,.94),rgba(255,250,241,.96)),repeating-linear-gradient(0deg,transparent 0 4px,rgba(46,30,18,.035) 4px 5px);
  border: 1px solid #e2d5c9;
  box-shadow: 0 28px 70px rgba(46,30,18,.18);
  overflow: hidden;
}
.aec-store::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background: radial-gradient(circle at 8% 6%,rgba(120,189,43,.25),transparent 18%),radial-gradient(circle at 94% 4%,rgba(75,42,20,.18),transparent 18%); }
.aec-hero { position: relative; padding: clamp(3.5rem,8vw,7rem) clamp(1.3rem,6vw,5.5rem) 3.5rem; color: #fff; background: var(--aec-brown); border-bottom: 5px solid var(--aec-orange); }
.aec-eyebrow { margin: 0 0 1rem; color: var(--aec-gold); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.aec-hero h1, .aec-pillar-head h1 { margin: 0; color: #fff; font: 400 clamp(3rem,8vw,7.2rem)/.92 "Russo One",sans-serif; letter-spacing: -.045em; text-shadow: 4px 4px 0 rgba(74,4,4,.7); }
.aec-hero h1 span { color: var(--aec-lime); text-shadow: 4px 4px 0 #325c1d; }
.aec-lead { max-width: 780px; margin: 1.8rem 0; color: #fff; font-size: clamp(1.05rem,2.2vw,1.35rem); line-height: 1.65; }
.aec-hero-status { display: inline-flex; align-items: center; gap: .65rem; padding: .65rem 1rem; border: 2px solid var(--aec-lime); color: var(--aec-lime); background: rgba(0,0,0,.18); font: 700 .7rem "Press Start 2P",monospace; }
.aec-hero-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--aec-lime); box-shadow: 0 0 12px var(--aec-lime); }

.aec-category-grid { position: relative; display: grid; grid-template-columns: repeat(6,1fr); gap: 1.2rem; padding: 3rem clamp(1rem,4vw,3.5rem); }
.aec-category-card { position: relative; grid-column: span 2; min-height: 310px; padding: 1.6rem; color: var(--aec-brown) !important; background: #fff; border: 1px solid #dccbbd; border-top: 8px solid currentColor; box-shadow: 7px 9px 0 #eadfd4; text-decoration: none !important; overflow: hidden; transition: transform .22s ease,box-shadow .22s ease; }
.aec-category-card:nth-child(4), .aec-category-card:nth-child(5) { grid-column: span 3; }
.aec-category-card::after { content: ""; position: absolute; right: -55px; bottom: -60px; width: 205px; height: 205px; border: 25px solid currentColor; border-radius: 50%; opacity: .08; }
.aec-category-card:hover { transform: translateY(-7px); box-shadow: 9px 13px 0 color-mix(in srgb,currentColor 24%,#eadfd4); }
.aec-category-card small { display: block; color: #806c5e; font-weight: 700; letter-spacing: .12em; }
.aec-category-card h2 { margin: 1.2rem 0 .8rem; color: var(--aec-brown); font: 400 clamp(1.55rem,3vw,2.25rem) "Russo One",sans-serif; text-transform: uppercase; }
.aec-category-card p { max-width: 34ch; color: #584940; line-height: 1.6; }
.aec-category-card strong { position: absolute; left: 1.6rem; bottom: 1.5rem; color: currentColor; font: 400 .64rem "Press Start 2P",monospace; }
.aec-category-icon { display: block; font-size: 3.4rem; }
.aec-cat-maquinas-arcade { color: #568d20 !important; }
.aec-cat-bartop-premium { color: var(--aec-orange) !important; }
.aec-cat-consolas-retro { color: #236f86 !important; }
.aec-cat-controles-arcade { color: var(--aec-wood) !important; }
.aec-cat-accesorios-arcade { color: #b77a00 !important; }
.aec-quality-strip { position: relative; display: flex; justify-content: space-around; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 2rem; color: #fff; background: var(--aec-brown); border-top: 4px solid var(--aec-orange); font-weight: 700; font-size: .78rem; letter-spacing: .08em; }

.aec-category-page { padding-bottom: 3.5rem; }
.aec-pillar-head { position: relative; padding: clamp(3rem,7vw,6rem) clamp(1rem,5vw,4rem) 3rem; color: #fff; background: var(--aec-brown); border-bottom: 5px solid var(--aec-orange); }
.aec-pillar-head h1 { font-size: clamp(2.7rem,7vw,6rem); }
.aec-pillar-head > p:not(.aec-eyebrow) { max-width: 760px; color: #fff; font-size: 1.16rem; line-height: 1.6; }
.aec-pillar-head > a { color: var(--aec-lime) !important; font-weight: 700; text-decoration: none !important; }

/* Cada ficha adopta la anatomía visual de una máquina recreativa. */
.aec-product-grid { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: clamp(2rem,4vw,4rem); padding: 4rem clamp(1rem,4vw,3.5rem); }
.aec-product-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 620px; min-height: 720px; margin: 0 auto; color: #fff; background: linear-gradient(110deg,#1c100a 0 4%,var(--aec-brown) 4% 96%,#1c100a 96%); border: 8px solid #1f140d; border-radius: 24px 24px 12px 12px; box-shadow: 12px 16px 0 rgba(74,4,4,.18),0 24px 40px rgba(46,30,18,.22); overflow: hidden; transition: transform .2s ease,box-shadow .2s ease; }
.aec-product-card::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 12px; background: #160d08; border-radius: 50% 50% 0 0; }
.aec-product-card:hover { transform: translateY(-7px); box-shadow: 14px 22px 0 rgba(74,4,4,.2),0 28px 48px rgba(46,30,18,.25); }
.aec-product-card.is-pending { opacity: 1; }

.aec-cabinet-marquee { position: relative; min-height: 118px; margin: 10px 12px 0; padding: 1rem 1.2rem; text-align: center; background: linear-gradient(135deg,#29170d,var(--aec-brown-2) 52%,var(--aec-wood)); border: 4px solid var(--aec-orange); border-radius: 15px 15px 5px 5px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.1),0 5px 0 #150b08; overflow: hidden; }
.aec-cabinet-marquee::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg,transparent 0 9px,rgba(255,255,255,.035) 9px 12px); }
.aec-cabinet-marquee small { position: relative; display: block; margin-bottom: .55rem; color: var(--aec-lime); font-weight: 700; font-size: .66rem; letter-spacing: .13em; }
.aec-cabinet-marquee h3 { position: relative; margin: 0; color: #fff; font: 400 clamp(1.15rem,2vw,1.55rem)/1.12 "Russo One",sans-serif; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0,0,0,.55); }

.aec-product-screen { position: relative; display: flex; align-items: center; justify-content: center; min-height: 370px; margin: 16px 16px 0; padding: 15px 15px 84px; background: #050505; border: 13px solid var(--aec-wine); border-radius: 18px 18px 8px 8px; box-shadow: inset 0 0 0 4px #120a06,inset 0 0 35px rgba(0,0,0,.9),0 7px 0 #160d08; overflow: hidden; }
.aec-product-screen::after { content: ""; position: absolute; inset: 13px 13px 78px; pointer-events: none; background: repeating-linear-gradient(0deg,transparent 0 3px,rgba(46,30,18,.045) 3px 4px); border-radius: 5px; }
.aec-main-image { width: 100%; height: 255px; padding: 10px; object-fit: contain; background: radial-gradient(circle,#fff 0 50%,#f4eadc 78%,#d9c8b8); border-radius: 6px; }
.aec-sale-badge { position: absolute; z-index: 4; top: 21px; left: 21px; padding: .55rem .7rem; color: var(--aec-brown); background: var(--aec-lime); font: 700 .64rem "Press Start 2P",monospace; box-shadow: 4px 4px 0 var(--aec-brown-2); }
.aec-thumbs { position: absolute; z-index: 5; left: 22px; top: 22px; display: flex; flex-direction: column; gap: 5px; }
.aec-thumbs button { width: 38px; height: 38px; padding: 2px; border: 2px solid var(--aec-brown); background: #fff; cursor: pointer; }
.aec-thumbs button.is-active { border-color: var(--aec-orange); }
.aec-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.aec-screen-hud { position: absolute; z-index: 4; left: 15px; right: 15px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 58px; padding: .65rem .8rem; color: #fff; background: linear-gradient(90deg,#170d08,var(--aec-brown)); border: 2px solid #76533d; border-radius: 4px; }
.aec-rating { display: flex; align-items: center; gap: .35rem; color: #fff; font-size: .78rem; white-space: nowrap; }
.aec-rating > span:last-child { color: #d7c7bc; }
.aec-stars { position: relative; display: inline-block; color: rgba(255,255,255,.2); letter-spacing: .05em; }
.aec-stars > span { position: absolute; left: 0; top: 0; color: var(--aec-gold); overflow: hidden; white-space: nowrap; text-shadow: 0 0 7px rgba(244,189,45,.55); }
.aec-price-line { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
.aec-price-line strong { color: var(--aec-lime); font: 400 clamp(1rem,2vw,1.35rem) "Russo One",sans-serif; white-space: nowrap; }
.aec-price-line del { color: #c5b5aa; font-size: .78rem; }
.aec-price-line em { padding: .18rem .35rem; color: #fff; background: var(--aec-orange); font-style: normal; font-weight: 700; font-size: .72rem; }

.aec-product-copy { position: relative; display: flex; flex: 1; flex-direction: column; margin: 0 22px 20px; padding: 1.1rem 1.2rem 1.4rem; color: var(--aec-ink); background: linear-gradient(#fffaf1,#f0dfcf); border: 4px solid #1d110b; border-top: 9px solid var(--aec-orange); border-radius: 0 0 9px 9px; }
.aec-quality-note { margin: 0 0 .8rem; color: #493b33; font-size: .94rem; line-height: 1.55; }
.aec-control-deck { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 48px; margin: auto 0 .65rem; padding: 0 8px; border-top: 2px solid #c8aa91; }
.aec-control-deck i { position: absolute; left: 17px; bottom: 7px; width: 10px; height: 27px; background: #1a110c; border-radius: 6px; transform: rotate(-8deg); box-shadow: 0 -11px 0 4px var(--aec-green); }
.aec-control-deck b { width: 21px; height: 21px; border: 3px solid #5f0a08; border-radius: 50%; background: var(--aec-orange); box-shadow: 2px 3px 0 #7e1b13; }
.aec-control-deck b:nth-of-type(2) { background: var(--aec-gold); border-color: #8a5900; }
.aec-control-deck span { color: #8b4513; font: 400 .55rem "Press Start 2P",monospace; }
.aec-buy-button { display: block; padding: .9rem 1rem; color: #fff !important; background: var(--aec-wine); border: 0; box-shadow: 5px 5px 0 var(--aec-orange); font: 700 .7rem "Press Start 2P",monospace; text-align: center; text-decoration: none !important; transition: transform .15s ease,box-shadow .15s ease; }
.aec-buy-button:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--aec-orange); }
.aec-pending-note { margin-top: .9rem; padding: .8rem; color: var(--aec-brown); background: #ffe58d; border-left: 5px solid var(--aec-gold); font-size: .78rem; line-height: 1.5; }
.aec-price-disclaimer { position: relative; margin: 0 clamp(1rem,4vw,3.5rem); padding: 1rem; color: #695a50; background: #fff; border-top: 1px solid #dbcbbb; font-size: .78rem; }

@media (max-width:1050px) {
  .aec-product-grid { grid-template-columns: 1fr; }
  .aec-product-card { max-width: 650px; }
}
@media (max-width:760px) {
  .aec-category-carousel { width: calc(100vw - 32px); }
  .aec-category-carousel a { min-height: 54px; padding: 0 1.25rem; font-size: .76rem; }
  .aec-store { width: calc(100vw - 32px); margin-top: 1rem; }
  .aec-category-grid { grid-template-columns: 1fr; }
  .aec-category-card, .aec-category-card:nth-child(4), .aec-category-card:nth-child(5) { grid-column: span 1; min-height: 270px; }
  .aec-product-grid { padding: 2rem .65rem; gap: 2.2rem; }
  .aec-product-card { min-height: 660px; border-width: 6px; }
  .aec-cabinet-marquee { min-height: 104px; margin-left: 8px; margin-right: 8px; }
  .aec-product-screen { min-height: 335px; margin-left: 9px; margin-right: 9px; border-width: 9px; padding: 11px 11px 82px; }
  .aec-main-image { height: 230px; }
  .aec-screen-hud { left: 10px; right: 10px; gap: .4rem; padding: .55rem; }
  .aec-rating { font-size: .68rem; }
  .aec-rating > span:last-child { display: none; }
  .aec-product-copy { margin-left: 13px; margin-right: 13px; }
  .aec-quality-strip { justify-content: flex-start; }
}

.aec-store-page h1.title,
.aec-store-page main > h1:first-of-type,
.aec-store-page .entry-header,
.aec-store-page .page-header { display: none !important; }
