/*
Theme Name: Linardi Style
Theme URI: https://linardistyle.com
Author: Linardi
Description: Vitrina editorial de lentes con cierre de venta y comunidad por WhatsApp.
Version: 1.4.1
Text Domain: linardi
*/

:root {
  --paper: #f6f4ef;
  --white: #fff;
  --ink: #111;
  --muted: #706d67;
  --line: #d8d4cc;
  --soft: #e9e7e2;
  --red: #a51f2b;
  --wa: #1d6f4a;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); margin: 0; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; height: auto; max-width: 100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.site-main { min-height: 55vh; }

.topline { align-items: center; background: var(--ink); color: var(--white); display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .11em; min-height: 32px; padding: 0 42px; text-transform: uppercase; }
.site-header { align-items: center; background: rgba(246,244,239,.97); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; min-height: 78px; padding: 0 42px; position: relative; z-index: 40; }
.brand { align-items: center; display: inline-flex; line-height: 1; width: max-content; }
.brand-logo { height: auto; width: 168px; }
.menu-panel .brand-logo { filter: invert(1); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { border-bottom: 1px solid transparent; font-size: 12px; padding: 29px 0; }
.main-nav a:hover, .main-nav a:focus-visible { border-color: var(--ink); }
.header-actions { align-items: center; display: flex; gap: 19px; justify-content: flex-end; }
.header-actions > a, .menu-toggle { background: transparent; border: 0; font-size: 11px; padding: 8px 0; }
.cart-count { align-items: center; border: 1px solid var(--ink); display: inline-flex !important; height: 36px; justify-content: center; padding: 0 !important; width: 36px; }
.menu-toggle { display: none; letter-spacing: .08em; text-transform: uppercase; }

.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.display { font-size: clamp(56px,7vw,112px); font-weight: 500; letter-spacing: -.07em; line-height: .86; margin: 0; text-transform: uppercase; }
.display-serif { font-family: var(--serif); font-size: clamp(46px,6vw,88px); font-weight: 400; letter-spacing: -.055em; line-height: .94; margin: 0; }
.button { align-items: center; background: var(--ink); border: 1px solid var(--ink); color: var(--white); display: inline-flex; font-size: 11px; font-weight: 600; gap: 28px; justify-content: space-between; letter-spacing: .08em; min-height: 50px; padding: 0 22px; text-transform: uppercase; }
.button:hover, .button:focus-visible { background: var(--red); border-color: var(--red); color: var(--white); }
.button-light { background: transparent; color: var(--ink); }
.button-wa::before { background: var(--wa); border-radius: 50%; content: ""; height: 7px; width: 7px; }
.text-link { border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: .08em; padding: 7px 0; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 690px; }
.hero-media { background: #232321; overflow: hidden; position: relative; }
.hero-media::after { background: linear-gradient(180deg,rgba(0,0,0,.34) 0,transparent 25%,transparent 66%,rgba(0,0,0,.42) 100%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 2; }
.hero-slides, .hero-slide { inset: 0; position: absolute; }
.hero-slide { display: block; opacity: 0; overflow: hidden; pointer-events: none; transition: opacity .7s ease; visibility: hidden; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; visibility: visible; }
.hero-slide img { height: 100%; max-width: none; object-fit: cover; object-position: center 36%; transform: scale(1.025); transition: transform 6.5s ease; width: 100%; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide:focus-visible { outline: 2px solid var(--white); outline-offset: -8px; }
.hero-mark { color: var(--white); font-size: 10px; left: 30px; letter-spacing: .16em; position: absolute; text-shadow: 0 1px 8px rgba(0,0,0,.45); text-transform: uppercase; top: 28px; z-index: 3; }
.hero-count { bottom: 28px; color: var(--white); font-family: var(--serif); font-size: 16px; left: 30px; position: absolute; text-shadow: 0 1px 8px rgba(0,0,0,.45); z-index: 3; }
.hero-product { bottom: 30px; color: var(--white); font-size: 9px; letter-spacing: .14em; position: absolute; right: 30px; text-shadow: 0 1px 8px rgba(0,0,0,.55); text-transform: uppercase; z-index: 3; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 54px 48px 46px; }
.hero-copy .redline { background: var(--red); height: 5px; margin: 28px 0 34px; width: 58px; }
.hero-copy p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 420px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 22px; }
.launch-chip { align-items: center; border: 1px solid var(--line); display: flex; font-size: 10px; gap: 12px; letter-spacing: .1em; padding: 11px 13px; text-transform: uppercase; width: max-content; }
.launch-chip::before { background: var(--red); border-radius: 50%; content: ""; height: 6px; width: 6px; }

.service-row { background: var(--white); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.service { align-items: center; border-right: 1px solid var(--line); display: flex; gap: 18px; min-height: 94px; padding: 20px 34px; }
.service:last-child { border-right: 0; }
.service b { font-family: var(--serif); font-size: 15px; font-weight: 400; }
.service small { color: var(--muted); display: block; font-size: 11px; margin-top: 4px; }
.service-no { color: var(--red); font-family: var(--serif); font-size: 27px; }

.section { padding: 90px 42px; }
.section-head { align-items: end; display: flex; justify-content: space-between; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 340px; }
.section-title { font-family: var(--serif); font-size: clamp(42px,5vw,70px); font-weight: 400; letter-spacing: -.05em; line-height: .95; margin: 12px 0 0; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,1fr); }
.product-card { display: block; min-width: 0; }
.product-image { align-items: center; background: var(--soft); display: flex; height: 420px; justify-content: center; overflow: hidden; position: relative; }
.product-image img { mix-blend-mode: multiply; transition: transform .35s ease; width: 92%; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge { background: var(--ink); color: var(--white); font-size: 9px; left: 14px; letter-spacing: .12em; padding: 8px 10px; position: absolute; text-transform: uppercase; top: 14px; z-index: 2; }
.product-info { align-items: start; display: grid; gap: 16px; grid-template-columns: 1fr auto; padding: 17px 0 26px; }
.product-info h2, .product-info h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin: 0 0 7px; }
.product-info p { color: var(--muted); font-size: 11px; margin: 0; }
.product-info strong { font-size: 12px; white-space: nowrap; }

.community { align-items: end; background: var(--ink); color: var(--white); display: grid; gap: 50px; grid-template-columns: 1fr 340px; padding: 78px 42px; }
.community .display-serif { max-width: 830px; }
.community p { color: #b9b7b1; font-size: 13px; line-height: 1.65; }
.community .button { background: var(--white); border-color: var(--white); color: var(--ink); width: 100%; }
.community .button:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.shop-intro { align-items: end; border-bottom: 1px solid var(--line); display: grid; gap: 60px; grid-template-columns: 1.25fr .75fr; padding: 72px 42px 48px; }
.shop-intro p { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 390px; }
.filters { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 28px; overflow-x: auto; padding: 20px 42px; }
.filter { background: transparent; border: 0; border-bottom: 1px solid transparent; font-size: 11px; letter-spacing: .08em; padding: 5px 0; text-transform: uppercase; white-space: nowrap; }
.filter.active { border-color: var(--ink); }
.filter-spacer { flex: 1; }
.shop-grid { display: grid; gap: 1px; grid-template-columns: repeat(2,1fr); }
.shop-grid .product-card { background: var(--white); padding: 24px 28px 0; }
.shop-grid .product-image { height: min(48vw,560px); }
.shop-empty { padding: 80px 42px; }

.product-page { display: grid; grid-template-columns: 1.15fr .85fr; }
.product-gallery { background: var(--white); display: grid; gap: 1px; grid-template-columns: repeat(2,1fr); }
.gallery-frame { align-items: center; background: var(--soft); display: flex; min-height: 440px; justify-content: center; overflow: hidden; }
.gallery-frame img { width: 100%; }
.gallery-frame:first-child { grid-column: 1/-1; min-height: 650px; }
.product-detail { align-self: start; min-height: 720px; padding: 56px 48px; position: sticky; top: 0; }
.product-detail h1 { font-family: var(--serif); font-size: clamp(48px,5vw,74px); font-weight: 400; letter-spacing: -.055em; line-height: .9; margin: 18px 0; }
.product-variant-name { color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .12em; margin: -6px 0 24px; text-transform: uppercase; }
.price { font-size: 16px; font-weight: 600; margin: 26px 0; }
.description { color: var(--muted); font-size: 13px; line-height: 1.7; }
.detail-actions { display: grid; gap: 10px; }
.detail-actions .button { width: 100%; }
.linardi-cart-form { display: block; }
.linardi-cart-form .quantity { display: none; }
.specs { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,1fr); margin-top: 35px; }
.spec { border-bottom: 1px solid var(--line); padding: 17px 0; }
.spec:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 18px; }
.spec:nth-child(even) { padding-left: 18px; }
.spec span { color: var(--muted); display: block; font-size: 10px; margin-bottom: 5px; }
.spec strong { font-family: var(--serif); font-size: 14px; font-weight: 400; }
.product-story { background: var(--ink); color: var(--white); display: grid; grid-template-columns: repeat(2,1fr); }
.story-frame { margin: 0; min-height: 720px; overflow: hidden; position: relative; }
.story-frame img { height: 100%; object-fit: cover; width: 100%; }
.story-frame figcaption { bottom: 24px; color: var(--white); font-size: 9px; left: 26px; letter-spacing: .16em; position: absolute; text-shadow: 0 1px 8px rgba(0,0,0,.55); text-transform: uppercase; }
.lens-technology { background: var(--paper); border-bottom: 1px solid var(--line); padding: 92px 42px; }
.lens-tech-head { align-items: end; display: grid; gap: 54px; grid-template-columns: 1.1fr .9fr; margin-bottom: 56px; }
.lens-tech-head p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; max-width: 520px; }
.lens-tech-grid { display: grid; gap: 1px; grid-template-columns: repeat(2,1fr); }
.lens-tech-card { background: var(--white); min-height: 300px; padding: 36px; position: relative; }
.lens-tech-number { color: var(--red); font-family: var(--serif); font-size: 18px; }
.lens-tech-card h3 { font-family: var(--serif); font-size: clamp(32px,4vw,52px); font-weight: 400; letter-spacing: -.045em; margin: 72px 0 16px; }
.lens-tech-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; max-width: 520px; }
.testimonials { background: #dedbd4; display: grid; gap: 70px; grid-template-columns: .7fr 1.3fr; min-height: 520px; padding: 86px 42px; }
.testimonial-intro { align-self: start; }
.testimonial-stage { align-self: center; min-width: 0; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; }
.testimonial-stars { color: var(--red); font-size: 16px; letter-spacing: .22em; }
.testimonial-quote { font-family: var(--serif); font-size: clamp(34px,4.4vw,65px); letter-spacing: -.05em; line-height: 1.08; margin: 26px 0 34px; }
.testimonial-author { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.testimonial-controls { align-items: center; border-top: 1px solid #c6c1b7; display: flex; gap: 12px; margin-top: 46px; padding-top: 20px; }
.testimonial-control { align-items: center; background: transparent; border: 1px solid #aaa59c; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.testimonial-counter { color: var(--muted); font-family: var(--serif); font-size: 13px; margin-left: auto; }
.woocommerce-notices-wrapper { background: var(--paper); }
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-bottom: 1px solid var(--line); list-style: none; margin: 0; padding: 18px 42px; }

.cart-page { padding: 72px 42px 90px; }
.cart-header { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 32px; }
.cart-grid { display: grid; gap: 70px; grid-template-columns: 1.3fr .7fr; padding-top: 38px; }
.cart-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 170px 1fr auto; padding: 0 0 24px; }
.cart-item + .cart-item { padding-top: 24px; }
.cart-item img { background: var(--soft); height: 126px; mix-blend-mode: multiply; object-fit: contain; width: 170px; }
.cart-item h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 0 0 8px; }
.cart-item p { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
.cart-item-side { align-items: flex-end; display: flex; flex-direction: column; gap: 13px; }
.remove-item { border-bottom: 1px solid var(--muted); color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.qty { align-items: center; border: 1px solid var(--line); display: inline-grid; grid-template-columns: 34px 42px 34px; height: 36px; }
.qty button { background: transparent; border: 0; }
.qty input { appearance: textfield; background: transparent; border: 0; text-align: center; width: 42px; }
.cart-tools { display: flex; justify-content: flex-end; padding-top: 18px; }
.update-cart { background: transparent; border: 0; border-bottom: 1px solid var(--ink); font-size: 10px; letter-spacing: .08em; padding: 7px 0; text-transform: uppercase; }
.summary { background: var(--white); padding: 32px; }
.summary h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 13px 0 30px; }
.summary-row { border-bottom: 1px solid var(--line); display: flex; font-size: 12px; justify-content: space-between; padding: 15px 0; }
.summary-row.total { font-size: 15px; margin-bottom: 25px; }
.summary .button { width: 100%; }
.summary > p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 17px 0 0; }
.empty-cart { padding: 90px 42px 120px; }
.empty-cart p { color: var(--muted); margin: 25px 0; }

.content-page { margin: 0 auto; max-width: 960px; padding: 80px 42px 120px; }
.content-page h1 { font-family: var(--serif); font-size: clamp(44px,7vw,84px); font-weight: 400; letter-spacing: -.05em; line-height: .96; }
.content-page .entry-content { color: #3e3c38; font-size: 15px; line-height: 1.8; }
.content-page .entry-content h2 { color: var(--ink); font-family: var(--serif); font-size: 32px; font-weight: 400; margin-top: 50px; }

.site-footer { background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 40px; grid-template-columns: 1.4fr repeat(3,1fr); padding: 56px 42px 36px; }
.site-footer h4 { font-size: 10px; letter-spacing: .14em; margin: 0 0 16px; text-transform: uppercase; }
.site-footer a, .site-footer p { color: var(--muted); display: block; font-size: 11px; line-height: 1.9; margin: 0; }
.footer-note { grid-column: 1/-1; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 9px; justify-content: space-between; margin-top: 20px; padding-top: 22px; text-transform: uppercase; }

.menu-panel { background: var(--ink); color: var(--white); inset: 0; opacity: 0; pointer-events: none; position: fixed; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease; visibility: hidden; z-index: 100; }
.menu-panel.is-open { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
.menu-panel-head { align-items: center; border-bottom: 1px solid #333; display: flex; justify-content: space-between; min-height: 78px; padding: 0 42px; }
.menu-close { background: transparent; border: 0; color: var(--white); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.menu-layout { display: grid; grid-template-columns: 1fr 420px; height: calc(100vh - 78px); }
.menu-links { overflow-y: auto; padding: 36px 42px; }
.menu-link { align-items: baseline; border-bottom: 1px solid #3a3a38; display: flex; font-size: clamp(48px,6.8vw,96px); font-weight: 400; justify-content: space-between; letter-spacing: -.06em; line-height: 1; padding: 18px 0; }
.menu-link small { color: #888680; font-size: 10px; letter-spacing: .12em; }
.menu-feature { background: #d9d9d6; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 34px; }
.menu-feature img { mix-blend-mode: multiply; width: 100%; }
.menu-feature h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin: 25px 0 18px; }

@media (max-width: 980px) {
  .topline span:nth-child(2) { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-wa { display: none !important; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 520px; }
  .hero-copy { min-height: 540px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid .product-card:last-child { display: none; }
  .community { grid-template-columns: 1fr; }
  .product-page { grid-template-columns: 1fr; }
  .product-detail { min-height: 0; position: static; }
  .story-frame { min-height: 560px; }
  .lens-tech-head { grid-template-columns: 1fr; }
  .testimonials { gap: 45px; grid-template-columns: 1fr; }
  .cart-grid { gap: 40px; grid-template-columns: 1fr; }
  .menu-layout { grid-template-columns: 1fr; }
  .menu-feature { display: none; }
}

@media (max-width: 640px) {
  .topline { justify-content: center; min-height: 29px; padding: 0 16px; }
  .topline span:last-child { display: none; }
  .site-header { min-height: 66px; padding: 0 20px; }
  .brand-logo { width: 145px; }
  .header-actions { gap: 14px; }
  .cart-count { height: 33px; width: 33px; }
  .display { font-size: clamp(50px,17vw,76px); }
  .display-serif { font-size: clamp(42px,13vw,64px); }
  .hero-media { min-height: 480px; }
  .hero-slide img { object-position: center 30%; }
  .hero-mark { left: 20px; top: 20px; }
  .hero-count { bottom: 20px; left: 20px; }
  .hero-product { bottom: 21px; max-width: 210px; right: 20px; text-align: right; }
  .hero-copy { min-height: 465px; padding: 42px 20px 35px; }
  .hero-copy p { font-size: 13px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { width: max-content; }
  .service-row { grid-template-columns: 1fr; }
  .service { border-bottom: 1px solid var(--line); border-right: 0; min-height: 82px; padding: 15px 20px; }
  .service:last-child { border-bottom: 0; }
  .section { padding: 62px 20px; }
  .section-head { align-items: start; flex-direction: column; gap: 20px; }
  .product-grid { display: flex; gap: 12px; margin-right: -20px; overflow-x: auto; padding-right: 20px; scroll-snap-type: x mandatory; }
  .product-grid .product-card, .product-grid .product-card:last-child { display: block; flex: 0 0 82vw; scroll-snap-align: start; }
  .product-image { height: 345px; }
  .community { gap: 36px; padding: 60px 20px; }
  .community .display-serif { overflow-wrap: anywhere; }
  .shop-intro { align-items: start; gap: 25px; grid-template-columns: 1fr; padding: 54px 20px 34px; }
  .filters { gap: 20px; padding: 16px 20px; }
  .filter-spacer { display: none; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-grid .product-card { padding: 14px 20px 0; }
  .shop-grid .product-image { height: 390px; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-frame, .gallery-frame:first-child { grid-column: auto; min-height: 390px; }
  .product-detail { padding: 42px 20px 60px; }
  .product-detail h1 { font-size: 52px; }
  .product-story { grid-template-columns: 1fr; }
  .story-frame { min-height: 560px; }
  .lens-technology { padding: 64px 20px; }
  .lens-tech-head { gap: 24px; margin-bottom: 34px; }
  .lens-tech-grid { grid-template-columns: 1fr; }
  .lens-tech-card { min-height: 270px; padding: 28px 24px; }
  .lens-tech-card h3 { margin-top: 54px; }
  .testimonials { min-height: 550px; padding: 62px 20px; }
  .testimonial-quote { font-size: 38px; }
  .cart-page { padding: 54px 20px 70px; }
  .cart-header { align-items: start; flex-direction: column; gap: 18px; }
  .cart-grid { gap: 42px; }
  .cart-item { align-items: start; gap: 14px; grid-template-columns: 95px 1fr; }
  .cart-item img { height: 80px; width: 95px; }
  .cart-item-side { align-items: flex-start; grid-column: 2; }
  .summary { margin: 0 -20px; padding: 28px 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 45px 20px 28px; }
  .site-footer > div:first-child { grid-column: 1/-1; }
  .footer-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .menu-panel-head { min-height: 66px; padding: 0 20px; }
  .menu-layout { height: calc(100vh - 66px); }
  .menu-links { padding: 24px 20px; }
  .menu-link { font-size: clamp(43px,14vw,66px); padding: 19px 0; }
  .woocommerce-message, .woocommerce-error, .woocommerce-info { padding: 16px 20px; }
  .content-page { padding: 60px 20px 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide img { transition: none; }
}
