/* NovelVault v3.10 — mobile-first stability and storefront polish.
   This layer intentionally loads last and only changes narrow/mobile layouts. */

/* Prevent any legacy WooCommerce/theme rule from widening the viewport. */
html,body{max-width:100%}

@media(max-width:820px){
  html{overflow-x:hidden!important;scroll-padding-top:64px}
  body{overflow-x:hidden!important;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  body.nv-lock{overflow:hidden!important}
  .nv-content,.nv-home,.site-header,.site-footer{max-width:100%;min-width:0;overflow-x:clip}
  .nv-wrap{width:100%!important;max-width:none!important;margin:0!important;padding-inline:12px!important}
  img,svg,video,iframe{max-width:100%}

  /* ---------- Header: compact, stable and impossible to overflow ---------- */
  .site-header{top:0;z-index:120;background:color-mix(in srgb,var(--nv-bg) 94%,transparent);backdrop-filter:blur(14px)}
  .nv-head{height:58px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-width:0!important}
  .nv-logo-wrap{min-width:0!important;max-width:150px!important;overflow:hidden!important}
  .nv-brand{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:17px!important;letter-spacing:-.45px!important}
  .custom-logo{max-width:132px!important;max-height:34px!important;object-fit:contain!important}
  .nv-search{display:none!important}
  .nv-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}
  .nv-mobile-search-btn{display:inline-flex!important}
  .nv-icon-btn{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;padding:0!important;border-radius:10px!important}
  .nv-icon-btn svg{width:18px!important;height:18px!important}
  .nv-icon-btn>span:not(.nv-mobile-cart-icon){display:none!important}
  .nv-actions .nv-account,.nv-actions .nv-notifications{display:none!important}
  .nv-cart b{right:-3px!important;top:-4px!important}
  .nv-subnav-wrap{display:none!important}

  /* Search sheet */
  .nv-mobile-search__inner{padding:14px 12px 18px!important;border-radius:0 0 16px 16px!important}
  .nv-mobile-search__head strong{font-size:17px!important}
  .nv-mobile-search form{grid-template-columns:auto minmax(0,1fr) auto!important}
  .nv-mobile-search form input{font-size:13px!important}
  .nv-search-chips{margin-inline:-2px;padding-bottom:2px}
  .nv-search-chips a{font-size:10px!important;padding:7px 10px!important}

  /* ---------- Bottom navigation ---------- */
  .nv-mobile-nav{position:fixed!important;z-index:115!important;left:0!important;right:0!important;bottom:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;min-height:calc(60px + env(safe-area-inset-bottom))!important;padding:6px 7px env(safe-area-inset-bottom)!important;border-top:1px solid var(--nv-line)!important;background:color-mix(in srgb,var(--nv-card) 96%,transparent)!important;backdrop-filter:blur(16px)!important;box-shadow:0 -8px 28px rgba(20,22,26,.06)!important}
  .nv-mobile-nav>a,.nv-mobile-nav>button{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;height:52px!important;margin:0!important;padding:0 2px!important;border:0!important;background:transparent!important;color:var(--nv-muted)!important;font-size:9px!important;font-style:normal!important;font-weight:750!important;text-align:center!important}
  .nv-mobile-nav svg{display:block!important;width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  .nv-mobile-nav>a:first-child svg,.nv-mobile-nav>a:nth-child(2) svg{fill:none!important}
  .nv-mobile-nav span,.nv-mobile-nav em{font-size:8.5px!important;font-style:normal!important;line-height:1.05!important;white-space:nowrap!important}
  .nv-mobile-nav .is-active{color:var(--nv-ink)!important}
  .nv-mobile-nav-search,.nv-mobile-cart-icon{position:relative!important;display:grid!important;place-items:center!important;width:22px!important;height:22px!important}
  .nv-mobile-cart-icon b{position:absolute!important;right:-6px!important;top:-5px!important;display:grid!important;place-items:center!important;min-width:15px!important;height:15px!important;padding:0 3px!important;border-radius:999px!important;background:var(--nv-accent)!important;color:#fff!important;font-size:7px!important}

  /* ---------- Homepage rhythm ---------- */
  .nv-home-v36{padding-bottom:18px!important}
  .nv-home-v36 .nv-section{padding:22px 0 0!important}
  .nv-home-v36 .nv-home-first{padding-top:14px!important}
  .nv-section-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:8px!important;margin-bottom:10px!important;min-width:0!important}
  .nv-section-head>div:first-child{min-width:0!important}
  .nv-section-head h1,.nv-section-head h2{margin:2px 0 0!important;font-size:18px!important;line-height:1.1!important;letter-spacing:-.4px!important;overflow-wrap:anywhere!important}
  .nv-section-sub{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;margin-top:3px!important;font-size:9px!important;line-height:1.4!important}
  .nv-overline,.nv-kicker{font-size:8px!important;letter-spacing:.09em!important}
  .nv-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:0 2px!important;font-size:9.5px!important;white-space:nowrap!important}
  .nv-slider-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;min-width:0!important}
  .nv-slider-actions button{display:none!important}

  /* Fandom slider: one large card plus a useful next-card peek. */
  .nv-fandom-slider-track{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:min(82vw,330px)!important;gap:9px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:1px 12px 3px 0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-left:0!important;overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important}
  .nv-fandom-slider-track::-webkit-scrollbar{display:none!important}
  .nv-fandom-slider-track>.nv-fandom-card{scroll-snap-align:start!important}
  .nv-home-v36 .nv-fandom-card,.nv-fandom-card{min-width:0!important;min-height:145px!important;border-radius:13px!important}
  .nv-fandom-card__copy{left:0!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;padding:16px!important}
  .nv-fandom-card__copy small{font-size:7.5px!important}
  .nv-fandom-card__copy>strong{max-width:72%!important;margin-top:4px!important;font-size:21px!important;line-height:1.03!important;letter-spacing:-.55px!important}
  .nv-fandom-card__copy>em{max-width:72%!important;margin-top:7px!important;font-size:8px!important;line-height:1.35!important}
  .nv-fandom-open{margin-top:auto!important;font-size:8px!important;font-weight:850!important}

  /* Novel grids remain three-across by default, but stay usable on narrow devices. */
  .nv-recent-grid,.nv-products,.nv-related-grid,.woocommerce ul.products{grid-template-columns:repeat(var(--nv-grid-mobile),minmax(0,1fr))!important;column-gap:7px!important;row-gap:18px!important;width:100%!important;min-width:0!important}
  .nv-products>.nv-book,.nv-recent-grid>.nv-book,.woocommerce ul.products .nv-book{min-width:0!important;width:100%!important}
  .nv-fandom-novel-shelf .nv-slider-track,.nv-related-track{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 14px)/3)!important;gap:7px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:1px 12px 3px 0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important}
  .nv-fandom-novel-shelf .nv-slider-track>.nv-book,.nv-related-track>.nv-book{scroll-snap-align:start!important}

  /* Cards: readable titles, consistent card bottoms, larger touch targets. */
  .nv-book{min-width:0!important;width:100%!important}
  .nv-cover{border-radius:8px!important;box-shadow:0 4px 12px rgba(20,22,26,.07)!important}
  .nv-book:hover .nv-cover img{transform:none!important}
  .nv-card-hover-actions{display:none!important}
  .nv-wishlist{right:4px!important;top:4px!important;width:29px!important;height:29px!important;border-radius:8px!important}
  .nv-wishlist svg{width:13px!important;height:13px!important}
  .nv-badges{left:4px!important;top:4px!important;gap:2px!important}
  .nv-badge{min-height:16px!important;padding:0 4px!important;font-size:5px!important;border-radius:4px!important}
  .nv-cover-stats{left:4px!important;bottom:4px!important;gap:2px!important;max-width:calc(100% - 8px)!important}
  .nv-cover-stats b{min-height:15px!important;padding:0 4px!important;border-radius:4px!important;font-size:4.5px!important}
  .nv-book-copy{display:flex!important;flex-direction:column!important;min-width:0!important;padding-top:6px!important}
  .nv-book-eyebrow{min-height:11px!important;margin:0 0 2px!important;gap:3px!important}
  .nv-book-eyebrow>span{max-width:100%!important;font-size:5.8px!important}
  .nv-rating{display:none!important}
  .nv-book h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;min-height:3.6em!important;max-height:3.6em!important;margin:0 0 5px!important;overflow:hidden!important;font-size:9.7px!important;line-height:1.2!important;letter-spacing:-.05px!important;overflow-wrap:anywhere!important;word-break:normal!important;text-wrap:pretty!important}
  .nv-card-author{display:none!important}
  .nv-card-details{display:none!important}
  .nv-card-bottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;min-height:27px!important;margin-top:auto!important}
  .nv-card-price-inline{min-width:0!important;max-width:calc(100% - 58px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9.5px!important}
  .nv-card-price-inline del{display:none!important}
  .nv-card-actions{flex:0 0 auto!important;gap:3px!important}
  .nv-card-cart,.nv-card-buy{height:27px!important;border-radius:6px!important}
  .nv-card-cart{width:27px!important;min-width:27px!important}
  .nv-card-cart svg{width:12px!important;height:12px!important}
  .nv-card-buy{min-width:37px!important;padding:0 6px!important;font-size:6px!important}
  .nv-load-more-wrap{padding-top:17px!important}
  .nv-load-more{min-width:130px!important;height:38px!important;font-size:8.5px!important}

  /* ---------- Shop/search/filter ---------- */
  .woocommerce-products-header{padding-top:14px!important}
  .woocommerce-products-header__title.page-title,.nv-archive-top h1{font-size:24px!important;line-height:1.05!important}
  .nv-store-rail{margin:0!important;padding:0 0 4px!important;overflow-x:auto!important}
  .nv-shop-tools{margin-bottom:11px!important;padding:10px!important;border-radius:11px!important}
  .nv-shop-tools__top strong{font-size:13px!important}
  .nv-filter-toggle{min-height:35px!important;font-size:9px!important}
  .woocommerce .woocommerce-result-count{font-size:9px!important}
  .woocommerce .woocommerce-ordering select{min-height:40px!important;font-size:10px!important;border-radius:9px!important}
  .nv-filter-fields{left:8px!important;right:8px!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 88px)!important}

  /* ---------- Single product ---------- */
  .single-product .woocommerce{padding:10px 0 108px!important}
  .single-product .nv-wrap{padding-inline:12px!important}
  .nv-v37-product-heading{margin:3px 0 12px!important}
  .nv-v37-product-heading h1{margin:0!important;font-size:clamp(24px,6.8vw,29px)!important;line-height:1.04!important;letter-spacing:-.75px!important;overflow-wrap:anywhere!important;word-break:normal!important;text-wrap:balance!important}
  .nv-v37-original-title{margin-top:5px!important;font-size:9px!important;line-height:1.35!important}
  .single-product .nv-product-main{display:grid!important;grid-template-columns:minmax(112px,36%) minmax(0,1fr)!important;gap:12px!important;align-items:start!important;min-width:0!important}
  .single-product .nv-product-main>div,.single-product .nv-product-main .summary{min-width:0!important;width:auto!important;max-width:100%!important}
  .single-product .woocommerce-product-gallery,.single-product .woocommerce-product-gallery__wrapper{min-width:0!important;width:100%!important}
  .single-product .woocommerce-product-gallery img{width:100%!important;height:auto!important;border-radius:10px!important}
  .single-product .nv-product-main .summary>.price{margin:1px 0 8px!important;font-size:20px!important;line-height:1!important}
  .nv-v37-facts-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:1px!important;margin:0 0 9px!important;border:1px solid var(--nv-line)!important;border-radius:9px!important;overflow:hidden!important;background:var(--nv-line)!important}
  .nv-v37-facts-grid>div{min-width:0!important;min-height:47px!important;padding:7px!important;border:0!important;border-radius:0!important}
  .nv-v37-facts-grid small{font-size:5.4px!important}
  .nv-v37-facts-grid strong,.nv-v37-facts-grid a{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:7.8px!important;line-height:1.25!important}
  .nv-v37-short-synopsis{margin-top:7px!important}
  .nv-v37-short-synopsis p{font-size:8.5px!important;line-height:1.5!important}
  .nv-v37-secondary-actions{display:grid!important;grid-template-columns:38px 38px minmax(0,1fr)!important;gap:5px!important;width:100%!important;margin-top:7px!important}
  .nv-v37-secondary-actions button{height:37px!important;border-radius:8px!important}
  .nv-v37-like,.nv-v37-share{padding:0!important}
  .nv-v37-purchase-help{min-width:0!important;padding:0 8px!important;font-size:6.5px!important;white-space:normal!important;line-height:1.15!important}
  .nv-v37-trust-line{width:100%!important;max-width:100%!important;margin-top:7px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}
  .nv-v37-trust-line span{flex:0 0 auto!important;min-height:22px!important;padding:0 6px!important;font-size:5.8px!important}
  .nv-v37-tags{margin-top:16px!important;padding-top:13px!important}
  .nv-v37-tags>div{gap:5px!important}
  .nv-v37-tags a,.nv-v37-tags>div>span{min-height:31px!important;padding:0 9px!important;font-size:8px!important}
  .nv-v37-summary-card{margin:18px 0 12px!important;padding:17px 15px!important;border-radius:12px!important}
  .nv-v37-summary-card h2{margin:2px 0 11px!important;font-size:21px!important;line-height:1.08!important}
  .nv-v37-summary-copy{max-height:205px!important}
  .nv-v37-summary-copy p{font-size:13px!important;line-height:1.65!important}
  .nv-v37-summary-card>button{min-height:34px!important;font-size:10px!important}
  .single-product .nv-product-main form.cart{display:none!important}
  .nv-mobile-buybar{left:8px!important;right:8px!important;bottom:calc(66px + env(safe-area-inset-bottom))!important;height:58px!important;padding:6px 7px 6px 11px!important;border-radius:14px!important}
  .nv-mobile-buybar__button{height:43px!important;min-width:94px!important;padding:0 14px!important;font-size:9px!important}
  .nv-mobile-cart-cta{width:42px!important;height:43px!important}

  /* ---------- Generic / legal / contact pages ---------- */
  .nv-page-content{padding:12px 0 30px!important}
  .nv-page-card{margin:0!important;padding:18px 15px!important;border-radius:12px!important;min-width:0!important}
  .nv-page-head h1{font-size:27px!important;line-height:1.05!important;letter-spacing:-.65px!important}
  .nv-page-body{font-size:12px!important;line-height:1.7!important;overflow-wrap:anywhere!important}
  .nv-page-body h2{font-size:20px!important;margin-top:24px!important}
  .nv-page-body h3{font-size:16px!important;margin-top:20px!important}
  .nv-page-body table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important}
  .nv-v38-contact-layout{grid-template-columns:1fr!important;gap:10px!important}
  .nv-v38-contact-intro,.nv-v38-contact-form-card{padding:17px 15px!important;border-radius:12px!important}
  .nv-v38-contact-details{grid-template-columns:1fr!important}
  .nv-v38-contact-form-card .nv-contact-form{grid-template-columns:1fr!important;gap:9px!important}
  .nv-v38-contact-form-card input,.nv-v38-contact-form-card textarea{width:100%!important;max-width:100%!important}

  /* ---------- Cart ---------- */
  .nv-commerce-page{padding:13px 0 28px!important}
  .nv-commerce-page-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:8px!important;margin-bottom:10px!important;padding:0 0 11px!important}
  .nv-commerce-page-head h1{font-size:27px!important;line-height:1.04!important;letter-spacing:-.7px!important}
  .nv-commerce-page-head p{font-size:9px!important;line-height:1.45!important}
  .nv-commerce-head-link{font-size:8px!important;white-space:nowrap!important}
  .nv-cart-assurance{display:flex!important;gap:5px!important;overflow-x:auto!important;padding-bottom:2px!important;scrollbar-width:none!important}
  .nv-cart-assurance span{flex:0 0 auto!important;min-height:27px!important;padding:0 8px!important;font-size:7px!important}
  .woocommerce-cart .woocommerce-cart-form,.woocommerce-cart .cart_totals{border-radius:12px!important;box-shadow:none!important}
  .woocommerce-cart table.shop_table_responsive{border-collapse:separate!important;border-spacing:0 7px!important;background:transparent!important}
  .woocommerce-cart table.shop_table_responsive thead{display:none!important}
  .woocommerce-cart table.shop_table_responsive tr{position:relative!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;gap:5px 9px!important;margin:0!important;padding:11px 12px!important;border:1px solid var(--nv-line)!important;border-radius:11px!important;background:var(--nv-card)!important}
  .woocommerce-cart table.shop_table_responsive tr td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;text-align:left!important;font-size:9px!important}
  .woocommerce-cart table.shop_table_responsive tr td::before{display:none!important}
  .woocommerce-cart table.shop_table_responsive .product-remove{position:absolute!important;right:8px!important;top:8px!important;z-index:2!important}
  .woocommerce-cart table.shop_table_responsive .product-thumbnail{grid-column:1!important;grid-row:1 / span 3!important}
  .woocommerce-cart table.cart img{width:48px!important;height:68px!important;object-fit:cover!important;border-radius:7px!important}
  .woocommerce-cart table.shop_table_responsive .product-name{grid-column:2/4!important;padding-right:23px!important;font-size:10px!important;font-weight:800!important;line-height:1.3!important}
  .woocommerce-cart table.shop_table_responsive .product-price{grid-column:2!important;font-size:9px!important;color:var(--nv-muted)!important}
  .woocommerce-cart table.shop_table_responsive .product-quantity{display:none!important}
  .woocommerce-cart table.shop_table_responsive .product-subtotal{grid-column:3!important;justify-self:end!important;font-size:10px!important;font-weight:900!important}
  .woocommerce-cart table.shop_table_responsive tr:last-child.actions{display:block!important;padding:10px!important}
  .woocommerce-cart table.cart td.actions .coupon{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;width:100%!important}
  .woocommerce-cart table.cart td.actions .coupon .input-text{width:100%!important;min-height:40px!important;margin:0!important;border-radius:8px!important}
  .woocommerce-cart table.cart td.actions .coupon .button{min-height:40px!important;border-radius:8px!important}
  .woocommerce-cart table.cart td.actions>button.button{width:100%!important;min-height:40px!important;margin-top:6px!important}
  .woocommerce-cart .cart-collaterals{margin-top:10px!important}
  .woocommerce-cart .cart-collaterals .cart_totals{width:100%!important;padding:14px!important;position:static!important}
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button{min-height:48px!important;border-radius:10px!important;font-size:11px!important}

  /* ---------- Checkout ---------- */
  .woocommerce-checkout body,.woocommerce-checkout{overflow-x:hidden!important}
  .woocommerce-checkout .nv-checkout-assurance{display:none!important}
  .woocommerce-checkout .wc-block-checkout,.woocommerce-checkout form.checkout{display:block!important;width:100%!important;max-width:100%!important;margin:0!important}
  .woocommerce-checkout .wc-block-checkout__main,.woocommerce-checkout .wc-block-checkout__sidebar,.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{width:100%!important;max-width:100%!important;min-width:0!important;position:static!important}
  .woocommerce-checkout .wc-block-checkout__main{padding:0 12px!important;border-radius:12px!important}
  .woocommerce-checkout .wc-block-checkout__sidebar{margin-top:10px!important;padding:0!important}
  .woocommerce-checkout .wc-block-components-checkout-step{padding:14px 0!important;margin:0!important;border-bottom:1px solid var(--nv-line)!important}
  .woocommerce-checkout .wc-block-components-checkout-step__heading{margin-bottom:8px!important}
  .woocommerce-checkout .wc-block-components-checkout-step__title{font-size:18px!important;line-height:1.1!important}
  .woocommerce-checkout .wc-block-components-text-input input,.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input{min-height:47px!important;border-radius:9px!important;font-size:11px!important}
  .woocommerce-checkout .wc-block-components-order-summary{border-radius:12px!important;overflow:hidden!important}
  .woocommerce-checkout .wc-block-components-order-summary-item{grid-template-columns:40px minmax(0,1fr) auto!important;column-gap:8px!important;padding:10px 11px!important}
  .woocommerce-checkout .wc-block-components-order-summary-item__image,.woocommerce-checkout .wc-block-components-order-summary-item__image img{width:40px!important;min-width:40px!important}
  .woocommerce-checkout .wc-block-components-order-summary-item__image img{height:57px!important;border-radius:6px!important;object-fit:cover!important}
  .woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{font-size:9.5px!important;line-height:1.3!important;-webkit-line-clamp:3!important}
  .woocommerce-checkout .wc-block-components-order-summary-item__total-price{font-size:9px!important}
  .woocommerce-checkout .wc-block-components-checkout-place-order-button{min-height:50px!important;border-radius:10px!important;font-size:11px!important}
  .woocommerce-checkout .wc-block-components-notice-banner{font-size:10px!important;border-radius:9px!important}

  /* ---------- Account / auth ---------- */
  .woocommerce-account .nv-commerce-body>.woocommerce{width:100%!important;max-width:100%!important;min-width:0!important}
  .woocommerce-account.nv-account-auth .nv-commerce-page-head{padding:0 0 11px!important}
  .nv-v39-auth-hero{grid-template-columns:1fr!important;gap:10px!important;margin:0 0 10px!important;padding:15px!important;border-radius:12px!important}
  .nv-v39-auth-hero h2{font-size:21px!important;line-height:1.06!important}
  .nv-v39-auth-hero p{font-size:9px!important;line-height:1.55!important}
  .nv-v39-auth-benefits{display:flex!important;gap:5px!important;overflow-x:auto!important;scrollbar-width:none!important}
  .nv-v39-auth-benefits span{flex:0 0 auto!important;min-height:30px!important;padding:0 9px!important;font-size:7.5px!important;border-radius:8px!important}
  .woocommerce-account.nv-account-auth #customer_login,.woocommerce-account.nv-account-auth #customer_login.u-columns{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important}
  .woocommerce-account.nv-account-auth #customer_login>.u-column1,.woocommerce-account.nv-account-auth #customer_login>.u-column2{width:100%!important;min-width:0!important;padding:16px!important;border-radius:12px!important}
  .woocommerce-account.nv-account-auth #customer_login h2{font-size:22px!important}
  .woocommerce-account.nv-account-auth form input.input-text{min-height:48px!important;font-size:12px!important}
  .woocommerce-account.nv-account-auth button.button{min-height:46px!important;font-size:10px!important}
  .woocommerce-account .woocommerce-MyAccount-navigation{position:static!important;width:100%!important;margin:0 0 8px!important;padding:5px!important;overflow-x:auto!important;border-radius:10px!important;scrollbar-width:none!important}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex!important;gap:3px!important;width:max-content!important;min-width:100%!important}
  .woocommerce-account .woocommerce-MyAccount-navigation li a{display:flex!important;align-items:center!important;min-height:34px!important;padding:0 9px!important;font-size:8px!important;white-space:nowrap!important}
  .woocommerce-account .woocommerce-MyAccount-content{width:100%!important;min-width:0!important;padding:14px!important;border-radius:11px!important;overflow-wrap:anywhere!important}

  /* ---------- Footer ---------- */
  .site-footer{margin-top:20px!important}
  .nv-footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px 16px!important;padding:24px 0 20px!important}
  .nv-footer-brand{grid-column:1/-1!important}
  .nv-footer-brand p{max-width:560px!important;font-size:9px!important;line-height:1.6!important}
  .nv-footer>div>strong{font-size:10px!important}
  .nv-footer li a{font-size:9px!important}
  .nv-footer-merchant{display:grid!important;gap:3px!important;margin-top:12px!important;font-size:8px!important;line-height:1.5!important}
  .nv-copy{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:12px 0 16px!important;font-size:7.5px!important}

  /* Theme mode coherence */
  html[data-nv-theme=dark] .nv-mobile-nav{background:rgba(31,34,38,.96)!important;border-color:#34383d!important}
}

/* Very narrow phones: preserve three cards but remove secondary noise. */
@media(max-width:380px){
  .nv-wrap{padding-inline:9px!important}
  .nv-head{height:56px!important}
  .nv-logo-wrap{max-width:118px!important}
  .nv-icon-btn{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:36px!important}
  .nv-fandom-slider-track{grid-auto-columns:86vw!important}
  .nv-recent-grid,.nv-products,.nv-related-grid,.woocommerce ul.products{column-gap:5px!important;row-gap:16px!important}
  .nv-fandom-novel-shelf .nv-slider-track,.nv-related-track{grid-auto-columns:calc((100% - 10px)/3)!important;gap:5px!important}
  .nv-book h3{font-size:9px!important}
  .nv-book-eyebrow{display:none!important}
  .nv-card-price-inline{font-size:8.8px!important}
  .nv-card-buy{min-width:34px!important;padding-inline:4px!important}
  .nv-cover-stats b:nth-child(2){display:none!important}
  .nv-v37-product-heading h1{font-size:24px!important}
  .single-product .nv-product-main{grid-template-columns:108px minmax(0,1fr)!important;gap:9px!important}
  .nv-v37-facts-grid>div{min-height:44px!important;padding:6px!important}
  .nv-v37-secondary-actions{grid-template-columns:36px 36px minmax(0,1fr)!important}
  .nv-page-card,.nv-v38-contact-intro,.nv-v38-contact-form-card{padding:15px 13px!important}
}

/* Checkout should be distraction-free on phones. */
@media(max-width:820px){
  body.woocommerce-checkout{padding-bottom:12px!important}
  body.woocommerce-checkout .nv-mobile-nav{display:none!important}
  body.woocommerce-checkout .site-footer{margin-bottom:0!important}
}
