
:root{
  --cream:#f8f0e4;
  --cream-2:#fffaf3;
  --ink:#15121a;
  --muted:#766759;
  --brown:#32190f;
  --brown-2:#4c2415;
  --copper:#bd5d2d;
  --copper-2:#e76421;
  --gold:#d7ad72;
  --line:#eadac8;
  --shadow:0 18px 50px rgba(50,25,15,.16);
  --radius:22px;
  --max:1280px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:var(--cream);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
button,input,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.lab-ribbon{
  position:sticky;
  top:0;
  z-index:60;
  background:#c7351b;
  color:white;
  text-align:center;
  padding:8px 14px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
}
.site-header{
  position:sticky;
  top:32px;
  z-index:50;
  min-height:92px;
  background:rgba(255,250,243,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(234,218,200,.88);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:10px clamp(16px,5vw,72px);
}
.brand{display:flex;align-items:center;gap:14px;min-width:240px}
.brand img{width:78px;height:auto;object-fit:contain}
.brand strong{
  display:block;
  font-size:25px;
  line-height:1;
  font-family:Georgia,"Times New Roman",serif;
}
.brand em{color:var(--copper);font-style:normal}
.brand small{display:block;color:var(--muted);font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-top:5px}
.header-nav{display:flex;align-items:center;gap:30px;font-weight:900}
.header-nav a{position:relative;padding:10px 0}
.header-nav a:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:2px;height:2px;
  background:var(--copper);
  transform:scaleX(0);
  transition:.2s ease;
}
.header-nav a:hover:after{transform:scaleX(1)}
.header-actions{display:flex;align-items:center;gap:12px}
.icon-button,.cart-button,.close-button,.ghost-link,#reloadMenu{
  border:0;
  background:white;
  color:var(--ink);
  box-shadow:0 8px 22px rgba(50,25,15,.08);
}
.icon-button{
  width:46px;height:46px;border-radius:999px;
}
.cart-button{
  min-width:82px;height:46px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;gap:6px;
  font-weight:900;
}
.cart-button strong,.mobile-cart-fab span{
  display:inline-grid;place-items:center;
  min-width:24px;height:24px;padding:0 7px;border-radius:999px;
  background:var(--copper-2);color:white;font-size:13px;
}
main{padding-bottom:100px}
.order-hero{
  max-width:var(--max);
  margin:0 auto;
  padding:72px clamp(16px,5vw,38px) 34px;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.55fr);
  gap:28px;
  align-items:stretch;
}
.hero-copy{
  min-height:340px;
  border-radius:36px;
  padding:clamp(28px,5vw,60px);
  color:white;
  background:
    radial-gradient(circle at 78% 25%,rgba(231,100,33,.32),transparent 34%),
    linear-gradient(90deg,rgba(16,8,4,.96),rgba(50,25,15,.88)),
    url("../assets/products/margherita.webp");
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-copy:before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.46),rgba(0,0,0,.12),rgba(0,0,0,.58));
  pointer-events:none;
}
.hero-copy>*{position:relative}
.eyebrow{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:12px;
  font-weight:950;
  color:#f0b477;
}
.hero-copy h1{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,7vw,82px);
  line-height:.92;
}
.hero-copy p:not(.eyebrow){
  max-width:700px;
  margin:18px 0 0;
  color:rgba(255,255,255,.86);
  font-size:18px;
  line-height:1.65;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.primary-link,.ghost-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;
  padding:0 26px;
  border-radius:999px;
  font-weight:950;
}
.primary-link{
  background:var(--copper);
  color:white;
  box-shadow:0 14px 26px rgba(189,93,45,.25);
}
.ghost-link{background:rgba(255,255,255,.12);color:white;border:1px solid rgba(255,255,255,.28)}
.hero-card{
  border-radius:36px;
  background:linear-gradient(160deg,#fffaf3,#f3dfc8);
  padding:38px;
  display:flex;
  flex-direction:column;
  justify-content:end;
  min-height:320px;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.76);
}
.hero-card span{font-size:64px}
.hero-card strong{font-size:30px;font-family:Georgia,"Times New Roman",serif}
.hero-card small{color:var(--muted);font-weight:800;margin-top:8px}
.status-panel,.menu-shell{
  max-width:var(--max);
  margin:18px auto 0;
  padding-inline:clamp(16px,5vw,38px);
}
.status-panel{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  background:#fff7ed;
  border:1px solid var(--line);
  border-radius:24px;
  padding-block:18px;
  box-shadow:0 10px 28px rgba(50,25,15,.06);
}
.status-panel strong{display:block;font-size:18px}
.status-panel span{display:block;color:var(--muted);margin-top:4px}
#reloadMenu{
  border-radius:999px;
  padding:12px 18px;
  font-weight:900;
}
.menu-shell{
  padding-top:42px;
}
.menu-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
}
.menu-toolbar h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,5vw,56px);
}
.menu-toolbar p:last-child{margin:6px 0 0;color:var(--muted);font-weight:750}
.search-box{
  min-width:min(420px,100%);
  background:white;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 16px;
  display:flex;align-items:center;gap:10px;
  box-shadow:0 10px 28px rgba(50,25,15,.06);
}
.search-box span{font-weight:950;color:var(--copper)}
.search-box input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  min-height:34px;
}
.category-tabs{
  position:sticky;
  top:124px;
  z-index:35;
  display:flex;
  gap:10px;
  overflow:auto;
  padding:18px 2px;
  margin:20px -2px 14px;
  scrollbar-width:thin;
  background:linear-gradient(180deg,var(--cream),rgba(248,240,228,.94));
}
.category-tabs button{
  border:1px solid var(--line);
  background:#fff9ef;
  color:var(--ink);
  white-space:nowrap;
  border-radius:999px;
  padding:13px 18px;
  font-weight:950;
  box-shadow:0 6px 16px rgba(50,25,15,.05);
}
.category-tabs button.is-active{
  background:var(--brown);
  color:white;
  border-color:var(--brown);
}
.menu-meta{
  color:var(--muted);
  font-weight:800;
  margin-bottom:16px;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.product-card{
  background:#fffaf4;
  border:1px solid var(--line);
  border-radius:24px;
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  min-height:160px;
  overflow:hidden;
  box-shadow:0 8px 26px rgba(50,25,15,.07);
  transition:.18s ease;
}
.product-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(50,25,15,.12)}
.image-button{
  border:0;
  padding:0;
  background:var(--brown-2);
  width:100%;
  height:100%;
}
.image-button img{
  width:100%;height:100%;
  object-fit:cover;
}
.product-info{
  padding:18px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.product-title-row{display:flex;align-items:start;gap:12px;justify-content:space-between}
.product-title-row h3{
  margin:0;
  font-size:18px;
  line-height:1.15;
}
.add-mini{
  flex:0 0 auto;
  width:44px;height:44px;border:0;border-radius:999px;
  background:var(--copper-2);color:white;
  font-size:26px;line-height:1;font-weight:900;
  box-shadow:0 10px 20px rgba(231,100,33,.24);
}
.product-desc{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-foot{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pill,.size-label{
  display:inline-flex;
  background:#f1dfc9;
  color:#6a3b22;
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
}
.price{font-size:18px}
.empty-state{
  margin:34px auto;
  padding:40px 20px;
  text-align:center;
  background:white;
  border:1px solid var(--line);
  border-radius:28px;
  color:var(--muted);
}
.empty-state strong{display:block;color:var(--ink);font-size:22px}
.mobile-cart-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:45;
  border:0;
  border-radius:999px;
  min-height:58px;
  padding:0 18px;
  background:var(--brown);
  color:white;
  display:none;
  align-items:center;
  gap:8px;
  font-weight:950;
  box-shadow:0 18px 36px rgba(0,0,0,.28);
}
.cart-drawer,.product-modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
}
.cart-drawer.is-open,.product-modal.is-open{display:block}
.cart-backdrop,.modal-backdrop{
  position:absolute;inset:0;background:rgba(0,0,0,.48);
}
.cart-panel{
  position:absolute;
  right:0;top:0;bottom:0;
  width:min(500px,100%);
  background:#fffaf3;
  display:flex;
  flex-direction:column;
  padding:24px;
  box-shadow:-20px 0 50px rgba(0,0,0,.25);
}
.cart-head,.modal-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.cart-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:34px}
.close-button{
  width:44px;height:44px;border-radius:999px;
  font-size:28px;
  line-height:1;
}
.cart-items{
  flex:1;
  overflow:auto;
  padding:12px 2px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cart-line{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
}
.cart-line strong{display:block}
.cart-line small{display:block;color:var(--muted);margin-top:4px;line-height:1.35}
.cart-line-actions{display:flex;align-items:center;gap:8px}
.cart-line-actions button{
  width:30px;height:30px;border-radius:999px;border:1px solid var(--line);background:#fff7ed;font-weight:950;
}
.checkout{
  border-top:1px solid var(--line);
  padding-top:16px;
}
.order-type{
  display:flex;
  gap:10px;
  margin-bottom:14px;
}
.order-type label{
  flex:1;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  font-weight:900;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.form-grid label,.modal-copy label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-weight:900;
  font-size:13px;
}
.form-grid .full,.modal-copy .full{grid-column:1/-1}
input,textarea{
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
  color:var(--ink);
  padding:12px 13px;
  outline:0;
}
input:focus,textarea:focus{border-color:var(--copper);box-shadow:0 0 0 4px rgba(189,93,45,.12)}
.cart-total{
  display:flex;align-items:center;justify-content:space-between;
  margin:14px 0;
  font-size:22px;
}
.cart-total strong{font-size:30px;color:var(--copper)}
.submit-order{
  width:100%;
  min-height:54px;
  border:0;
  border-radius:999px;
  background:var(--copper);
  color:white;
  font-weight:950;
  box-shadow:0 14px 30px rgba(189,93,45,.24);
}
.submit-order:disabled{opacity:.55;cursor:not-allowed}
.checkout-note{color:var(--muted);font-size:12px;line-height:1.4;margin:10px 0 0}
.modal-panel{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:min(1020px,calc(100% - 24px));
  max-height:calc(100dvh - 24px);
  background:#fffaf3;
  border-radius:30px;
  overflow:auto;
  display:grid;
  grid-template-columns:minmax(300px,45%) 1fr;
  box-shadow:0 30px 80px rgba(0,0,0,.34);
}
.modal-panel>img{
  width:100%;
  height:100%;
  min-height:560px;
  object-fit:cover;
}
.modal-copy{padding:34px;position:relative}
.modal-copy h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,5vw,54px)}
.modal-copy p{line-height:1.55}
.modal-close{position:absolute;right:18px;top:18px;z-index:2}
.modifier-box{
  margin:18px 0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:white;
}
.modifier-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.modifier-title span{color:var(--muted);font-weight:800}
.modifier-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.modifier-list label{
  display:flex;gap:8px;align-items:flex-start;
  background:#fff7ed;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  color:var(--ink);
  font-weight:850;
  font-size:13px;
}
.modal-bottom{margin:20px 0}
.qty-control{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:white;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px;
}
.qty-control button{
  width:38px;height:38px;border:0;border-radius:999px;background:#f1dfc9;font-size:22px;font-weight:950;
}
.qty-control strong{min-width:26px;text-align:center}
.modal-price span{display:block;color:var(--muted);font-weight:900;font-size:12px;text-transform:uppercase}
.modal-price strong{font-size:30px;color:var(--copper)}
.toast{
  position:fixed;
  left:50%;bottom:24px;
  transform:translateX(-50%);
  z-index:120;
  background:var(--brown);
  color:white;
  border-radius:999px;
  padding:14px 20px;
  font-weight:950;
  box-shadow:0 15px 35px rgba(0,0,0,.28);
}
@media (max-width:1100px){
  .header-nav{display:none}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-hero{grid-template-columns:1fr}
}
@media (max-width:720px){
  .lab-ribbon{font-size:11px}
  .site-header{
    top:30px;
    padding:8px 14px;
    min-height:78px;
  }
  .brand{min-width:0}
  .brand img{width:58px}
  .brand strong{font-size:19px}
  .brand small{display:none}
  .icon-button{display:none}
  .cart-button{display:none}
  .order-hero{
    padding:22px 14px 10px;
  }
  .hero-copy{
    min-height:520px;
    padding:28px 20px;
    display:flex;
    flex-direction:column;
    justify-content:end;
    background-position:center;
  }
  .hero-copy:before{
    background:linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,.24),rgba(0,0,0,.24));
  }
  .hero-card{display:none}
  .status-panel{
    margin:12px 14px;
    flex-direction:column;
    align-items:stretch;
  }
  .menu-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .category-tabs{
    top:108px;
    margin-inline:-14px;
    padding-left:14px;
  }
  .product-grid{
    grid-template-columns:1fr;
  }
  .product-card{
    grid-template-columns:132px 1fr;
    min-height:142px;
    border-radius:20px;
  }
  .product-info{padding:14px 12px}
  .product-title-row h3{font-size:17px}
  .add-mini{width:40px;height:40px}
  .mobile-cart-fab{display:flex}
  .cart-panel{padding:18px 14px}
  .form-grid{grid-template-columns:1fr}
  .modal-panel{
    grid-template-columns:1fr;
    border-radius:22px;
  }
  .modal-panel>img{min-height:260px;height:280px}
  .modal-copy{padding:24px 18px}
  .modifier-list{grid-template-columns:1fr}
}

/* === LPDO REV 1.08 - IMAGENES PRODUCTOS MAS ALEJADAS === */
/* Tarjetas de productos: mostrar pizzas/calzones más completas, menos zoom */
.product-card img,
.product-card__image img,
.product-image img,
.card-product img,
.menu-card img,
article img[src*="assets/products"],
img[src*="assets/products"] {
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(0.88) !important;
  transform-origin: center center !important;
}

/* Contenedor visual de imagen: fondo cálido para que el contain no se vea vacío */
.product-card picture,
.product-card__image,
.product-image,
.card-product__image,
.menu-card__image,
.product-card .image,
.product-card .thumb {
  background: #2b1b12 !important;
  overflow: hidden !important;
}

/* Detalle / modal producto: alejar más la imagen */
.modal img[src*="assets/products"],
.product-modal img[src*="assets/products"],
.drawer img[src*="assets/products"],
.dialog img[src*="assets/products"],
[role="dialog"] img[src*="assets/products"] {
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(0.78) !important;
  transform-origin: center center !important;
  background: #2b1b12 !important;
}

/* Móvil: mantener la pizza completa sin que se corte */
@media (max-width: 760px) {
  .product-card img,
  .product-card__image img,
  .product-image img,
  .card-product img,
  .menu-card img,
  article img[src*="assets/products"],
  img[src*="assets/products"] {
    object-fit: contain !important;
    transform: scale(0.84) !important;
  }

  .modal img[src*="assets/products"],
  .product-modal img[src*="assets/products"],
  .drawer img[src*="assets/products"],
  .dialog img[src*="assets/products"],
  [role="dialog"] img[src*="assets/products"] {
    transform: scale(0.72) !important;
  }
}
/* === LPDO REV 1.08 END === */

/* === LPDO REV 1.08 - IMAGENES PRODUCTOS MAS ALEJADAS === */
/* Tarjetas de productos: mostrar pizzas/calzones más completas, menos zoom */
.product-card img,
.product-card__image img,
.product-image img,
.card-product img,
.menu-card img,
article img[src*="assets/products"],
img[src*="assets/products"] {
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(0.88) !important;
  transform-origin: center center !important;
}

/* Contenedor visual de imagen: fondo cálido para que el contain no se vea vacío */
.product-card picture,
.product-card__image,
.product-image,
.card-product__image,
.menu-card__image,
.product-card .image,
.product-card .thumb {
  background: #2b1b12 !important;
  overflow: hidden !important;
}

/* Detalle / modal producto: alejar más la imagen */
.modal img[src*="assets/products"],
.product-modal img[src*="assets/products"],
.drawer img[src*="assets/products"],
.dialog img[src*="assets/products"],
[role="dialog"] img[src*="assets/products"] {
  object-fit: contain !important;
  object-position: center center !important;
  transform: scale(0.78) !important;
  transform-origin: center center !important;
  background: #2b1b12 !important;
}

/* Móvil: mantener la pizza completa sin que se corte */
@media (max-width: 760px) {
  .product-card img,
  .product-card__image img,
  .product-image img,
  .card-product img,
  .menu-card img,
  article img[src*="assets/products"],
  img[src*="assets/products"] {
    object-fit: contain !important;
    transform: scale(0.84) !important;
  }

  .modal img[src*="assets/products"],
  .product-modal img[src*="assets/products"],
  .drawer img[src*="assets/products"],
  .dialog img[src*="assets/products"],
  [role="dialog"] img[src*="assets/products"] {
    transform: scale(0.72) !important;
  }
}
/* === LPDO REV 1.08 END === */
