/* =========================================================
   0) VARIABLES / RESET / BASE
========================================================= */
:root{
  --bg:#fff5f9;
  --card:#ffffff;
  --primary:#e91e63;
  --primary-soft:#f8bbd0;
  --accent:#d81b60;
  --text:#4a4a4a;
  --muted:#a06a7c;
  --line:#f3c1d3;

  /* Reutilizables */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Tamaños globales (ajusta aquí y se refleja en todo) */
  --fs-body: 16px;
  --fs-logo: 1.8rem;
  --fs-menu: 1.05rem;
  --fs-footer-title: 1.3rem;
  --fs-footer-text: 1.05rem;

  /* Header */
  --header-pad-y: 18px;
  --topbar-fs: .75rem;

  /* Botones */
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;

  /* Carrito pill */
  --cart-pad-y: 16px;
  --cart-pad-x: 28px;
  --cart-fs: 1.15rem;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; height:100%; }

body{
  font-family:'Segoe UI', system-ui, sans-serif;
  font-size: var(--fs-body);
  background: var(--bg);
  color: var(--text);

  /* Sticky footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* util */
.muted{ color: var(--muted); }

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

/* Para que el contenido empuje al footer abajo */
.section{ 
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Links básicos */
a{ color: inherit; }
header a{ text-decoration:none; }


/* =========================================================
   1) COMPONENTES: BOTONES / INPUTS / TARJETAS / GRIDS
========================================================= */
.btn{
  background:var(--primary);
  color:white;
  padding: 8px 14px;
  border:none;
  border-radius:22px;
  font-weight:900;
  font-size:0.85rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(233,30,99,.25);
  transition:.2s ease;
}

.btn:hover{ background: var(--accent); }

.btn-ghost{
  background:transparent;
  color:var(--primary);
  border:1px solid var(--primary);
}

.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  padding:14px;
  box-shadow:0 4px 15px rgba(233,30,99,0.08);
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

input, textarea{
  width:100%;
  padding:8px;
  border-radius: var(--radius-md);
  border:1px solid var(--line);
  margin-bottom:10px;
}

input:focus, textarea:focus{
  outline:none;
  border-color:var(--primary);
}

/* Imágenes producto */
.prod-img, .prod-img-lg{
  width:100%;
  border-radius:14px;
  background: var(--primary-soft);
  padding:8px;
}

.prod-img-lg{
  max-width:650px;
  margin:0 auto;
  display:block;
}

/* Badges */
.pill{
  background: var(--primary-soft);
  color: var(--accent);
  padding:6px 12px;
  border-radius:999px;
  font-size:.85rem;
}


/* =========================================================
   3) WHATSAPP FLOAT
========================================================= */


/* =========================================================
   7) CARRITO (TEXTOS GRANDES)
========================================================= */
.cart-header{
  text-align:center;
  margin-bottom:40px;
}

.cart-title{
  font-size:3rem;
  font-weight:900;
  color:var(--primary);
  margin-bottom:12px;
}

.cart-empty{
  font-size:1.4rem;
  color:var(--muted);
}

.cart-empty-actions{
  display:flex;
  justify-content:center;
  margin-top:30px;
}

/* Tu carrito está vacío */
.section-head .muted{
  font-size: 1.6rem;
}

/* nombre del producto */
.row-left strong{
  font-size: 1.9rem;
}

/* precio y cantidad */
.tiny{
  font-size: 1.6rem;
}

/* precio y total */
.row strong{
  font-size: 1.6rem;
}

.row-left{
  display: flex;
  align-items: center;
  gap: 18px;
}

.row-left .thumb{
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}

/* =========================================================
   RESPONSIVE CART
========================================================= */
.cart-title{
  font-size:clamp(2rem, 6vw, 3rem);
}

.cart-empty,
.section-head .muted,
.tiny,
.row strong{
  font-size:clamp(.95rem, 2.8vw, 1.25rem);
}

.row-left strong{
  font-size:clamp(1.05rem, 3.4vw, 1.45rem);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.row-left{
  min-width:0;
  flex:1 1 280px;
}

@media (max-width: 640px){
  .row{
    align-items:stretch;
    flex-direction:column;
  }

  .row-left{
    align-items:flex-start;
  }

  .row-left .thumb{
    width:86px !important;
    height:86px !important;
    max-width:86px !important;
    max-height:86px !important;
  }

  .card .btn,
  .cart-empty-actions .btn{
    width:100%;
  }
}
