/* ============================================================
   KLOKARI — Base CSS
   Paleta: Blanco leche #FAFCFF / Azul cielo #C8E6F5 / Verde menta #A8D8B9 / Negro #1A1A2E
   Fuente: Nunito (Google Fonts)
   ============================================================ */

:root {
  --white:   #FAFCFF;
  --blue:    #C8E6F5;
  --blue-dark: #5BA8D4;
  --green:   #A8D8B9;
  --green-dark: #4CAF7D;
  --pink:    #F5C8D8;
  --dark:    #1A1A2E;
  --gray:    #6B7280;
  --gray-light: #F0F4F8;
  --gold:    #F5C842;
  --radius:  16px;
  --radius-lg: 24px;
  --shadow:  0 4px 24px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 40px rgba(26,26,46,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── Announcement Bar ── */
.ann-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.ann-bar-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  gap: 0;
}
.ann-item {
  white-space: nowrap;
  padding: 0 40px;
}
.ann-item span { color: var(--green); margin: 0 8px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(200,230,245,0.4);
}
.header-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo .logo-dot { color: var(--blue-dark); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--dark); }
.header-cart {
  position: relative;
  background: var(--blue);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header-cart:hover { background: var(--blue-dark); }
.header-cart svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 2; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green-dark);
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Drawer ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.4);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.drawer-overlay.show { display: block; }
.drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 320px;
  height: 100%;
  background: var(--white);
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--blue);
}
.drawer.show { right: 0; }
.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head h3 { font-size: 18px; font-weight: 800; }
.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray);
  padding: 4px 8px;
  border-radius: 8px;
}
.drawer-close:hover { background: var(--gray-light); }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 16px;
  font-size: 15px;
}
.drawer-empty .empty-emoji { font-size: 48px; display: block; margin-bottom: 12px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--gray-light);
  margin-bottom: 10px;
  align-items: center;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--blue);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.cart-item-color { font-size: 11px; color: var(--gray); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 800; color: var(--green-dark); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 18px;
  padding: 4px;
}
.drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--blue);
}
.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.btn-checkout {
  width: 100%;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}
.btn-checkout:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pay-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Container ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
