/* RESET */
*{box-sizing:border-box;margin:0;padding:0;font-family:Inter, system-ui, -apple-system, Roboto, Arial, sans-serif}
html,body{height:100%}
body{display:flex;flex-direction:column;min-height:100vh;background:#fff;color:#111}

/* HEADER */
header{background:#fff;border-bottom:1px solid rgba(0,0,0,0.06);position:sticky;top:0;z-index:50}
header .container{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo-img{height:56px;object-fit:contain}

/* NAV */
nav ul{list-style:none;display:flex;gap:20px}
nav a{text-decoration:none;color:#333;font-weight:600;padding:6px 8px;border-radius:8px}
nav a:hover{color:#ff4d6d}

/* MAIN / GRID */
.productos{max-width:1200px;margin:40px auto;padding:0 20px}
.productos h1{text-align:center;font-size:2rem;margin-bottom:28px;color:#111}

/* grid responsive */
.grid-productos{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;align-items:stretch}

/* card */
.card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(2,6,23,0.06);display:flex;flex-direction:column;transition:transform .22s,box-shadow .22s}
.card:hover{transform:translateY(-8px);box-shadow:0 16px 40px rgba(2,6,23,0.08)}
.card img{width:100%;height:260px;object-fit:cover;background:#f2f2f2}
.card-body{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.card-body h3{font-size:1.05rem;color:#0f172a}
.card-body .price{color:#ff4d6d;font-weight:800}
.card-body .sizes{color:#6b7280;font-size:0.92rem}
.card-body .btn{margin-top:auto;padding:10px;border-radius:10px;border:0;background:#0f172a;color:#fff;font-weight:700;cursor:pointer}
.card-body .btn:hover{background:#153049}

/* MODAL */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(3px);justify-content:center;align-items:center;z-index:200}
.modal-panel{background:#fff;border-radius:16px;max-width:940px;width:92%;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px;align-items:start;position:relative}
.modal-close{position:absolute;top:12px;right:12px;border:0;background:none;font-size:26px;cursor:pointer;color:#444}
.modal-media img{width:100%;height:100%;max-height:520px;object-fit:cover;border-radius:10px}
.modal-body{padding:6px 4px}
.modal-body h2{margin-bottom:8px;font-size:1.3rem;color:#0f172a}
.modal-price{color:#ff4d6d;font-weight:800;margin-bottom:10px}
.modal-select{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);margin-bottom:12px}
.modal-actions{display:flex;gap:8px}
.btn{padding:10px 14px;border-radius:10px;border:0;cursor:pointer}
.btn.primary{background:linear-gradient(90deg,#ff4d6d,#3b82f6);color:#fff;font-weight:700}
.purchase-form{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.purchase-form input{padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.08)}
.btn.whatsapp{background:#25d366;color:#fff;font-weight:700}

/* FOOTER */
footer{background:#0f172a;color:#fff;padding:18px;text-align:center;margin-top:auto}
footer span{color:#ff4d6d;font-weight:800}

/* RESPONSIVE */
@media(max-width:900px){
  .modal-panel{grid-template-columns:1fr;padding:14px}
  .card img{height:220px}
}
@media(max-width:520px){
  header .container{padding:12px}
  .card img{height:180px}
}
/* === Igualar botón "Enviar pedido" al de Chaquetas === */
#sendOrder {
  background-color: #00c853; /* verde vibrante */
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.25s ease;
  width: 100%; /* ocupa todo el ancho del campo */
}

#sendOrder:hover {
  background-color: #009e3f;
}

/* === Submenú de navegación === */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

/* Submenú oculto por defecto */
nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 100;
}

/* Enlaces dentro del submenú */
nav .submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  white-space: nowrap;
}

nav .submenu a:hover {
  background-color: #f5f5f5;
}

/* Mostrar submenú solo cuando está activo */
nav li.active .submenu {
  display: block;
}

/* Opcional: transición suave */
nav .submenu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  nav ul {
    display: none;
    position: absolute;
    right: 12px;
    top: 64px;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
  }

  nav ul.active {
    display: flex;
  }
}


