/* estilos de la tienda adaptados a la paleta de estilos.css */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
  margin-top:24px;
}
.product-card{
  background:linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,0.48);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.product-card:hover{ transform:translateY(-6px); box-shadow:0 18px 42px rgba(0,0,0,0.62); border-color:rgba(255,255,255,0.16); }
.product-card img{ width:100%; height:160px; object-fit:cover; display:block; }
.product-body{ padding:16px; flex:1; display:flex; flex-direction:column; gap:10px; }
.product-title{ font-size:1rem; margin:0; color:var(--accent); line-height:1.25; }
.product-desc{ color:rgba(255,255,255,0.72); font-size:0.95rem; line-height:1.4; margin-bottom:4px; min-height:3.2em; }
.product-price{ font-weight:800; margin-top:auto; color:var(--accent); font-size:1.05rem; }
.product-actions{ display:flex; gap:8px; margin-top:10px; justify-content:flex-end; }
.product-actions .btn{ padding:9px 14px; border-radius:999px; }

.section{ padding:40px 0 80px; }
.section-title{ margin-bottom:10px; font-size:clamp(1.6rem,2vw,2.2rem); }
.section .muted{ color:rgba(255,255,255,0.75); }
.store-hero{
  padding:120px 0 36px;
  background:linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.store-hero-inner{
  max-width:860px;
  text-align:center;
  margin:0 auto;
}
.store-hero .section-title{ margin-bottom:12px; font-size:clamp(2rem,3vw,2.8rem); }
.store-hero-subtitle{ margin:0 auto 20px; color:rgba(255,255,255,0.78); font-size:1.05rem; line-height:1.7; max-width:700px; }
.store-hero-actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.store-hero-actions .btn{ min-width:150px; justify-content:center; }

/* botón flotante del carrito */
.open-cart{
  position:fixed; right:20px; bottom:20px;
  display:flex; align-items:center; gap:8px;
  background:var(--accent); color:#000; border:none;
  padding:12px 16px; border-radius:999px; box-shadow:0 12px 30px rgba(0,0,0,0.45); cursor:pointer; font-weight:800; z-index:70;
}
.open-cart:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(255,255,255,0.16); }

.cart-panel{
  position:fixed; right:20px; bottom:84px; width:min(360px, calc(100vw - 24px)); max-height:76vh; overflow:auto;
  background:linear-gradient(145deg, rgba(15,17,21,0.98), rgba(8,9,12,0.98));
  color:var(--muted); border:1px solid rgba(255,255,255,0.08); border-radius:18px; padding:16px; z-index:65;
  box-shadow:0 20px 48px rgba(0,0,0,0.68);
  transform-origin:bottom right; transition:transform .2s ease,opacity .2s ease;
}
.cart-panel[aria-hidden="true"]{ opacity:0; transform:scale(.97); pointer-events:none; }
.cart-panel[aria-hidden="false"]{ opacity:1; transform:scale(1); pointer-events:auto; }
.cart-panel h3{ margin:0 0 12px; color:var(--accent); font-size:1.05rem; }
.cart-item{ display:flex; gap:10px; align-items:center; margin-bottom:12px; padding:10px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.05); border-radius:12px; }
.cart-item img{ width:56px; height:42px; object-fit:cover; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.45); }
.cart-item .meta{ flex:1; min-width:0; }
.cart-item .meta > div:first-child{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-item .qty{ display:flex; gap:6px; align-items:center; }
.cart-item .qty button{ min-width:24px; padding:2px 8px; border-radius:8px; font-size:0.9rem; line-height:1.2; }
.cart-close{ position:absolute; right:10px; top:10px; border:none; background:transparent; font-size:18px; cursor:pointer; color:var(--muted); padding:2px 6px; }
.cart-close:hover{ color:var(--accent); }
.customer-form{ display:grid; gap:8px; margin:10px 0 12px; padding:10px; border:1px solid rgba(255,255,255,0.06); border-radius:12px; background:rgba(255,255,255,0.03); }
.customer-field{ display:grid; gap:4px; font-size:0.9rem; color:rgba(255,255,255,0.82); }
.customer-field input,
.customer-field textarea{ width:100%; padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,0.08); background:rgba(6,6,10,0.7); color:var(--muted); font:inherit; }
.customer-field input:focus,
.customer-field textarea:focus{ outline:none; border-color:rgba(255,255,255,0.22); }
.cart-footer{ border-top:1px solid rgba(255,255,255,0.08); padding-top:12px; margin-top:12px; }
.cart-total{ font-weight:800; color:var(--accent); margin-bottom:8px; }
.cart-actions{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.cart-actions .btn{ flex:1 1 140px; justify-content:center; }
.muted{ color:var(--muted); }

@media (max-width:720px){
  .section{ padding:32px 0 64px; }
  .products-grid{ gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .open-cart{ right:12px; bottom:12px; padding:10px 14px; z-index:90; }
  .cart-panel{ right:8px; bottom:70px; left:8px; width:auto; max-height:78vh; padding:14px; }
  .cart-item{ flex-wrap:wrap; gap:8px; }
  .cart-item .meta{ flex:1 1 100%; }
  .cart-item .qty{ margin-left:auto; gap:4px; }
  .cart-item .qty button{ min-width:22px; padding:2px 6px; font-size:0.85rem; }
  .cart-actions{ flex-direction:column; gap:8px; }
  .cart-actions .btn{ width:100%; flex:1 1 auto; padding:10px 12px; font-size:0.95rem; }
  .customer-form{ padding:8px; gap:7px; }
}

@media (max-width:480px){
  .products-grid{ grid-template-columns:1fr; }
  .cart-item{ align-items:flex-start; padding:8px; }
  .cart-item .qty{ width:100%; justify-content:flex-end; margin-top:4px; }
  .cart-item .remove-btn{ width:100%; margin-left:0; margin-top:6px; }
  .cart-panel{ bottom:66px; padding:12px; }
  .cart-footer{ padding-top:10px; }
  .cart-total{ font-size:0.95rem; }
}
