/*
Theme Name: Zentra Tema Azul Cielo
Theme URI: https://zentratienda.com.ar
Author: Zentra
Description: Tema base para Zentra Tienda (Azul Cielo). Incluye inicio, producto, carrito y checkout.
Version: 0.1.0
Text Domain: zentra-tema-azul-cielo
*/

:root {
  --blue: #3CB2FF;
  --dark: #0e0e0e;
  --light: #ffffff;
  --muted: #6b6b6b;
  --shadow: 0 10px 25px rgba(0,0,0,.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background: #f7f9ff;
  color: #111;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.zentra-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.zentra-header {
  background: #fff;
  border-bottom: 2px solid #e7e7e7;
}
.zentra-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.zentra-logo img { height: 54px; width: auto; }
.zentra-menu {
  display: flex;
  gap: 26px;
  font-weight: 600;
}
.zentra-menu-item {
  position: relative;
}
.zentra-dropdown {
  position: absolute;
  top: 36px;
  left: 0;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 10;
}
.zentra-menu-item.open .zentra-dropdown {
  display: block;
}
.zentra-dropdown a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
}
.zentra-dropdown a:hover {
  background: #f3f6ff;
}
.zentra-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.zentra-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}
.zentra-icon-btn:focus {
  outline: none;
  box-shadow: none;
}

/* Hero */
.zentra-hero {
  background: var(--blue);
  padding: 0;
}
.zentra-hero-card {
  background: #fff;
  border-radius: 0;
  min-height: 460px;
  height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.zentra-hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .9s ease;
}
.zentra-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.zentra-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.15);
}
.zentra-dot.active {
  background: #fff;
}
.zentra-hero-placeholder {
  padding: 40px;
  color: #111;
  font-weight: 600;
}

/* Products */
.zentra-products {
  padding: 36px 0 20px;
  background: #fff;
}
.zentra-products-title {
  text-align: center;
  letter-spacing: 2px;
  color: var(--blue);
  font-size: 32px;
  margin: 0 0 24px;
}
.zentra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.zentra-card {
  background: var(--blue);
  border-radius: 20px;
  padding: 16px;
  min-height: 240px;
  display: grid;
  gap: 8px;
  color: #0b0b0b;
}
.zentra-card img {
  border-radius: 12px;
  background: #fff;
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.zentra-card h3 {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.zentra-price { font-weight: 700; }
.zentra-old-price { text-decoration: line-through; color: #333; font-size: 12px; }
.zentra-add {
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.zentra-load-more {
  display: block;
  margin: 26px auto 0;
  padding: 12px 40px;
  border-radius: 20px;
  background: var(--blue);
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.zentra-load-info {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.zentra-footer {
  background: #fff;
  border-top: 1px solid #efefef;
  padding: 26px 0;
}
.zentra-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.zentra-footer-logo img { height: 50px; }
.zentra-footer-info { text-align: center; font-weight: 700; }
.zentra-footer-small { font-size: 12px; color: var(--muted); }

/* Cart Drawer */
.zentra-cart-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 20px rgba(0,0,0,.12);
  padding: 18px;
  transition: right .3s ease;
  z-index: 9999;
}
.zentra-cart-drawer.open { right: 0; }
.zentra-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9998;
}
.zentra-cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Search */
.zentra-search {
  position: relative;
}
.zentra-search-box {
  position: absolute;
  right: 0;
  top: 48px;
  width: 300px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}
.zentra-search-box.open { display: block; }
.zentra-search-box input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
}
.zentra-suggest {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.zentra-suggest a {
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6f6f6;
}
.zentra-suggest .all {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

/* WhatsApp */
.zentra-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 9997;
  font-weight: 700;
}

@media (max-width: 980px) {
  .zentra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .zentra-grid { grid-template-columns: 1fr; }
  .zentra-menu { display: none; }
  .zentra-footer-inner { flex-direction: column; text-align: center; }
}
