:root { --store-header-offset: 104px; }
.shop-header-spacer, .shop-fixed-head { --store-logo-size: var(--store-configured-logo,56px); }
.shop-header-spacer { height: calc(var(--store-logo-size) + 45px); }
.shop-fixed-head { position: fixed; inset: 0 0 auto; z-index: 1200; color: #fff; background: var(--store-primary, #050505); box-shadow: 0 3px 12px #0002; }
.shop-fixed-head *, .shop-fixed-head *::before, .shop-fixed-head *::after { box-sizing: border-box; letter-spacing: 0; }
.shop-topbar { height: 28px; overflow: hidden; background: var(--store-accent, #08aaa8); font-size: 11px; line-height: 28px; font-weight: 700; white-space: nowrap; transition: height .18s ease; }
.shop-topbar span { display: inline-block; padding-left: 100%; animation: shop-marquee 22s linear infinite; }
.shop-header { display: grid; grid-template-columns: var(--store-logo-size) minmax(0,1fr) auto; align-items: center; gap: 24px; max-width: 1400px; margin: auto; padding: 8px 24px; position: relative; border-bottom: 1px solid #ffffff26; }
.shop-logo { display: block; width: var(--store-logo-size); height: var(--store-logo-size); border: 1px solid #fff; border-radius: 50%; overflow: hidden; background: #050505; transition: width .18s ease, height .18s ease; }
.shop-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-nav { display: flex; align-items: center; justify-content: center; gap: 22px; min-width: 0; }
.shop-nav > a, .shop-nav > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.shop-nav > a:hover, .shop-nav > button:hover, .shop-nav > button[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 6px; }
.shop-nav > button i { font-size: 10px; transition: transform .15s ease; }
.shop-nav > button[aria-expanded="true"] i { transform: rotate(180deg); }
.shop-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.shop-tool { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; border: 1px solid #ffffff85; border-radius: 50%; padding: 0; background: transparent; color: #fff; font-size: 17px; cursor: pointer; }
.shop-tool:hover, .shop-tool[aria-expanded="true"] { background: #ffffff20; }
.shop-cart-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 84px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff85; border-radius: 4px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.shop-fixed-head :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shop-mega { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(720px,calc(100vw - 32px)); max-height: min(480px,calc(100dvh - var(--store-header-offset) - 16px)); overflow-y: auto; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 16px; padding: 16px; border: 1px solid #ffffff40; box-shadow: 0 10px 24px #0003; background: var(--store-primary,#050505); }
.shop-mega.is-open { display: grid; }
.shop-mega a { display: flex; align-items: center; min-height: 44px; padding: 8px; color: #fff; font-size: 13px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.shop-mega a:hover, .shop-mega a:focus-visible { background: #ffffff1a; }
.shop-search-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .2s ease, visibility .2s; }
.shop-search-panel.is-open { grid-template-rows: 1fr; visibility: visible; }
.shop-search-clip { min-height: 0; overflow: hidden; }
.shop-search-form { display: flex; align-items: center; gap: 8px; width: min(700px,100%); padding: 12px 24px 16px; margin: auto; }
.shop-search-form input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #171717; font: inherit; font-size: 16px; }
.shop-search-form input::placeholder { color: #666; }
.shop-search-form input:focus-visible { outline-offset: 2px; }
.shop-fixed-head.is-scrolled .shop-topbar { height: 0; }
.shop-fixed-head.is-scrolled .shop-logo { width: 44px; height: 44px; }
.shop-fixed-head.is-scrolled .shop-header { padding-top: 4px; padding-bottom: 4px; }
#productos, #ultimos, #contacto, #como-comprar, #politica { scroll-margin-top: calc(var(--store-header-offset) + 16px); }
.shop-mobile-cat-panel { background: var(--store-primary,#050505); }
.shop-mobile-cat-panel h3 { color: #fff; padding-right: 44px; }
.shop-mobile-cat-close { width: 44px; height: 44px; line-height: 44px; }

@media (max-width: 1000px) {
  .shop-header { grid-template-columns: var(--store-logo-size) minmax(0,1fr); column-gap: 12px; row-gap: 0; padding: 8px 16px 0; }
  .shop-tools { grid-column: 2; grid-row: 1; }
  .shop-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 22px; }
  .shop-header-spacer { height: calc(var(--store-logo-size) + 81px); }
  .shop-fixed-head.is-scrolled .shop-header { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .shop-header-spacer, .shop-fixed-head { --store-logo-size: 48px; }
  .shop-header { padding-left: 12px; padding-right: 12px; }
  .shop-tools { gap: 6px; }
  .shop-cart-pill { min-width: 76px; max-width: 140px; padding: 8px; font-size: 12px; }
  .shop-cart-pill span { overflow: hidden; text-overflow: ellipsis; }
  .shop-nav { justify-content: flex-start; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .shop-nav::-webkit-scrollbar { display: none; }
  .shop-nav > a, .shop-nav > button { font-size: 12px; }
  .shop-mega, .shop-mega.is-open { display: none; }
  .shop-search-form { padding: 10px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-topbar, .shop-logo, .shop-search-panel, .shop-nav > button i { transition: none; }
  .shop-topbar span { animation: none; padding-left: 12px; }
}
