body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100svh;      /* ← ocupa toda la pantalla en móvil */
  display: flex;           /* ← contenedor flex */
  flex-direction: column;  /* ← en columna */
  background-color: #fcf1e0ff;
  padding-top: 60px; /* ajusta al alto real de tu header/navbar */
}


/* ------------------- HEADER ------------------------ */

header {
  position: fixed;
  width: 100%;
  top: 0;            /* pegado al borde superior */
  left: 0;
  background: #333;  /* mismo color que el navbar */
  z-index: 1000;     /* para que quede por encima del resto */
}

header h1 {
  font-family: "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5em;
  color: #2c3e50;
}

header h2 {
  font-size: 1.0em;
  color: #1b1b1b;
  font-weight: normal;
}

header h3 {
  font-size: 1.2em;
  color: #04660c;
  font-weight: Bolder;
}

.kibou {
  color: #e67e22; /* Color naranja llamativo para "KIBOU" */
}

:root { --nav-h: 40px; }

/* Header barra */
.navbar{
  display: grid;
  grid-template-columns: var(--nav-h) 1fr var(--nav-h); /* izq | centro | dcha */
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #333; 
  color: #fff;
  position: relative; /* para posicionar .menu debajo */
  min-height: var(--nav-h);
}

/* Anclajes por columna */
.hamburger { justify-self: start; }
.icon-btn  { justify-self: end; }
.usuario-box,
.auth-buttons { justify-self: center; } /* centro perfecto */

/* Hamburguesa */
.hamburger{
  width: var(--nav-h);
  height: var(--nav-h);
  display: flex;
  flex-direction: column;   /* 👈 apila las barras */
  justify-content: center;
  align-items: center;
  gap: 5px;                 /* separación entre líneas */
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hamburger div{
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Usuario */
.usuario-box{
  position: relative;          /* 👈 ancla para el menú */
  display:none;
  background:#fff; color:#000;
  border:1px solid #ccc; border-radius:12px;
  padding:2px 10px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  height: var(--nav-h);
  align-items:center; gap:6px;
}
.usuario-box.visible{ 
  display:flex; 
}

.usuario-nombre{ margin:0; cursor:pointer; line-height:1; }

.usuario-menu{
  position: absolute;
  top: calc(100% + 8px);        /* 8px debajo del pill */
  left: 50%;
  transform: translateX(-50%);  /* centrado respecto al pill */
  display: none;                /* se muestra con .mostrar */
  min-width: 220px;
  max-width: 80vw;
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  z-index: 2000;                /* por encima del contenido */
  text-align: center;             /* opcional */
}
.usuario-menu.mostrar{ display: block; }

.usuario-menu span{
  display:block;
  margin-bottom:8px;
  font-size:0.9em;
  color:#333;
}
.usuario-menu button{
  width:100%;
  background:#e74c3c;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:0.95em;
}

/* Botones Auth (cuando no hay sesión) */
.auth-buttons{
  display:flex; gap:10px;
}
.auth-buttons button{
  background:#e67e22; color:#fff; border:none;
  padding:20px 20x; border-radius:8px; font-size:.95em;
  cursor:pointer; transition:background-color .3s ease;
}
.auth-buttons button:hover{ background:#d35400; }

/* Carrito (derecha del todo) */
.icon-btn{
  width: var(--nav-h); height: var(--nav-h);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none;
  border:1px solid #555; border-radius:10px;
  background:transparent;
  position:relative;
}
.icon-btn:active{ transform:scale(.97); }
.cart-badge{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px;
  background:#e67e22; color:#fff; font-size:11px; line-height:18px;
  border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
}

/* Menú desplegable */
.menu{
  position:absolute; 
  top:100%; left:0; right:0;
  display:none; 
  flex-direction:column;
  background:#444; border-radius:6px; overflow:hidden; z-index:1000;
}
.menu.abierto{ display:flex; }
.menu a{
  color:#fff; padding:12px 16px; text-decoration:none; border-bottom:1px solid #555;
}
.menu a:last-child{ border-bottom:none; }
.menu a:hover{ background:#555; }

/* Utilidad: oculto accesible */
.oculto{ visibility:hidden; opacity:0; pointer-events:none; }


/* =====................ FOOTER ...................===== */
.site-footer {
  margin-top: auto; 
  width: 100%;
  background: #333;   /* mismo color que el header */
  color: #fff;
  text-align: center; /* si quieres centrado */
}

.site-footer { padding-bottom: env(safe-area-inset-bottom); } /* iphone */

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a.contact-row { text-decoration: none; }

.footer-inner {
  max-width: 400px;     /* mantiene tu ancho móvil */
  margin: 0 auto;
  padding: 14px 12px;
  text-align: center;
}

.footer-title {
  font-size: 1rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;    /* 👈 centra horizontalmente */
  gap: 10px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.contact-row:hover {
  text-decoration: underline; /* solo se verá en el enlace */
}

.icon {
  width: 1.2em;
  text-align: center;
}

.icon-img {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
}

/* ------------------- CONTENEDOR PRINCIPAL ------------------------ */

.contenido-fijo-350 {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/*...............................ESTRUCTURA PRINCIPAL......................*/

/* Lista */
#cart-list { display: grid; gap: 12px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 8px;
}

.cart-thumb {
  width: 64px; height: 64px;
  object-fit: cover; border-radius: 8px;
  display: block; border: 1px solid #ddd;
}

.cart-info { display: grid; align-content: center; }
.cart-title { font-weight: 600; margin: 0 0 4px 0; }
.cart-price { color: #333; font-size: 0.95em; }

.cart-actions { display: flex; align-items: center; }
.btn-remove {
  border: none; border-radius: 8px;
  background: #e74c3c; color: #fff;
  padding: 6px 10px; cursor: pointer;
}

/* Summary */
#cart-summary {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 12px;
}

.sum-line {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.sum-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-pri {
  background: #e67e22; color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
}
.btn-sec {
  background: #eee; color: #333;
  border: 1px solid #ccc; border-radius: 8px;
  padding: 10px 12px; cursor: pointer;
}

/* Mensajes */
#cart-empty, #cart-need-login {
  background: #fff;
  border: 1px dashed #e0a46b;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

/*.......................TEXTOS.......................................*/

.coleccion {
  font-size: 1.2em;
  color: #e67e22;
  text-align: center; 
}

/*...............información envio.....................*/

.delivery { 
  margin-top: 14px; 
  background:#fff; border:1px solid #000; border-radius:12px; 
  padding:12px; 
}
.delivery-title { margin:0 0 8px 0; font-size:1rem; }
.delivery-options { display:grid; gap:6px; margin-bottom:8px; }
.delivery-opt { display:flex; gap:8px; align-items:center; }

.shipping-fields {
  display:grid; gap:8px;
  margin-top:8px;
}
.shipping-fields label { display:grid; gap:4px; font-size:.95rem; }
.shipping-fields input {
  padding:8px; border:1px solid #ccc; border-radius:8px; font-size:1rem;
}
.delivery-note { margin:4px 0 0; font-size:.9rem; color:#555; }

.payinfo { margin-top:8px; }
.payinfo summary { cursor:pointer; }
.payinfo p { margin:8px 0 0; }

/* resumen */
.sum-line { display:flex; justify-content:space-between; margin:6px 0; }
.sum-sep { border:none; border-top:1px solid #ddd; margin:8px 0; }
.sum-total { font-weight:700; }