   body {
  font-family: "Fjalla One", sans-serif;
  margin: 20px;
}

/* Search bar container */
.search-container {
  position: relative;
  width: 45%;
  margin: 0 auto 30px auto;
  display: none;
  align-items: center;
}

.hidden-category {
  display: none;   /* invisible to users */
}

/* Glowing effect for NUEVO INGRESO category */
.nuevo-ingreso {
  border: 2px solid #EE82EE;
  box-shadow: 0 0 10px #EE82EE, 0 0 20px #EE82EE;
  animation: glowPulse 1.5s infinite alternate;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85em;
  margin-right: 4px;
}

.price-sale {
  color: #DE1A58;
}

/* OFERTA badge */
.oferta-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4B0082;
  color: #EE82EE;
  font-family: "Fjalla One", sans-serif;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #EE82EE;
  box-shadow: 0 0 6px #EE82EE, 0 0 12px #EE82EE;
  animation: glowPulse 1.5s infinite alternate;
  z-index: 2;
  pointer-events: none;
  letter-spacing: 1px;
}

/* Availability badge */
.availability-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: "Fjalla One", sans-serif;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
  letter-spacing: 1px;
}

.availability-badge.available {
  background: #1E7D47;
  color: #fff;
  border: 1px solid #2EBD67;
  box-shadow: 0 0 6px #1E7D47, 0 0 12px #1E7D47;
}

.availability-badge.not-available {
  background: #B3261E;
  color: #fff;
  border: 1px solid #FF4D4D;
  box-shadow: 0 0 6px #B3261E, 0 0 12px #B3261E;
}

/* OFERTAS special category folder */
.folder-ofertas {
  border: 2px solid #EE82EE;
  box-shadow: 0 0 10px #EE82EE, 0 0 20px #EE82EE;
  animation: glowPulse 1.5s infinite alternate;
}

.folder-ofertas .folder-label {
  color: #4D2B8C;
  text-shadow:
    -1px -1px 0 white,
     1px -1px 0 white,
    -1px  1px 0 white,
     1px  1px 0 white,
     0 0 6px white;
  font-size: 22px;
}

.is-mobile .folder-ofertas .folder-label { font-size: 32px; }

/* Rainbow glow for sale products */
.product-sale {
  animation: rainbowGlow 8s linear infinite;
}

@keyframes rainbowGlow {
  0%   { box-shadow: 0 0 8px 3px #ff0000, 0 0 16px 6px #ff000044; border-color: #ff0000; }
  15%  { box-shadow: 0 0 8px 3px #ff8800, 0 0 16px 6px #ff880044; border-color: #ff8800; }
  30%  { box-shadow: 0 0 8px 3px #ffff00, 0 0 16px 6px #ffff0044; border-color: #ffff00; }
  45%  { box-shadow: 0 0 8px 3px #00cc00, 0 0 16px 6px #00cc0044; border-color: #00cc00; }
  60%  { box-shadow: 0 0 8px 3px #0088ff, 0 0 16px 6px #0088ff44; border-color: #0088ff; }
  75%  { box-shadow: 0 0 8px 3px #8800ff, 0 0 16px 6px #8800ff44; border-color: #8800ff; }
  90%  { box-shadow: 0 0 8px 3px #ff00cc, 0 0 16px 6px #ff00cc44; border-color: #ff00cc; }
  100% { box-shadow: 0 0 8px 3px #ff0000, 0 0 16px 6px #ff000044; border-color: #ff0000; }
}

/* Animation keyframes */
@keyframes glowPulse {
  from { box-shadow: 0 0 5px #EE82EE, 0 0 10px #EE82EE; }
  to   { box-shadow: 0 0 15px #EE82EE, 0 0 30px #EE82EE; }
}

#searchInput {
  width: 100%;
  padding: 10px;
  font-size: 25px;
  font-family: "Fjalla One", sans-serif;

  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

#clearSearch {
  position: absolute;
  right: 10px;
  top: 43%;
  transform: translateY(-50%);
  cursor: pointer;
  font-weight: bold;
  color: #888;
}

/* Categories grid */
#folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
  position: relative;
  z-index: 1;
}

/* Category buttons uniform size */
.folder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  min-width: 150px;
  background: #f0f0f0;
  font-size: 20px;
  border: 3px solid #4B0082;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}


.folder:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.folder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.4s ease;
  z-index: 0;
  filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(3000%) hue-rotate(325deg) brightness(95%);
}

.folder:hover .folder-bg { opacity: 0.80; }

.folder-label {
  position: relative;
  z-index: 2;
  color: #4D2B8C;
  text-shadow:
    -1px -1px 0 white,
     1px -1px 0 white,
    -1px  1px 0 white,
     1px  1px 0 white,
     0 0 6px white;
}

.folder:hover, .product:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Limit categories to 6 columns on wide screens */
@media screen and (min-width: 1200px) {
  #folders { grid-template-columns: repeat(6, 1fr); }
}

/* Smartphone rule: 3 columns for categories */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #folders { grid-template-columns: repeat(3, 1fr) !important; }
}
.is-mobile #folders { grid-template-columns: repeat(3, 1fr) !important; }

/* Default: desktop/larger screens → 5 columns for products */
#catalog {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

/* Tablet: 4 columns */
@media screen and (max-width: 900px) {
  #catalog { grid-template-columns: repeat(4, 1fr); }
}

/* Small tablet: 3 columns */
@media screen and (max-width: 700px) {
  #catalog { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: 2 columns — must come last to override tablet rules */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #catalog { grid-template-columns: repeat(2, 1fr) !important; }

  .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    box-sizing: border-box;
  }

  .product img {
    max-height: 400px;
    object-fit: contain;
  }

  .product h3,
  .product .price,
  .product .quantity { flex-shrink: 0; }

  .product .product-actions { margin-top: auto; }
}

.is-mobile #catalog { grid-template-columns: repeat(2, 1fr) !important; }
.is-mobile .product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  box-sizing: border-box;
}
.is-mobile .product img { max-height: 400px; object-fit: contain; }
.is-mobile .product h3,
.is-mobile .product .price,
.is-mobile .product .quantity { flex-shrink: 0; }
.is-mobile .product .product-actions { margin-top: auto; }

/* Smartphone view */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body { font-size: 150%; }
  h1, h2, h3, h4, h5, h6,
  p, a, button, input,
  .folder, .product,
  .price, .quantity,
  .whatsapp-btn,
  #modalTitle, #modalPrice, #modalQuantity, #modalWhatsapp { font-size: 150%; }
  #clearSearch { font-size: 200%; right: 14px; }
}
.is-mobile body { font-size: 150%; }
.is-mobile h1, .is-mobile h2, .is-mobile h3, .is-mobile h4, .is-mobile h5, .is-mobile h6,
.is-mobile p, .is-mobile a, .is-mobile button, .is-mobile input,
.is-mobile .folder, .is-mobile .product,
.is-mobile .price, .is-mobile .quantity,
.is-mobile .whatsapp-btn,
.is-mobile #modalTitle, .is-mobile #modalPrice, .is-mobile #modalQuantity, .is-mobile #modalWhatsapp { font-size: 150%; }
.is-mobile #clearSearch { font-size: 200%; right: 14px; }

.product {
  border: 1px solid #4B0082;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

/* Action buttons row at bottom of product card */
.product-actions {
  margin-top: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.product .whatsapp-btn { margin-top: 0; }

.product img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.product-divider {
  width: 100%;
  height: 3px;
  background: rgba(75, 0, 130, 0.15);
  border-radius: 2px;
  margin: 10px 0;
}

.price {
  font-size: 20px;
  color: #4B0082;
  margin: 11px 0;
}

.quantity {
  font-size: 20px;
  color: #4B0082;
  margin: 11px 0;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0;
  text-align: left;
}

.product-table tr { border-bottom: 1px solid #eee; }
.product-table tr:last-child { border-bottom: none; }
.product-table td { padding: 4px 6px; vertical-align: middle; }

.product-label {
  color: slateblue;
  white-space: nowrap;
  width: 1%;
  font-size: 17px;
}

.product-value {
  font-size: 17px;
  color: #4B0082;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 8px 12px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  box-sizing: border-box;
}
.whatsapp-btn:hover { background: #1ebe5d; }

/* Share button on product cards */
.product-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 8px 12px;
  background: #4B0082;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: "Fjalla One", sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
  box-sizing: border-box;
}
.product-share-btn:hover { background: #6a0dad; }

.add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 12px;
  background: #4B0082;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: "Fjalla One", sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
  box-sizing: border-box;
}
.add-cart-btn:hover { background: #6a0dad; }

.add-cart-btn .cart-icon,
#cartButton .cart-icon,
#modalAddToCart .cart-icon {
  font-size: 1.05em;
  line-height: 1;
}

#backBtn {
  display: none;
  margin: 20px 0;
  font-family: "Fjalla One", sans-serif;
}

#catNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#catShareBtn {
  display: none;
  margin: 20px 0;
  font-family: "Fjalla One", sans-serif;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 30vw;
  max-height: 80%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#modalImage {
  align-self: center;
  max-width: 100%;
  max-height: 65vh;
  display: block;
  cursor: pointer;
}

.modal-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

#modalWhatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
#modalWhatsapp:hover { background: #1ebe5d; }

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 6px;
}

.share-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #4B0082;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: "Fjalla One", sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}
.share-btn:hover { background: #6a0dad; }

#shareToast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.zoom-hint {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(2px);
  opacity: 0.75;
}

#modalDetails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  width: 100%;
}

.modal-col-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0;
  text-align: left;
}

.modal-col-table tr { border-bottom: 1px solid #eee; }
.modal-col-table tr:last-child { border-bottom: none; }
.modal-col-table td { padding: 6px 10px; vertical-align: middle; }

.modal-value {
  font-size: 17px;
  color: #4B0082;
}

#modalTitle {
  font-size: 18px;
  word-wrap: break-word;
  color: #4B0082;
}

#modalPrice {
  font-size: 18px;
  color: #4B0082;
}

#modalQuantity {
  font-size: 18px;
  color: #4B0082;
}



.modal-label {
  color: slateblue;
  white-space: nowrap;
  width: 1%;
  font-size: 20px;
}

.modal-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  max-width: 95vw;
}

.nav-btn {
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
  z-index: 1100;
  flex-shrink: 0;
  box-shadow: 0 0 10px #EE82EE, 0 0 20px #EE82EE;
  animation: navGlow 1.5s infinite alternate;
}

@keyframes navGlow {
  from { box-shadow: 0 0 5px #EE82EE, 0 0 10px #EE82EE; }
  to   { box-shadow: 0 0 15px #EE82EE, 0 0 30px #EE82EE; }
}

.close {
  position: absolute;
  top: 15px; right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 3;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.2s;
}
.close:hover { background: #f0f0f0; transform: scale(1.1); }

#fullscreenOverlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
#fullscreenOverlay img {
  max-width: 95%;
  max-height: 95%;
  cursor: pointer;
}

/* Logo */
#logoWrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

#siteLogo {
  height: 250px;
  width: auto;
  cursor: pointer;
  transition: opacity 0.2s;
}
#siteLogo:hover { opacity: 0.85; }

.folder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 120px;
  min-width: 150px;
  background: #f0f0f0;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  padding: 10px;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
}

.folder-dark:hover, .folder-light:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(75,0,130,0.3);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-top: 40px;
}

/* Scroll navigation buttons */
#scrollNav {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 16px;
  z-index: 500;
}

.scroll-btn {
  width: 44px; height: 44px;
  background: #4B0082;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px #EE82EE, 0 0 16px #EE82EE;
  transition: transform 0.2s, background 0.2s;
  opacity: 0.85;
}
.scroll-btn:hover { transform: scale(1.15); background: #6a0dad; opacity: 1; }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .scroll-btn { width: 88px; height: 88px; font-size: 40px; }
  .close { width: 80px; height: 80px; font-size: 56px; top: 10px; right: 10px; }
  .price, .quantity,
  #modalPrice, #modalQuantity, #modalTitle,
  .product-value, .product-label,
  #backBtn, #catShareBtn { font-size: 30px; }
  .nav-btn { padding: 20px 30px; font-size: 36px; }
  .zoom-hint { width: 120px; height: 120px; font-size: 56px; }
  .share-btn { font-size: 32px; padding: 14px 20px; }
  .product-share-btn { font-size: 32px; padding: 14px 20px; }
  .product .whatsapp-btn { font-size: 90%; padding: 6px 9px; }
  .product .add-cart-btn { font-size: 90%; padding: 6px 9px; }
  .search-container { width: 90%; }
  #searchInput { font-size: 45px; padding: 15px; }
  .empty-state { font-size: 200%; }
  .modal-content { width: 70vw; }
}
.is-mobile .scroll-btn { width: 88px; height: 88px; font-size: 40px; }
.is-mobile .close { width: 80px; height: 80px; font-size: 56px; top: 10px; right: 10px; }
.is-mobile .price, .is-mobile .quantity,
.is-mobile #modalPrice, .is-mobile #modalQuantity, .is-mobile #modalTitle,
.is-mobile .product-value, .is-mobile .product-label,
.is-mobile #backBtn, .is-mobile #catShareBtn { font-size: 30px; }
.is-mobile .oferta-badge { font-size: 26px; padding: 8px 18px; }
.is-mobile .availability-badge { font-size: 26px; padding: 8px 18px; }
.is-mobile .modal-value { font-size: 28px; }
.is-mobile #modalBrand, .is-mobile #modalAnime,
.is-mobile #modalSeries, .is-mobile #modalHeight { font-size: 28px; }
.is-mobile .nav-btn { padding: 20px 30px; font-size: 36px; }
.is-mobile .zoom-hint { width: 120px; height: 120px; font-size: 56px; }
.is-mobile .share-btn { font-size: 32px; padding: 14px 20px; }
.is-mobile .product-share-btn { font-size: 32px; padding: 14px 20px; }
.is-mobile .product .whatsapp-btn { font-size: 90%; padding: 6px 9px; }
.is-mobile .product .add-cart-btn { font-size: 90%; padding: 6px 9px; }
.is-mobile .search-container { width: 90%; }
.is-mobile #searchInput { font-size: 45px; padding: 15px; }
.is-mobile .empty-state { font-size: 200%; }
.is-mobile .modal-content { width: 70vw; }

/* Hide intro instantly on direct product/category links before paint */
html.hide-intro #introBox { display: none !important; }
html.hide-intro .search-container { display: flex !important; }

/* ── Intro welcome box ───────────────────────────────────────────────── */
#introBox {
  display: block;
  border: 1px solid #4B0082;
  border-radius: 12px;
  padding: 60px 64px;
  text-align: left;
  background: #ECF2FF;
  box-sizing: border-box;
  margin: 0 auto 40px auto;
  max-width: 1400px;
  position: relative;
  z-index: 1;
  animation: introPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#introInner {
  display: flex;
  align-items: center;
  gap: 48px;
}

#introText {
  flex: 1;
}

#introImage {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes shake {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-6deg); }
  30%  { transform: rotate(6deg); }
  45%  { transform: rotate(-4deg); }
  60%  { transform: rotate(4deg); }
  75%  { transform: rotate(-2deg); }
  90%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

#introImage img {
  width: 263px;
  height: 183px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s;
  cursor: pointer;
}

#introImage img:hover {
  animation: shake 0.6s ease-in-out;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #introInner { flex-direction: column; }
  #introImage img { width: 100%; height: auto; }
  #introBox { text-align: center; }
}
.is-mobile #introInner { flex-direction: column; }
.is-mobile #introImage img { width: 100%; height: auto; }
.is-mobile #introBox { text-align: center; }

@keyframes introPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-3deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(1deg); }
  80%  { transform: scale(0.97) rotate(-0.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

#introBox .intro-divider {
  width: 100%;
  height: 3px;
  background: rgba(75, 0, 130, 0.15);
  border-radius: 2px;
  margin: 20px 0;
}

#introBox p {
  font-size: 22px;
  color: #4B0082;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

#introCatalogBtn {
  display: inline-block;
  padding: 12px 32px;
  background: #4B0082;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Fjalla One", sans-serif;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
#introCatalogBtn:hover { background: #6a0dad; transform: scale(1.05); }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #introBox p { font-size: 32px; }
  #introCatalogBtn { font-size: 34px; padding: 18px 40px; }
}
.is-mobile #introBox h1 { font-size: 48px !important; }
.is-mobile #introCatalogBtn { font-size: 34px; padding: 18px 40px; }
.is-mobile .intro-wa-btn { font-size: 34px !important; padding: 18px 40px !important; }

/* Cloud animation */
#cloudCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: none;
}

/* Starry night animation */
#starCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  display: none;
}

/* Social buttons */
#socialBtns {
  position: fixed;
  top: 16px; right: 16px;
  display: flex;
  gap: 10px;
  z-index: 600;
}

/* Background color picker */
#bgPicker {
  position: fixed;
  top: 16px; left: 16px;
  display: flex;
  gap: 10px;
  z-index: 600;
}

.bg-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid #4B0082;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.bg-btn:hover { transform: scale(1.12); opacity: 1; }
.bg-btn.active {
  border-color: #EE82EE;
  box-shadow: 0 0 8px #EE82EE, 0 0 16px #EE82EE;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .bg-btn { width: 64px; height: 64px; }
}
.is-mobile .bg-btn { width: 64px; height: 64px; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.social-btn:hover { transform: scale(1.12); opacity: 1; }

#cartButton {
  position: relative;
  background: #4B0082;
  color: #fff;
  gap: 8px;
  padding: 8px 14px;
  width: auto;
  min-width: 42px;
  font-family: "Fjalla One", sans-serif;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  height: auto;
  opacity: 1;
}

#cartButton:hover { background: #6a0dad; }

#cartCount {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

#fbBtn { background: #1877F2; }
#igBtn { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .social-btn { width: 64px; height: 64px; }
  .social-btn svg { width: 34px; height: 34px; }
}
.is-mobile .social-btn { width: 64px; height: 64px; }
.is-mobile .social-btn svg { width: 34px; height: 34px; }
.is-mobile #cartButton {
  min-width: 64px;
  padding: 0 18px;
  font-size: 24px;
}
.is-mobile #cartCount {
  min-width: 30px;
  height: 30px;
  font-size: 18px;
}

#cartPage {
  display: none;
  max-width: 1200px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.cart-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid #4B0082;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
}

.cart-flow-panel {
  min-height: 760px;
}

.cart-panel h2,
.cart-panel h3,
.cart-panel h4 {
  margin-top: 0;
  color: #4B0082;
  font-size: 30px;
}

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

.cart-step-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  padding: 4px 0;
}

.cart-step-badge {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #4B0082;
  color: #4B0082;
  background: #fff;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cart-step-badge:hover {
  background: #4B0082;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(75, 0, 130, 0.25);
}

.cart-step-badge.active {
  background: #4B0082;
  color: #fff;
}

.cart-step-badge.register-glow {
  animation: rainbowGlow 8s linear infinite;
  font-weight: 700;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(75, 0, 130, 0.12);
}

.cart-item:last-child { border-bottom: none; }

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-title {
  color: #4B0082;
  font-size: 20px;
}

.cart-item-meta {
  color: slateblue;
  font-size: 15px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #4B0082;
  color: #fff;
  cursor: pointer;
  font-family: "Fjalla One", sans-serif;
  transition: background 0.3s;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  color: #4B0082;
}

.cart-link-btn,
.cart-remove-btn,
.checkout-nav-btn,
.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Fjalla One", sans-serif;
  font-size: 16px;
  min-width: 136px;
  min-height: 44px;
  padding: 10px 16px;
  box-sizing: border-box;
  text-align: center;
  transition: background 0.3s;
}

.cart-link-btn,
.checkout-nav-btn {
  background: #4B0082;
  color: #fff;
}

.cart-remove-btn {
  background: #F4EFFF;
  color: #4B0082;
}

.checkout-submit-btn {
  background: #25D366;
  color: #fff;
}

.qty-btn:hover,
.cart-link-btn:hover,
.checkout-nav-btn:hover {
  background: #6a0dad;
}

.cart-remove-btn:hover {
  background: #e7dbff;
}

.checkout-submit-btn:hover {
  background: #1ebe5d;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #4B0082;
}

.cart-summary-row.total {
  font-size: 22px;
  border-top: 1px solid rgba(75, 0, 130, 0.15);
  margin-top: 12px;
  padding-top: 16px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field.full {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.checkout-field label {
  color: #4B0082;
  font-size: 16px;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(75, 0, 130, 0.25);
  border-radius: 8px;
  font-family: "Fjalla One", sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.checkout-field textarea {
  min-height: 110px;
  resize: vertical;
}

.phone-field-row {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.phone-field-row select,
.phone-field-row input {
  width: 100%;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.payment-option {
  border: 1px solid rgba(75, 0, 130, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: #4B0082;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.payment-option input {
  margin-top: 2px;
}

.delivery-method-field .payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.delivery-method-field .payment-option {
  min-height: 26px;
  padding: 10px 12px;
  align-items: center;
}

.delivery-method-field .payment-option input {
  flex: 0 0 10%;
  width: 10%;
  max-width: 18px;
  margin-top: 0;
}

.delivery-method-field .payment-option span {
  flex: 1 1 auto;
  line-height: 1.2;
}

.review-block {
  border: 1px solid rgba(75, 0, 130, 0.12);
  border-radius: 12px;
  padding: 18px 16px;
  margin-top: 18px;
}

.review-block h4 {
  margin-bottom: 10px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(300px, 1.2fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(75, 0, 130, 0.12);
}

.order-row:last-child {
  border-bottom: none;
}

.order-cell {
  color: #4B0082;
}

.order-cell.muted {
  color: slateblue;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cart-empty {
  text-align: center;
  color: #4B0082;
}

.cart-empty p {
  font-size: 20px;
}

.checkout-note,
.checkout-success,
.checkout-error {
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}

.checkout-note {
  background: #F4EFFF;
  color: #4B0082;
}

.checkout-success {
  background: #EAFBF1;
  color: #1E7D47;
}

.checkout-error {
  background: #FFF1F1;
  color: #B3261E;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .order-row { grid-template-columns: 1fr; }
  .order-actions { justify-content: flex-start; }

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

  .delivery-method-field .payment-options {
    grid-template-columns: 1fr;
  }

  .cart-flow-panel {
    min-height: auto;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item img {
    width: 100%;
    height: 220px;
  }

  .checkout-actions {
    flex-wrap: nowrap;
  }
}
.is-mobile .order-row { grid-template-columns: 1fr; }
.is-mobile .order-actions { justify-content: flex-start; }
/* ── Footer ──────────────────────────────────────────────────────────── */
#siteFooter {
  margin-top: 30px;
  padding: 40px 40px 80px;
  background: #4B0082;
  color: #E8E0FF;
  font-family: "Fjalla One", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-map a {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.footer-map a img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.footer-map a:hover img { opacity: 0.85; }

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  color: #C9B8FF;
}

.footer-hours li:last-child { border-bottom: none; }

.footer-hours li span:last-child {
  color: #EE82EE;
  font-weight: bold;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #C9B8FF;
  max-width: 300px;
}

.footer-section h4 {
  font-size: 16px;
  color: #EE82EE;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(238,130,238,0.3);
  padding-bottom: 8px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #C9B8FF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a {
  color: #C9B8FF;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section ul li a:hover { color: #EE82EE; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.9;
}
.footer-social a:hover { transform: scale(1.12); opacity: 1; }
.footer-social .fb { background: #1877F2; }
.footer-social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}
.footer-whatsapp-btn:hover { background: #1ebe5d; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #9B7FCC;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom span {
  color: #EE82EE;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  #siteFooter { padding: 32px 20px 20px; }
}
.is-mobile .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
.is-mobile #siteFooter { padding: 32px 20px 120px; }
.is-mobile .footer-section h4 { font-size: 32px; }
.is-mobile .footer-section ul li,
.is-mobile .footer-section ul li a,
.is-mobile .footer-hours li,
.is-mobile .footer-hours li span { font-size: 28px; }
.is-mobile .footer-bottom,
.is-mobile .footer-bottom p,
.is-mobile .footer-bottom span { font-size: 24px; }
.is-mobile .footer-whatsapp-btn { font-size: 28px; padding: 16px 24px; }
