﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* LOADING ANIMATION */
.loading-container {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: #666;
  font-size: 14px;
  margin: 0;
}


/* SCROLL REVEAL (HOME) */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance, 30px), 0) scale(var(--reveal-scale, 0.985));
  filter: blur(var(--reveal-blur, 6px));
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.scroll-reveal-soft {
  --reveal-distance: 20px;
  --reveal-scale: 0.992;
  --reveal-blur: 3px;
}

.scroll-reveal-strong {
  --reveal-distance: 44px;
  --reveal-scale: 0.972;
  --reveal-blur: 8px;
}

.scroll-reveal-fast {
  transition-duration: 0.5s;
}
/* TOP BAR */
.top-bar {
  background: #1e3a8a;
  color: white;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  font-size: 14px;
  position: relative;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-bar-auth {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HEADER */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  display: block;
  width: auto;
  height: 50px;
  max-width: min(42vw, 240px);
  object-fit: contain;
}

.header nav {
  display: flex;
  gap: 30px;
}

.header nav a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.header nav a:hover {
  color: #ef4444;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1e3a8a;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle:hover {
  border-color: #1e3a8a;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.18);
}

.header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.action-chip {
  border: 1px solid #1e3a8a;
  color: #1e3a8a;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-chip:hover {
  background: #1e3a8a;
  color: #ffffff;
}

.action-chip-top {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
}

.action-chip-top:hover {
  background: #ffffff;
  color: #1e3a8a;
}

.currency {
  background: transparent;
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s;
}

.currency.active {
  background: #1e3a8a;
  color: white;
}

.currency:hover {
  background: #1e3a8a;
  color: white;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 80px 40px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left h1 {
  font-size: 44px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-left h1 span.soft {
  color: #1e3a8a;
}

.hero-left h1 span.line {
  color: #ef4444;
}

.hero-left h1 span.it {
  color: #ef4444;
}

.hero-left p {
  color: #666;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #ef4444;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-outline {
  border: 2px solid #ef4444;
  color: #ef4444;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
  display: inline-block;
}

.btn-outline:hover {
  background: #ef4444;
  color: white;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  gap: 25px;
  color: #666;
  font-size: 14px;
}

/* Map */
.hero-right img {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* MAP SECTION */
.map-section {
  padding: 60px 40px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
}

.map-section h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #1e3a8a;
  font-size: 32px;
}

.map-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
}

/* LOCATIONS GRID */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.location-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.location-card h3 {
  color: #1e3a8a;
  margin-bottom: 8px;
  font-size: 16px;
}

.location-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

/* PRODUCTS SECTION */
.products {
  padding: 80px 40px;
  background: #ffffff;
}
.search-section {
  padding: 40px 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
}

.search-section h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
}

.search-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 16px;
}

.search-bar-wrapper {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.inline-search {
  margin-bottom: 24px;
}

.search-bar {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* SEE ALL WRAPPER */
.see-all-wrapper {
  text-align: center;
  margin-top: 50px;
  padding: 20px 0;
}

.see-all-wrapper .btn-primary {
  padding: 16px 40px;
  font-size: 16px;
  display: inline-block;
}

.products h2 {
  font-size: 36px;
  margin-bottom: 10px;
  text-align: center;
  color: #1e3a8a;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 16px;
}

/* CATEGORY FILTERS */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-filter {
  background: white;
  border: 2px solid #e5e7eb;
  color: #555;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.category-filter:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.category-filter.active {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}


/* CATALOG PAGINATION */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -8px 0 16px 0;
}

.catalog-count {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.page-size-select {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-btn,
.page-number {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #334155;
  border-radius: 10px;
  min-width: 42px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.25s ease;
}

.page-btn:hover:not(:disabled),
.page-number:hover:not(:disabled) {
  border-color: #ef4444;
  color: #ef4444;
}

.page-number.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.page-btn:disabled,
.page-number:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-info {
  text-align: center;
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}
/* CATEGORY BADGE */
.category-badge {
  display: inline-block;
  background: #f3f4f6;
  color: #555;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* CAROUSEL */
.carousel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-wrapper.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-wrapper.dragging .product button {
  pointer-events: none;
}

.carousel-container {
  display: flex;
  gap: 30px;
  padding: 20px 0;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-container .product {
  flex: 0 0 calc(25% - 23px);
  min-width: 280px;
  transition: box-shadow 0.3s ease;
}

.carousel-container .product:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.carousel-container .product button,
.product button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: auto;
}

.carousel-container .product button:hover:not(:disabled),
.product button:hover:not(:disabled) {
  background: #ef4444;
}

.carousel-container .product button:disabled,
.product button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.product {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-color: #ef4444;
}

.product.product-disabled {
  opacity: 0.72;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 15px;
  image-rendering: crisp-edges;
}

.product h3 {
  font-size: 18px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #1e3a8a;
  font-weight: 600;
}

.product p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.product .description {
  color: #888;
  font-size: 13px;
  margin: 12px 0 8px 0;
  padding: 8px 0 0 0;
  min-height: 0;
  line-height: 1.45;
  overflow: hidden;
  position: relative;
  max-height: 999px;
  transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.product .description.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.8em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.92) 62%, rgba(255,255,255,1));
  pointer-events: none;
}

.product button.desc-toggle {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin: 0 0 10px 0;
  padding: 0;
  align-self: flex-start;
  min-height: auto;
  text-decoration: none;
  transform: none;
}

.product button.desc-toggle:hover {
  color: #1e3a8a;
  background: transparent;
  transform: none;
  box-shadow: none;
}
.product .price {
  font-size: 22px;
  font-weight: bold;
  color: #ef4444;
  margin: 15px 0;
}

.product .status {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 15px;
  display: inline-block;
}

.product .status.available {
  background: #dcfce7;
  color: #166534;
}

.product .status.out {
  background: #fee2e2;
  color: #991b1b;
}

.product button {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: auto;
}

.product button:hover:not(:disabled) {
  background: #ef4444;
  transform: scale(1.05);
}

.product button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

/* CART SECTION */
.cart-section {
  padding: 60px 40px;
  background: #f3f4f6;
  border-top: 2px solid #e5e7eb;
}

.cart-wrapper {
  background: white;
  border-radius: 12px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cart-content h3 {
  color: #1e3a8a;
  margin-bottom: 20px;
  font-size: 20px;
}

.cart-items {
  list-style: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.cart-items li {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  color: #555;
  font-size: 14px;
}

.cart-items li:last-child {
  border-bottom: none;
}

.cart-items li.empty-cart {
  text-align: center;
  color: #999;
  font-style: italic;
}

.cart-total {
  padding-top: 15px;
  border-top: 2px solid #ef4444;
  font-size: 20px;
  color: #1e3a8a;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s;
  width: 100%;
}

.btn-whatsapp:hover:not(:disabled) {
  background: #20ba5a;
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* FOOTER */
.footer {
  background: #1e3a8a;
  color: white;
  padding: 30px 40px;
  text-align: center;
  border-top: 3px solid #ef4444;
}

.footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: #93c5fd;
}

.admin-section {
  background: #f8fafc;
  border-top: 2px solid #e5e7eb;
  padding: 70px 40px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.admin-subtitle {
  color: #64748b;
  margin-top: 6px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.overview-card h4 {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.overview-card p {
  font-size: 23px;
  color: #0f172a;
  font-weight: 700;
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.admin-block h3 {
  margin-bottom: 14px;
  color: #1e3a8a;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-inline-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.admin-product-card {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-product-card:hover {
  border-color: #1e3a8a;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.12);
  transform: translateY(-2px);
}

.admin-product-card.active-edit {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.14);
}

.admin-product-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-product-head img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
}

.admin-product-meta {
  min-width: 0;
}

.admin-product-meta h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
}

.admin-product-code {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.admin-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  color: #334155;
  background: #fff;
}

.admin-pill.good {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.admin-pill.warn {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 9px 8px;
}

.admin-table img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-mini-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 12px;
}

.admin-mini-btn.danger {
  border-color: #ef4444;
  color: #ef4444;
}

.admin-mini-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-list-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-list-item p {
  margin: 0;
}

.admin-form,
.admin-form-inline {
  display: grid;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  display: grid;
  place-items: center;
  z-index: 500;
  padding: 20px;
}

.modal-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 20px;
  position: relative;
}

.modal-card h3 {
  color: #1e3a8a;
  margin-bottom: 6px;
}

.modal-subtitle {
  margin-bottom: 16px;
  color: #475569;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
}

.auth-error {
  margin: 2px 0 8px 0;
  font-size: 13px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
}

.toast-root {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 600;
  display: grid;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 220px;
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.3);
}

.toast.error {
  background: #7f1d1d;
}

.toast.success {
  background: #14532d;
}

/* ABOUT SECTION */
.about-section {
  padding: 70px 40px;
  background: #ffffff;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e3a8a;
  font-size: 32px;
}

.about-section p {
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.8;
  color: #555;
  text-align: center;
  font-size: 15px;
}

/* FAQ SECTION */
.faq-section {
  padding: 70px 40px;
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1e3a8a;
  font-size: 32px;
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 20px auto;
  padding: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #ef4444;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 20px;
  background: white;
  border: none;
  cursor: pointer;
  display: inline-block;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  transition: all 0.3s;
}

.faq-toggle:hover {
  background: #f9fafb;
}

.faq-question {
  text-align: left;
  flex: 1;
}

.faq-icon {
  font-size: 24px;
  color: #ef4444;
  transition: transform 0.3s;
  margin-left: 15px;
  flex-shrink: 0;
}

.faq-toggle.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #f9fafb;
}

.faq-answer.show {
  max-height: 200px;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
  padding: 0 20px 20px 20px;
  font-weight: normal;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .loading-container {
    padding: 40px 15px;
  }

  .loading-spinner {
    width: 35px;
    height: 35px;
    border-width: 3px;
  }

  .loading-container p {
    font-size: 13px;
  }

  .top-bar {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    padding: 8px 15px;
  }

  .top-bar-left {
    gap: 8px;
    flex-direction: column;
    text-align: center;
  }

  .top-bar-auth {
    position: static;
    transform: none;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .header {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .logo {
    text-align: left;
  }

  .logo img {
    height: 38px;
    max-width: min(58vw, 210px);
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 10px;
  }

  .header.nav-open .site-nav {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 10px;
  }

  .site-nav a {
    font-size: 13px;
    padding: 10px 12px;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
  }

  .actions {
    grid-column: 1 / -1;
    gap: 8px;
    justify-content: flex-end;
  }

  .action-chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .admin-products-grid {
    grid-template-columns: 1fr;
  }

  body.menu-open {
    overflow: hidden;
  }

  .currency {
    padding: 6px 10px;
    font-size: 12px;
  }

  .carousel-container .product {
    flex: 0 0 calc(50% - 15px);
    min-width: auto;
  }

  .hero {
    padding: 30px 15px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
  }

  .hero-left h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-left p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }

  .hero-right {
    display: none;
  }

  .products {
    padding: 40px 15px;
  }

  .products h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .search-section {
    padding: 25px 15px;
  }

  .search-section h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .search-bar {
    padding: 11px 14px;
    font-size: 14px;
    height: 44px;
  }

  .category-filters {
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
  }

  .category-filter {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 40px;
    border-radius: 6px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product {
    padding: 12px;
  }

  .product img {
    height: 150px;
    padding: 10px;
  }

  .product h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .product .description {
  color: #888;
  font-size: 13px;
  margin: 12px 0 8px 0;
  padding: 8px 0 0 0;
  min-height: 0;
  line-height: 1.45;
  overflow: hidden;
  position: relative;
  max-height: 999px;
  transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.product .description.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.8em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.92) 62%, rgba(255,255,255,1));
  pointer-events: none;
}

.product button.desc-toggle {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin: 0 0 10px 0;
  padding: 0;
  align-self: flex-start;
  min-height: auto;
  text-decoration: none;
  transform: none;
}

.product button.desc-toggle:hover {
  color: #1e3a8a;
  background: transparent;
  transform: none;
  box-shadow: none;
}
.product .price {
    font-size: 13px;
    margin: 10px 0;
  }

  .product button {
    font-size: 11px;
    padding: 7px 8px;
    min-height: 36px;
  }

  .cart-wrapper {
    gap: 12px;
  }

  .cart-content {
    max-height: 50vh;
  }

  .cart-content li {
    padding: 10px;
  }

  .btn-whatsapp {
    padding: 11px 14px;
    font-size: 12px;
    min-height: 44px;
  }

  .map-section {
    padding: 25px 12px;
  }

  .map-section h2 {
    font-size: 20px;
  }

  .map-section iframe {
    height: 200px !important;
  }

  .locations-grid {
    gap: 12px;
  }

  .location-card {
    padding: 10px;
  }

  .location-card h3 {
    font-size: 14px;
  }

  .location-card p {
    font-size: 12px;
  }

  .about-section {
    padding: 30px 12px;
  }

  .about-section h2 {
    font-size: 20px;
  }

  .about-section p {
    font-size: 12px;
  }

  .faq-section {
    padding: 30px 12px;
  }

  .faq-section h2 {
    font-size: 20px;
  }

  .faq-toggle {
    padding: 9px;
    font-size: 12px;
    min-height: 40px;
  }

  .faq-item h4 {
    font-size: 13px;
  }

  .faq-item p {
    font-size: 11px;
  }

  .footer {
    padding: 15px 12px;
    font-size: 11px;
  }

  .admin-section {
    padding: 35px 15px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-block {
    padding: 14px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .top-bar-left span {
    line-height: 1.2;
  }

  .logo img {
    height: 34px;
    max-width: min(62vw, 190px);
  }

  .category-filters {
    justify-content: center;
  }

  .category-filter {
    padding: 8px 12px;
    min-width: 0;
  }

  .search-bar {
    font-size: 15px;
  }

  .product {
    padding: 10px;
  }

  .product img {
    height: 132px;
    padding: 8px;
  }

  .product .price {
    font-size: 20px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-fast {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}





















