/* ==========================================================================
   base-store.css — Tienda (SOFIAPPS)
   ========================================================================== */

:root {
  --store-bg: #ffffff;
  --store-surface: #ffffff;
  --store-text: #172033;
  --store-muted: #6f7890;
  --store-line: #e8ebf2;
  --store-line-soft: #f1f3f8;
  --store-accent: var(--storefront-accent, #5b43d6);
  --store-accent-strong: #4338ca;
  --store-dark: #111827;
  --store-radius: 18px;
  --store-shadow: 0 18px 45px rgba(18, 29, 55, .08);
  --store-container: min(1440px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.single-store-body {
  margin: 0;
  background: var(--store-bg);
  color: var(--store-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

.single-store-container {
  width: var(--store-container);
  margin-inline: auto;
}

/* ==========================================================================
   BARRA SUPERIOR — anuncio (blanca, sin franja negra)
   ========================================================================== */

.single-store-announcement {
  background: #ffffff;
  color: var(--store-text);
  font-size: 13px;
  border-bottom: 1px solid var(--store-line);
}

.single-store-announcement__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.single-store-announcement__message,
.single-store-announcement__links,
.single-store-announcement__links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-store-announcement__message {
  color: var(--store-text);
}

.single-store-announcement__message strong {
  color: var(--store-text);
}

.single-store-announcement__links {
  gap: 18px;
}

.single-store-announcement__links a {
  color: var(--store-muted);
}

.single-store-announcement__links a:hover {
  color: var(--store-text);
}

/* ==========================================================================
   HEADER PRINCIPAL — fondo blanco sólido, sin blur
   ========================================================================== */

.single-store-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #ffffff;
  border-bottom: 1px solid var(--store-line);
}

.single-store-header__main {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: #ffffff;
}

/* -----------------------------------------------------------------
   LOGO SIN CONTENEDOR
   ----------------------------------------------------------------- */

.single-store-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: var(--store-text);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.single-store-brand__img,
.single-store-brand img {
  display: block;
  max-height: 46px;
  max-width: 190px;
  width: auto;
  height: auto;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.single-store-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.single-store-brand__copy strong {
  font-size: 16px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-store-brand__copy small {
  font-size: 11px;
  color: var(--store-muted);
  margin-top: 2px;
}

/* -----------------------------------------------------------------
   BUSCADOR
   ----------------------------------------------------------------- */

.single-store-search {
  max-width: 720px;
  width: 100%;
  justify-self: center;
}

.single-store-search__form {
  display: flex;
  align-items: center;
  height: 48px;
  background: #f5f6fa;
  border: 1px solid transparent;
  border-radius: 15px;
  padding-left: 16px;
  transition: .2s ease;
}

.single-store-search__form:focus-within {
  background: #fff;
  border-color: rgba(91, 67, 214, .38);
  box-shadow: 0 0 0 4px rgba(91, 67, 214, .08);
}

.single-store-search__icon {
  color: #9097a9;
}

.single-store-search__input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 12px;
  color: var(--store-text);
  font-size: 14px;
}

.single-store-search__input::placeholder {
  color: #9ca3af;
}

.single-store-search__clear {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #9aa1b1;
  border-radius: 10px;
}

.single-store-search__clear:hover {
  background: #ebeef4;
  color: #374151;
}

.single-store-search__submit {
  height: 38px;
  border: 0;
  background: #ffffff;
  color: var(--store-dark);
  border: 1px solid var(--store-line);
  border-radius: 11px;
  padding: 0 18px;
  margin-right: 5px;
  font-size: 13px;
  font-weight: 700;
}

.single-store-search__submit:hover {
  background: #f3f4f7;
}

/* -----------------------------------------------------------------
   ACCIONES DEL HEADER
   ----------------------------------------------------------------- */

.single-store-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-store-action {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  color: var(--store-text);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.single-store-action:hover {
  border-color: #cfd4df;
  color: var(--store-text);
}

.single-store-cart-button {
  position: relative;
  height: 48px;
  border: 0;
  border-radius: 15px;
  background: var(--store-accent);
  color: #fff;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(91, 67, 214, .2);
}

.single-store-cart-button__icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .15);
  display: grid;
  place-items: center;
}

.single-store-cart-button__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.single-store-cart-button__copy small {
  font-size: 9px;
  opacity: .82;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.single-store-cart-button__copy strong {
  font-size: 13px;
  margin-top: 3px;
}

.single-store-cart-button__count {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--store-dark);
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

/* -----------------------------------------------------------------
   BARRA DE CATEGORÍAS
   ----------------------------------------------------------------- */

.single-store-categorybar {
  border-top: 1px solid var(--store-line-soft);
  background: #fff;
}

.single-store-categorybar__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 51px;
  overflow: visible;
}

.single-store-navlink {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.single-store-navlink:hover {
  background: #f3f4f7;
  color: #111827;
}

.single-store-navlink--home {
  color: #111827;
}

.single-store-navlink--all {
  background: #f2efff;
  color: var(--store-accent);
}

.single-store-navlink--all:hover {
  background: #ebe7ff;
  color: var(--store-accent);
}

.single-store-navlink__chevron {
  font-size: 9px;
  margin-left: 2px;
  transition: transform .2s;
}

.single-store-products-menu.is-open .single-store-navlink__chevron {
  transform: rotate(180deg);
}

.single-store-products-menu {
  position: relative;
  margin-left: auto;
}

.single-store-products-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(720px, 75vw);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: 20px;
  box-shadow: var(--store-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: .18s ease;
}

.single-store-products-menu.is-open .single-store-products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.single-store-products-dropdown__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--store-line);
}

.single-store-products-dropdown__head div {
  display: flex;
  flex-direction: column;
}

.single-store-products-dropdown__head small {
  color: var(--store-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.single-store-products-dropdown__head strong {
  font-size: 17px;
}

.single-store-products-dropdown__head>a {
  font-size: 12px;
  font-weight: 700;
  color: var(--store-accent);
}

.single-store-products-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.single-store-mini-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 13px;
  color: var(--store-text);
}

.single-store-mini-product:hover {
  background: #f7f7fa;
  color: var(--store-text);
}

.single-store-mini-product__image {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: #f2f3f6;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9aa1b1;
}

.single-store-mini-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-store-mini-product__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.single-store-mini-product__copy strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-store-mini-product__copy small {
  font-size: 10px;
  color: var(--store-muted);
  margin-top: 3px;
}

.single-store-products-dropdown__empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--store-muted);
  font-size: 13px;
}

/* -----------------------------------------------------------------
   MENÚ MÓVIL
   ----------------------------------------------------------------- */

.single-store-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--store-line);
  background: #fff;
  border-radius: 12px;
  color: #111827;
}

.single-store-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1090;
  visibility: hidden;
  pointer-events: none;
}

.single-store-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.single-store-mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  transition: opacity .22s;
}

.single-store-mobile-drawer.is-open .single-store-mobile-drawer__overlay {
  opacity: 1;
}

.single-store-mobile-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(390px, 90vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform .24s ease;
  overflow: auto;
}

.single-store-mobile-drawer.is-open .single-store-mobile-drawer__panel {
  transform: translateX(0);
}

.single-store-mobile-drawer__head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--store-line);
}

.single-store-mobile-drawer__head>div {
  display: flex;
  flex-direction: column;
}

.single-store-mobile-drawer__head small {
  font-size: 10px;
  color: var(--store-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.single-store-mobile-drawer__head strong {
  margin-top: 3px;
  font-size: 16px;
}

.single-store-mobile-drawer__head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #f2f3f6;
}

.single-store-mobile-drawer__search {
  padding: 14px 16px;
}

.single-store-mobile-drawer__search button {
  width: 100%;
  height: 44px;
  border: 1px solid var(--store-line);
  border-radius: 13px;
  background: #f7f8fa;
  color: #697386;
  text-align: left;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.single-store-mobile-nav {
  padding: 2px 12px 30px;
}

.single-store-mobile-nav>a {
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #263043;
  font-size: 13px;
  font-weight: 600;
}

.single-store-mobile-nav>a:hover {
  background: #f5f6f8;
}

.single-store-mobile-nav__title {
  padding: 18px 10px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9aa1b1;
  font-weight: 800;
}

.single-store-mobile-nav>a.single-store-mobile-nav__sub {
  min-height: 40px;
  margin-left: 26px;
  grid-template-columns: 1fr;
  padding-left: 10px;
  color: #687287;
  font-weight: 500;
}

.single-store-mobile-nav__empty {
  padding: 12px;
  color: var(--store-muted);
  font-size: 13px;
}

/* -----------------------------------------------------------------
   MAIN
   ----------------------------------------------------------------- */

.single-store-main {
  min-height: 50vh;
  background: #ffffff;
}

.single-store-search-results {
  display: none;
  padding: 28px 0 8px;
}

.single-store-search-results.is-active {
  display: block;
}

.single-store-search-results__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.single-store-search-results__head small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--store-accent);
  font-weight: 800;
}

.single-store-search-results__head h2 {
  font-size: 24px;
  margin: 3px 0 0;
}

.single-store-search-results__head>span {
  color: var(--store-muted);
  font-size: 12px;
}

.single-store-search-results__state,
.single-store-search-results__empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed #d9ddea;
  background: #fff;
  border-radius: 18px;
  color: var(--store-muted);
}

.single-store-search-results__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.single-store-search-results__empty i {
  font-size: 28px;
  margin-bottom: 4px;
}

.single-store-search-results__empty strong {
  color: var(--store-text);
}

/* -----------------------------------------------------------------
   FOOTER (oscuro, como pediste)
   ----------------------------------------------------------------- */

.single-store-footer {
  margin-top: 54px;
  background: var(--store-dark);
  color: #d7dbe5;
}

.single-store-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 44px;
  padding: 48px 0;
}

.single-store-footer__logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.single-store-footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.single-store-footer__brand h3 {
  color: #fff;
  font-size: 17px;
  margin: 14px 0 8px;
}

.single-store-footer__brand p {
  max-width: 420px;
  color: #99a2b4;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.single-store-footer__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-store-footer__column h4 {
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.single-store-footer__column a,
.single-store-footer__column span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb6c6;
  font-size: 12px;
}

.single-store-footer__column a:hover {
  color: #fff;
}

.single-store-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.single-store-footer__bottom>div {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f899c;
  font-size: 11px;
}

/* -----------------------------------------------------------------
   DOCK MÓVIL
   ----------------------------------------------------------------- */

.single-store-mobile-dock {
  display: none;
}

/* -----------------------------------------------------------------
   PANEL DEL CARRITO
   ----------------------------------------------------------------- */

.desktop-cart-widget {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}

.desktop-cart-widget.is-open,
.desktop-cart-widget[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.desktop-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  opacity: 0;
  transition: opacity .22s;
}

.desktop-cart-widget.is-open .desktop-cart-overlay,
.desktop-cart-widget[aria-hidden="false"] .desktop-cart-overlay {
  opacity: 1;
}

.desktop-cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(430px, 94vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .24s ease;
  outline: 0;
  box-shadow: -20px 0 45px rgba(15, 23, 42, .12);
}

.desktop-cart-widget.is-open .desktop-cart-panel,
.desktop-cart-widget[aria-hidden="false"] .desktop-cart-panel {
  transform: translateX(0);
}

.desktop-cart-header {
  min-height: 80px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--store-line);
}

.cart-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-title-section>i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f2efff;
  color: var(--store-accent);
  display: grid;
  place-items: center;
}

.cart-title-section>div {
  display: flex;
  flex-direction: column;
}

.cart-title-section strong {
  font-size: 16px;
}

.cart-title-section span {
  font-size: 11px;
  color: var(--store-muted);
  margin-top: 2px;
}

.desktop-cart-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4b5563;
}

.desktop-cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.desktop-empty-cart {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--store-muted);
}

.desktop-empty-cart>i {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #f3f4f7;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #9aa1b1;
}

.desktop-empty-cart h4 {
  font-size: 15px;
  color: var(--store-text);
  margin: 14px 0 5px;
}

.desktop-empty-cart p {
  font-size: 12px;
  margin: 0;
}

.desktop-cart-summary {
  padding: 15px 20px;
  border-top: 1px solid var(--store-line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}

.summary-row.total {
  font-size: 15px;
  padding-top: 10px;
}

.summary-row.total strong {
  font-size: 19px;
}

.desktop-cart-actions {
  padding: 0 20px 20px;
}

.btn-checkout {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--store-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-checkout:disabled,
.btn-checkout.is-disabled,
.btn-checkout[aria-disabled="true"] {
  background: #cfd4dd;
  cursor: not-allowed;
  opacity: .82;
}

.btn-checkout:not(.is-disabled)[aria-disabled="false"] {
  cursor: pointer;
}

.desktop-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--store-line);
}

.desktop-cart-item .cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}

.desktop-cart-item .cart-item-details {
  flex: 1;
  min-width: 0;
}

.desktop-cart-item .cart-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--store-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-cart-item .cart-item-price {
  font-size: 12px;
  color: var(--store-accent);
  font-weight: 800;
  margin-top: 5px;
}

.desktop-cart-item .cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.quantity-btn,
.cart-item-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--store-line);
  background: #fff;
  border-radius: 8px;
  font-size: 10px;
}

.cart-item-remove {
  margin-left: auto;
  color: #dc2626;
}

.cart-item-quantity {
  min-width: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

body.store-cart-open {
  overflow: hidden;
}

.cart-notification {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1300;
  transform: translateY(20px);
  opacity: 0;
  transition: .2s;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-notification .notification-content {
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--store-dark);
  color: #fff;
  box-shadow: var(--store-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.cart-notification.success .notification-content i {
  color: #34d399;
}

.cart-notification.error .notification-content i {
  color: #fb7185;
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */

@media (max-width: 1100px) {
  .single-store-header__main {
    grid-template-columns: auto 1fr auto;
    gap: 15px;
  }

  .single-store-brand__copy {
    display: none;
  }

  .single-store-brand {
    min-width: auto;
  }

  .single-store-action--checkout {
    display: none;
  }

  .single-store-categorybar__inner {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .single-store-categorybar__inner::-webkit-scrollbar {
    display: none;
  }

  .single-store-products-menu {
    margin-left: 0;
  }

  .single-store-products-dropdown {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 142px;
    width: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --store-container: min(100% - 26px, 1440px);
  }

  body.single-store-body {
    padding-bottom: 68px;
  }

  .single-store-announcement__links {
    display: none;
  }

  .single-store-announcement__inner {
    justify-content: center;
  }

  .single-store-header__main {
    min-height: 70px;
    grid-template-columns: auto auto 1fr auto;
  }

  .single-store-mobile-toggle {
    display: grid;
    place-items: center;
  }

  .single-store-brand {
    grid-column: 2;
  }

  .single-store-search {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 12px;
    max-width: none;
  }

  .single-store-search__form {
    height: 44px;
  }

  .single-store-search__submit {
    display: none;
  }

  .single-store-header__actions {
    grid-column: 4;
    grid-row: 1;
  }

  .single-store-cart-button {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 13px;
  }

  .single-store-cart-button__icon {
    background: transparent;
    width: auto;
    height: auto;
  }

  .single-store-cart-button__copy {
    display: none;
  }

  .single-store-categorybar {
    display: none;
  }

  .single-store-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .single-store-footer__brand {
    grid-column: 1 / -1;
  }

  .single-store-footer__bottom>div {
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .single-store-mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 9px;
    height: 58px;
    z-index: 1035;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 4px;
  }

  .single-store-mobile-dock>a,
  .single-store-mobile-dock>button {
    position: relative;
    border: 0;
    background: transparent;
    border-radius: 13px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
  }

  .single-store-mobile-dock i {
    font-size: 15px;
  }

  .single-store-mobile-dock__cart b {
    position: absolute;
    top: 1px;
    left: 50%;
    margin-left: 7px;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--store-accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 8px;
  }

  .single-store-search-results {
    padding-top: 20px;
  }

  .single-store-search-results__head h2 {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .single-store-announcement {
    font-size: 11px;
  }

  .single-store-header__main {
    gap: 9px;
  }

  .single-store-search__input {
    font-size: 12px;
  }

  .single-store-footer__grid {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .single-store-footer__brand {
    grid-column: auto;
  }

  .single-store-search-results__head {
    align-items: flex-start;
    gap: 10px;
  }

  .single-store-search-results__head>span {
    padding-top: 4px;
  }

  .desktop-cart-panel {
    width: 100%;
  }
}
/* ==========================================================================
   MEGA MENÚ DE CATEGORÍAS — mismo lenguaje visual del menú Productos
   ========================================================================== */
.single-store-categories-menu {
  position: relative;
  margin-left: auto;
}

.single-store-products-menu.has-categories-menu {
  margin-left: 0;
}

.single-store-categories-menu.is-open .single-store-navlink__chevron {
  transform: rotate(180deg);
}

.single-store-categories-menu.is-open .single-store-products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.single-store-categories-dropdown {
  width: min(920px, 86vw);
  right: 0;
}

.single-store-categories-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding-top: 14px;
  max-height: min(540px, 65vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.single-store-category-menu-item {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--store-text);
  background: #fff;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.single-store-category-menu-item:hover,
.single-store-category-menu-item:focus-visible {
  color: var(--store-text);
  background: #f7f7fa;
  border-color: var(--store-line-soft);
  transform: translateY(-1px);
}

.single-store-category-menu-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f2efff;
  color: var(--store-accent);
  font-size: 15px;
}

.single-store-category-menu-item__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.single-store-category-menu-item__copy strong {
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-store-category-menu-item__copy small {
  margin-top: 3px;
  color: var(--store-muted);
  font-size: 10px;
}

.single-store-category-menu-item__arrow {
  color: #b3b8c5;
  font-size: 9px;
}

@media (max-width: 1100px) {
  .single-store-categories-menu { margin-left: 0; }
  .single-store-categories-dropdown {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 142px;
    width: auto;
  }
  .single-store-categories-dropdown__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .single-store-categories-dropdown__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.single-store-mobile-categories {
  display: none;
}

@media (max-width: 820px) {
  .single-store-mobile-categories {
    display: block;
    margin: 4px 0 10px;
  }

  .single-store-mobile-categories__toggle {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    background: #f7f8fa;
    color: var(--store-text);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 750;
  }

  .single-store-mobile-categories__toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .single-store-mobile-categories__toggle > i {
    font-size: 10px;
    transition: transform .18s ease;
  }

  .single-store-mobile-categories.is-open .single-store-mobile-categories__toggle > i {
    transform: rotate(180deg);
  }

  .single-store-mobile-categories__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 2px 2px;
  }

  .single-store-mobile-categories__panel[hidden] {
    display: none;
  }

  .single-store-mobile-categories__panel a {
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--store-line-soft);
    color: var(--store-text);
    font-size: 11.5px;
  }

  .single-store-mobile-categories__panel a i {
    color: var(--store-accent);
    width: 16px;
    text-align: center;
  }

  .single-store-mobile-categories__panel a span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ========================================================================
   HEADER MEGA MENUS — categorías y productos independientes
   ======================================================================== */
.single-store-categorybar__inner > .single-store-categories-menu {
  margin-left: auto;
}

.single-store-categorybar__inner > .single-store-products-menu.has-categories-menu {
  margin-left: 0;
}

.single-store-products-dropdown,
.single-store-categories-dropdown {
  z-index: 1065;
}

.single-store-navlink--categories,
.single-store-navlink--products {
  cursor: pointer;
}

.single-store-categories-dropdown__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .single-store-categorybar__inner > .single-store-categories-menu {
    margin-left: auto;
  }
}

/* ========================================================================
   HEADER GLOBAL — mega-menús nativos en todas las vistas
   ======================================================================== */
.single-store-mega-menu {
  position: relative;
}

.single-store-categorybar__inner > .single-store-categories-menu {
  margin-left: auto;
}

.single-store-categorybar__inner > .single-store-products-menu {
  margin-left: 0;
}

.single-store-mega-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.single-store-mega-menu > summary::-webkit-details-marker {
  display: none;
}

.single-store-mega-menu[open] > .single-store-products-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.single-store-mega-menu:not([open]) > .single-store-products-dropdown {
  pointer-events: none;
}

.single-store-mega-menu[open] > summary .single-store-navlink__chevron {
  transform: rotate(180deg);
}

.single-store-mega-menu > summary:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.single-store-categories-dropdown {
  width: min(920px, 86vw);
}

.single-store-categories-dropdown__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .single-store-categories-dropdown__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .single-store-categories-dropdown__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
