/* VivaLar V19 — Mobile-first storefront refinements.
   The approved logo.svg and desktop layout remain untouched. */
.vl-mobile-menu-toggle,.vl-mobile-cart,.vl-mobile-bottom-nav,.vl-mobile-backdrop,
.vl-mobile-drawer-head,.vl-mobile-drawer-caption,.vl-mobile-drawer-help,
.vl-mobile-search-icon{display:none}
@media (max-width:767px){
  :root{--vl-bottom-height:68px}
  html{scroll-padding-top:135px}
  body{overflow-x:clip;padding-bottom:calc(var(--vl-bottom-height) + env(safe-area-inset-bottom,0px));background:#f7f7f5}
  body.vl-mobile-menu-open{overflow:hidden}
  .container{width:calc(100% - 32px)!important;max-width:600px;margin-inline:auto}
  .topbar,.topbar .container,.ticker-group,.ticker-item{height:29px!important}
  .topbar{height:29px!important}
  .ticker-item{font-size:9px!important;padding:0 27px!important;letter-spacing:.025em!important}

  /* A clean two-row header: menu, approved logo, cart, followed by search. */
  .header{z-index:80;box-shadow:0 3px 16px rgba(0,0,0,.045);background:#fff}
  .header-main{height:auto!important;min-height:112px!important;padding:10px 0 11px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;grid-template-rows:43px 46px!important;column-gap:10px!important;row-gap:9px!important;align-items:center!important}
  .vl-mobile-enhanced .actions{display:none!important}
  .vl-mobile-menu-toggle,.vl-mobile-cart{display:grid!important;place-items:center;position:relative;width:44px;height:43px;padding:0;border:1px solid #e9e9e4;border-radius:14px;background:#fff;color:#161616;cursor:pointer;touch-action:manipulation}
  .vl-mobile-menu-toggle{grid-row:1;grid-column:1}
  .vl-mobile-cart{grid-row:1;grid-column:3}
  .vl-mobile-icon{width:22px;height:22px;display:block;flex-shrink:0}
  .header-main .logo{grid-row:1!important;grid-column:2!important;min-width:0;display:flex;justify-content:center;align-items:center;justify-self:center}
  .header-main .logo img{display:block;width:166px!important;max-width:min(100%,166px)!important;max-height:43px!important;height:auto!important;object-fit:contain}
  .vl-mobile-cart-count{position:absolute;top:-6px;right:-5px;min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#ffd21c;color:#111;font-size:10px;font-weight:900;border:2px solid #fff}
  .header-main .search{grid-row:2!important;grid-column:1/-1!important;display:flex!important;align-items:center;margin:0!important;height:46px!important;padding:3px 4px 3px 6px!important;min-width:0;background:#f6f6f2;border:1px solid #e8e8e0!important;border-radius:14px!important}
  .header-main .search:focus-within{border-color:#e9bd00!important;box-shadow:0 0 0 3px rgba(255,210,28,.14)}
  .header-main .search input{font-size:16px;min-width:0;height:100%;padding:8px 10px!important;line-height:1.2}
  .header-main .search input::placeholder{color:#83837d;opacity:1}
  .header-main .search button{display:grid;place-items:center;flex:0 0 42px;height:38px;width:42px;padding:0!important;border-radius:11px!important;background:#ffd21c}
  .vl-desktop-search-label{display:none}.vl-mobile-search-icon{display:grid;place-items:center}.vl-mobile-search-icon svg{width:20px;height:20px}

  /* Navigation drawer — categories no longer squeeze the storefront. */
  .vl-mobile-enhanced .header .nav{display:block!important;position:fixed!important;inset:0 auto 0 0;top:0!important;left:0!important;z-index:131;width:min(87vw,345px)!important;max-width:345px;height:100dvh;background:#fff;transform:translateX(-103%);visibility:hidden;pointer-events:none;transition:transform .26s cubic-bezier(.2,.8,.2,1),visibility .26s;overflow-y:auto;overscroll-behavior:contain;border-radius:0 18px 18px 0;box-shadow:0 12px 40px rgba(0,0,0,.18)}
  .vl-mobile-enhanced.vl-mobile-menu-open .header .nav{transform:translateX(0);visibility:visible;pointer-events:auto}
  .vl-mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:26px 21px 12px;border-bottom:1px solid #efefea}
  .vl-mobile-drawer-head img{width:160px;height:auto}
  .vl-mobile-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e7e7e2;border-radius:12px;background:#f7f7f5}
  .vl-mobile-drawer-caption{display:block;margin:17px 21px 6px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:850;color:#85857e}
  .vl-mobile-enhanced .header .nav>.container{height:auto!important;max-height:none;display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:0!important;width:100%!important;overflow:visible!important;padding:0 12px 12px;white-space:normal!important}
  .vl-mobile-enhanced .header .nav .container>a{display:flex;align-items:center;min-height:48px;width:100%;padding:12px 14px!important;border-radius:12px;color:#202020!important;font-size:15px!important;font-weight:750;border:0;background:transparent}
  .vl-mobile-enhanced .header .nav .container>a:hover,.vl-mobile-enhanced .header .nav .container>a.active,.vl-mobile-enhanced body[data-page="offers"] .nav a[href="ofertas.html"]{background:#fff6c3!important;color:#111!important}
  .vl-mobile-drawer-help{display:block;padding:13px 21px 27px;border-top:1px solid #efefea}
  .vl-mobile-drawer-help a{display:block;background:#131313;color:#ffd21c;padding:15px;border-radius:12px;text-align:center;font-size:13px;font-weight:800}
  .vl-mobile-menu-open .header{z-index:130;background:transparent;box-shadow:none;border-color:transparent}
  .vl-mobile-menu-open .header-main{visibility:hidden}
  .vl-mobile-backdrop{display:block;position:fixed;inset:0;z-index:125;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s,visibility .25s;border:0;width:100%;height:100%;cursor:pointer}
  .vl-mobile-menu-open .vl-mobile-backdrop{opacity:1;visibility:visible;pointer-events:auto}

  /* Bottom tabs sized for thumbs + safe areas on iPhones. */
  .vl-mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:95;min-height:calc(var(--vl-bottom-height) + env(safe-area-inset-bottom,0px));padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8e8e2;background:rgba(255,255,255,.98);box-shadow:0 -5px 22px rgba(0,0,0,.06);backdrop-filter:blur(14px)}
  .vl-mobile-tab{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:58px;min-width:0;padding:5px 1px;border:0;border-radius:12px;background:transparent;color:#66665f;font-weight:750;cursor:pointer;text-decoration:none}
  .vl-mobile-tab svg{width:21px;height:21px}
  .vl-mobile-tab-label{font-size:10px;white-space:nowrap;letter-spacing:-.01em;line-height:1.2}
  .vl-mobile-tab.is-current{color:#111;background:#fff5bf}
  .vl-mobile-tab.is-current svg{stroke-width:2.3}
  .vl-mobile-bottom-count{position:absolute;top:1px;left:calc(50% + 7px);min-width:16px;height:16px;padding:0 3px;display:grid;place-items:center;background:#ffd21c;border:1.5px solid #fff;color:#111;font-size:9px;font-weight:900;border-radius:20px}
  .vl-toast{bottom:calc(var(--vl-bottom-height) + env(safe-area-inset-bottom,0px) + 18px)!important;max-width:calc(100vw - 30px);text-align:center}
  .whatsapp-float{width:49px!important;height:49px!important;right:12px!important;bottom:calc(var(--vl-bottom-height) + env(safe-area-inset-bottom,0px) + 12px)!important;border-width:3px!important;z-index:92!important}
  .whatsapp-float svg{height:25px;width:25px}

  /* Banner preserves the ENTIRE image in image-only admin banners. */
  .hero{padding:15px 0 11px!important}
  .hero .container{width:calc(100% - 24px)!important}
  .hero-carousel{min-height:0!important;border-radius:20px!important;box-shadow:0 6px 24px rgba(0,0,0,.08)!important;aspect-ratio:2.15/1}
  .hero-track{min-height:0!important;height:100%!important}
  .hero-slide{background-position:center;background-repeat:no-repeat;background-size:cover}
  .hero-slide.vl-image-only{background-size:contain;background-color:#111}
  .hero-slide .hero-copy{padding:23px 21px 30px!important;width:min(92%,430px)!important}
  .hero-slide h1{font-size:clamp(22px,6.5vw,30px)!important;line-height:1.08!important;margin:0 0 8px!important;letter-spacing:-.035em!important}
  .hero-slide p{font-size:12px!important;line-height:1.4!important;margin:0 0 3px!important;max-width:290px}
  .hero-slide .cta{margin-top:9px;padding:10px 13px;font-size:12px;border-radius:10px}
  .hero-arrow{display:none!important}
  .hero-dots{bottom:10px!important}.hero-dots button{height:7px;width:7px}.hero-dots button.active{width:22px}

  /* Lightweight horizontal assurances instead of a tall 2x2 block. */
  .trust{display:flex!important;gap:9px!important;overflow-x:auto;scroll-snap-type:x proximity;margin-bottom:11px!important;padding:4px 0 7px!important;scrollbar-width:none}
  .trust::-webkit-scrollbar,.catgrid::-webkit-scrollbar{display:none}
  .trust>div{scroll-snap-align:start;flex:0 0 225px;padding:12px 13px!important;border-radius:14px!important;font-size:12px!important;min-height:65px}
  .trust small{font-size:11px;line-height:1.35}
  .section{padding:18px 0!important}
  .section-head{align-items:flex-end;gap:12px;margin-bottom:14px!important}
  .section-head h2{font-size:22px!important;line-height:1.15;margin:0;letter-spacing:-.035em}
  .section-head p{margin-top:5px;font-size:12px;line-height:1.45}
  .section-head a{font-size:12px;flex-shrink:0;color:#866700}
  .catgrid{display:grid!important;grid-auto-flow:column;grid-auto-columns:105px;grid-template-columns:none!important;gap:10px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 1px 10px}
  .cat{scroll-snap-align:start;min-height:104px;padding:17px 9px 12px!important;border-radius:17px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;box-shadow:0 2px 6px rgba(0,0,0,.025)}
  .cat span{margin:0!important;font-size:30px!important;line-height:1.15}
  .cat b{font-size:11.5px!important;line-height:1.2}

  /* Product cards that do not squeeze or wrap prices/buttons badly. */
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}
  .product{min-width:0;border-radius:17px!important;display:flex;flex-direction:column;transform:none!important;box-shadow:0 2px 11px rgba(0,0,0,.025)}
  .product-media{height:auto!important;aspect-ratio:1/1;padding:0!important;min-height:0;display:block;position:relative;background:#fff}
  .product-media img{width:100%;height:100%;object-fit:contain;padding:9px}
  .product .badge{top:8px!important;left:7px!important;font-size:9px!important;padding:5px 8px!important;max-width:75%;line-height:1.15;white-space:normal}
  .product .fav{width:31px;height:31px;right:7px;top:7px;font-size:18px;z-index:4}
  .product-info{display:flex;flex-direction:column;flex:1;gap:5px;padding:10px!important;min-width:0}
  .product-info h3{font-size:12.5px!important;line-height:1.37;margin:0!important;min-height:35px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .product-info .rating{font-size:10px;letter-spacing:-.02em}
  .product-info .old{font-size:10.5px;min-height:13px}
  .product-info .price{font-size:21px!important;letter-spacing:-.04em;line-height:1.1;white-space:nowrap}
  .product-info .installment{font-size:10px;line-height:1.3;min-height:26px}
  .product-info .buyrow{margin-top:auto!important;padding-top:6px;display:block!important}
  .product-info .buy{width:100%;height:39px;min-height:39px;border-radius:11px;font-size:12px;padding:0 6px;white-space:nowrap}
  .product-info .quick{display:none!important}
  .product .badge-stack{max-width:70%}

  .promo{grid-template-columns:1fr!important;margin:22px 0!important;padding:23px!important;border-radius:20px!important;gap:15px!important}
  .promo h2{font-size:27px!important;line-height:1.06;letter-spacing:-.04em}
  .promo p{font-size:13px;line-height:1.5}
  .promo .cta{width:max-content;padding:12px 16px;font-size:13px}
  .social-proof{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .proof-card{padding:18px!important;border-radius:16px!important}
  .proof-card strong{font-size:15px}.proof-card p{font-size:12px;line-height:1.5}
  .microtrust{margin-top:9px}.microtrust span{font-size:10px}

  /* Inner pages and purchase flow. */
  .pagehero{padding:22px 0 14px!important}
  .pagehero h1{font-size:30px!important;line-height:1.1}
  .pagehero .eyebrow{font-size:10px}
  .filters{gap:8px}.filters input,.filters select{width:100%;font-size:16px}
  .product-detail{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important;padding:22px 0!important}
  .product-gallery{grid-template-columns:minmax(0,1fr)!important;gap:9px}
  .product-main-image{min-height:0!important;aspect-ratio:1/1;border-radius:17px!important}
  .product-main-image img{max-height:100%;padding:12px!important}
  .product-thumbs{order:2;display:flex;flex-direction:row;gap:8px;max-width:100%;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}
  .product-thumb{width:62px;height:62px;flex:0 0 62px;border-radius:11px}
  .product-info-box{padding:19px!important;border-radius:17px!important}
  .product-info-box h1{font-size:25px!important;line-height:1.15}
  .product-perks{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:15px 0!important}
  .product-perk{padding:9px 5px!important;font-size:10px!important;line-height:1.25}
  .product-assurance{gap:7px}.product-assurance span{font-size:10px!important}
  .product-copy,.question-card,.review-card{padding:18px!important;border-radius:17px!important}
  .product-sections{grid-template-columns:1fr!important;gap:15px!important;margin-top:13px!important}
  .product-copy h2,.question-card h2,.review-card h2{font-size:20px}
  .product-copy p{font-size:14px;line-height:1.65}
  .cartline{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;align-items:start;gap:9px 12px!important;padding:12px!important;border-radius:16px!important}
  .cartline>.thumb{grid-row:1/3;grid-column:1;width:78px!important;height:85px!important;padding:0}
  .cartline>.thumb img{width:100%;height:100%;object-fit:contain}
  .cartline>.cartline-info{grid-row:1;grid-column:2;min-width:0}
  .cartline-info b{display:block;font-size:13px;line-height:1.4}.cartline-info small{display:block;color:#767670;margin-top:4px;font-size:11px}
  .cartline>.qty{grid-row:2;grid-column:2;display:flex;align-items:center;gap:11px}
  .cartline .qty button{width:34px;height:34px;border-radius:10px;font-size:18px}
  .cartline>.lineprice{grid-row:3;grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0f0ec;padding-top:10px;font-size:14px}
  .cartline .lineprice button{padding:8px 5px;border:0;background:transparent;text-decoration:underline;color:#666;font-size:12px}
  .summary,.cart-summary,.checkout-summary{padding:17px!important;border-radius:17px!important}
  .summary strong{font-size:25px}
  .checkout-form{padding-top:17px}.checkout-form h2{font-size:21px}
  .checkout-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
  .checkout-grid .wide{grid-column:1/-1!important}
  .checkout-grid label{font-size:12px;min-width:0}
  .checkout-grid input{font-size:16px;min-height:46px}
  .checkout-button{width:100%!important;min-height:50px;font-size:15px!important}
  .coupon-box{display:flex;gap:7px}.coupon-box input{min-width:0;font-size:16px}.coupon-box button{flex:0 0 auto;padding:0 12px}
  .account-grid{grid-template-columns:1fr!important;gap:13px!important}
  .account-grid .admin-card{padding:17px;border-radius:17px}
  .address-row{grid-template-columns:1fr auto!important;gap:8px}
  .address-row div{grid-column:1/-1}.address-row button{min-height:38px}
  .customer-order,.vl-order-card{padding:14px!important;border-radius:15px!important;min-width:0}
  .vl-order-heading{flex-wrap:wrap}.vl-order-heading strong{font-size:16px}
  .vl-order-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .vl-order-actions>a{padding:12px 8px;min-width:0;font-size:12px;text-align:center}
  .auth-card{max-width:100%!important;padding:20px!important;border-radius:18px!important;margin:20px auto!important}
  .auth-card input,.field input,.field select,.field textarea{font-size:16px!important}

  /* Quiet, compact footer; fixed mobile tabs remain accessible. */
  .footer{margin-top:33px!important;padding:30px 0 24px!important}
  .footer-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:21px!important}
  .footer-grid>div:first-child{grid-column:1/-1}
  .footer img{width:137px!important}
  .footer p,.footer a{font-size:12px;line-height:1.5}
  .footer h4{font-size:13px}
  .copyright{margin-top:23px;font-size:11px}
  /* The administration console also needs to be usable on a phone. */
  .admin-shell{display:block!important}
  .admin-side{width:100%!important;position:static!important;height:auto!important;padding:13px 12px 8px!important;overflow:hidden}
  .admin-side .admin-logo-link img{width:145px!important;max-height:46px!important;margin:0 0 7px!important}
  .admin-side .navgroup{display:none!important}
  .admin-side nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:7px!important;grid-template-columns:none!important;overflow-x:auto;scrollbar-width:thin;padding:4px 0 12px!important}
  .admin-side nav button{width:auto!important;white-space:nowrap;flex:0 0 auto;min-height:39px;padding:9px 11px!important;font-size:12px!important;border-radius:10px!important}
  .admin-main{padding:16px 12px!important;min-width:0}
  .admin-head h1{font-size:24px!important}
  .admin-card,.panel{padding:15px!important;border-radius:16px!important}
  .admin-form,.formgrid{grid-template-columns:minmax(0,1fr)!important}
  .metric-grid{gap:8px!important}
  .tablewrap{max-width:100%;overflow-x:auto}
  .admin-table{min-width:600px}
  button,a,input,select{touch-action:manipulation}
}
@media(max-width:359px){
 .container{width:calc(100% - 24px)!important}
 .header-main .logo img{width:145px!important}
 .grid{gap:7px!important}
 .product-info{padding:8px!important}
 .product-info .price{font-size:19px!important}
 .vl-mobile-tab-label{font-size:9px}
 .hero-slide h1{font-size:21px!important}
}
@media(min-width:768px){
 .vl-mobile-enhanced .header .nav{transform:none!important;visibility:visible!important;pointer-events:auto!important}
}
@media(prefers-reduced-motion:reduce){
 .vl-mobile-enhanced .header .nav,.vl-mobile-backdrop{transition:none}
 .hero-slide{transition:none}
}
