/* ===== TIENDA EN LÍNEA ===== */
.store-shell { background: transparent; min-height: 70vh; }

.store-subnav {
  background: rgba(8, 12, 22, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: calc(var(--hours-h) + var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.store-subnav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.85rem 0;
}
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: 0.2s;
}
.store-link:hover,
.store-link.active {
  color: #041018;
  background: var(--gradient);
  border-color: transparent;
}

/* Dropdown celulares */
.store-dd {
  position: relative;
}
.store-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.store-dd:hover .store-dd-toggle,
.store-dd.open .store-dd-toggle,
.store-dd-toggle.active {
  color: #041018;
  background: var(--gradient);
  border-color: transparent;
}
.store-dd-caret {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.store-dd.open .store-dd-caret { transform: rotate(180deg); }

.store-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 300px;
  max-width: min(92vw, 360px);
  max-height: min(62vh, 440px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  background: #ffffff;
  border: 1px solid rgba(16, 23, 34, 0.14);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 0.55rem;
  z-index: 1200;
}
.store-dd-menu::-webkit-scrollbar {
  width: 8px;
}
.store-dd-menu::-webkit-scrollbar-thumb {
  background: rgba(16, 23, 34, 0.28);
  border-radius: 999px;
}
.store-dd.open .store-dd-menu {
  display: block;
}
.store-dd-item,
.store-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: #101722;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.store-dd-item:hover,
.store-acc-btn:hover {
  background: #eef2f8;
  color: #1f6feb;
}
.store-acc { border-radius: 10px; }
.store-acc.open { background: #eef2f8; }
.store-acc-panel {
  display: none;
  padding: 0.15rem 0.4rem 0.45rem 0.9rem;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.store-acc.open .store-acc-panel { display: block; }
.store-acc.open .store-acc-btn .store-dd-caret { transform: rotate(180deg); }
.store-acc-panel a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: #58657a;
  font-size: 0.86rem;
  font-weight: 500;
}
.store-acc-panel a:hover {
  background: #ffffff;
  color: #1f6feb;
}

/* Cards hub tienda */
.store-hero {
  padding: 2.5rem 0 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.store-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.35rem 0 0.75rem;
  color: var(--text);
}
.store-hero p { color: var(--text-muted); max-width: 720px; }

.store-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 0 3.5rem;
}
.store-card {
  background: #fff;
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #101722;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.store-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(31, 111, 235, 0.18);
}
.store-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  background: #fff;
}
.store-card-body { padding: 1.15rem 1.25rem 1.4rem; }
.store-card-body h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: #101722;
}
.store-card-body p {
  color: #58657a;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.store-card-cta {
  color: #1f6feb;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Gallery empty / category pages */
.gallery-empty {
  background: #fff;
  border: 1px dashed rgba(16, 23, 34, 0.2);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #58657a;
  margin: 1.5rem 0 3rem;
}
.gallery-empty strong { color: #101722; display: block; margin-bottom: 0.35rem; }

.category-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
.category-intro img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/11;
  object-fit: cover;
  background: #fff;
}
.category-intro h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0.35rem 0 0.85rem;
}
.category-intro p { color: var(--text-muted); margin-bottom: 0.85rem; }

/* Pantallas brands */
.pantallas-copy {
  background: rgba(10, 16, 30, 0.82);
  border: 1px solid rgba(0, 229, 168, 0.28);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(61, 139, 253, 0.12);
  margin: 1.5rem 0 2rem;
}
.pantallas-copy h1 {
  font-family: "Syne", sans-serif;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  background: linear-gradient(90deg, #00e5a8, #3d8bfd, #ff9f1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(0, 229, 168, 0.35));
}
.pantallas-copy p {
  color: #d4e4ff;
  margin-bottom: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 0 0 12px rgba(61, 139, 253, 0.18);
}
.pantallas-copy .section-tag {
  color: #00e5a8;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}
.brand-tile {
  background: #fff;
  border: 1px solid rgba(16, 23, 34, 0.12);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #101722;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.brand-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 24px rgba(0, 229, 168, 0.25), 0 18px 34px rgba(0, 0, 0, 0.35);
}
.brand-tile .brand-media {
  aspect-ratio: 1;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(16, 23, 34, 0.1);
}
.brand-tile .brand-media img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}
.brand-tile span {
  display: block;
  padding: 0.75rem 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.stock-soon {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 169, 123, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.live-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.live-gallery-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 23, 34, 0.08);
  margin: 0;
}
.live-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #fff;
}
.live-gallery-item figcaption {
  padding: 0.65rem 0.75rem 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.live-gallery-spec {
  padding: 0 0.75rem 0.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}
.live-gallery-price {
  padding: 0.1rem 0.75rem 0.4rem;
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0d6a45;
}
.live-gallery-desc {
  padding: 0 0.75rem 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}
.live-gallery-item .product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.55rem 0.75rem;
}
.live-gallery-item .cart-add-mini,
.live-gallery-item .cart-buy-now {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.live-gallery-item .cart-add-mini {
  background: #e8eef4;
  color: #041018;
}
.live-gallery-item .cart-buy-now {
  background: linear-gradient(135deg, #00e5a8, #3d8bfd);
  color: #041018;
}
.cart-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.cart-cat-actions .btn {
  min-height: 44px;
}

@media (max-width: 980px) {
  .store-cards { grid-template-columns: 1fr; }
  .category-intro { grid-template-columns: 1fr; }
  .store-dd-menu {
    position: static;
    min-width: 100%;
    max-width: none;
    max-height: min(55vh, 380px);
    margin-top: 0.45rem;
    box-shadow: none;
  }
  .store-dd.open .store-dd-menu { display: block; }
  .store-subnav-inner { gap: 0.45rem; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
