/*
 * ============================================================
 *  overrides.css  — Webley Perú
 *  Fully separated Desktop vs Mobile styles.
 *
 *  HOW TO USE:
 *  - Edit DESKTOP styles inside @media(min-width:769px){ ... }
 *  - Edit MOBILE styles inside  @media(max-width:768px){ ... }
 *  - Changes in one block will NEVER affect the other.
 * ============================================================
 */


/* ============================================================
   DESKTOP ONLY  (≥ 769px)
   ============================================================ */
@media(min-width:769px){

  /* ── Topbar ── */
  .topbar{
    font-size:13px;
    padding:9px 24px;
  }

  /* ── Nav ── */
  .nav-wrap{
    padding:0 24px;
    height:68px;
  }
  .nav-links{
    display:flex !important;
  }
  .mob-menu-btn{
    display:none !important;
  }

  /* ── Hero ── */
  .hero{
    height:460px;
  }
  .hero-slide{
    padding:0 60px;
  }
  .hero h1,
  .hero-slide-2 h2,
  .hero-slide-3 h2,
  .hero-h1-style{
    font-size:clamp(2.6rem,5.5vw,4.2rem);
    letter-spacing:-1.5px;
  }
  .hero p{
    font-size:1.08rem;
    margin-bottom:36px;
  }
  .hero-btns{
    flex-direction:row;
    gap:14px;
  }
  .btn-primary,
  .btn-ghost{
    font-size:15px;
    padding:15px 36px;
    width:auto;
    max-width:none;
  }
  .hero-arrow{
    width:50px;
    height:50px;
    font-size:22px;
  }
  .hero-arrow-prev{ left:20px; }
  .hero-arrow-next{ right:20px; }

  /* ── Catalog layout (sidebar + grid) ── */
  .catalog-layout{
    grid-template-columns:260px 1fr;
    gap:28px;
  }
  .cat-sidebar{
    display:block !important;
  }
  #prod-grid{
    grid-template-columns:repeat(3,1fr);
    gap:16px;
  }
  .pcard-img-wrap{
    height:300px;
  }
  .pcard-body{
    padding:14px;
  }
  .pcard-name{
    font-size:13.5px;
  }
  .wa-card-btn{
    font-size:12px;
    padding:9px 12px;
  }

  /* ── Features grid ── */
  .feat-grid{
    grid-template-columns:repeat(4,1fr);
  }

  /* ── Featured categories ── */
  .feat-cats-grid{
    grid-template-columns:repeat(4,1fr);
    gap:20px;
  }
  .feat-cat-img-wrap{
    height:260px;
  }
  .feat-cat-body h3{
    font-size:15px;
  }
  .feat-cat-body p{
    display:block;
  }

  /* ── Hot / marquee cards ── */
  .hot-section{
    padding:60px 24px;
  }
  .hot-head h2{
    font-size:2.2rem;
  }
  .hot-card{
    min-width:180px;
    flex:0 0 180px;
    width:180px;
  }
  .hot-card-img{
    height:180px;
    padding:8px;
  }
  .hot-prev{ left:-20px; }
  .hot-next{ right:-20px; }

  /* ── Why section ── */
  .why-grid{
    grid-template-columns:repeat(3,1fr);
  }

  /* ── Benefits section ── */
  .benefits-grid{
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }
  .benefit-card{
    padding:32px 24px;
  }
  .benefit-icon{
    width:64px;
    height:64px;
    font-size:28px;
    margin-bottom:18px;
  }

  /* ── Atención / Contact section ── */
  .atencion-section{
    padding:28px 24px;
  }
  .atencion-grid{
    grid-template-columns:repeat(3,1fr);
    gap:18px;
  }

  /* ── Shop page grid ── */
  .shop-grid,
  .related-grid{
    grid-template-columns:repeat(3,1fr);
    gap:16px;
  }
  .shop-layout{
    display:grid !important;
  }
  #page-shop .cat-sidebar{
    display:block !important;
  }

  /* ── Product detail ── */
  .product-detail{
    grid-template-columns:1fr 1fr;
    gap:48px;
  }
  .pd-gallery{
    position:sticky;
    top:90px;
  }
  .pd-trust{
    grid-template-columns:repeat(3,1fr);
  }

  /* ── Page hero (inner pages) ── */
  .page-hero{
    padding:60px 24px 56px;
  }
  .page-hero-inner{
    grid-template-columns:1.5fr 1fr;
    gap:48px;
  }
  .page-hero-stats{
    grid-template-columns:repeat(3,1fr);
    gap:12px;
  }
  .ph-stat{ padding:18px 12px; }
  .ph-stat .n{ font-size:1.7rem; }

  /* ── Promo banner ── */
  .promo-banner-section{
    padding:20px 24px 50px;
  }
  .promo-banner-card{
    grid-template-columns:1fr auto;
    min-height:220px;
  }
  .promo-banner-left{
    padding:40px 48px;
  }
  .promo-banner-left h2{
    font-size:clamp(1.6rem,2.8vw,2.2rem);
  }
  .promo-banner-right{
    display:block;
  }
  .promo-banner-btns{
    flex-direction:row;
    gap:12px;
  }

  /* ── Search banner ── */
  .search-banner-section{
    padding:32px 24px 28px;
  }
  .search-banner-inner{
    grid-template-columns:1fr 1.8fr;
    gap:40px;
  }
  .search-banner-text{
    display:block;
  }

  /* ── About / MVV / Brands ── */
  .about-grid{
    grid-template-columns:1.4fr 1fr;
    gap:64px;
  }
  .mvv-grid{
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }
  .brand-grid{
    grid-template-columns:repeat(6,1fr);
    gap:14px;
  }
  .why-grid-about{
    grid-template-columns:repeat(3,1fr);
  }

  /* ── Contact page ── */
  .contact-grid,
  .contact-page-grid{
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .contact-form-card,
  .cta-card{
    padding:36px 32px;
  }
  .cf-row{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  /* ── Support section ── */
  .support-grid{
    grid-template-columns:repeat(3,1fr);
    gap:24px;
  }

  /* ── SEO content ── */
  .seo-content-grid{
    grid-template-columns:repeat(3,1fr);
    gap:32px;
  }
  .faq-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }

  /* ── Mobile-only UI: hide on desktop ── */
  .mob-filter-bar{
    display:none !important;
  }
  .mob-drawer,
  .mob-overlay,
  .mob-filter-sheet,
  .mob-filter-overlay{
    display:none !important;
  }

  /* ── Footer DESKTOP ── */
  footer{
    padding:50px 24px 26px;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:42px;
    margin-bottom:40px;
  }
  .footer-brand p{
    font-size:13px;
    line-height:1.75;
    color:#93c5fd;
  }
  .footer-brand p:nth-child(3){
    font-size:12px !important;
    color:#60a5fa !important;
    margin-top:8px;
  }
  .footer-brand p:nth-child(3) a{
    color:#60a5fa !important;
  }
  .footer-brand-img{
    height:44px;
    max-width:190px;
    background:#fff;
    border-radius:6px;
    padding:3px 8px;
  }
  .foot-col h4{
    font-size:11px;
    margin-bottom:13px;
  }
  .foot-col ul li a{
    font-size:13px;
  }
  .footer-bottom{
    flex-direction:row;
    align-items:center;
    padding-top:20px;
    gap:10px;
  }
  .footer-bottom p{
    font-size:12px;
  }
  .footer-bottom-logo{
    height:28px;
  }
  .footer-cols-wrap{
    display:contents; /* behaves as part of the grid */
  }

  /* ── WhatsApp float ── */
  .wa-float{
    bottom:20px;
    right:28px;
    padding:14px 22px 14px 18px;
    font-size:14px;
    border-radius:50px;
  }
  .wa-float-label{
    display:inline;
  }

} /* end @media min-width:769px */


/* ── HIDE "Equipos Médicos en Lima" SEO section on homepage (moved to blog) — ALL screens ── */
html body section[style*="background:var(--off)"][style*="border-top:1px solid var(--border)"]{
  display:none !important;
}

/* ============================================================
   MOBILE ONLY  (≤ 768px)
   ============================================================ */
@media(max-width:768px){

  /* ── Topbar ── */
  .topbar{
    font-size:10.5px;
    padding:5px 12px;
    text-align:center;
    flex-wrap:wrap;
    line-height:1.5;
  }

  /* ── Nav ── */
  .nav-wrap{
    padding:0 14px;
    height:56px;
  }
  .nav-links{
    display:none !important;
  }
  .mob-menu-btn{
    display:flex !important;
  }

  /* ── Hero ── */
  .hero{
    height:auto !important;
    min-height:440px;
  }
  .hero-slide{
    padding:44px 18px 70px !important;
    text-align:center !important;
  }
  .hero h1,
  .hero-slide-2 h2,
  .hero-slide-3 h2,
  .hero-h1-style{
    font-size:clamp(1.6rem,6.5vw,2.4rem) !important;
    letter-spacing:-.5px !important;
    margin-bottom:12px !important;
  }
  .hero p{
    font-size:.88rem !important;
    margin-bottom:20px !important;
    max-width:100% !important;
  }
  .hero-btns{
    flex-direction:column !important;
    gap:10px !important;
    align-items:center !important;
    width:100%;
  }
  .btn-primary,
  .btn-ghost{
    width:100% !important;
    max-width:280px !important;
    justify-content:center !important;
    padding:13px 20px !important;
    font-size:14px !important;
  }
  .hero-stats,
  .hero-right{
    display:none !important;
  }
  .hero-arrow{
    width:34px !important;
    height:34px !important;
    font-size:15px !important;
  }
  .hero-arrow-prev{ left:8px !important; }
  .hero-arrow-next{ right:8px !important; }

  /* ── Catalog layout ── */
  .catalog-section{
    padding:26px 14px !important;
  }
  .catalog-layout{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .cat-sidebar{
    display:none !important;
  }
  #prod-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .pcard-img-wrap{
    height:200px !important;
  }
  .pcard-body{
    padding:10px 10px 12px !important;
  }
  .pcard-name{
    font-size:12.5px !important;
  }
  .wa-card-btn{
    font-size:11.5px !important;
    padding:9px 8px !important;
  }
  .mob-filter-bar{
    display:flex !important;
  }

  /* ── Features grid ── */
  .feat-grid{
    grid-template-columns:repeat(2,1fr);
  }

  /* ── Featured categories ── */
  .feat-cats-section{
    padding:26px 14px !important;
  }
  .feat-cats-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .feat-cat-img-wrap{
    height:165px !important;
    padding:10px !important;
  }
  .feat-cat-body h3{
    font-size:12.5px !important;
  }
  .feat-cat-body p{
    display:none !important;
  }

  /* ── Hot / marquee cards ── */
  .hot-section{
    padding:28px 14px !important;
  }
  .hot-head h2{
    font-size:1.25rem !important;
  }
  .hot-card{
    min-width:155px !important;
    flex:0 0 155px !important;
    width:155px !important;
  }
  .hot-card-img{
    height:175px !important;
    padding:10px !important;
  }
  .hot-prev{ left:-10px !important; }
  .hot-next{ right:-10px !important; }

  /* ── Why section ── */
  .why-section{
    padding:24px 14px !important;
  }
  .why-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  /* ── Benefits section ── */
  .benefits-section{
    padding:26px 14px !important;
  }
  .benefits-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .benefit-card{
    padding:18px 14px !important;
  }
  .benefit-icon{
    width:44px !important;
    height:44px !important;
    font-size:20px !important;
    margin-bottom:10px !important;
  }

  /* ── Atención section ── */
  .atencion-section{
    padding:28px 14px !important;
  }
  .atencion-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .atencion-card{
    padding:20px 16px !important;
  }

  /* ── Shop page ── */
  .shop-grid,
  .related-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .shop-layout{
    display:block !important;
  }
  #page-shop .cat-sidebar{
    display:none !important;
  }

  /* ── Product detail ── */
  .product-detail{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  .pd-gallery{
    position:static !important;
    top:auto;
  }
  .pd-trust{
    grid-template-columns:1fr 1fr !important;
  }

  /* ── Page hero (inner pages) ── */
  .page-hero{
    padding:22px 14px 16px !important;
  }
  .page-hero-inner{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .page-hero-stats{
    grid-template-columns:repeat(3,1fr) !important;
    gap:6px !important;
  }
  .ph-stat{
    padding:10px 6px !important;
  }
  .ph-stat .n{
    font-size:1.3rem !important;
  }

  /* ── Promo banner ── */
  .promo-banner-section{
    padding:8px 14px 20px !important;
  }
  .promo-banner-card{
    grid-template-columns:1fr !important;
    min-height:auto !important;
  }
  .promo-banner-left{
    padding:24px 20px !important;
  }
  .promo-banner-left h2{
    font-size:1.3rem !important;
  }
  .promo-banner-right{
    display:none !important;
  }
  .promo-banner-btns{
    flex-direction:column !important;
    gap:8px !important;
  }

  /* ── Search banner ── */
  .search-banner-section{
    padding:16px 14px 14px !important;
  }
  .search-banner-inner{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  .search-banner-text{
    display:none !important;
  }

  /* ── About / MVV / Brands ── */
  .about-grid{
    grid-template-columns:1fr !important;
    gap:20px !important;
  }
  .mvv-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .brand-grid{
    grid-template-columns:repeat(3,1fr) !important;
    gap:8px !important;
  }
  .why-grid-about{
    grid-template-columns:1fr !important;
  }

  /* ── Contact page ── */
  .contact-grid,
  .contact-page-grid{
    grid-template-columns:1fr !important;
    gap:20px !important;
  }
  .contact-form-card,
  .cta-card{
    padding:22px 18px !important;
  }
  .cf-row{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  /* ── Support section ── */
  .support-grid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  /* ── SEO content ── */
  .seo-content-grid{
    grid-template-columns:1fr;
  }
  .faq-grid{
    grid-template-columns:1fr;
  }

  /* ── Footer MOBILE ── */
  footer{
    padding:22px 14px 16px !important;
  }
  .footer-grid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }
  .footer-brand p{
    font-size:11.5px !important;
    line-height:1.6 !important;
  }
  .footer-brand-img{
    height:26px !important;
    max-width:90px !important;
  }
  .footer-cols-wrap{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .footer-cols-contact{
    border-top:1px solid rgba(255,255,255,.08) !important;
    padding-top:14px !important;
    margin-top:4px !important;
  }
  .footer-bottom{
    flex-direction:column !important;
    gap:6px !important;
    align-items:center !important;
    text-align:center !important;
    padding-top:12px !important;
  }
  .footer-bottom p{
    font-size:10.5px !important;
  }
  .footer-bottom-logo{
    height:18px !important;
  }

  /* ── WhatsApp float ── */
  .wa-float{
    bottom:20px !important;
    right:14px !important;
    padding:13px 18px !important;
    font-size:13.5px !important;
    border-radius:40px !important;
  }
  .wa-float-label{
    display:none;
  }

  /* ── Misc ── */
  .wrap{
    padding:0 14px !important;
    max-width:100% !important;
  }
  .stag{
    font-size:10px !important;
    padding:4px 12px !important;
  }
  section{
    overflow-x:hidden;
  }

} /* end @media max-width:768px */


/* ============================================================
   EXTRA SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media(max-width:480px){
  .hero{
    min-height:400px;
  }
  .hero h1,
  .hero-slide-2 h2,
  .hero-slide-3 h2,
  .hero-h1-style{
    font-size:clamp(1.5rem,6vw,1.9rem) !important;
  }
  #prod-grid,
  .shop-grid,
  .related-grid{
    grid-template-columns:1fr 1fr !important;
  }
  .feat-cats-grid{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .benefits-grid{
    grid-template-columns:1fr 1fr !important;
  }
  .hot-card{
    min-width:140px !important;
    flex:0 0 140px !important;
    width:140px !important;
  }
  .atencion-grid{
    grid-template-columns:1fr !important;
  }
} /* end @media max-width:480px */


/* ============================================================
   WEBLEY MOBILE FIXES v2  (≤ 768px)
   ============================================================ */
@media(max-width:768px){

  /* ── Fix 1: Bigger logo + styled hamburger button ── */
  .new-header-inner > a > img,
  .new-header-inner > a img {
    height: 50px !important;
    width: auto !important;
  }
  .new-mob-btn {
    background: var(--teal) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 22px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    line-height: 1 !important;
  }

  /* ── Fix 2: Hide catalog section heading (replaced by JS category strip) ── */
  #catalogo .wrap > div:first-child {
    display: none !important;
  }

  /* ── Fix 3: Equal-size CTA buttons in Atención section ── */
  .ac-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    min-height: 44px !important;
  }

  /* ── Fix 4: Footer 2-column grid ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 14px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    display: flex !important;
    gap: 8px !important;
  }
  .footer-brand-img {
    height: 30px !important;
    max-width: 110px !important;
  }
  .footer-brand p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }
  .foot-col h4 {
    font-size: 11px !important;
    margin-bottom: 9px !important;
    letter-spacing: 1.5px !important;
  }
  .foot-col ul li a {
    font-size: 13px !important;
  }
  .footer-cols-wrap {
    display: contents !important;
  }

}


/* ── Productos Relacionados: always 4 columns on desktop ── */
@media(min-width:769px){
  .related-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
  }
}


/* ============================================================
   WEBLEY MOBILE FIXES v3  (≤ 768px)
   - Topbar: clean 3-line layout
   - Home drawer (.mdr2-*): fix giant search input/button bug
   ============================================================ */
@media(max-width:768px){

  /* ── FIX A: Topbar 3 stacked lines ──
     Line 1: Envíos · 1362+ productos certificados   (both inline)
     Line 2: 📍 Av. Emancipación 266-101, Lima
     Line 3: 📞 +51 989 051 029 · ✉ info@…
  */
  .topbar{
    padding:8px 10px !important;
    font-size:10.5px !important;
    line-height:1.5 !important;
    text-align:center !important;
  }
  .topbar-inner{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:center !important;
    row-gap:3px !important;
    column-gap:6px !important;
    max-width:100% !important;
  }
  /* Show subtle bullet separator between items on same line */
  .topbar .tb-sep{
    display:inline !important;
    color:rgba(147,197,253,.35) !important;
    margin:0 1px !important;
  }
  .topbar .tb-item{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    line-height:1.4 !important;
    flex:0 0 auto !important;
    white-space:nowrap !important;
  }
  /* Address row → own line (full width forces a wrap before it) */
  .topbar .tb-link[href*="google.com/maps"]{
    flex:0 0 100% !important;
    justify-content:center !important;
  }
  /* Hide the bullet that sits right before the maps link
     (the one that would dangle at end of line 1) */
  .topbar .tb-link[href*="google.com/maps"] + .tb-sep,
  .tb-sep:has(+ .tb-link[href*="google.com/maps"]){
    display:none !important;
  }
  /* Reduce SVG icon size in topbar for mobile */
  .topbar .tb-item svg{
    width:10px !important;
    height:10px !important;
  }
  /* Swap headline to shorter version on mobile (hide original strong,
     inject short text via ::after pseudo-element) */
  .topbar .tb-headline strong{
    display:none !important;
  }
  .topbar .tb-headline::after{
    content:"🚀 Envíos a todo el Perú" !important;
    font-weight:700 !important;
    color:#fff !important;
  }

  /* ── FIX B: Home mobile drawer search (.mdr2-*) ──
     The input was stretching to full row height making the
     "Buscar" button look huge. Cap heights, fix alignment.
  */
  .mdr2-search-row{
    display:flex !important;
    align-items:center !important;
    padding:10px 14px !important;
    gap:0 !important;
    background:#f9fafb !important;
    border-bottom:1px solid #f0f0f0 !important;
    flex-shrink:0 !important;
    min-height:auto !important;
    height:auto !important;
  }
  .mdr2-search-inp{
    flex:1 1 auto !important;
    width:100% !important;
    min-width:0 !important;
    height:42px !important;
    max-height:42px !important;
    line-height:1.3 !important;
    padding:0 12px !important;
    font-size:14px !important;
    border:1.5px solid #e5e7eb !important;
    border-right:none !important;
    border-radius:8px 0 0 8px !important;
    background:#fff !important;
    color:#0f1f3d !important;
    box-sizing:border-box !important;
    outline:none !important;
  }
  .mdr2-search-inp:focus{
    border-color:#1a56db !important;
  }
  .mdr2-search-btn{
    flex:0 0 auto !important;
    width:auto !important;
    height:42px !important;
    max-height:42px !important;
    padding:0 16px !important;
    background:#1a56db !important;
    color:#fff !important;
    border:none !important;
    border-radius:0 8px 8px 0 !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:42px !important;
    cursor:pointer !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }
  /* Make sure suggestions dropdown sits below the row, not inline */
  .mdr2-search-sug{
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    margin:6px 14px 0 !important;
    z-index:10 !important;
  }

  /* ── FIX C: Home drawer unified with rest of site ──
     Home used to have a custom .mdr2-* drawer. We swapped its HTML to use
     the same .mob-drawer-* markup as every other page. But Home still has
     INLINE CSS rules that (a) hide .mob-drawer-head and (b) resize
     .mob-drawer to 300px. Override those here so Home matches shop/etc.
  */
  body .mob-drawer-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    padding:18px 20px !important;
    background:#0f1f3d !important;
    border-bottom:1px solid var(--border) !important;
  }
  body .mob-drawer-head .logo-img,
  body .mob-drawer-head .logo-img-mob{
    height:34px !important;
    width:auto !important;
  }
  body .mob-drawer-close{
    background:rgba(255,255,255,.15) !important;
    border:none !important;
    color:#fff !important;
    width:34px !important;
    height:34px !important;
    border-radius:50% !important;
    font-size:18px !important;
    cursor:pointer !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  body .mob-drawer-close:hover{
    background:rgba(255,255,255,.3) !important;
  }
  /* Force Home drawer to use the standard width/height like other pages */
  body .mob-drawer{
    width:min(320px,88vw) !important;
    height:100% !important;
  }

  /* ── Search button: clean SVG magnifier alignment ── */
  .mob-drawer-search button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:42px !important;
    min-width:48px !important;
    padding:0 14px !important;
    background:#1a56db !important;
    color:#fff !important;
    border:none !important;
    border-radius:8px !important;
    cursor:pointer !important;
  }
  .mob-drawer-search button svg{
    width:18px !important;
    height:18px !important;
    stroke:#fff !important;
    flex-shrink:0 !important;
  }

  /* ── FIX D: Drawer text — bold + bigger ── */
  .mob-drawer-links a{
    font-size:17px !important;
    font-weight:700 !important;
    padding:16px 20px !important;
    color:#0f1f3d !important;
  }
  .mob-cat-toggle{
    font-size:17px !important;
    font-weight:700 !important;
    padding:16px 20px !important;
    color:#0f1f3d !important;
  }
  /* Subcategory items injected by webley-mobile-fixes.js use inline styles,
     so we need !important to win over them */
  .mob-cat-list a,
  .mob-cat-list-item{
    font-size:16px !important;
    font-weight:700 !important;
    padding:14px 20px 14px 36px !important;
    color:#0f1f3d !important;
  }
  /* Make WhatsApp + Llamar footer buttons also a touch bolder */
  .mob-drawer-footer .mob-wa-btn,
  .mob-drawer-footer .mob-call-btn{
    font-size:15px !important;
    font-weight:700 !important;
  }
  /* Drawer logo link wrapper should not look like a hyperlink */
  .mob-drawer-head a{
    text-decoration:none !important;
    display:inline-flex !important;
    align-items:center !important;
  }

  /* ───────────────────────────────────────────────────────────
   *  NAV SEARCH BAR — mobile, all pages
   *  Injected by webley-mobile-fixes.js on every page that
   *  doesn't already have it (only index.html has it inline).
   *  Mirrors the inline rules used on index.html.
   * ─────────────────────────────────────────────────────────── */
  .nav-srch{
    display:flex !important;
    flex:1 !important;
    align-items:center !important;
    position:static !important;
    min-width:0 !important;
    margin:0 8px !important;
  }
  .nav-srch input{
    flex:1;
    height:36px;
    border:1.5px solid #bfdbfe;
    border-radius:9px;
    padding:0 14px;
    font-size:13px;
    font-family:inherit;
    outline:none;
    background:#f0f5ff;
    color:#0f1f3d;
    min-width:0;
  }
  .nav-srch input:focus{
    border-color:#1a56db;
    background:#fff;
  }
  .nav-srch-sug{
    position:absolute !important;
    top:calc(100% + 4px) !important;
    left:8px !important;
    right:8px !important;
    z-index:9996;
    background:#fff;
    border:1px solid #bfdbfe;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    max-height:340px;
    overflow-y:auto;
    display:none;
  }

  /* ───────────────────────────────────────────────────────────
   *  ATENCIÓN AL CLIENTE — mobile, all pages
   *  Mirrors shop.html's mobile @media rules exactly so home,
   *  about, blog, contact, product-detail and every categoria-*
   *  page render the section identically on phones.
   *  Uses `html body` to win specificity over `body .atencion-*`
   *  inline rules present in some pages (e.g. index.html).
   * ─────────────────────────────────────────────────────────── */
  html body .atencion-section{
    padding:18px 12px !important;
  }
  html body .atencion-head{
    text-align:center !important;
    margin-bottom:14px !important;
  }
  html body .atencion-head h2{
    font-size:.95rem !important;
    line-height:1.3 !important;
    margin-bottom:6px !important;
  }
  html body .atencion-head p{
    display:none !important;
  }
  html body .atencion-tag{
    font-size:9px !important;
    padding:4px 12px !important;
    margin-bottom:6px !important;
  }
  html body .atencion-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  html body .atencion-card{
    padding:14px 10px !important;
    border-radius:12px !important;
    text-align:center !important;
  }
  html body .atencion-card:last-child{
    grid-column:1 / -1 !important;
  }
  html body .atencion-card > p{
    display:none !important;
  }
  html body .atencion-card h3{
    font-size:.85rem !important;
    margin-bottom:3px !important;
    text-align:center !important;
  }
  html body .atencion-card .ac-number{
    font-size:.75rem !important;
    line-height:1.4 !important;
    margin-bottom:6px !important;
    word-break:break-word !important;
  }
  html body .atencion-card .ac-hours{
    font-size:9px !important;
    margin-bottom:6px !important;
  }
  html body .ac-icon-wrap{
    width:40px !important;
    height:40px !important;
    margin:0 auto 8px !important;
    font-size:18px !important;
    border-radius:10px !important;
  }
  html body .ac-btn{
    padding:9px 10px !important;
    font-size:12px !important;
    margin-top:4px !important;
    width:100% !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:5px !important;
    border-radius:10px !important;
    min-height:auto !important;
  }

  /* ───────────────────────────────────────────────────────────
   *  FOOTER — mobile, all pages
   *  Mirrors shop.html's mobile footer so home matches shop.
   *  The 2-column grid layout itself is also enforced by
   *  webley-mobile-fixes.js Fix 4 (defense in depth).
   * ─────────────────────────────────────────────────────────── */
  html body footer{
    padding:22px 14px 14px !important;
  }
  html body .footer-grid{
    grid-template-columns:1fr 1fr !important;
    gap:14px 18px !important;
    margin-bottom:16px !important;
  }

  /* ── REDUCE "¿Por qué Webley?" section height ── */
  html body .why-section{
    padding:20px 14px !important;
  }
  html body .why-section .sec-head{
    margin-bottom:14px !important;
  }
  html body .why-section .sec-head h2{
    font-size:1rem !important;
    line-height:1.3 !important;
  }
  html body .why-section .sec-head p{
    font-size:11.5px !important;
  }
  html body .why-section .why-grid{
    gap:8px !important;
  }
  html body .why-section .why-card{
    padding:12px 14px !important;
  }
  html body .why-section .why-card .wicon{
    width:32px !important;
    height:32px !important;
    font-size:14px !important;
    margin-bottom:6px !important;
  }
  html body .why-section .why-card h3{
    font-size:12px !important;
    margin-bottom:3px !important;
  }
  html body .why-section .why-card p{
    font-size:11px !important;
    line-height:1.5 !important;
  }

} /* end @media max-width:768px — WEBLEY MOBILE FIXES v3 */
