/* 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;
}
.catalog-toolbar{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:end;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.catalog-controls{
  display:grid;
  gap:10px;
  min-width:min(100%, 420px);
}
.catalog-search{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:var(--muted);
  font:inherit;
}
.catalog-search::placeholder{ color:rgba(255,255,255,0.48); }
.catalog-search:focus{
  outline:none;
  border-color:rgba(255,255,255,0.26);
  box-shadow:0 0 0 3px rgba(255,255,255,0.06);
}
.catalog-section{
  grid-column:1 / -1;
  margin-bottom:26px;
}
.catalog-section-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-end;
  margin-bottom:14px;
}
.catalog-section-kicker{
  margin:0 0 6px;
  color:rgba(255,255,255,0.6);
  font-size:0.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.catalog-section-title{
  margin:0;
  color:var(--accent);
  font-size:1.2rem;
}
.catalog-section-meta{
  color:rgba(255,255,255,0.68);
  font-size:0.9rem;
}
.catalog-products-grid{
  margin-top:0;
}
.catalog-title{
  margin:0 0 6px;
  color:var(--accent);
  font-size:1.2rem;
}
.catalog-subtitle{
  margin:0;
  color:rgba(255,255,255,0.72);
  line-height:1.5;
}
.category-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.category-chip{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:var(--muted);
  border-radius:999px;
  padding:9px 14px;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.category-chip:hover{ transform:translateY(-1px); border-color:rgba(255,255,255,0.24); color:#fff; }
.category-chip.is-active{
  background:var(--accent);
  color:#000;
  border-color:var(--accent);
  font-weight:800;
}
.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-media{ display:grid; gap:8px; }
.product-main-image{ width:100%; height:160px; object-fit:cover; display:block; }
.product-thumbs{
  display:flex;
  gap:8px;
  padding:0 16px 2px;
  overflow:auto;
}
.product-thumb{
  flex:0 0 auto;
  width:52px;
  height:40px;
  padding:0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.03);
  overflow:hidden;
  cursor:pointer;
}
.product-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-thumb.is-active{ border-color:var(--accent); box-shadow:0 0 0 1px rgba(255,255,255,0.12) inset; }
.product-body{ padding:16px; flex:1; display:flex; flex-direction:column; gap:10px; }
.product-category{
  display:inline-flex;
  width:max-content;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.84);
  font-size:0.78rem;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.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; }
.products-empty{
  grid-column:1 / -1;
  padding:18px;
  border:1px dashed rgba(255,255,255,0.14);
  border-radius:16px;
  text-align:center;
  background:rgba(255,255,255,0.03);
}

.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)); }
  .catalog-toolbar{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .catalog-controls{ width:100%; min-width:0; }
  .catalog-search{ padding:11px 12px; font-size:0.95rem; }
  .category-filters{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .category-filters::-webkit-scrollbar{ display:none; }
  .category-chip{ flex:0 0 auto; white-space:nowrap; }
  .catalog-section-header{ align-items:flex-start; flex-direction:column; }
  .catalog-section-title{ font-size:1.1rem; }
  .catalog-section-meta{ font-size:0.84rem; }
  .catalog-products-grid{ grid-template-columns: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; gap:12px; }
  .catalog-toolbar{ gap:10px; }
  .catalog-title{ font-size:1.05rem; }
  .catalog-subtitle{ font-size:0.95rem; }
  .catalog-section{ margin-bottom:22px; }
  .catalog-section-header{ margin-bottom:10px; }
  .catalog-section-title{ font-size:1rem; }
  .catalog-section-meta{ font-size:0.8rem; }
  .category-chip{ padding:8px 12px; font-size:0.9rem; }
  .product-thumbs{ padding:0 12px 2px; }
  .product-main-image{ height:180px; }
  .product-body{ padding:14px; gap:8px; }
  .product-title{ font-size:0.98rem; }
  .product-desc{ min-height:auto; font-size:0.92rem; }
  .product-actions .btn{ padding:8px 12px; }
  .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; }
}

@media (max-width:360px){
  .store-hero{ padding:108px 0 28px; }
  .store-hero .section-title{ font-size:1.7rem; }
  .store-hero-subtitle{ font-size:0.98rem; line-height:1.55; }
  .store-hero-actions{ gap:8px; }
  .store-hero-actions .btn{ width:100%; min-width:0; }
  .product-main-image{ height:160px; }
  .open-cart{ width:auto; right:10px; left:10px; justify-content:center; }
  .cart-panel{ left:6px; right:6px; bottom:62px; padding:10px; }
  .customer-form{ padding:8px; }
}
