/* =========================================================
   CARROSHN - TIENDA INDIVIDUAL
   Banner arriba + productos izquierda + ficha lateral derecha
========================================================= */

:root{
  --navy:#020b1d;
  --navy-2:#06152e;
  --blue:#2563eb;
  --blue-2:#168ff0;
  --green:#25d366;
  --text:#132a5c;
  --muted:#64748b;
  --border:#d9e2ef;
  --bg:#f4f7fb;
  --white:#fff;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg);
  color:#1f2937;
}

/* BANNER */

.store-banner-section{
  background:#fff;
  padding:24px 0 0;
}

.store-banner{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
  height:330px;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(135deg,#06152e,#132a5c);
  border:1px solid var(--border);
  box-shadow:0 16px 38px rgba(16,31,70,.10);
}

.store-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.store-banner-empty{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#dbeafe;
  font-size:36px;
  font-weight:900;
  text-align:center;
  padding:30px;
}

/* LAYOUT */

.store-content-section{
  padding:34px 0 70px;
  background:var(--bg);
}

.store-layout{
  width:min(1240px,calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:28px;
  align-items:start;
}

.store-main{
  min-width:0;
}

/* CABECERA CATÁLOGO */

.catalog-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
}

.catalog-top h1{
  margin:0 0 6px;
  color:var(--text);
  font-size:32px;
  line-height:1.15;
}

.catalog-top p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.catalog-count{
  flex:0 0 auto;
  padding:9px 13px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font-size:12px;
  font-weight:900;
}

/* PRODUCTOS 4 POR FILA */

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

.product-card{
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(16,31,70,.07);
  display:flex;
  flex-direction:column;
}

.product-image{
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  background:#eef3f8;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.product-image.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:32px;
}

.product-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.product-body h2{
  margin:0 0 7px;
  color:var(--text);
  font-size:14px;
  line-height:1.35;
}

.product-price{
  color:#0f172a;
  font-size:18px;
  font-weight:900;
  margin-bottom:9px;
}

.product-description{
  margin:0 0 13px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-whatsapp{
  margin-top:auto;
  min-height:42px;
  border-radius:10px;
  background:var(--green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}

.empty-products{
  grid-column:1/-1;
  padding:55px 24px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#fff;
  text-align:center;
}

.empty-products i{
  color:#94a3b8;
  font-size:42px;
  margin-bottom:14px;
}

.empty-products h3{
  margin:0 0 8px;
  color:var(--text);
}

.empty-products p{
  margin:0;
  color:var(--muted);
}

/* SIDEBAR */

.store-sidebar{
  position:sticky;
  top:18px;
}

.store-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:24px;
  box-shadow:0 14px 34px rgba(16,31,70,.08);
}

.store-logo{
  width:110px;
  height:110px;
  margin:0 0 16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#fff;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(16,31,70,.08);
}

.store-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:12px;
}

.store-logo i{
  color:#94a3b8;
  font-size:34px;
}

.store-card h1{
  margin:0 0 6px;
  color:var(--text);
  font-size:27px;
  line-height:1.15;
}

.store-categories{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0 16px;
}

.store-category{
  padding:6px 9px;
  border-radius:999px;
  background:#eef6ff;
  color:var(--blue);
  font-size:10px;
  font-weight:900;
}

.store-description{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.store-details{
  display:flex;
  flex-direction:column;
  gap:13px;
  padding-top:17px;
  border-top:1px solid #edf1f5;
}

.store-detail{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:9px;
  align-items:start;
  color:#475569;
  font-size:12px;
  line-height:1.45;
}

.store-detail i{
  width:22px;
  color:var(--blue);
  text-align:center;
  margin-top:1px;
}

.store-detail a{
  color:#475569;
  text-decoration:none;
  word-break:break-word;
}

.store-socials{
  display:flex;
  gap:9px;
  margin-top:16px;
}

.store-social{
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.store-actions{
  display:grid;
  grid-template-columns:1fr 46px;
  gap:9px;
  margin-top:18px;
}

.store-whatsapp{
  min-height:48px;
  border-radius:11px;
  background:var(--green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}

.store-share{
  width:46px;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:11px;
  background:#fff;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}

/* FOOTER */

.footer-simple{
  background:var(--navy);
  color:#fff;
  text-align:center;
  padding:58px 0 26px;
}

.footer-simple img{
  width:190px;
  margin:0 auto 18px;
}

.footer-simple h3{
  margin-bottom:14px;
  font-size:22px;
}

.footer-simple p{
  max-width:720px;
  margin:0 auto 22px;
  color:#dbeafe;
  font-size:16px;
  line-height:1.7;
}

.footer-contact-simple{
  display:flex;
  justify-content:center;
  gap:26px;
  flex-wrap:wrap;
  margin-bottom:26px;
}

.footer-contact-simple span,
.footer-contact-simple a{
  color:#dbeafe;
  text-decoration:none;
}

.footer-contact-simple i{
  color:#25d366;
  margin-right:7px;
}

.footer-copy-simple{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:20px;
}

.footer-copy-simple p{
  margin-bottom:8px;
  color:#9ca3af;
  font-size:14px;
}

.footer-copy-simple span{
  color:#dbeafe;
  font-size:13px;
}

.footer-copy-simple a{
  color:#fff;
  font-weight:700;
}

/* RESPONSIVE */

@media(max-width:1100px){
  .products-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .store-layout{
    display:flex;
    flex-direction:column;
  }

  .store-sidebar{
    order:-1;
    width:100%;
    position:static;
  }

  .store-card{
    display:grid;
    grid-template-columns:110px 1fr;
    gap:16px 20px;
    align-items:start;
  }

  .store-logo{
    margin:0;
  }

  .store-card-main{
    min-width:0;
  }

  .store-details,
  .store-socials,
  .store-actions{
    grid-column:1/-1;
  }

  .products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .store-banner-section{
    padding-top:0;
  }

  .store-banner{
    width:100%;
    height:220px;
    border-radius:0;
    border-left:0;
    border-right:0;
  }

  .store-content-section{
    padding:18px 0 50px;
  }

  .store-layout{
    width:min(100% - 24px,1240px);
  }

  .store-card{
    display:block;
    padding:20px;
  }

  .store-logo{
    width:92px;
    height:92px;
    margin-bottom:14px;
  }

  .store-card h1{
    font-size:24px;
  }

  .catalog-top{
    align-items:flex-start;
    flex-direction:column;
  }

  .catalog-top h1{
    font-size:25px;
  }

  .products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px;
  }

  .product-body{
    padding:11px;
  }

  .product-body h2{
    font-size:13px;
  }

  .product-price{
    font-size:16px;
  }

  .product-description{
    -webkit-line-clamp:2;
  }

  .footer-contact-simple{
    flex-direction:column;
    gap:12px;
  }
}

@media(max-width:390px){
  .products-grid{
    grid-template-columns:1fr;
  }
}
