:root{
  --bg:#fff5f8;              /* fondo rosado claro */
  --card:#ffffff;           /* tarjetas blancas */
  --muted:#8b6f78;           /* gris rosado */
  --text:#b95479;            /* texto principal */
  --border:rgba(178, 119, 139, 0.25); /* rosa suave */
  --primary:#e75480;         /* rosa principal */
  --primary2:#f6a5c0; 
  --bar: rgba(164, 48, 92, 0.92);
}

*{box-sizing:border-box}
html,body{margin:0; padding:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--bg); color:var(--text)}
a{color:inherit}

.topbar{
  position:sticky;
  top:0;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:28px 18px;   
  background: var(--bar);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{display:flex; align-items:center; justify-content: center;}


.logo img {
  height: 260px;  
  width: auto;
  display: block;
}

.brand h1{font-size:16px; margin:0}
.brand p{margin:2px 0 0 0; font-size:12px}

.navbar{
  position:sticky;
  top:0;             
  z-index:5;
  background: rgba(103, 13, 47, 0.92);
  border-bottom:1px solid var(--border);
}

.navInner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

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

.controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-bottom:16px;
}

.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  font-size:13px;
}
.chip.active{
  border-color: rgba(245,179,1,.55);
  background:rgba(245,179,1,.12);
}

.search input{
  width:min(360px, 92vw);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column;
  min-height: 270px;
}

.thumb{
  height:120px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(245,179,1,.07));
}
.thumb img{max-height:110px; max-width:85%; object-fit:contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35));}
.thumb .emoji{font-size:48px; opacity:.95}

.content{padding:12px 12px 14px}
.titleRow{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.content h3{margin:0; font-size:15px}
.desc{margin:8px 0 10px; color:var(--muted); font-size:12.5px; line-height:1.35; min-height:34px}
.price{font-weight:700}
.footerRow{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px}

.btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn.primary{
  border-color: rgba(245,179,1,.45);
  background: linear-gradient(180deg, rgba(245,179,1,.95), rgba(255,212,90,.92));
  color:#1a1400;
}
.btn.ghost{background:transparent}
.btn.full{width:100%}

.pill{
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid var(--border);
  font-size:12px;
}

.muted{color:var(--muted)}
.hint{font-size:12px; margin:10px 0 0}

.drawer{
  position:fixed; top:0; right:0;
  width:min(420px, 92vw);
  height:100vh;
  background:rgba(18,20,26,.98);
  border-left:1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index:20;
  display:flex;
  flex-direction:column;
}
.drawer.open{transform: translateX(0)}
.drawerHeader{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--border);
}
.drawerHeader h2{margin:0; font-size:16px}

.cartItems{padding:12px 14px; overflow:auto; flex:1}
.cartItem{
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px;
  margin-bottom:10px;
  background:rgba(255,255,255,.02);
}
.cartItemTop{display:flex; justify-content:space-between; gap:10px}
.cartItemName{font-weight:700}
.cartItemMeta{color:var(--muted); font-size:12px; margin-top:4px}
.cartItemActions{display:flex; align-items:center; gap:8px; margin-top:10px}
.qty{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border);
  padding:6px 8px;
  border-radius:999px;
}
.qty button{
  width:28px; height:28px; border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.qty span{min-width:16px; text-align:center}

.cartSummary{
  padding:14px;
  border-top:1px solid var(--border);
}
.row{display:flex; justify-content:space-between; align-items:center; margin:8px 0}
.row.total{font-size:16px}

.backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:10;
}

.modal{
  position:fixed; inset:0;
  display:none;             
  place-items:center;
  z-index:9999;
  background:rgba(0,0,0,.55);
}

.modal.open{
  display:grid;              
}
.modalCard{
  width:min(520px, 92vw);
  background:rgba(18,20,26,.98);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px;
  position:relative;
}
.modalHeader{
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
}
.modalHeader h3{margin:0; font-size:16px}
.field{display:flex; flex-direction:column; gap:8px; margin-top:12px}
.field span{font-size:12px; color:var(--muted)}
.field input, .field textarea{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
  resize:vertical;
}
.modalActions{margin-top:14px}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}
.siteFooter{
  margin-top: 26px;
  background: rgba(255,255,255,.55);
  border-top: 1px solid rgba(0,0,0,.08);
}

.footerInner{
  max-width:1100px;
  margin:0 auto;
  padding:18px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:12px;
  color: rgba(0,0,0,.55);
}

.footerLink{
  color: rgba(0,0,0,.70);
  text-decoration:none;
  font-weight:600;
}

.footerLink:hover{
  text-decoration:underline;
}

.dot{
  margin: 0 6px;
  color: rgba(0,0,0,.40);
}

/* En teléfono: que se apile bonito */
@media (max-width: 520px){
  .footerInner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}

@media (max-width: 980px){
  .grid{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr;}
  .actions{gap:8px}
  #orderBtnTop{
    display:inline-flex; 
  }

  .navInner{
    justify-content:center; 
  }
}
@media (max-width: 520px){
  .topbar{
    position: static;
  }
}


#modal .field select,
#modal select {
  width: 100%;
  padding: 14px 44px 14px 16px; 
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 180, 0.25);
  background: rgba(10, 12, 18, 0.55);
  color: #ffd1e2;
  outline: none;


  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  font: inherit;
  line-height: 1.2;

  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd1e2' d='M7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

#modal .field select:hover {
  border-color: rgba(255, 140, 180, 0.45);
  background: rgba(10, 12, 18, 0.65);
}

#modal .field select:focus {
  border-color: rgba(255, 140, 180, 0.75);
  box-shadow: 0 0 0 4px rgba(255, 140, 180, 0.18);
}

#modal .field select option {
  background: #0b0d13;
  color: #ffd1e2;
}


#modal .field select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
