/* Premium Modern Styling for Chupi&Morfi Delivery */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #0b0c10;
  --bg-card: #151821;
  --bg-card-hover: #1f2330;
  --bg-input: #1a1e29;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 183, 3, 0.3);
  --accent: #ffb703;
  --accent-hover: #ffa200;
  --accent-glow: rgba(255, 183, 3, 0.25);
  --text-main: #f8f9fa;
  --text-muted: #9da4b0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 8px 30px rgba(255, 183, 3, 0.2);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Glassmorphism Navbar */
.navbar-chupi {
  background: rgba(21, 24, 33, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.navbar-brand-chupi {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.navbar-brand-chupi span {
  color: var(--accent);
}

/* Banner Hero Carousel — Imágenes de la carpeta publi/ sin degradé ni textos encima */
.hero-carousel-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
  position: relative;
}

.hero-slide-item {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
}

.hero-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(21, 24, 33, 0.9);
  backdrop-filter: blur(8px);
  color: var(--accent);
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-slide-tag:hover {
  transform: scale(1.04);
}

/* Títulos de Sección con Espaciado Ajustado */
.section-header-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  margin-top: 1rem;
}

/* Card de Comercios Adheridos */
.partner-store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
  height: 100%;
}

.partner-store-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Buscador Rápido */
.search-box-chupi {
  position: relative;
  margin-top: 2.25rem;
  margin-bottom: 1.75rem;
}

.search-box-chupi input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50px;
  padding-left: 3.2rem;
  padding-right: 1.25rem;
  height: 54px;
  font-size: 1.05rem;
}

.search-box-chupi input:focus {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.search-box-chupi i {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  pointer-events: none;
}

/* Category Slider Container & Interactive Controls */
.category-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.category-pills-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.25rem 0.6rem 0.25rem;
  margin-bottom: 0;
  scrollbar-width: none;
  flex: 1;
}

.category-pills-wrapper::-webkit-scrollbar {
  display: none;
}

.category-nav-btn {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border-gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-nav-btn:hover {
  background: var(--accent);
  color: #000000;
  transform: scale(1.1);
}

.category-nav-left {
  margin-right: 0.5rem;
}

.category-nav-right {
  margin-left: 0.5rem;
}

.category-pill {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

@media (max-width: 576px) {
  .category-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
  }
  .category-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

/* Product Cards Grid Minimalista */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 183, 3, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-img-container {
  width: 100%;
  height: 175px;
  overflow: hidden;
  position: relative;
  background-color: #101218;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-img-container img {
  transform: scale(1.08);
}

.product-brand-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 183, 3, 0.35);
  max-width: 88%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: monospace;
}

.btn-add-cart {
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-add-cart:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(255, 183, 3, 0.45);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1030;
  transition: all 0.2s ease;
}

.floating-cart-btn:hover {
  transform: scale(1.06);
  background: var(--accent-hover);
}

/* Modal Form Customization */
.form-control-chupi,
.form-select-chupi {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #ffffff;
  border-radius: var(--radius-sm);
}

.form-control-chupi:focus,
.form-select-chupi:focus {
  background-color: #242936;
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* Admin Dashboard Elements */
.admin-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.admin-table {
  color: var(--text-main);
}

.admin-table th {
  border-bottom-color: var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.admin-table td {
  border-bottom-color: var(--border-color);
  padding: 0.85rem 0.75rem;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS (100% FLUID UX)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-slide-item {
    min-height: 280px;
    padding: 1.25rem;
  }

  .hero-slide-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .search-box-chupi input {
    height: 48px;
    font-size: 0.95rem;
    padding-left: 2.8rem;
  }

  .search-box-chupi i {
    left: 1rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* Layout Padding & Spacing */
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  /* Hero Banner Carousel */
  .hero-carousel-wrapper {
    margin-bottom: 1.75rem;
    border-radius: var(--radius-md);
  }

  .hero-slide-item {
    min-height: 220px;
    padding: 1rem;
  }

  .hero-slide-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  /* Category Slider */
  .category-slider-container {
    margin-bottom: 1.5rem;
  }

  .category-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .category-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Product Cards Grid on Mobile */
  .product-img-container {
    height: 140px;
  }

  .product-card-body {
    padding: 0.85rem;
  }

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

  .product-desc {
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

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

  .btn-add-cart {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Floating Cart Button on Mobile */
  .floating-cart-btn {
    bottom: 1.25rem;
    right: 1rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.925rem;
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.4);
  }

  /* Modals Full Width Padding on Mobile */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body {
    padding: 1.25rem !important;
  }

  /* Admin Cards & Tables */
  .admin-card {
    padding: 0.85rem;
  }

  .admin-table td, .admin-table th {
    padding: 0.65rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Offcanvas Cart Full Width on Mobile */
  .offcanvas-end {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero-slide-item {
    min-height: 180px;
  }
  
  .product-img-container {
    height: 125px;
  }

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

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