:root{font-family:system-ui,sans-serif;color:#2c1b14;background:#fbf6ef;--wine:#6c2522;--line:#eadbd0}*{box-sizing:border-box}body{margin:0}header{background:#fffdf9;border-bottom:1px solid var(--line)}.shell{width:min(1120px,calc(100% - 32px));margin:auto}.nav{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-height:70px;padding-block:10px}.brand{font:700 32px Georgia,serif;text-decoration:none;letter-spacing:-.04em}.brand span{color:#a95025}.identity{margin-left:auto}a{color:var(--wine)}button,input{font:inherit}button{cursor:pointer}.hero{background:#682724;color:white;padding:35px;border-radius:22px;margin:27px 0;display:flex;gap:22px;align-items:center;justify-content:space-between}.hero p{margin:0;font-weight:700;letter-spacing:.14em;font-size:14px;color:#ffdfb5}h1,h2,h3,p{overflow-wrap:anywhere}.hero h1{font:700 clamp(35px,6vw,65px)/1 Georgia,serif;margin:8px 0 0}.wallet{background:#ffdfb5;color:#482016;border-radius:13px;padding:16px 20px;min-width:190px}.wallet strong{display:block;font-size:31px}.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,32%);gap:22px;align-items:start;padding-bottom:32px}.catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}.panel{background:#fffdf9;border:1px solid var(--line);border-radius:14px;padding:17px}h2{margin:0 0 14px;font-size:22px}h3{margin:5px 0 10px}.category{color:#763a27;margin:0;font-size:14px}.product label{display:flex;align-items:center;gap:6px;margin-top:14px;font-size:14px}.product input{width:58px;padding:5px;border:1px solid #a77d67;border-radius:7px;color:inherit;background:white}.checkout{margin-top:13px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.checkout output{display:block;font-weight:750}.primary,.secondary{padding:9px 14px;border:1px solid var(--wine);border-radius:8px;background:var(--wine);color:white;font-weight:700}.secondary{background:white;color:var(--wine)}button:disabled{opacity:.6;cursor:default}.movement{border-top:1px solid var(--line);padding:11px 0}.movement div{display:flex;justify-content:space-between;gap:8px}.movement ul{padding-left:20px;margin:6px 0}.movement time,.movement small{font-size:14px;color:#664737}.notice{padding:12px;border:1px solid var(--line);border-radius:8px;background:#eef6e9}.notice.error,#checkout-error,.errorlist{color:#7f2624}.notice.error{background:#fff0ee}.login{max-width:425px;margin:45px auto}.login input{display:block;width:100%;padding:8px;border:1px solid #a77d67;border-radius:7px}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}@media(max-width:675px){.layout{grid-template-columns:1fr}.hero{align-items:stretch;flex-direction:column;padding:22px}.identity{margin-left:0}}

/* Paleta roja y amarilla para La Gringa */
:root {
  color: #261b20;
  background: #f8f5f6;
  --wine: #a90e33;
  --line: #e9dce1;
}
header, .panel, .secondary { background: #fff; }
header { border-top: 5px solid var(--wine); }
a { text-decoration: none; }
a:hover { color: #760c26; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #805600;
  outline-offset: 3px;
}
.brand span { color: #b77800; }
.hero { background: linear-gradient(115deg, #990a2d, #bd1641); }
.hero p { color: #ffe69a; }
.wallet { background: #ffd24d; color: #332409; }
.category { color: #9b1234; font-weight: 650; }
.product input, .login input { border-color: #a88796; }
.login { border-top: 5px solid #f8c842; }
.login label { display: block; margin-bottom: 5px; font-weight: 650; }
.login .primary { width: 100%; }

.hero h1 { font-size: clamp(30px, 4.2vw, 49px); line-height: 1.08; }
.catalog { grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 15px; }
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 3px 10px #3917210c;
}
.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 340;
  object-fit: cover;
  background: #f6ece4;
}
.product-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
}
.product h3 { line-height: 1.25; }
.product-price { margin-bottom: 14px; color: var(--wine); }
.product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 5px 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.product-quantity label { margin: 0; }
.quantity-control {
  display: grid;
  grid-template-columns: 29px 36px 29px;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf9;
}
.quantity-control button {
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--wine);
  font-size: 19px;
  font-weight: 700;
}
.quantity-control button:not(:disabled):hover { background: #f6e3e9; }
.quantity-control input {
  width: 36px;
  padding: 4px 1px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 650;
}
.quantity-control:has(button:not([hidden])) input { appearance: textfield; }
.quantity-control:has(button:not([hidden])) input::-webkit-inner-spin-button { appearance: none; }
.quantity-control:has(button[hidden]) { display: flex; }
.quantity-control:has(button[hidden]) input { width: 58px; }
@media (pointer: coarse) {
  .quantity-control { grid-template-columns: 34px 36px 34px; }
  .quantity-control button { height: 40px; }
}
