:root body .topbar .main-nav a { display:inline-flex; align-items:center; justify-content:center; gap:7px; }
:root { --catalog-nav-bg:#050716; }
/* Keep the desktop daily-offer baseline separate from the phone layout. */
@media (width >= 640px) {
  :root body.storefront-page.lotso-monochrome #giftView #shopGrid #section-ofertas-del-dia .item-card .item-body > :is(.discount-badge,.new-badge,.ending-badge,h4,.prices) {
    translate: 0 8px;
  }
  :root body.storefront-page.lotso-monochrome #giftView #shopGrid #section-ofertas-del-dia .item-card.is-jam-track .item-body > .discount-badge { translate:0 12px; }
  :root body.storefront-page.lotso-monochrome #giftView #shopGrid #section-ofertas-del-dia .item-card.is-jam-track .item-body > .item-tags { translate:0 8px; }
  :root body.storefront-page.lotso-monochrome #giftView #shopGrid #section-ofertas-del-dia .item-card h4 {
    width: calc(100% - var(--offer-price-width, 64px) - 10px);
    max-width: calc(100% - var(--offer-price-width, 64px) - 10px);
    min-width: 0;
  }
}
:root body.storefront-page #giftView #shopGrid .item-card.is-bundle .item-art > .card-render { mask-image:linear-gradient(to bottom,#000 0,#000 var(--render-fade-start),transparent var(--render-fade-end)) !important; -webkit-mask-image:linear-gradient(to bottom,#000 0,#000 var(--render-fade-start),transparent var(--render-fade-end)) !important; transform:none !important; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card :is(.discount-badge,.ending-badge,.new-badge) { max-width:calc(100% - 20px); box-sizing:border-box; overflow:hidden; white-space:nowrap !important; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card .badge-text { display:inline-block; width:max-content; white-space:nowrap !important; }
@keyframes shop-badge-pan { 0%,20% { transform:translateX(0); } 80%,100% { transform:translateX(var(--badge-travel)); } }
@media (prefers-reduced-motion:no-preference) {
  #giftView .item-card :is(.ending-badge,.new-badge,.discount-badge).is-overflowing .badge-text { animation:shop-badge-pan var(--badge-duration,5s) ease-in-out infinite alternate; }
}
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card .prices { display:block !important; min-width:0; max-width:100%; overflow:hidden; white-space:nowrap; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card h4 + .prices { margin-top:4px !important; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .price-track { display:inline-flex; align-items:center; justify-content:space-between; gap:8px; min-width:100%; width:max-content; white-space:nowrap; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .price-track > :is(.vbucks,.soles) { flex:0 0 auto; white-space:nowrap; font-size:16px !important; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card .price-track > .soles:has(> .original-price) { display:inline-flex; flex-direction:column; align-items:flex-end; gap:2px; }
:root body.storefront-page.lotso-monochrome #giftView #shopGrid .item-card .soles > .original-price { display:block; margin:0; flex:0 0 auto; }
@media (prefers-reduced-motion:no-preference) {
  #giftView .prices-overflowing .price-track { --title-travel:var(--price-travel); animation:product-title-pan var(--price-duration,5s) linear infinite; }
}
@media (prefers-reduced-motion:reduce) {
  #giftView .prices-overflowing { overflow-x:auto !important; }
}
:root body.storefront-page.lotso-monochrome[data-current-view] .footer-directory .footer-support a.footer-feedback-action { background:#ffe600; border:1px solid #ffe600; color:#111320; border-radius:5px; padding:11px 16px; font-weight:700; }
:root body.storefront-page.lotso-monochrome[data-current-view] .footer-directory .footer-feedback-action .lucide { display:none; }
:root body.storefront-page.lotso-monochrome[data-current-view] .footer-directory .footer-support a.footer-feedback-action:hover { background:#fff04d; border-color:#fff04d; }
:root body.storefront-page.lotso-monochrome #rechargeView .crew-card .crew-discount { max-width:calc(100% - 24px); box-sizing:border-box; white-space:nowrap; overflow:hidden; }
:root body.storefront-page.lotso-monochrome #rechargeView#rechargeView .recharge-card { background:rgba(9,16,43,.82) !important; }
:root body.storefront-page.lotso-monochrome #rechargeView#rechargeView .recharge-card :is(.recharge-body,.card-actions) { background:transparent !important; }
:root body .topbar .main-nav a .lucide { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.7; }
:root body .topbar .main-nav a .nav-vbucks-icon { width:17px; height:17px; flex:0 0 17px; object-fit:contain; }
@media (max-width:600px) {
  :root body.storefront-page:is([data-current-view="gift"],[data-current-view="recharge"]) > main { width:calc(100% - 20px) !important; max-width:none; margin-left:10px !important; margin-right:10px !important; }
  :root body.storefront-page #rechargeView .account-carousel .recharge-grid { width:calc(100% + 12px); margin-left:-6px; margin-right:-6px; padding-left:6px; padding-right:6px; scroll-padding-inline:6px; }
  :root body.storefront-page #rechargeView .account-carousel { margin-inline:6px; }
  :root body.storefront-page #rechargeView .account-carousel-arrow[data-direction="-1"] { left:-6px; }
  :root body.storefront-page #rechargeView .account-carousel-arrow[data-direction="1"] { right:-6px; }
  :root body.storefront-page #giftView #shopGrid#shopGrid { padding-left:0 !important; padding-right:0 !important; }
  :root body.storefront-page #giftView #shopGrid#shopGrid .shop-section { padding-left:0 !important; padding-right:0 !important; }
  :root body.storefront-page.lotso-monochrome #howView#howView a.guide-action { display:inline-flex; align-items:center; justify-content:center; width:fit-content !important; max-width:100%; min-height:40px !important; height:auto; padding:10px 16px !important; font-size:13px !important; line-height:1.35; box-sizing:border-box; justify-self:start; }
  :root body.storefront-page.lotso-monochrome[data-current-view="home"] > .storefront-footer.footer-refined.footer-directory { min-height:100dvh; }
  :root body.storefront-page.lotso-monochrome #giftView .shop-layout .section-sidebar.is-compact { background:rgba(14,24,54,.76) !important; backdrop-filter:blur(14px) saturate(115%); -webkit-backdrop-filter:blur(14px) saturate(115%); }
  :root body.storefront-page #giftView #searchInput { height:44px !important; min-height:44px !important; font-size:16px !important; }
  :root body.storefront-page #giftView #searchClearButton { top:0; right:0; width:44px; height:44px; background:transparent !important; border:0; }
  :root body.storefront-page #giftView #searchClearButton svg { width:28px; height:28px; box-sizing:border-box; padding:6px; border-radius:4px; }
  :root body.storefront-page #giftView #searchClearButton:hover svg { background:#ffffff0f; }
  :root body.storefront-page #giftView #searchClearButton:focus-visible { outline:none; }
  :root body.storefront-page #giftView #searchClearButton:focus-visible svg { outline:2px solid #ffe600; outline-offset:0; }
  :root body.storefront-page #giftView .controls .search .shop-search-icon { top:50%; transform:translateY(-50%); width:17px; height:17px; left:14px; }
  :root body.storefront-page #giftView #refreshButton { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; padding:0; }
  :root { background:#0b0c22; }
  :root body { background:#0b0c22; background-image:none; overflow-x:clip; }
  :root body .topbar .brand { overflow:visible; display:flex; align-items:center; width:88px; height:36px; }
  :root body .topbar .brand .header-logo { position:static !important; inset:auto !important; transform:none !important; display:block; max-width:100%; }
  :root body #backToTop.back-to-top { bottom:calc(84px + env(safe-area-inset-bottom)) !important; right:16px; z-index:119; width:40px; height:40px; }
  :root body #backToTop.back-to-top .lucide { width:20px; height:20px; }
  :root body #rechargeView#rechargeView .card-actions { display:grid; grid-template-columns:minmax(0,1fr) 34px !important; gap:6px; width:100%; }
  :root body #rechargeView#rechargeView .card-actions .buy-button { width:100%; }
  :root body #rechargeView#rechargeView .card-actions :is(.buy-button,.cart-button) { height:40px !important; min-height:40px !important; border-radius:5px; }
  :root body.storefront-page.lotso-monochrome #rechargeView#rechargeView .card-actions button.buy-button { min-width:0; padding:0 6px; font-size:12px !important; white-space:normal; }
  :root body #rechargeView#rechargeView .card-actions .cart-button { width:34px !important; min-width:34px !important; padding:0; }
  :root body #rechargeView#rechargeView .card-actions .cart-button svg { width:17px; height:17px; }
  :root body.storefront-page #giftView #shopGrid .is-carousel .section-scroll-button.is-right { right:-6px; }
  :root body.storefront-page #giftView #shopGrid .is-carousel .section-scroll-button.is-left { left:-6px; }
  :root body .topbar .brand { position:relative; overflow:visible; width:104px; height:36px; }
  :root body .topbar .brand .header-logo { position:absolute !important; width:136px !important; max-width:none !important; height:45px !important; left:-26px !important; top:-4px !important; object-fit:contain; }
  :root body .topbar { transform:none !important; filter:none !important; backdrop-filter:none !important; contain:none !important; will-change:auto !important; }
  :root body .topbar { grid-template-rows:44px !important; min-height:64px !important; height:auto !important; row-gap:0 !important; padding-top:10px; padding-bottom:10px; }
  :root body #rechargeView > .placeholder-view { padding-top:12px; }
  :root body #rechargeView .pass-section { margin-top:0; }
  :root body #rechargeView .pass-heading { padding-top:8px; }
  :root body .topbar .main-nav { top:auto !important; bottom:0 !important; left:0 !important; right:0 !important; width:100% !important; max-width:none !important; height:auto !important; box-sizing:border-box; }
  :root body { padding-bottom:calc(63px + env(safe-area-inset-bottom)); }
  :root body .topbar .main-nav { position:fixed; inset:auto 0 0; z-index:120; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; max-width:none; margin:0; padding:6px 8px calc(6px + env(safe-area-inset-bottom)); gap:0; border-top:1px solid #343a61; background:#0b0c22; box-shadow:0 -4px 16px #0003; }
  :root body .topbar .main-nav a { position:relative; flex-direction:column; gap:5px; min-width:0; min-height:54px; padding:7px 2px; border:0; font-size:10px; line-height:1.3; text-align:center; white-space:normal; }
  :root body .topbar .main-nav a .lucide { width:19px; height:19px; flex:0 0 19px; }
  :root body .topbar .main-nav a .nav-vbucks-icon { width:19px; height:19px; flex:0 0 19px; }
  :root body .topbar .main-nav { background:var(--catalog-nav-bg); border-top-color:#232a44; }
  :root body .topbar .main-nav a::after { display:none !important; }
  :root body .topbar .main-nav a.is-active { color:#f1f4fa !important; background:transparent; border-radius:0; text-decoration:none !important; box-shadow:none !important; border-bottom:0 !important; }
  :root body.storefront-page.lotso-monochrome .topbar .main-nav a.is-active::after { content:''; display:block !important; position:absolute; bottom:-5px !important; left:30%; right:30%; width:auto; height:2px; background:#f1f4fa; transform:none; }
  :root body .topbar .main-nav a.is-active span { text-decoration:none !important; border-bottom:0 !important; }
  :root body .topbar .main-nav a.is-active .nav-vbucks-icon { filter:none; }
  :root body #itemDetailsDialog[open] { padding-bottom:calc(63px + env(safe-area-inset-bottom)); }
}
