/* ==========================================================================
   GOD MARKET — RESPONSIVE & DESKTOP / TV LUXURY EXPERIENCE
   Mantiene 100% la identidad visual exclusiva: verde esmeralda profundo y oro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tablet / Pantallas Medianas (min-width: 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .app-container {
    max-width: 768px;
    padding-bottom: 90px;
  }

  .hero-banner-god {
    min-height: 320px;
    padding: 34px 28px 26px;
  }

  .hero-god-title {
    font-size: 2.3rem;
  }

  .hero-god-sub {
    font-size: 0.95rem;
  }

  .cafeterias-slider {
    gap: 18px;
  }

  .cafeteria-god-card {
    min-width: 230px;
    max-width: 230px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .bottom-sheet {
    border-radius: var(--radius-lg);
    max-width: 580px;
    max-height: 85vh;
  }
}

/* --------------------------------------------------------------------------
   2. Desktop / PC & Notebooks (min-width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  body {
    background-color: #051610;
    color: var(--cream);
  }

  /* Contenedor amplio y centrado estilo Marketplace Gourmet */
  .app-container {
    max-width: 1240px;
    padding: 0 24px 80px;
    box-shadow: none;
    background: transparent;
  }

  /* Header Desktop: Barra horizontal completa y elegante */
  .app-header {
    background: rgba(8, 30, 22, 0.94);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    margin: 16px 0 24px;
    padding: 14px 28px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* Hamburger oculta en Desktop */
  .hamburger-menu-btn {
    display: none !important;
  }

  /* Navegación Desktop central */
  .desktop-nav-links {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .desktop-nav-link {
    color: #CBD8D1;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
  }

  .desktop-nav-link:hover,
  .desktop-nav-link.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.12);
    font-weight: 600;
  }

  /* Acciones Desktop: Dirección, pedidos y portal */
  .desktop-header-actions {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .desktop-location-pill {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .desktop-location-pill:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: #D4AF37;
  }

  /* Hero Expansivo Gourmet */
  .hero-banner-god {
    margin: 0 0 28px 0;
    min-height: 380px;
    padding: 48px 44px 38px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }

  .hero-god-title {
    font-size: 3.1rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero-god-sub {
    font-size: 1.05rem;
    max-width: 620px;
  }

  /* Buscador en Desktop */
  .search-god-wrapper {
    padding: 0;
    max-width: 580px;
    margin: 0 auto 28px;
  }

  /* Categorías en Desktop: Centradas con más espacio */
  .stories-section {
    margin-bottom: 32px;
  }

  .stories-slider {
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
  }

  .story-ring {
    width: 66px;
    height: 66px;
  }

  .story-avatar-inner svg {
    width: 28px;
    height: 28px;
  }

  .story-label {
    font-size: 0.82rem;
  }

  /* Cafeterías destacadas en Desktop (Grilla de 4 Columnas) */
  .cafeterias-god-section {
    padding: 0;
    margin-bottom: 36px;
  }

  .section-title-god {
    font-size: 1.6rem;
  }

  .cafeterias-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .cafeteria-god-card {
    min-width: 0;
    max-width: 100%;
  }

  .cafeteria-card-img-wrap {
    height: 145px;
  }

  /* Grilla de 4 Productos por Fila en PC */
  .section-container {
    padding: 0;
    margin-bottom: 36px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  /* Ocultar Barra Inferior Móvil en PC */
  .bottom-nav {
    display: none !important;
  }

  /* Barra Flotante de Carrito en PC (Abajo a la derecha) */
  .floating-cart-bar {
    bottom: 30px;
    left: auto;
    right: 40px;
    transform: translateY(30px);
    width: 380px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35);
  }

  .floating-cart-bar.visible {
    transform: translateY(0);
  }

  /* Modal de Detalle de Producto en PC: 2 Columnas */
  .modal-overlay {
    align-items: center;
    padding: 40px;
  }

  .bottom-sheet {
    max-width: 780px;
    max-height: 88vh;
    border-radius: 28px;
    padding: 32px;
  }

  .modal-desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: start;
  }

  .modal-product-img {
    height: 320px;
    border-radius: var(--radius-md);
    margin-bottom: 0;
  }

  /* Modales de Checkout y Carrito en PC */
  #cart-drawer-modal .bottom-sheet,
  #checkout-modal .bottom-sheet,
  #admin-product-modal .bottom-sheet,
  #profile-modal .bottom-sheet {
    max-width: 600px;
    padding: 32px;
  }

  /* Footer en Desktop */
  footer {
    margin: 40px 0 20px 0 !important;
    padding: 36px 40px !important;
  }
}

/* --------------------------------------------------------------------------
   3. Smart TV / Ultra-Wide Displays (min-width: 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .app-container {
    max-width: 1440px;
  }

  .hero-banner-god {
    min-height: 420px;
    padding: 56px 52px 44px;
  }

  .hero-god-title {
    font-size: 3.5rem;
  }

  .hero-god-sub {
    font-size: 1.15rem;
  }

  .cafeterias-slider {
    gap: 24px;
  }

  .cafeteria-card-img-wrap {
    height: 165px;
  }

  .products-grid {
    gap: 26px;
  }
}

/* --------------------------------------------------------------------------
   4. Ultra-Wide & 4K Smart TVs (min-width: 1920px)
   - Optimizado para visualización a distancia (living room / TV remotes)
   - Targets de clic amplios y legibilidad cinematográfica
   -------------------------------------------------------------------------- */
@media (min-width: 1920px) {
  .app-container {
    max-width: 1680px;
    padding: 0 40px 100px;
  }

  .app-header {
    padding: 18px 36px;
    margin: 20px 0 32px;
    border-radius: 24px;
  }

  .brand-god {
    font-size: 1.85rem;
  }

  .brand-market {
    font-size: 0.68rem;
  }

  .desktop-nav-link {
    font-size: 0.98rem;
    padding: 10px 18px;
  }

  .desktop-location-pill {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .hero-banner-god {
    min-height: 480px;
    padding: 68px 60px 52px;
    border-radius: 34px;
  }

  .hero-god-title {
    font-size: 4.2rem;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero-god-sub {
    font-size: 1.35rem;
    max-width: 720px;
  }

  .search-god-wrapper {
    max-width: 680px;
    margin-bottom: 36px;
  }

  .search-god-capsule {
    padding: 10px 14px 10px 22px;
  }

  .search-god-input {
    font-size: 1rem;
  }

  .stories-section {
    margin-bottom: 40px;
  }

  .stories-slider {
    gap: 32px;
  }

  .story-ring {
    width: 78px;
    height: 78px;
  }

  .story-avatar-inner svg {
    width: 34px;
    height: 34px;
  }

  .story-label {
    font-size: 0.92rem;
  }

  .section-title-god {
    font-size: 1.95rem;
  }

  .cafeterias-slider {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .cafeteria-card-img-wrap {
    height: 185px;
  }

  .cafeteria-card-title {
    font-size: 1.15rem;
  }

  .cafeteria-card-sub {
    font-size: 0.88rem;
  }

  .cafeteria-card-meta {
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.35rem;
  }

  /* Remote Control / Keyboard Focus Ring for Smart TVs */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  .cafeteria-god-card:focus-visible,
  .product-card:focus-visible,
  .story-bubble:focus-visible {
    outline: 3px solid #D4AF37 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.6) !important;
  }
}
