/* Granero Rojo – Tienda */
.grt,.grt-layer{--grt-rojo:#BC1716;--grt-rojo-osc:#8f0f0e;--grt-negro:#1F1410;--grt-sol:#E9C900;--grt-gris:#6b625e;--grt-linea:#e7e1dc;--grt-fondo:#faf7f4;
  font-family:"Raleway",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--grt-negro);line-height:1.45;-webkit-font-smoothing:antialiased}
.grt *,.grt *::before,.grt *::after,.grt-layer *,.grt-layer *::before,.grt-layer *::after{box-sizing:border-box}
.grt{max-width:1200px;margin:0 auto;padding:0 16px 96px}
.grt-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Filtros */
.grt .grt-tools{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;margin-bottom:22px}
.grt .grt-chips{display:flex;gap:8px;flex-wrap:wrap}
.grt button.grt-chip{font-family:inherit;font-size:15px;font-weight:700;padding:10px 20px;border-radius:999px;border:0;background:#f1eeeb;color:var(--grt-negro);cursor:pointer;line-height:1.2;text-transform:none;letter-spacing:0;box-shadow:none}
.grt button.grt-chip:hover{background:#e6e1dd}
.grt button.grt-chip[aria-selected="true"]{background:var(--grt-negro);color:#fff}
.grt .grt-filters{display:flex;gap:10px;flex-wrap:wrap}
.grt .grt-select,.grt .grt-input{font-family:inherit;font-size:15px;height:44px;padding:0 14px;border:0;border-radius:10px;background:#f1eeeb;color:var(--grt-negro);min-width:160px;margin:0;box-shadow:none}
.grt .grt-input{min-width:240px}
.grt .grt-select:focus,.grt .grt-input:focus{outline:none;box-shadow:0 0 0 2px var(--grt-negro)}

/* Productos */
.grt .grt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}
.grt .grt-card{background:#fff;border:0;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 4px 18px rgba(31,20,16,.07)}
.grt button.grt-card__img{display:block;width:100%;aspect-ratio:1/1;border:0;padding:0;margin:0;background:#fff;cursor:pointer;position:relative;border-radius:0;box-shadow:none}
.grt .grt-card__img img{width:100%;height:100%;object-fit:contain;display:block}
.grt .grt-card__img .grt-noimg{display:flex;align-items:center;justify-content:center;height:100%;color:var(--grt-gris);font-weight:600}
.grt .grt-soldout{position:absolute;inset:auto 0 0 0;background:var(--grt-negro);color:#fff;font-weight:700;font-size:14px;padding:8px;text-align:center}
.grt .grt-card.is-soldout img{opacity:.45;filter:grayscale(1)}
.grt .grt-card__body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.grt .grt-card__brand{font-size:13px;font-weight:600;color:var(--grt-gris)}
.grt .grt-card__title{font-size:17px;font-weight:700;margin:0;line-height:1.25;color:var(--grt-negro)}
.grt .grt-card__sizes{font-size:13px;color:var(--grt-gris)}
.grt .grt-card__code{font-size:12px;font-weight:600;color:var(--grt-negro);word-break:normal;overflow-wrap:anywhere}
.grt .grt-card__price{font-size:22px;font-weight:800;color:var(--grt-rojo);margin-top:auto;padding-top:6px}
.grt .grt-card__price small{font-size:13px;font-weight:600;color:var(--grt-gris);margin-right:4px}

/* Botones */
.grt button.grt-btn,.grt-layer button.grt-btn,.grt-layer a.grt-btn{font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;border:0;border-radius:10px;padding:13px 16px;cursor:pointer;background:var(--grt-negro);color:#fff;width:100%;text-align:center;text-decoration:none;display:inline-block;text-transform:none;letter-spacing:0;box-shadow:none;margin:0}
.grt button.grt-btn:hover,.grt-layer button.grt-btn:hover{background:#3a2c26}
.grt-layer .grt-btn--rojo{background:var(--grt-rojo)!important}
.grt-layer .grt-btn--rojo:hover{background:var(--grt-rojo-osc)!important}
.grt button.grt-btn[disabled],.grt-layer button.grt-btn[disabled]{background:#cfc8c4!important;cursor:not-allowed}
.grt button:focus-visible,.grt-layer button:focus-visible,.grt-layer a:focus-visible,.grt-layer input:focus-visible,.grt-layer textarea:focus-visible{outline:3px solid var(--grt-sol);outline-offset:2px}

.grt .grt-empty{text-align:center;padding:40px 0;color:var(--grt-gris);font-weight:600}

/* Botón flotante del pedido */
.grt-layer.grt-cartbtn{position:fixed;right:20px;bottom:20px;z-index:99990;display:flex;align-items:center;gap:10px;background:var(--grt-negro);color:#fff;border:0;border-radius:999px;padding:12px 14px 12px 20px;font-family:"Raleway",sans-serif;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 8px 24px rgba(31,20,16,.3);transition:transform .2s}
.grt-layer.grt-cartbtn.is-bump{transform:scale(1.08)}
.grt-cartbtn__count{background:var(--grt-sol);color:var(--grt-negro);min-width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;padding:0 8px}

/* Modal de producto */
.grt-layer.grt-modal,.grt-layer.grt-drawer{position:fixed;inset:0;z-index:99995;background:rgba(31,20,16,.55);display:flex}
.grt-layer.grt-modal[hidden],.grt-layer.grt-drawer[hidden],.grt-layer.grt-toast[hidden]{display:none}
.grt-layer.grt-modal{align-items:center;justify-content:center;padding:16px}
.grt-modal__panel{background:#fff;border-radius:16px;max-width:860px;width:100%;max-height:calc(100vh - 32px);overflow:auto;display:grid;grid-template-columns:1fr 1fr;position:relative}
.grt-modal__img{background:#fff}
.grt-modal__img img{width:100%;height:100%;object-fit:contain;display:block;aspect-ratio:1/1}
.grt-modal__info{padding:28px 26px;display:flex;flex-direction:column;gap:12px}
.grt-modal__info h2{font-family:inherit;font-size:26px;font-weight:800;margin:0;line-height:1.15;color:var(--grt-negro);text-transform:none;letter-spacing:-.01em}
.grt-modal__brand{font-size:14px;font-weight:600;color:var(--grt-gris)}
.grt-modal__desc{font-size:15px;color:#3d332f;margin:0}
.grt-modal__label{font-size:14px;font-weight:700;margin-top:4px}
.grt-sizes{display:flex;gap:8px;flex-wrap:wrap}
.grt-layer button.grt-size{font-family:inherit;font-size:15px;font-weight:700;padding:10px 16px;border-radius:10px;border:0;background:#f1eeeb;color:var(--grt-negro);cursor:pointer;margin:0;box-shadow:none;text-transform:none}
.grt-layer button.grt-size[aria-pressed="true"]{background:var(--grt-rojo);color:#fff}
.grt-layer button.grt-size[disabled]{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.grt-modal__price{font-size:30px;font-weight:800;color:var(--grt-rojo)}
.grt-modal__code{font-size:13px;color:var(--grt-gris)}
.grt-modal__row{display:flex;gap:12px;align-items:center;margin-top:auto}
.grt-qty{display:inline-flex;align-items:center;border:0;background:#f1eeeb;border-radius:10px;overflow:hidden;flex-shrink:0}
.grt-layer .grt-qty button{font-family:inherit;width:40px;height:44px;border:0;background:transparent;color:var(--grt-negro);font-size:20px;font-weight:700;cursor:pointer;padding:0;margin:0;box-shadow:none}
.grt-qty span{min-width:34px;text-align:center;font-weight:700}
.grt-layer button.grt-close{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:0;background:#fff;color:var(--grt-negro);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15);padding:0;margin:0;z-index:2}

/* Pedido */
.grt-layer.grt-drawer{justify-content:flex-end}
.grt-drawer__panel{background:#fff;width:100%;max-width:440px;height:100%;display:flex;flex-direction:column;position:relative;animation:grtIn .25s ease}
@keyframes grtIn{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
.grt-drawer__head{padding:22px 22px 10px}
.grt-drawer__head h2{font-family:inherit;font-size:22px;font-weight:800;margin:0;color:var(--grt-negro);text-transform:none}
.grt-drawer__body{flex:1;overflow:auto;padding:8px 22px 16px}
.grt-item{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:12px;background:#f8f6f4;border-radius:12px;margin-bottom:8px}
.grt-item img{width:56px;height:56px;object-fit:contain;border-radius:8px;background:#fff}
.grt-item__name{font-weight:700;font-size:14px;line-height:1.25}
.grt-item__meta{font-size:12px;color:var(--grt-gris)}
.grt-item__price{font-weight:800;color:var(--grt-rojo);font-size:15px;text-align:right}
.grt-item .grt-qty{margin-top:6px}
.grt-layer .grt-item .grt-qty button{width:32px;height:32px;font-size:17px}
.grt-layer button.grt-remove{background:none;border:0;color:var(--grt-gris);font-size:12px;text-decoration:underline;cursor:pointer;padding:4px 0;margin:0;font-family:inherit;box-shadow:none}
.grt-drawer__empty{padding:40px 0;text-align:center;color:var(--grt-gris)}
.grt-pickup{background:#fff8d6;padding:12px 14px;border-radius:10px;font-size:13px;margin:16px 0 8px}
.grt-pickup strong{display:block;font-size:14px;margin-bottom:2px}
.grt-field{display:flex;flex-direction:column;gap:4px;margin-top:12px}
.grt-field label{font-size:13px;font-weight:700}
.grt-layer .grt-field input,.grt-layer .grt-field textarea{font-family:inherit;font-size:15px;padding:11px 12px;border:0;border-radius:10px;width:100%;color:var(--grt-negro);background:#f1eeeb;margin:0;box-shadow:none}
.grt-layer .grt-field input:focus,.grt-layer .grt-field textarea:focus{outline:none;box-shadow:0 0 0 2px var(--grt-negro)}
.grt-field textarea{min-height:70px;resize:vertical}
.grt-layer .grt-field.has-error input{box-shadow:0 0 0 2px var(--grt-rojo);background:#fdf0f0}
.grt-error{color:var(--grt-rojo);font-size:12px;font-weight:600}
.grt-drawer__foot{padding:16px 22px 22px;background:#f8f6f4;display:flex;flex-direction:column;gap:12px}
.grt-total{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:18px}
.grt-total span:last-child{font-size:24px;color:var(--grt-rojo)}

.grt-layer.grt-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:99999;background:var(--grt-negro);color:#fff;padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;box-shadow:0 8px 20px rgba(0,0,0,.25)}

@media (max-width:860px){
  .grt-modal__panel{grid-template-columns:1fr}
  .grt-modal__img img{max-height:44vh}
}
@media (max-width:560px){
  .grt .grt-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .grt .grt-card__body{padding:10px 12px 12px}
  .grt .grt-card__title{font-size:15px}
  .grt .grt-card__price{font-size:18px}
  .grt button.grt-btn{padding:11px 10px;font-size:14px}
  .grt .grt-filters,.grt .grt-select,.grt .grt-input{width:100%;min-width:0}
  .grt-layer.grt-modal{padding:0;align-items:flex-end}
  .grt-modal__panel{border-radius:16px 16px 0 0;max-height:92vh}
}
@media (prefers-reduced-motion:reduce){.grt-drawer__panel{animation:none}.grt-layer.grt-cartbtn{transition:none}}

/* Portada a todo lo ancho, como el resto del sitio */
body{overflow-x:clip}
.grt .grt-portada{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-bottom:0;height:clamp(240px,34vw,520px);overflow:hidden;background:#e9e2d6}
.grt .grt-portada img{width:100%;height:100%;object-fit:cover;object-position:center 40%;display:block;margin:0;max-width:none}
.grt .grt-portada::after{content:"";position:absolute;inset:auto 0 0 0;height:22%;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff)}
.grt .grt-intro{text-align:center;max-width:760px;margin:8px auto 34px;padding:0 8px}
.grt .grt-intro__title{font-family:"Times New Roman",Times,Georgia,serif;font-weight:700;text-transform:uppercase;color:var(--grt-rojo);font-size:clamp(30px,4.2vw,44px);line-height:1.1;letter-spacing:.01em;margin:0 0 14px}
.grt .grt-intro__sub{font-size:17px;color:#6f6f6f;margin:0 0 18px;font-weight:400}
.grt .grt-intro__pickup{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin:0;padding:12px 22px;background:#fff8d6;border-radius:12px;font-size:14px;color:#555}
.grt .grt-intro__pickup strong{color:var(--grt-rojo);font-weight:700}
@media (max-width:560px){.grt .grt-portada{height:230px}.grt .grt-portada img{object-position:30% 40%}.grt .grt-intro__pickup{flex-direction:column;gap:2px}}
