/* Identidad visual de Chef Margaro. La estructura y los flujos viven en styles.css. */
/* Fondo común para las fotografías de producto. */
:root {
  --product-studio: radial-gradient(ellipse at 50% 38%, var(--surface-hover), var(--page) 92%);
}
:focus-visible{outline-color:var(--brand-white)}
.skip-link{background:var(--brand-white);color:var(--page)}
.panel,.product-card,.category-card,.pattern-surface,.cart-line,.faq-item{border-color:var(--line)}
.eyebrow,.text-link,.product-category,.product-card .card-cta,
.breadcrumbs a:hover,.commerce-back:hover,.commerce-official-link,.checkout-payment a,
.info-page p a,.faq-item p a,.faq-item[open] summary,.history-order summary::after{color:var(--accent-text)}
.button{background:var(--red);border-color:var(--red);color:var(--ink)}
.button:hover{background:var(--deep);border-color:var(--deep)}
.btn-secondary{background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
.btn-secondary:hover{background:var(--surface-hover);border-color:var(--line)}
.topbar{background:var(--red);color:var(--ink);border-bottom:1px solid var(--red);font-weight:800}
.topbar-inner{height:28px}
.site-header{background:var(--page);border-color:var(--line)}
.header-inner{height:77px}
.brand img{width:55px;height:55px;transform:none;object-fit:contain}
.desktop-nav{gap:clamp(18px,3.3vw,46px)}
.desktop-nav a,.mobile-nav a{color:var(--ink)}
.desktop-nav a[aria-current],.desktop-nav a:hover,.mobile-nav a[aria-current],.mobile-nav a:hover{color:var(--accent-text)}
.desktop-nav a[aria-current]::after,.mobile-nav a[aria-current]::after{background:var(--red)}
.location-button{background:var(--surface);border-color:var(--line)}
.location-button svg:first-child{color:var(--accent-text)}
.location-button:hover{background:var(--surface-hover)}
.cart-button{background:var(--red);border:1px solid var(--red)}
.cart-button:hover{background:var(--deep)}

.poster{position:relative;isolation:isolate;overflow:hidden;min-height:450px;
  background:var(--red-gradient);
  border-bottom:2px solid var(--red)}
.poster::before,.poster::after,.poster-paper{content:"";position:absolute;inset:0;pointer-events:none}
.poster::before{z-index:-3;background:url("assets/pattern-light.png") center 46%/670px auto repeat;opacity:.19}
.poster::after{z-index:-2;inset:-5% -8% -13% 22%;background:url("assets/brush-swipe.svg") center/100% 108% no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 23%)}
.poster-paper{z-index:-1;background:url("assets/paper-grain.svg") 0 0/128px repeat;mix-blend-mode:soft-light;opacity:.44}
.poster-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:inherit;align-items:stretch}
.poster-copy{z-index:1;align-self:center;padding:55px 0 50px}
.poster-kicker{font-family:var(--font-brand);display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-size:11px;font-weight:400;letter-spacing:.2em;margin-bottom:17px;text-shadow:0 1px 5px var(--brand-black)}
.poster-kicker::before{content:"";width:28px;height:3px;background:var(--ink);transform:skewX(-28deg)}
.poster h1{font-family:var(--font-heading);font-size:clamp(57px,7.2vw,100px);font-weight:700;text-transform:uppercase;line-height:.94;letter-spacing:-.045em}
.poster h1 span,.poster h1 em{display:block;width:fit-content}
.poster h1 span,.poster h1 em{color:var(--ink);filter:drop-shadow(0 3px 0 #0008)}
.poster h1 em{font-style:normal;margin-top:.09em}
.poster-copy>p{color:var(--ink);font-size:clamp(13px,1.35vw,16px);margin:24px 0 19px;max-width:365px;text-shadow:0 2px 6px var(--brand-black)}
.poster-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.poster-primary{min-width:137px;min-height:45px;background:var(--brand-white);color:var(--brand-black);border-color:var(--brand-white)}
.poster-primary:hover{background:var(--brand-black);color:var(--ink);border-color:var(--brand-white)}
.poster-secondary{display:inline-flex;align-items:center;gap:5px;min-height:43px;padding:2px 0;color:var(--ink);font-size:13px;font-weight:800;text-shadow:0 2px 6px var(--shadow)}
.poster-secondary:hover{color:var(--ink);text-decoration:underline}
.poster-food{position:relative;display:block;min-width:0;isolation:isolate}
.poster-food::before{content:"";position:absolute;z-index:-1;top:17%;left:13%;width:75%;aspect-ratio:1;
  background:radial-gradient(ellipse,color-mix(in srgb, var(--red) 35%, transparent),transparent 68%)}
.poster-food img{position:absolute;top:50%;left:52%;width:min(114%,620px);max-width:none;
  transform:translate(-50%,-50%) rotate(5deg);filter:drop-shadow(0 14px 16px var(--shadow))}
.poster-product{position:absolute;right:0;bottom:25px;display:flex;align-items:center;gap:15px;
  min-width:168px;padding:9px 12px;background:color-mix(in srgb, var(--brand-black) 94%, transparent);border:1px solid color-mix(in srgb, var(--brand-white) 42%, transparent);border-left:3px solid var(--red);border-radius:5px;color:var(--ink)}
.poster-product strong,.poster-product small{display:block}
.poster-product strong{font-size:12px}
.poster-product small,.poster-product svg{color:var(--accent-text)}
.poster-product svg{margin-left:auto}
.poster-food:hover .poster-product{background:var(--surface-raised);border-color:var(--accent-text)}

.section-heading h2,.location-band h2,.catalog-title h1,.info-page .page-title h1{text-transform:uppercase}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.category-card{padding:17px 14px;min-height:152px;border-radius:var(--radius);border:1px solid var(--red);
  background:var(--red-gradient)}
.category-card>div{width:72%}
.category-card::before{background-image:url("assets/pattern-light.png");background-size:340px;opacity:.105}
.category-card:hover{border-color:var(--brand-white)}
.category-card h3{max-width:12ch;color:var(--ink);letter-spacing:-.025em;font-size:clamp(16px,1.75vw,25px);text-shadow:0 2px 3px var(--shadow)}
.category-card img{filter:drop-shadow(0 5px 7px var(--shadow))}
.category-arrow{background:color-mix(in srgb, var(--brand-black) 35%, transparent);color:var(--ink);border-color:color-mix(in srgb, var(--brand-white) 42%, transparent)}
.category-card:hover .category-arrow{background:var(--brand-white);border-color:var(--brand-white);color:var(--brand-black)}


.product-card{background:var(--surface);border-radius:var(--radius)}
.product-card:hover{box-shadow:0 6px 23px var(--shadow);border-color:var(--line-strong)}
.product-picture,.detail-photo,.cart-line-photo,.cart-suggestion-photo{position:relative;isolation:isolate;background:var(--product-studio)}
.product-picture::before,.detail-photo::before,.cart-line-photo::before,.cart-suggestion-photo::before{
  position:absolute;inset:-3px;z-index:-2;pointer-events:none;content:"";
  background:url("assets/pattern-light.png") 48% 44%/clamp(152px,93%,520px) auto repeat;
  filter:blur(.95px);opacity:.17;
}
.product-picture::after,.detail-photo::after,.cart-line-photo::after,.cart-suggestion-photo::after{
  position:absolute;inset:4% -6% -4%;z-index:-1;pointer-events:none;content:"";
  background:url("assets/product-brush.svg") center/100% 100% no-repeat;
}
.cart-line-photo::after,.cart-suggestion-photo::after{opacity:.8}
.product-picture img{filter:drop-shadow(0 8px 7px var(--shadow))}
.product-card .card-cta{background:var(--red);border:1px solid var(--red);color:var(--ink)}
.product-card .card-cta:hover{background:var(--brand-white);border-color:var(--brand-white);color:var(--brand-black)}
.pattern-surface::before,.info-page .page-title::before{background-image:url("assets/pattern-light.png");opacity:.11}
.location-band,.catalog-title,.info-page .page-title{background:var(--surface);border-color:var(--line)}
.catalog-title,.info-page .page-title{border-left:4px solid var(--red)}
.catalog-title{background:var(--red-gradient);border-color:var(--red)}
.catalog-title h1{margin:0}
.catalog-title .button{border-color:color-mix(in srgb, var(--brand-white) 60%, transparent);background:var(--deep)}
.catalog-title .button:hover{background:var(--page);border-color:var(--ink)}
.menu-sections{display:grid;gap:32px}
.menu-section-title{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:12px;padding:10px 16px;background:var(--red-gradient);border:1px solid var(--red);border-radius:var(--radius)}
.menu-section-title::before{content:"";position:absolute;z-index:-1;inset:0;background:url("assets/pattern-light.png") right center/380px repeat;opacity:.13}
.menu-section-title h2{font-size:clamp(17px,2.2vw,26px);letter-spacing:-.025em}
.menu-section-title span{color:var(--ink);font-size:11px;white-space:nowrap}
.menu-section .product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.menu-section .product-card h3{margin-top:1px}
.menu-section .product-picture{aspect-ratio:1.27}
.category-tabs a,.search-field,.results-bar select,.commerce-field input,.commerce-field textarea,.number-control{
  color:var(--ink);background:var(--surface);border-color:var(--line)}
.category-tabs a:hover,.search-field:focus-within{border-color:var(--accent-text)}
.category-tabs a[aria-current]{background:var(--red);border-color:var(--red);color:var(--ink)}
.search-field svg{color:var(--accent-text)}
.catalog-notice,.commerce-notice{color:var(--ink);background:var(--surface-raised);border-color:var(--line)}
.site-footer{background:var(--page);border-top:1px solid var(--line)}
.footer-grid p,.footer-grid a:not(.brand),.footer-bottom{color:var(--muted)}
.site-footer::before{opacity:.06}
dialog{box-shadow:0 20px 70px var(--shadow)}
dialog::backdrop{background:var(--shadow)}
.icon-button{color:var(--ink)}
.location-option:hover,.location-option.selected{border-color:var(--accent-text);background:var(--surface-raised);color:var(--accent-text)}
.toast{background:var(--surface);border:1px solid var(--line)}
.brand-story{background:var(--surface)}
.detail-photo{border-color:var(--line)}
.detail-photo img{filter:drop-shadow(0 14px 15px var(--shadow))}
.product-price,.detail-price,.cart-line-price,.summary-total strong,.qty-button{color:var(--ink)}
.cart-remove{color:var(--accent-text)}
.qty-button:hover:not(:disabled){background:var(--surface-hover)}
.fulfillment-option:has(input:checked){background:var(--red-shade);border-color:var(--red)}
.fulfillment-option input{accent-color:var(--accent-text)}
.checkout-payment a{color:var(--accent-text)}
.product-quantity-stepper input{border:0;background:none}

@media(max-width:950px){
  .poster{min-height:393px}
  .poster h1{font-size:clamp(53px,8.4vw,82px)}
  .poster-copy{padding-block:54px 40px}
  .poster-food img{width:126%;left:51%}
  .menu-section .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:750px){
  .header-inner{height:59px}
  .brand img{width:43px;height:43px}
  .poster{min-height:344px}
  .poster h1{font-size:clamp(44px,8.2vw,66px)}
  .poster-copy>p{margin-top:16px}
  .poster-actions{gap:5px 10px}
  .poster-secondary{font-size:11px}
  .category-card{min-height:117px}
  .menu-section .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  .topbar-inner{height:23px}
  .mobile-nav{gap:5px}
  .mobile-nav a{font-size:10px}
  .poster{min-height:0}
  .poster::after{inset:22% -37% -5% -20%;background-size:100% 110%}
  .poster::before{background-size:428px;opacity:.26}
  .poster-inner{grid-template-columns:1fr;grid-template-rows:auto clamp(202px,67vw,302px)}
  .poster-copy{padding:24px 0 5px;text-align:left}
  .poster-kicker{font-size:9px;margin-bottom:12px}
  .poster-kicker::before{width:19px;height:2px}
  .poster h1{font-size:clamp(40px,11.1vw,60px);line-height:.93}
  .poster h1 em{margin-top:3px}
  .poster-copy>p{margin:13px 0 9px;max-width:265px;font-size:12px}
  .poster-primary{min-width:99px;min-height:39px;padding:7px 10px}
  .poster-secondary{min-height:39px;padding:4px;font-size:11px}
  .poster-food img{width:min(102%,355px);top:45%;left:51%;transform:translate(-50%,-50%) rotate(4deg)}
  .poster-product{bottom:12px;min-width:131px;padding:6px 8px;gap:6px}
  .poster-product strong,.poster-product small{font-size:9px}
  .poster-product svg{width:14px;height:14px}

  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .category-card{padding:10px;min-height:109px}
  .category-card h3{font-size:clamp(13px,3.85vw,18px)}
  .category-arrow{margin-top:6px}
  .menu-sections{gap:24px}
  .menu-section-title{padding:9px 10px;margin-bottom:8px}
  .menu-section-title span{font-size:10px}
  .menu-section .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .catalog-title{grid-template-columns:minmax(0,1fr) auto}

}
@media(max-width:350px){
  .mobile-nav a{font-size:9px}
  .poster-secondary{font-size:10px}
  .poster-actions{gap:5px}
}
