/* =========================================================
   Leather Crafts International — Premium B2B theme + lightbox
   Beginner-editable, no frameworks
   ========================================================= */

/* Color system (neutral off-white + leather browns + muted gold) */
:root{
  --bg:#fbfaf7;            /* off-white */
  --surface:#ffffff;       /* cards / header */
  --surface-2:#f6f0e8;     /* soft beige */
  --text:#1f1b16;          /* deep brown-black */
  --muted:#6b625a;         /* warm gray */
  --line:#e8e2d9;          /* soft divider */
  --brand:#7a4b2a;         /* leather brown */
  --brand-2:#b58a5a;       /* light leather */
  --accent:#b08d57;        /* muted gold */
  --focus:#1a73e8;

  --shadow-sm:0 6px 18px rgba(17, 12, 7, .08);
  --shadow-md:0 18px 50px rgba(17, 12, 7, .14);
  --radius:16px;
}

*{box-sizing:border-box}
html{
  height:100%;
scroll-behavior:smooth}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;
  line-height:1.55;
  -webkit-text-size-adjust:100%;
}



.page-wrapper{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
/* Typography normalization for Safari/Chrome parity */
h1,h2,h3,h4,h5,h6{line-height:1.2;}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:hover{text-decoration:underline}

.container{width:min(1440px,94vw);margin-inline:auto}

.top-bar{
  background:linear-gradient(90deg, rgba(122,75,42,.92), rgba(176,141,87,.82));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.top-bar-items{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;padding:.65rem 0;font-size:.95rem}
.top-label{color:rgba(255,255,255,.88);font-weight:800}
.top-link{text-decoration:none}
.top-link{color:#fff}
.top-link:hover{text-decoration:underline}

/* Header */
.site-header{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,245,239,.92));
  backdrop-filter:saturate(160%) blur(12px);
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--line);
}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none}
.brand-logo{height:56px;width:auto}
.site-nav{display:flex;align-items:center;gap:.9rem;flex-wrap:nowrap;white-space:nowrap}
.nav-link{padding:.45rem .55rem;border-radius:999px;text-decoration:none;color:rgba(27,27,27,.78);font-weight:700;letter-spacing:.2px;white-space:nowrap}
.nav-link:hover{background:rgba(176,141,87,.14);text-decoration:none;color:var(--text)}
.nav-link.is-active{background:rgba(122,75,42,.10);color:var(--text)}
.nav-cta{
  padding:.55rem .9rem;border-radius:999px;
  background:linear-gradient(180deg,var(--brand),#5f381f);
  color:#fff;text-decoration:none;font-weight:750;
  box-shadow:0 10px 20px rgba(0,0,0,.14);
}
.nav-cta:hover{text-decoration:none;filter:brightness(.98)}
.menu-toggle{display:none;align-items:center;gap:.6rem;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:.55rem .8rem;cursor:pointer}
.menu-toggle:focus{outline:3px solid rgba(26,115,232,.25);outline-offset:2px}
.menu-toggle-label{font-weight:750;color:var(--text)}
.menu-toggle-icon{width:22px;height:2px;background:var(--text);display:block;position:relative;border-radius:2px}
.menu-toggle-icon:before,.menu-toggle-icon:after{content:"";position:absolute;left:0;width:22px;height:2px;background:var(--text);border-radius:2px}
.menu-toggle-icon:before{top:-7px}
.menu-toggle-icon:after{top:7px}


@media (max-width: 1180px){
  .site-nav{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .site-nav::-webkit-scrollbar{display:none}
}
@media (max-width: 880px){
  .menu-toggle{display:flex}
  .site-nav{
    position:absolute;left:0;right:0;top:100%;
    background:var(--surface);
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 20px rgba(0,0,0,.14);
    padding:.75rem min(4vw,18px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:.45rem;
  }
  .site-nav.is-open{display:flex}
  .nav-link,.nav-cta{width:100%;text-align:center}
}

/* Main / sections */
.site-main{flex:1 0 auto;padding:1rem 0 2rem}
.section{padding:1.25rem 0}
.grid{display:grid;gap:1.25rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 1100px){
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 700px){
  .grid-4{grid-template-columns:1fr}
}

/* Category cards (home) */
/* Homepage category cards (match product card styling) */
.category-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 20px rgba(0,0,0,.14);
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
  border-color:rgba(176,141,87,.35);
}
.category-card .category-media{position:relative}
.category-card .category-media img{
  width:100%;
  height:150px;
  object-fit:cover;
  display:block;
  border-bottom:1px solid var(--line);
}
.category-card .category-body{padding:.9rem}
.category-card .category-title{font-weight:950;font-size:1.12rem;line-height:1.25;margin:0}
.category-card .category-desc{margin:.45rem 0 0;color:var(--muted);font-size:1.0rem;line-height:1.45}
.category-card .category-cta{display:inline-flex;align-items:center;gap:.4rem;margin-top:.75rem;font-weight:900}

.imprint-address{font-style:normal;color:var(--text);line-height:1.6}

/* Footer bottom center */
.footer-bottom{padding-top:1rem;margin-top:1rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-bottom small{display:block;text-align:center}

@media (max-width: 700px){
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
}

/* Hero */
.hero{
  background:linear-gradient(180deg, rgba(176,141,87,.10), transparent 70%);
  border:1px solid var(--line);
  border-radius:calc(var(--radius) + 4px);
  padding:1.25rem;
  box-shadow:0 10px 20px rgba(0,0,0,.14);
}
.hero h1{font-size:clamp(1.55rem,2.6vw,2.05rem);line-height:1.15;margin:.2rem 0 .65rem}
.lead{font-size:1.07rem;color:var(--muted);margin:.4rem 0 1rem}
.badges{display:flex;flex-wrap:wrap;gap:.5rem}
.badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* Mobile overflow safeguards */
html,body{max-width:100%;overflow-x:hidden}
img,svg{max-width:100%;height:auto}

/* Tables: prevent long strings (emails/phones) from breaking layout */
.table th,.table td{overflow-wrap:anywhere;word-break:break-word}

@media (max-width: 600px){
  .table tr{display:block;padding:.6rem 0;border-bottom:1px solid var(--line)}
  .table th,.table td{display:block;width:100%}
  .table th{padding-bottom:.25rem}
}
.badge{
  display:inline-flex;align-items:center;
  padding:.32rem .6rem;border-radius:999px;
  border:1px solid rgba(176,141,87,.28);
  background:rgba(255,255,255,.7);
  color:var(--text);
  font-weight:700;
  font-size:.9rem;
}

/* Cards + buttons */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 20px rgba(0,0,0,.14);
  padding:1rem;
}
.card h2,.card h3{margin:.1rem 0 .55rem}
.card p{margin:.55rem 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.55rem .95rem;border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface);
  text-decoration:none;
  font-weight:750;
}
.btn:hover{text-decoration:none;filter:brightness(.99)}
.btn-primary{
  border-color:rgba(122,75,42,.18);
  background:linear-gradient(180deg,var(--brand),#5f381f);
  color:#fff;
}
.btn-primary:hover{filter:brightness(.98)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-top:1px solid var(--line);padding:.7rem .6rem;text-align:left;vertical-align:top}
.table th{color:var(--muted);font-weight:800;width:38%}

/* Products / gallery */
.card-media{
  padding:0;border:0;background:transparent;cursor:zoom-in;width:100%;
  border-radius:var(--radius);
  position:relative;
}
.card-media img{
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 20px rgba(0,0,0,.14);
}
.gallery-hint{
  position:absolute;right:.75rem;bottom:.75rem;
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius:999px;
  padding:.28rem .55rem;
  font-weight:800;
  color:var(--text);
}

.product-gallery .gallery-main{
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  cursor:zoom-in;
  border-radius:var(--radius);
  position:relative;
}
.product-gallery .gallery-main img{
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 10px 20px rgba(0,0,0,.14);

  width:100%;
  height:auto;
  display:block;
  background:#fff;

  /* Prevent accidental blur from scaling/filters */
  object-fit:contain;
  image-rendering:auto;
}
.thumb-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.55rem;
  margin-top:.75rem;
}
.thumb{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  border-radius:14px;
}
.thumb img{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;

  height:78px;
  object-fit:cover;
  display:block;
}

/* Active thumb state for product pages */
.thumb.is-active img{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
@media (max-width: 900px){
  .thumb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width: 520px){
  .thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Footer */
.site-footer{
  margin-top:2rem;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(122,75,42,.96), rgba(31,27,22,.96));
  color:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1.2fr 1.2fr;
  gap:1.25rem;
  padding:1.6rem 0;
}
@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr;}
}
.footer-title{font-weight:950;font-size:1.05rem;letter-spacing:.2px;margin:.15rem 0 .55rem}
.footer-text{margin:.25rem 0;color:rgba(255,255,255,.82);max-width:52ch}
.footer-list{list-style:none;padding:0;margin:.2rem 0 0;display:grid;gap:.4rem}
.footer-list a{color:#fff;text-decoration:none}
.footer-list a:hover{text-decoration:underline}
.footer-bottom{padding:.9rem 0;border-top:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;text-align:center}
.footer-muted{color:rgba(255,255,255,.82);font-weight:700}

/* Forms */
input,textarea,select,button{font:inherit}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (max-width: 800px){.form-grid{grid-template-columns:1fr}}

.form-block{margin:.9rem 0;padding:.9rem;border:1px solid var(--line);border-radius:18px;background:rgba(0,0,0,.02)}
.form-block-title{font-weight:900;margin-bottom:.6rem}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .75rem}
@media (max-width: 800px){.checks{grid-template-columns:1fr}}
.check{display:flex;gap:.55rem;align-items:flex-start;font-weight:700;color:var(--text)}
.check input{margin-top:.18rem}
.field-note{display:block;color:var(--muted);font-size:.92rem;margin-top:.35rem}
.field label{display:block;font-weight:800;margin:.1rem 0 .35rem}
.field input,.field textarea,.field select{
  width:100%;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:.65rem .75rem;
}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:3px solid rgba(26,115,232,.22);
  border-color:rgba(26,115,232,.35);
}

/* Contact form (screenshot-style) */
.contact-hero{margin:0 0 1rem}
.contact-hero-inner{padding:.6rem 0 .25rem}

.contact-form-card{
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:0 10px 20px rgba(0,0,0,.14);
  padding:1.1rem;
}

.contact-form{display:grid;gap:1.05rem}
.cf-label{font-weight:900;letter-spacing:.2px}
.cf-input,.cf-textarea{
  width:100%;
  margin-top:.45rem;
  background:#fff;
  border:1px solid rgba(31,27,22,.14);
  border-radius:16px;
  padding:.95rem 1rem;
}
.cf-textarea{min-height:180px;resize:vertical}
.cf-input:focus,.cf-textarea:focus{outline:3px solid rgba(26,115,232,.22);border-color:rgba(26,115,232,.35)}

.cf-btn{
  justify-self:start;
  border:0;
  border-radius:14px;
  padding:.85rem 1.2rem;
  background:linear-gradient(180deg,#2f1b10,#1f120a);
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,.14);
}
.cf-btn:hover{filter:brightness(.98)}
.cf-help{margin:.1rem 0 0;color:var(--muted);font-weight:650}

.map-embed{margin-top:.65rem;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.14)}
.map-embed iframe{width:100%;height:auto;min-height:260px;aspect-ratio:16/9;border:0;display:block}

/* Breadcrumbs */
.breadcrumbs{color:var(--muted);font-weight:700;font-size:.95rem;margin:.35rem 0 1rem}
.breadcrumbs a{text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed;right:16px;bottom:16px;
  display:flex;align-items:center;gap:.6rem;
  background:#25D366;color:#fff;
  padding:.75rem .95rem;border-radius:999px;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
  text-decoration:none;
  z-index:60;
}
.whatsapp-float:hover{text-decoration:none;filter:brightness(.98)}
.whatsapp-tooltip{display:none;font-weight:900;color:#083a1f;background:rgba(255,255,255,.92);padding:.35rem .55rem;border-radius:.8rem}
@media (min-width: 900px){.whatsapp-float:hover .whatsapp-tooltip{display:inline-block}}

/* =========================================================
   Lightbox modal (global standard)
   ========================================================= */

body.lb-open{overflow:hidden}

/* ---------------------------------------------------------
   Global Lightbox (Product Gallery) — Professional Modal
   - Contain images (no over-zoom)
   - Always-visible close button
   - Keyboard + overlay click support via site.js
--------------------------------------------------------- */
.lb-overlay{
  position:fixed;
  inset:0;
  background:rgba(17,12,7,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:16px;
}
.lb-overlay.is-open{display:flex}

.lb-modal{
  width:min(1100px,100%);
  max-height:92vh;
  background:var(--surface);
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
}

.lb-close{
  position:absolute;
  top:12px; right:12px;
  width:44px; height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.60);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:5;
}
.lb-close:hover{filter:brightness(1.05)}

.lb-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.55);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:4;
}
.lb-prev{left:12px}
.lb-next{right:12px}
.lb-arrow:hover{filter:brightness(1.05)}

.lb-stage{
  flex:1 1 auto;
  min-height:0;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 18px 10px 18px;
  touch-action:none; /* allow custom pinch/drag */
}

.lb-img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  transform-origin:center center;
  user-select:none;
  -webkit-user-drag:none;
  opacity:0;
  transition:opacity .15s ease;
}
.lb-img.is-ready{opacity:1}

.lb-thumbs{
  background:rgba(0,0,0,.06);
  border-top:1px solid rgba(255,255,255,.10);
  padding:12px 14px;
  display:flex;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.lb-thumb{
  border:1px solid rgba(255,255,255,.18);
  background:transparent;
  border-radius:14px;
  padding:0;
  cursor:pointer;
  overflow:hidden;
  flex:0 0 auto;
  width:84px;
  height:62px;
}
.lb-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.lb-thumb.is-active{
  outline:3px solid rgba(26,115,232,.28);
  outline-offset:2px;
}

.lb-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.lb-title{
  font-weight:600;
  font-size:.95rem;
  opacity:.9;
}
.lb-controls{
  display:flex;
  gap:8px;
}
.lb-btn{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.06);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}
.lb-btn:hover{filter:brightness(1.03)}

@media (max-width: 520px){
  .lb-modal{border-radius:18px}
  .lb-stage{padding:14px 12px 8px 12px}
  .lb-thumb{width:74px;height:54px}
  .lb-arrow{width:42px;height:42px}
  .lb-close{width:40px;height:40px}
}


.lb-bar{
  display:flex;align-items:center;justify-content:space-between;
  gap:.5rem;
  padding:.75rem .9rem;
  border-top:1px solid var(--line);
  background:var(--surface);
}
.lb-title{color:var(--muted);font-weight:800;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-controls{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}

.lb-btn{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  padding:.5rem .7rem;
  cursor:pointer;
  font-weight:900;
}
.lb-btn:hover{filter:brightness(.99)}
.lb-btn:focus{outline:3px solid rgba(26,115,232,.22);outline-offset:2px}

.lb-close{
  position:absolute;top:10px;right:10px;
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55);
  color:#fff;
  cursor:pointer;
  display:grid;place-items:center;
  z-index:3;
}
.lb-close:hover{filter:brightness(1.03)}

.lb-arrow{
  position:absolute;top:50%;
  transform:translateY(-50%);
  width:48px;height:48px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.55);
  color:#fff;
  cursor:pointer;
  display:grid;place-items:center;
  z-index:3;
}
.lb-arrow:hover{filter:brightness(1.03)}
.lb-prev{left:10px}
.lb-next{right:10px}

@media (max-width: 520px){
  .lb-stage{min-height:0;}
  .lb-title{display:none}
  .lb-thumb img{width:64px;height:48px}
}

/* --- RFQ block (product pages) --- */
.rfq-reassure{
  padding:14px 14px;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:18px;
  margin-bottom:14px;
}
.rfq-reassure p{line-height:1.6}

.rfq-reassure{
  padding:14px 14px;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:18px;
  margin-bottom:14px;
}
.rfq-reassure p{line-height:1.6}

.rfq-section{margin-top:2rem}
.rfq-grid{gap:1.25rem}
.rfq-list{margin:0;padding-left:1.1rem}
.rfq-list li{margin:.35rem 0}

/* --- Conceptual illustrations (OEM page) --- */
.illustration{width:100%;height:auto;max-width:100%;display:block}
.figure-caption{font-size:.95rem;color:rgba(47,27,16,.72);margin-top:.5rem}

/* Related topics (internal links to Guides) */
.related-topics{
  margin-top:28px;
  padding:18px 18px;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:18px;
}
.related-topics h2{
  margin:0 0 10px;
  font-size:1.1rem;
}
.link-list{
  margin:0;
  padding-left:18px;
}
.link-list li{ margin:6px 0; }
@media (min-width: 860px){
  .related-topics .link-list{
    columns:2;
    column-gap:28px;
  }
  .related-topics .link-list li{
    break-inside:avoid;
  }
}


/* --- v6 responsive + related topics polish --- */
.footer-bottom{ text-align:center; }

.related-topics .section-title{ margin:0; }
.related-topics-list{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 16px;
}
.related-topics-list a{
  display:block;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.related-topics-list a:hover{ filter:brightness(0.98); }

@media (max-width: 880px){
  .footer-grid{ grid-template-columns:1fr; }
  .related-topics{ padding:16px 14px; }
  .related-topics-list{ grid-template-columns:1fr; }
}


/* Accessibility */
.skip-link{position:absolute;left:-999px;top:12px;padding:.6rem .9rem;background:var(--ink);color:#fff;border-radius:.5rem;z-index:9999}
.skip-link:focus{left:12px;outline:2px solid #fff;outline-offset:2px}
:focus-visible{outline:2px solid rgba(176,141,87,.75);outline-offset:3px}

/* Buttons */

.btn-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.btn.btn-secondary{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn.btn-secondary:hover{border-color:rgba(176,141,87,.6);box-shadow:0 10px 22px rgba(0,0,0,.10)}



/* Category cards on Home: match product card proportions */
.product-category-grid{gap:1rem}
.category-card{
  display:block;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:calc(var(--radius) + 2px);
  overflow:hidden;
  box-shadow:0 10px 20px rgba(0,0,0,.14);
  text-decoration:none;
  color:inherit;
}
.category-media{aspect-ratio:16/10; overflow:hidden; background:rgba(0,0,0,.04)}
.category-media img{width:100%; height:100%; object-fit:cover; display:block}
.category-body{padding:.9rem}
.category-title{font-size:1.05rem; margin:.1rem 0 .35rem; line-height:1.25}
.category-desc{color:var(--muted); margin:0 0 .65rem}
.category-cta{display:inline-block}

/* Products page enhancements */
.spec-snapshot{margin:.75rem 0 1rem; padding:.9rem 1rem; border:1px solid var(--line); border-radius:18px; background:rgba(176,141,87,.06)}
.micro-spec{margin:.4rem 0 0; padding-left:1.15rem}
.micro-spec li{margin:.2rem 0}
.card-actions{display:flex; flex-wrap:wrap; gap:.55rem}
.related-links{padding-left:1.15rem}
.related-links li{margin:.25rem 0}

/* Next steps block */
.next-steps ul{padding-left:1.15rem}

/* === Mobile fit patch (screen overflow + broken boxes) === */
html, body{max-width:100%; overflow-x:hidden;}
/* Tables and long strings should wrap instead of forcing horizontal scroll */
.table{table-layout:fixed;}
.table th, .table td{word-break:break-word;}
/* Safety: prevent any component from exceeding viewport */
img, video, iframe{max-width:100%;}

/* =========================================================


/* =========================================================
   Mobile Fit Patch v2026-01-07b
   Fixes: header fit, hero chip overflow, home category card sizing,
   WhatsApp floating button icon visibility + safe spacing
   ========================================================= */

/* Safer container: avoid 92vw rounding overflow on iOS */
.container{width:min(1120px, calc(100% - 32px));}

/* Prevent any flex/grid child from forcing overflow */
.grid > *, .header-row > *, .hero > *{min-width:0}

/* Header: make logo + menu fit cleanly on very small screens */
@media (max-width: 480px){
  .header-row{gap:.65rem; padding:.65rem 0;}
  .brand{min-width:0;}
  .brand-logo{height:44px; max-width:170px;}
  .menu-toggle{padding:.5rem .65rem;}
}
@media (max-width: 380px){
  .brand-logo{height:40px; max-width:150px;}
  .menu-toggle-label{display:none;}
  .menu-toggle{gap:0; padding:.55rem .65rem;}
}

/* Hero chips/pills: never overflow */
.badges{max-width:100%;}
.badge{flex:0 1 auto; min-width:0; max-width:100%;}

/* Home product category cards: reduce image dominance on mobile */
@media (max-width: 600px){
  .product-category-grid{gap:.9rem;}
  .category-media{aspect-ratio:16/7;} /* shorter image */
  .category-body{padding:.85rem;}
  .category-title{font-size:1.08rem;}
  .category-desc{font-size:1rem; line-height:1.45;}
}

/* WhatsApp floating button: circular, correct visible logo, safe-area spacing */
.whatsapp-float{
  right:max(18px, env(safe-area-inset-right) + 18px);
  bottom:max(18px, env(safe-area-inset-bottom) + 18px);
  padding:0;
  width:56px;
  height:56px;
  border-radius:50%;
  justify-content:center;
  gap:0;
}
.whatsapp-float img{width:28px; height:28px;}

/* Tooltip off on mobile to avoid overlap */
@media (max-width: 899px){
  .whatsapp-tooltip{display:none !important;}
}

/* --- Mobile-first fixes v2 (home cards + categories + map embed) --- */
.card{max-width:100%; overflow:hidden}

.map-iframe{width:100%; max-width:100%; border:0; border-radius:var(--radius); display:block}

@media (max-width: 700px){
  /* Product categories on home: match product-card sizing */
  .product-category-grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem}
  .category-card{min-width:0}
  .category-media img{height:120px}
  .category-body{padding:.75rem}
  .category-title{font-size:1.02rem}
  .category-desc{font-size:.95rem}
}

@media (max-width: 380px){
  .product-category-grid{grid-template-columns:1fr}
  .category-media img{height:140px}
}


/* Buyer-first trust blocks */
.checklist{list-style:none;padding-left:0}
.checklist li{position:relative;padding-left:1.5rem;margin:.45rem 0}
.checklist li:before{content:"✓";position:absolute;left:0;top:0}

/* OEM info definition list */
.spec-dl{display:grid;grid-template-columns:160px 1fr;gap:.5rem 1rem;margin:0}
.spec-dl dt{font-weight:700;color:#3a2f29}
.spec-dl dd{margin:0;color:#1f1a16}
@media (max-width:600px){
  .spec-dl{grid-template-columns:1fr}
  .spec-dl dt{margin-top:.75rem}
  .spec-dl dt:first-child{margin-top:0}
}



/* =========================================================
   PATCH — Mobile overflow + header fit (2026-01-07)
   Goal: eliminate horizontal scroll + prevent text/image overflow
   ========================================================= */

html, body{overflow-x:hidden;}
img, svg, video, canvas{max-width:100%; height:auto;}
iframe{max-width:100%;}
/* Prevent long strings (emails/model codes) from blowing up cards */
.card, .category-card, .pill, .nav-link, .footer-text, .footer-list, .hero, .section, p, li{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Header: reduce cramped feel on small screens without redesign */
@media (max-width: 520px){
  .header-row{padding:.7rem 0; gap:.6rem;}
  .brand-logo{height:46px;}
  .menu-toggle{padding:.5rem .65rem;}
}
@media (max-width: 420px){
  .menu-toggle-label{display:none;}
  .brand-logo{height:42px;}
}

/* Home category grid: 2 cols on medium phones, 1 col on small phones */
@media (max-width: 480px){
  .product-category-grid{grid-template-columns:1fr; gap:.85rem;}
  .category-media img{height:150px;}
}

/* Product grids: prevent 3-column squeeze/overflow on small screens */
@media (max-width: 520px){
  .grid.grid-3{grid-template-columns:1fr;}
}


/* Button groups: stable wrap on iOS Safari */
.btn-group,.hero-cta{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin-top:1rem}
.btn-group .btn,.hero-cta .btn{margin:0}

/* Prevent margin-collapse between header and first section */
.site-main{padding-top:.75rem}

/* Reduce layout shift on iOS Safari when address bar expands */
.hero{overflow:hidden}


/* --- iOS Safari viewport-safe layout fixes (2026-01-08) --- */

/* Hero card width + padding (content-driven height; no viewport-units) */
.hero.hero-card{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  box-sizing:border-box;
}

/* Tags / pills: controlled wrapping (prevents Safari height inflation) */
.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hero-tags .badge,
.hero-tags span{
  white-space:nowrap;
  overflow-wrap:normal;
}

/* CTA stack on mobile */
.hero-cta{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:1rem;
}
.hero-cta .btn,
.hero-cta a,
.hero-cta button{
  width:100%;
}
@media (min-width:600px){
  .hero-cta{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
  }
  .hero-cta .btn,
  .hero-cta a,
  .hero-cta button{
    width:auto;
  }
}


/* === Guides card grid (layout-only; theme inherits existing variables) === */
.guides-section{max-width:1100px;margin:0 auto;padding:1.25rem 1rem}
.guides-intro{max-width:70ch;margin:.4rem 0 1rem 0;opacity:.92}
.guides-grid{display:grid;grid-template-columns:1fr;gap:1rem}
@media (min-width:640px){.guides-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:980px){.guides-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.guide-card{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.guide-card__link{display:block;padding:1rem 1rem 1.05rem 1rem;text-decoration:none}
.guide-badge{display:inline-flex;align-items:center;gap:.35rem;font-size:.78rem;padding:.2rem .55rem;border-radius:999px;border:1px solid rgba(0,0,0,.12);opacity:.9;margin-bottom:.65rem}
.guide-title{margin:.1rem 0 .55rem 0;font-size:1.05rem;line-height:1.25}
.guide-excerpt{margin:0 0 .8rem 0;line-height:1.5;opacity:.92}
.guide-cta{display:inline-block;font-weight:600}

/* === Footer social (subtle; no embeds) === */
.footer-social{margin-top:.75rem}
.footer-social__label{font-weight:600;margin-bottom:.35rem}
.footer-social__list{list-style:none;padding:0;margin:0;display:flex;gap:.75rem;flex-wrap:wrap}
.footer-social__link{text-decoration:none;border-bottom:1px solid transparent}
.footer-social__link:hover{border-bottom-color:currentColor}


/* --- Lightbox hardening: always-visible controls + correct fit (2026-01-12) --- */
.lb-overlay{ z-index:5000; }
.lb-modal{ max-height: calc(100vh - 32px); }
.lb-stage{ position:relative; z-index:1; max-height: calc(100vh - 220px); }
.lb-img{ max-width:100%; max-height:100%; object-fit:contain; }
.lb-close{ z-index:50; }
.lb-arrow{ z-index:40; }

/* Ensure Close (✕) is visible even when the modal is taller than the viewport at
   default browser zoom (100%). When the modal top is slightly off-screen,
   an absolutely-positioned close button can be clipped. Fix by pinning it
   to the viewport while the overlay is open. */
.lb-overlay.is-open .lb-close{
  position:fixed;
  top:16px;
  right:16px;
  z-index:6000;
}
@media (max-width:520px){
  .lb-overlay.is-open .lb-close{ top:12px; right:12px; }
}


/* --- Footer social icons (2026-01-12) --- */
.footer-social-icons{ display:flex; gap:10px; margin-top:6px; }
.footer-social-icons .social-ico{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid rgba(255,255,255,.14); border-radius:12px; color:var(--text); background:rgba(0,0,0,.10); text-decoration:none; opacity:.92; }
.footer-social-icons .social-ico:hover{ opacity:1; transform: translateY(-1px); }


/* --- Lightbox close button (fixed, unclipped) --- */
.lb-close-fixed{
  position:fixed !important;
  top:16px !important;
  right:16px !important;
  z-index:7000 !important;
}
@media (max-width:520px){
  .lb-close-fixed{ top:12px !important; right:12px !important; }
}

/* Prevent accidental blank bullets */
.link-list li:empty{display:none;}


/* =========================================================
   UI/UX Refresh (2026-02-23)
   Goals: better readability, stronger hierarchy, premium cards,
   cleaner legal pages, and stable header CTA on all screens.
   ========================================================= */

body{
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16.5px;
  color: #2c2c2c;
  background-color: #faf7f2;
  line-height: 1.6;
}

h1, h2, h3, h4{
  color: #5a3e2b;
}

/* Keep content comfortable on wide desktops */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Navigation stability (desktop) */
.site-nav{
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-cta{
  white-space: nowrap;
}

/* New card styling (upgrade contrast + depth) */
.lci-card{
  background: #ffffff;
  border: 1px solid #e8e0d5;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lci-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  border-color: #c9a87c;
}

/* Legal pages (Privacy / Terms / Imprint) */
.legal-page{
  background-color: #f9f5f0;
}
.legal-page .content-container{
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  border: 1px solid #e8e0d5;
}
.legal-page h2{
  border-bottom: 2px solid #c9a87c;
  padding-bottom: 10px;
  margin-top: 30px;
}

/* Mobile typography + spacing */
@media (max-width: 768px){
  body{ font-size: 16px; }
  .legal-page .content-container{ padding: 22px; }
}

/* Floating buttons: keep clickable and not clipped */
.oem-trigger, .whatsapp-float{
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 768px){
  .oem-trigger, .whatsapp-float{
    bottom: calc(15px + env(safe-area-inset-bottom));
    right: 15px;
  }
}

/* UI/UX Refresh: card parity for guide pages */
.card{
  background:#ffffff;
  border:1px solid #e8e0d5;
  border-radius:20px;
  padding:1.5rem;
  box-shadow:0 8px 20px rgba(0,0,0,0.04);
}


/* === LCI PATCH v2: header/hero safety fixes (non-destructive) === */
.site-nav .nav-cta { white-space: nowrap; }

/* Avoid clipped hero text */
.hero, .page-hero, .hero-inner, .hero-content {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.page-hero h1, .hero h1 {
  font-size: clamp(1.6rem, 2.6vw + 0.5rem, 3.2rem);
  line-height: 1.12;
}



/* === LCI PATCH v3: Trust/QC blocks (theme-safe) === */
.trust-qc h2 { margin-top: 0; }
.trust-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
.trust-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 16px; }
.trust-card h3 { margin-top: 0; }
.trust-note { margin-top: 10px; opacity: 0.9; }
@media (min-width: 768px){ .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

