/* Terralora mobile-first completion layer — 320px through tablet. */
html{max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}body{max-width:100%;overflow-x:clip}img,video,iframe,svg{max-width:100%}iframe{width:100%}input,select,textarea,button{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px}dialog,[role=dialog],.modal,.tl-modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}.table-wrap,.tl-compare-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.table-wrap:after,.tl-compare-scroll:after{content:"";position:sticky;right:0;display:block;width:1px;height:1px;box-shadow:8px 0 16px 10px rgba(0,0,0,.08)}code,pre,.ref-link,input[readonly]{overflow-wrap:anywhere;word-break:break-word}.tl-payment-brand-assets img{object-fit:contain}
.tl-secure-pay{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px 24px;align-items:center;width:100%;padding:14px 0}.tl-secure-pay b{display:block;color:#fff;font-size:14px}.tl-secure-pay p{margin:4px 0 0;max-width:720px;color:#ffffffa8;font-size:11px;line-height:1.55}.tl-secure-pay small{grid-column:1/-1;color:#ffffff80}.tl-payment-brand-assets{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.tl-payment-brand-assets img:not(.tl-card-brand-strip){height:28px;width:auto;background:#fff;border-radius:5px;padding:3px 6px}.tl-card-brand-strip{width:min(350px,100%);height:auto}.tl-footer-payment-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}.tl-footer-payment-row>.tl-secure-pay{flex:1 1 100%}
@media(max-width:900px){
  button,input[type="button"],input[type="submit"],input[type="reset"],.tl-btn-primary,.btn{min-height:44px}a.tl-btn-primary,a.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
  header>div:first-of-type{padding-inline:14px!important;gap:7px!important;min-height:60px}header .text-\[26px\]{font-size:22px}header .lg\:hidden{flex:0 0 auto}header select.lg\:hidden{display:none!important}#tl-mobile-toggle{min-width:44px;min-height:44px;display:grid!important;place-content:center}header a[aria-label="Cart"],header a[aria-label*="Notifications"]{min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px!important}.tl-campaign-strip{min-height:38px;padding:7px 42px 7px 10px;font-size:11px;line-height:1.35}.tl-benefit-strip-count{right:12px}.tl-benefit-strip-x{min-width:32px;min-height:32px}.tl-offer-panel{left:12px!important;right:12px!important;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(72dvh,640px)!important;overflow:auto;border-radius:20px!important}.tl-notification-panel{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:78dvh;overflow:auto;border-radius:20px}.tl-profile-dropdown{position:fixed!important;inset:auto 10px calc(10px + env(safe-area-inset-bottom)) 10px!important;width:auto!important;max-height:80dvh;overflow:auto}.tl-account-grid{grid-template-columns:1fr;padding:24px 14px 74px;gap:14px}.tl-account-nav{display:flex;overflow-x:auto;gap:6px;padding:8px;scroll-snap-type:x proximity}.tl-account-nav a{white-space:nowrap;min-height:44px;display:flex;align-items:center;scroll-snap-align:start}.tl-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-auth-shell{grid-template-columns:1fr;padding:28px 14px 70px;gap:26px}.tl-auth-card{padding:20px 16px}.tl-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-footer-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-trust-item{padding:18px 16px}.tl-cart-layout,.tl-checkout-grid{grid-template-columns:1fr}.tl-cart-summary{position:static}.tl-checkout-shell,.tl-cart-shell{padding:26px 14px 80px}.tl-checkout-grid>*{min-width:0}.tl-whop-embed-wrap,#whop-embedded-checkout{max-width:100%;min-width:0!important;overflow:hidden}.tl-whop-embed-wrap iframe,#whop-embedded-checkout iframe{display:block;width:100%!important;min-width:0!important}.tl-pdp-grid{grid-template-columns:1fr!important;gap:24px!important}.tl-gallery-shell,.tl-buy{position:static!important}.tl-gallery{display:block!important}.tl-thumb-rail{display:block!important;margin-top:10px!important}.tl-thumbs{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:8px!important;padding:2px 2px 9px!important;scroll-snap-type:x proximity!important}.tl-thumb{display:block!important;flex:0 0 72px!important;width:72px!important;height:72px!important;aspect-ratio:1!important;border-radius:10px!important}.tl-thumb-scroll{display:none!important}.tl-main-media{border-radius:16px!important;touch-action:pan-y;scroll-snap-align:start}.tl-main-stage img{object-fit:contain!important}.tl-main-media.zoomable:hover .tl-main-stage img{transform:none!important}.tl-gallery-arrow{width:44px!important;height:44px!important}.tl-pdp{padding:14px 14px calc(100px + env(safe-area-inset-bottom))!important}.tl-pdp h1{font-size:clamp(27px,8vw,34px)!important}.tl-price-now{font-size:28px!important}.tl-mobile-buybar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(138px,1.2fr);gap:8px;align-items:center;position:fixed;z-index:65;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ddd;box-shadow:0 -8px 30px #0002}.tl-mobile-buybar button,.tl-mobile-buybar a{min-height:48px}.tl-purchase-row{grid-template-columns:76px 1fr 1fr}.tl-variant-option span{min-height:56px}.tl-swatch{width:36px;height:36px}.tl-qty-offers{grid-template-columns:1fr}.tl-secondary-actions{grid-template-columns:1fr 1fr}.tl-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tl-why{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-bundle-items{grid-template-columns:1fr}.tl-photo-lightbox{padding:10px}.tl-photo-lightbox-card{grid-template-columns:1fr;max-height:calc(100dvh - 20px);width:100%}.tl-photo-lightbox-media{min-height:240px;max-height:52dvh}.tl-photo-lightbox-copy{padding:18px}.tl-still-deciding{margin-top:32px!important}.tl-decide-box{grid-template-columns:1fr;padding:18px}.tl-messages-layout{grid-template-columns:1fr!important;padding:18px 12px 74px!important;gap:12px!important}.tl-message-panel{min-height:calc(100dvh - 160px)!important}.tl-chat-log{padding:14px;max-height:calc(100dvh - 300px)!important}.tl-chat-bubble{max-width:90%}.tl-chat-compose{position:sticky;bottom:0;padding:12px}.notify{padding:24px 12px 70px!important}.n{padding:14px 10px!important}.gc-shell{padding:28px 14px 76px!important}.gc-grid{grid-template-columns:1fr!important;gap:28px!important}.gc-preview{border-radius:18px!important;padding:22px!important}.gc-designs{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 3px 14px;gap:10px!important}.gc-design{flex:0 0 min(76vw,280px);scroll-snap-align:center;min-height:140px}.gc-pill{min-height:48px;display:flex;align-items:center}.gc-confirm{grid-template-columns:92px 1fr!important}.gc-redeem form{display:grid!important}.rewards{padding-inline:14px!important}.ref-link{min-width:0}.trade-shell,.tl-wholesale-shell,.tl-wholesale-info{padding-inline:14px!important}.trade-grid,.tl-trade-grid,.quick-order-grid{grid-template-columns:1fr!important}.tl-quote-table,.qtable{min-width:680px}.quote{padding:26px 12px 76px!important}.qbox{padding:14px!important;overflow:hidden}.qbox>div{overflow-x:auto}.tl-cart-drawer{width:min(100vw,430px)!important;max-width:100vw!important}.tl-cart-drawer-body{overflow-y:auto;-webkit-overflow-scrolling:touch}.tl-cart-drawer-footer{position:sticky;bottom:0;background:#fff}.tl-cart-toast{left:10px!important;right:10px!important;top:auto!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;max-height:30dvh;overflow:auto}.tl-cookie-panel,#tl-cookie-panel{left:10px!important;right:10px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;max-height:82dvh;overflow:auto;padding:16px!important}body:has(#tl-cookie-panel:not([hidden])) .tl-mobile-buybar{display:none!important}.tl-footer-payment-row{display:grid}.tl-secure-pay{grid-template-columns:1fr;text-align:left}.tl-payment-brand-assets{justify-content:flex-start}.tl-secure-pay small{grid-column:1}.tl-footer-locale-row{display:flex;overflow-x:auto;gap:12px;padding-bottom:5px}.tl-payment-inner{align-items:flex-start}.tl-payment-logos{gap:9px}.tl-card-strip{max-width:100%;height:auto}.tl-info-page{padding:35px 14px 70px}.tl-info-page h1{font-size:clamp(30px,10vw,46px)}
}
@media(max-width:640px){
  header .text-\[26px\]{font-size:20px}header .w-8.h-8{width:30px;height:30px}.tl-campaign-strip{font-size:10px}header>div.border-t{display:none!important}#tl-mobile-menu{position:fixed;z-index:80;left:0;right:0;top:var(--tl-mobile-header-offset,60px);bottom:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 14px 35px #0003}#tl-mobile-menu form{position:sticky;top:0;background:#fff;z-index:1;margin:0!important;padding:12px;border-radius:0!important}#tl-mobile-menu nav{padding:8px 18px 30px!important;gap:0!important}#tl-mobile-menu nav a{display:flex;align-items:center;min-height:48px;border-bottom:1px solid #eee}.tl-footer-trust-grid{grid-template-columns:1fr}.tl-trust-item{border-right:0;border-bottom:1px solid #ecece9}.tl-cart-line{grid-template-columns:92px 1fr;padding:14px;gap:12px}.tl-cart-image{width:92px;height:92px}.tl-cart-row{display:block}.tl-cart-price{margin-top:5px}.tl-cart-actions{gap:12px;margin-top:14px}.tl-cart-heading,.tl-checkout-head{align-items:flex-start;display:block}.tl-cart-heading h1,.tl-checkout-head h1{font-size:32px}.tl-checkout-line{grid-template-columns:50px minmax(0,1fr) auto}.tl-checkout-miniimg{width:50px;height:50px}.tl-purchase-row{grid-template-columns:72px 1fr}.tl-purchase-row .tl-buy-now{grid-column:1/-1}.tl-secondary-actions{grid-template-columns:1fr}.tl-variant-grid{grid-template-columns:1fr}.tl-highlights,.tl-specs{grid-template-columns:1fr}.tl-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tl-why{grid-template-columns:1fr}.tl-review-head{display:block}.tl-review-source{margin-top:8px}.tl-overview-cards{grid-template-columns:1fr 1fr}.tl-order-row{display:grid!important;grid-template-columns:auto 1fr auto;gap:9px!important}.tl-order-row-main{grid-column:2/4!important;min-width:0}.tl-order-row-status{grid-column:2}.tl-order-row-total{grid-column:3}.tl-order-row-view{grid-column:2/4;min-height:44px;display:flex;align-items:center}.tl-track{grid-template-columns:1fr!important;gap:0}.tl-track:before{display:none}.tl-track-step{display:grid;grid-template-columns:30px 1fr;text-align:left;align-items:center;min-height:42px}.tl-track-dot{margin:0}.gc-hero{padding:34px 14px!important}.gc-hero h1{font-size:clamp(32px,11vw,48px)!important}.gc-preview strong{font-size:26px!important}.gc-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}.gc-pill{justify-content:center;text-align:center;padding:11px!important}.gc-confirm{grid-template-columns:1fr!important}.gc-confirm-img{max-width:180px}.r-balance{font-size:32px}.tl-auth-shell h1,.rewards h1,.notify h1{font-size:clamp(29px,9vw,40px)!important}.tl-auth-card,.r-card,.tl-account-card{border-radius:15px}.tl-info-grid{grid-template-columns:1fr}.tl-footer-payment-row{gap:20px}.tl-card-brand-strip{width:100%;max-width:350px}.tl-payment-brand-assets img:not(.tl-card-brand-strip){height:32px}.tl-locale-modal>div,#tl-locale-modal>div{max-height:calc(100dvh - 20px);overflow:auto}.tl-footer-locale-row a,.tl-footer-locale-row button{white-space:nowrap;min-height:44px;display:flex;align-items:center}.tl-photo-tile{flex-basis:104px;width:104px;height:104px}
}
@media(max-width:360px){header .text-\[26px\]{display:none}header>div:first-of-type{padding-inline:8px!important}.tl-overview-cards,.tl-related-grid{grid-template-columns:1fr}.gc-options{grid-template-columns:1fr}.tl-purchase-row{grid-template-columns:64px 1fr}.tl-cart-line{grid-template-columns:76px 1fr}.tl-cart-image{width:76px;height:76px}.tl-mobile-buybar{grid-template-columns:1fr}.tl-mobile-buybar .price{display:none}.tl-card-brand-strip{min-width:0}.tl-secure-pay{padding-inline:0}}
[dir=rtl] .tl-chat-bubble.customer{margin-left:0;margin-right:auto}[dir=rtl] .tl-chat-bubble.admin{margin-right:0;margin-left:auto}[dir=rtl] .tl-order-row,[dir=rtl] .tl-track-step,[dir=rtl] .tl-secure-pay{text-align:right}[dir=rtl] .tl-payment-brand-assets{justify-content:flex-start}[dir=rtl] .tl-cart-badge{right:auto;left:-9px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

@media(max-width:900px){.tl-mobile-nav-group{border-bottom:1px solid #eee}.tl-mobile-nav-group summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-weight:800;cursor:pointer}.tl-mobile-nav-group summary:after{content:'+'}.tl-mobile-nav-group[open] summary:after{content:'−'}.tl-mobile-nav-group a{padding-left:14px!important;font-weight:500}.tl-messages-layout:has(.tl-thread-link.active,.tl-thread-link.is-active) .tl-message-sidebar{display:none}.tl-messages-layout:not(:has(.tl-thread-link.active,.tl-thread-link.is-active)) .tl-message-panel{display:none}.tl-message-mobile-back{display:flex;min-height:44px;align-items:center;padding:8px 14px;border-bottom:1px solid #eee;font-weight:800}}
@media(min-width:901px){.tl-message-mobile-back{display:none}}
/* Terralora Mobile v35 — global mobile-first hardening
   Scope: storefront, product/catalog, cart/checkout, account, support, trade and legal pages.
   Loaded after page CSS so these rules are the final responsive safety layer. */

:root{
  --tl-mobile-gutter:14px;
  --tl-mobile-header-offset:64px;
  --tl-mobile-safe-bottom:env(safe-area-inset-bottom,0px);
}
html{max-width:100%;overflow-x:hidden;scroll-padding-top:calc(var(--tl-mobile-header-offset) + 10px)}
body{max-width:100%;overflow-x:hidden;overflow-wrap:anywhere}
*,*:before,*:after{min-width:0}
img,video,canvas,svg{max-width:100%;height:auto}
iframe,embed,object{max-width:100%}
pre,code{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
input,select,textarea,button{max-width:100%}
textarea{min-width:0}
[data-tl-mobile-table-wrap]{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
[data-tl-mobile-table-wrap] table{width:100%;margin:0}
.tl-mobile-only{display:none!important}

/* Long content must never force horizontal overflow. */
.tl-alert,.tl-notice,.tl-info-page,.tl-auth-card,.tl-account-card,.hub-card,.r-card,.settings-card,.pref,.offer,.trade-card,.box,.panel,.qbox,.tl-under-card,.tl-review-card,.tl-qa,.gc-detail,.gc-list{
  overflow-wrap:anywhere;
}

@media(max-width:1023px){
  :root{--tl-mobile-gutter:14px}
  .tl-desktop-only{display:none!important}.tl-mobile-only{display:initial!important}

  /* ---------- Header / navigation ---------- */
  body.tl-mobile-menu-open{overflow:hidden;touch-action:none}
  header{width:100%;max-width:100vw}
  header>div:first-of-type{padding:9px 12px!important;gap:8px!important;min-height:58px}
  header>div:first-of-type>a[aria-label="Terralora home"]{gap:7px!important;min-width:0}
  header>div:first-of-type>a[aria-label="Terralora home"] .text-\[26px\]{font-size:21px!important;white-space:nowrap}
  header>div:first-of-type>a[aria-label="Terralora home"] .w-8.h-8{width:31px!important;height:31px!important;flex:0 0 31px}
  header>div:first-of-type>select{display:none!important}
  header>div:first-of-type>a[aria-label="Cart"],
  header>div:first-of-type>a[aria-label="Notifications and messages"],
  #tl-mobile-toggle{width:42px;height:42px;display:grid!important;place-items:center;padding:0!important;flex:0 0 42px;border-radius:12px}
  #tl-mobile-toggle span{width:21px!important;margin-left:auto;margin-right:auto}
  header>div.border-t{display:none!important}

  #tl-mobile-menu{position:fixed!important;z-index:100!important;left:0!important;right:0!important;top:var(--tl-mobile-header-offset)!important;bottom:0!important;width:100%!important;max-width:100vw!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:#fff!important;padding-bottom:calc(20px + var(--tl-mobile-safe-bottom));box-shadow:0 18px 45px #0003}
  #tl-mobile-menu.hidden{display:none!important}
  #tl-mobile-menu form{position:sticky!important;top:0!important;z-index:3!important;background:#fff!important;margin:0!important;padding:12px!important;border:0!important;border-bottom:1px solid #ecece8!important;border-radius:0!important}
  #tl-mobile-menu form input{min-height:46px;font-size:16px!important;background:#f7f7f4;border-radius:999px 0 0 999px}
  #tl-mobile-menu form button{min-width:48px;min-height:46px;border-radius:0 999px 999px 0;background:#f7f7f4}
  #tl-mobile-menu nav{padding:7px 16px 26px!important;gap:0!important}
  #tl-mobile-menu nav>a,#tl-mobile-menu .tl-mobile-nav-group summary,#tl-mobile-menu .tl-mobile-nav-group a{min-height:48px;display:flex;align-items:center;padding:10px 4px!important;border-bottom:1px solid #efefeb;line-height:1.25}
  #tl-mobile-menu .tl-mobile-nav-group{border:0!important}
  #tl-mobile-menu .tl-mobile-nav-group>a{padding-left:14px!important}
  #tl-mobile-menu .tl-mobile-nav-group a[style*="padding-left:24px"]{padding-left:28px!important;font-size:13px}
  .tl-mobile-locale-controls{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin:12px 16px 6px;padding:12px;border:1px solid #e6e6e1;border-radius:14px;background:#fafaf7}
  .tl-mobile-locale-controls label{display:grid;gap:5px;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#6d706d}
  .tl-mobile-locale-controls select{width:100%;min-height:44px;padding:9px 10px;border:1px solid #d9d9d4;border-radius:10px;background:#fff;font-size:14px}
  .tl-search-suggest-box{position:fixed!important;left:10px!important;right:10px!important;top:calc(var(--tl-mobile-header-offset) + 66px)!important;max-height:calc(100dvh - var(--tl-mobile-header-offset) - 82px)!important}

  /* ---------- Global spacing / typography ---------- */
  main:not(.receipt),.tl-pdp,.tl-cart-shell,.tl-checkout-shell,.gc-shell,.gc-account,.hub,.notify,.offers,.orders,.pref-page,.review-center,.rewards,.security,.settings,.shell,.gift-page,.msg,.offers-page,.detail,.reviews-shell,.wish,.policy,.quote,.trade-shell,.tl-wholesale-shell{
    max-width:100%!important;
  }
  main.max-w-\[1400px\],main.max-w-\[1200px\],main.max-w-\[650px\]{padding-left:var(--tl-mobile-gutter)!important;padding-right:var(--tl-mobile-gutter)!important}
  .px-6{padding-left:var(--tl-mobile-gutter)!important;padding-right:var(--tl-mobile-gutter)!important}
  .py-20{padding-top:44px!important;padding-bottom:52px!important}.py-16{padding-top:38px!important;padding-bottom:44px!important}.py-14{padding-top:34px!important;padding-bottom:40px!important}.py-12{padding-top:30px!important;padding-bottom:36px!important}.py-10{padding-top:26px!important;padding-bottom:30px!important}
  h1{overflow-wrap:anywhere}
  .text-5xl{font-size:clamp(2rem,9vw,2.8rem)!important;line-height:1.06!important}.text-4xl{font-size:clamp(1.8rem,8vw,2.35rem)!important;line-height:1.1!important}.text-3xl{font-size:clamp(1.55rem,7vw,1.95rem)!important}.text-2xl{font-size:clamp(1.3rem,6vw,1.55rem)!important}

  /* ---------- Touch / forms ---------- */
  .tl-btn-primary,.tl-btn-outline,.tl-btn-dark,.tl-mini-btn,main form button[type="submit"],main form input[type="submit"]{min-height:44px}
  .tl-input,.tl-form-group input,.tl-form-group select,.tl-form-group textarea,main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),main select,main textarea{font-size:16px}
  input[type="checkbox"],input[type="radio"]{min-width:18px;min-height:18px}
  .tl-form-group,.form-group{min-width:0}
  form .flex{flex-wrap:wrap}
  form .flex>input:not([type="checkbox"]):not([type="radio"]),form .flex>select,form .flex>textarea{flex:1 1 180px}

  /* ---------- Tables / dense data ---------- */
  table{font-size:12px}
  .tl-quote-table,.qtable,.table{min-width:680px!important}
  .table-wrap,[class*="table-wrap"],.qbox>div{max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}

  /* ---------- Homepage ---------- */
  .tl-v11-home-grid{grid-template-columns:1fr!important;gap:12px!important}
  .tl-v11-home-main{min-height:390px!important;border-radius:18px!important}
  .tl-v11-brand-stack{grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;gap:12px!important}
  .tl-v11-brand-stack>article{min-height:185px!important}
  .tl-home-sale-hero{padding:18px!important;border-radius:17px!important;gap:14px!important}
  .tl-home-sale-hero>div[style*="text-align:right"]{text-align:left!important}
  .tl-home-proof{padding:18px!important;border-radius:18px!important}
  .tl-home-proof-head{align-items:flex-start!important;flex-direction:column!important;gap:7px!important}
  .tl-home-proof-card{flex:0 0 min(72vw,220px)!important}
  .tl-home-proof-card img{height:auto!important;aspect-ratio:1/1!important}
  .tl-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .tl-home-gift-teaser{width:100%}

  /* ---------- Catalog / category / brand / search ---------- */
  .tl-cat-hero-grid{grid-template-columns:1fr!important;gap:20px!important}
  .tl-cat-hero-image{max-width:100%!important}
  .tl-cat-tools,.tl-collection-tools{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .tl-cat-tools button,.tl-collection-tools button{grid-column:1/-1;min-height:44px}
  .tl-subcats{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:7px;scroll-snap-type:x proximity}
  .tl-subcats a{flex:0 0 auto;scroll-snap-align:start;min-height:42px;display:flex;align-items:center}
  .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .tl-home-product-card,.tl-store-product-card{min-width:0}
  .tl-home-product-card h3,.tl-store-product-card h3{overflow-wrap:anywhere}

  /* ---------- Product page ---------- */
  .tl-pdp{padding:12px var(--tl-mobile-gutter) calc(108px + var(--tl-mobile-safe-bottom))!important}
  .tl-pdp-grid{display:grid!important;grid-template-columns:1fr!important;gap:20px!important}
  .tl-gallery-shell,.tl-buy{position:static!important;top:auto!important;width:100%!important}
  .tl-gallery{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;gap:9px!important}
  .tl-main-media{grid-row:1!important;grid-column:1!important;width:100%!important;border-radius:15px!important;background:#faf9f6!important;overflow:hidden!important;touch-action:pan-y}
  .tl-main-stage,.tl-main-stage img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
  .tl-main-media.zoomable:hover .tl-main-stage img{transform:none!important}
  .tl-thumb-rail{grid-row:2!important;grid-column:1!important;width:100%!important;overflow:hidden!important}
  .tl-thumbs{display:flex!important;flex-direction:row!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;padding:2px 2px 8px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .tl-thumb{flex:0 0 68px!important;width:68px!important;height:68px!important;scroll-snap-align:start}
  .tl-thumb-scroll{display:none!important}
  .tl-gallery-arrow{width:40px!important;height:40px!important}.tl-gallery-arrow.prev{left:8px!important}.tl-gallery-arrow.next{right:8px!important}
  .tl-pdp h1{font-size:clamp(25px,7vw,32px)!important;letter-spacing:-.35px!important}
  .tl-price-now{font-size:27px!important}
  .tl-promo-card,.tl-delivery-line,.tl-shipping-cost{align-items:flex-start!important;flex-wrap:wrap!important}
  .tl-highlights,.tl-specs{grid-template-columns:1fr 1fr!important}
  .tl-variant-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-variant-option span{min-height:54px!important;padding:9px!important}
  .tl-qty-offers{grid-template-columns:1fr!important}
  .tl-purchase-row{grid-template-columns:78px minmax(0,1fr)!important;gap:8px!important}
  .tl-purchase-row .tl-buy-now{grid-column:1/-1!important}
  .tl-secondary-actions{grid-template-columns:1fr 1fr!important}
  .tl-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .tl-why{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-process{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-bundle-items{grid-template-columns:1fr!important}
  .tl-story-section,.tl-community,.tl-related,.tl-bundle{margin-top:42px!important}
  .tl-under-gallery{margin:14px 0 0!important;max-width:100%!important}
  .tl-under-trust{grid-template-columns:1fr!important}
  .tl-review-overview{grid-template-columns:1fr!important;gap:15px!important;padding:16px!important}
  .tl-photo-lightbox,.tl-product-lightbox{padding:8px!important}
  .tl-photo-lightbox-card{width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:15px!important;grid-template-columns:1fr!important}
  .tl-product-lightbox-layout{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}
  .tl-product-lightbox-close,.tl-photo-lightbox-close{right:10px!important;top:10px!important}
  .tl-mobile-buybar{display:grid!important;grid-template-columns:minmax(84px,.75fr) minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;align-items:center!important;position:fixed!important;z-index:70!important;left:0!important;right:0!important;bottom:0!important;padding:9px 10px calc(9px + var(--tl-mobile-safe-bottom))!important;background:#fff!important;border-top:1px solid #deded8!important;box-shadow:0 -8px 30px #0002!important}
  .tl-mobile-buybar button{min-height:46px!important;padding:10px 8px!important}

  /* ---------- Cart ---------- */
  .tl-cart-shell{padding:20px var(--tl-mobile-gutter) 76px!important}
  .tl-cart-layout{grid-template-columns:1fr!important;gap:18px!important}
  .tl-cart-summary{position:static!important;top:auto!important;width:100%!important}
  .tl-cart-heading{display:block!important}.tl-cart-heading>*+*{margin-top:8px}
  .tl-cart-line{grid-template-columns:88px minmax(0,1fr)!important;gap:11px!important;padding:13px!important}
  .tl-cart-image{width:88px!important;height:88px!important}
  .tl-cart-row{display:block!important}.tl-cart-price{margin-top:5px!important}
  .tl-cart-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:12px!important}
  .tl-cart-switch{overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:5px}.tl-cart-switch a{flex:0 0 auto}
  .tl-gift-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-cart-drawer{width:min(100vw,430px)!important;max-width:100vw!important}
  .tl-cart-drawer-body{overflow-y:auto!important;-webkit-overflow-scrolling:touch}.tl-cart-drawer-footer{position:sticky!important;bottom:0!important;background:#fff!important}
  .tl-cart-toast{left:10px!important;right:10px!important;top:auto!important;bottom:calc(82px + var(--tl-mobile-safe-bottom))!important;max-height:34dvh!important;overflow:auto!important}

  /* ---------- Checkout ---------- */
  .tl-checkout-shell{padding:20px var(--tl-mobile-gutter) 76px!important}
  .tl-checkout-grid{grid-template-columns:1fr!important;gap:18px!important}
  .tl-checkout-grid>*{min-width:0!important}
  .tl-checkout-head{display:block!important}.tl-checkout-head>*+*{margin-top:8px}
  .tl-checkout-line{grid-template-columns:52px minmax(0,1fr) auto!important;gap:9px!important}
  .tl-checkout-miniimg{width:52px!important;height:52px!important}
  .tl-whop-embed-wrap,#whop-embedded-checkout{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important}
  .tl-whop-embed-wrap iframe,#whop-embedded-checkout iframe{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .tl-gift-sheet>section{width:100%!important;max-height:88dvh!important;padding:16px var(--tl-mobile-gutter) calc(20px + var(--tl-mobile-safe-bottom))!important;border-radius:20px 20px 0 0!important}
  .tl-gift-sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}

  /* ---------- Auth / account ---------- */
  .tl-auth-shell{padding:28px var(--tl-mobile-gutter) 62px!important}
  .tl-auth-card{width:100%!important;max-width:100%!important;padding:20px 16px!important;border-radius:16px!important}
  .tl-auth-shell h1{font-size:clamp(29px,8vw,39px)!important}
  .gc-account,.hub,.notify,.offers,.orders,.pref-page,.review-center,.rewards,.security,.settings,.shell,.gift-page,.msg,.offers-page,.detail,.reviews-shell,.wish,.policy{padding-left:var(--tl-mobile-gutter)!important;padding-right:var(--tl-mobile-gutter)!important}
  .hub{padding-top:26px!important;padding-bottom:60px!important}.hub-head{display:block!important}.hub-head h1{font-size:32px!important}.hub-switch{margin-top:13px;width:100%!important;overflow-x:auto}.hub-switch a{flex:1;text-align:center;white-space:nowrap}
  .hub-grid,.gc-layout,.gc-summary,.metric-grid,.prefs,.settings-grid,.security-grid,.pref-grid,.review-grid{grid-template-columns:1fr!important}
  .hub-card.full{grid-column:auto!important}
  .metric-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rows .row,.row{min-width:0}.hub .row{align-items:flex-start!important;flex-wrap:wrap!important}
  .inline{align-items:stretch!important}.inline>*{flex:1 1 160px!important}
  .gc-summary{gap:10px!important}.gc-sum{padding:17px!important;border-radius:15px!important}.gc-sum b{font-size:27px!important}
  .gc-layout{gap:12px!important}.gc-list,.gc-detail{padding:15px!important;border-radius:15px!important}
  .gc-code{font-size:16px!important;word-break:break-all}
  .actions{gap:8px!important}.actions form{max-width:100%;flex:1 1 210px}.actions form input{width:100%}
  .redeem form{display:grid!important;grid-template-columns:1fr!important}
  .offers .offer-grid{grid-template-columns:1fr!important}.offer .code{font-size:20px!important;word-break:break-word}
  .orders .filters{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .tl-order-row{grid-template-columns:auto minmax(0,1fr) auto!important}
  .tl-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-track{grid-template-columns:1fr!important;gap:0!important}.tl-track:before{display:none!important}.tl-track-step{display:grid!important;grid-template-columns:32px 1fr!important;text-align:left!important;align-items:center!important;min-height:44px}.tl-track-dot{margin:0!important}

  /* ---------- Messages / support ---------- */
  .msg{padding-top:22px!important;padding-bottom:72px!important}
  .msg-shell,.tl-messages-layout{grid-template-columns:1fr!important;min-height:0!important;border-radius:15px!important}
  .msg-folders{display:flex!important;overflow-x:auto!important;gap:6px!important;padding:9px!important}.msg-folders a{flex:0 0 auto;white-space:nowrap;min-height:42px;display:flex!important;align-items:center}
  .msg-list{max-height:42dvh!important;border-right:0!important}
  .conversation,.tl-message-panel{padding:14px!important;min-height:0!important}
  .thread-head{align-items:flex-start!important;flex-direction:column!important}.thread-actions{width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important}.thread-actions>*{flex:0 0 auto}
  .chat,.tl-chat-log{max-height:48dvh!important;-webkit-overflow-scrolling:touch}
  .bubble,.tl-chat-bubble{max-width:90%!important}
  .compose,.tl-chat-compose{grid-template-columns:1fr!important;position:sticky;bottom:0;background:#fff;padding-top:8px}
  .compose button,.tl-chat-compose button{width:100%}

  /* ---------- Wishlist / offers / gift cards / reviews ---------- */
  .wish{padding-top:24px!important;padding-bottom:60px!important}.wish-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.wish-card{padding:9px!important;border-radius:14px!important}
  .gc-shell{padding-top:28px!important;padding-bottom:72px!important}.gc-grid{grid-template-columns:1fr!important;gap:22px!important}.gc-designs{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;gap:10px!important;padding-bottom:10px}.gc-design{flex:0 0 min(76vw,280px)!important;scroll-snap-align:center}.gc-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gift-page{padding-top:26px!important;padding-bottom:70px!important}.gift-actions{display:grid!important;grid-template-columns:1fr!important}.gift-step{padding:15px!important}
  .reviews-shell{padding-top:25px!important}.review-item{padding:14px!important}.tl-review-head{display:block!important}.tl-review-source{margin-top:7px!important}

  /* ---------- Trade / wholesale ---------- */
  .trade-grid,.tl-trade-grid,.quick-order-grid,.trade-shell .grid,.tl-wholesale-shell .grid{grid-template-columns:1fr!important}
  .trade-shell,.tl-wholesale-shell,.tl-wholesale-info{padding-left:var(--tl-mobile-gutter)!important;padding-right:var(--tl-mobile-gutter)!important}
  .quote{padding:24px var(--tl-mobile-gutter) 70px!important}.qbox{padding:13px!important;overflow:hidden!important}

  /* ---------- Content / legal / story ---------- */
  .tl-info-page{padding:30px var(--tl-mobile-gutter) 60px!important}.tl-info-page h1{font-size:clamp(29px,9vw,42px)!important}.tl-info-grid{grid-template-columns:1fr!important}
  .policy{padding-top:28px!important;padding-bottom:60px!important}
  article.prose,main article{max-width:100%}

  /* ---------- Footer / overlays ---------- */
  footer{max-width:100vw;overflow:hidden}
  .tl-footer-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tl-trust-item{padding:15px 12px!important}
  .tl-footer-payment-row{display:grid!important;grid-template-columns:1fr!important;gap:18px!important}.tl-secure-pay{grid-template-columns:1fr!important;text-align:left!important}.tl-payment-brand-assets{justify-content:flex-start!important;flex-wrap:wrap!important}.tl-secure-pay small{grid-column:1!important}
  .tl-footer-locale-row{display:flex!important;overflow-x:auto!important;gap:10px!important;padding-bottom:6px}.tl-footer-locale-row>*{flex:0 0 auto}
  .tl-cookie-panel,#tl-cookie-panel{left:8px!important;right:8px!important;bottom:calc(8px + var(--tl-mobile-safe-bottom))!important;max-height:82dvh!important;overflow:auto!important;padding:15px!important}
  body:has(#tl-cookie-panel:not([hidden])) .tl-mobile-buybar{display:none!important}
  dialog,[role="dialog"]{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}
}

@media(max-width:640px){
  :root{--tl-mobile-gutter:12px}
  header>div:first-of-type{padding-inline:9px!important;gap:5px!important}
  header>div:first-of-type>a[aria-label="Terralora home"] .text-\[26px\]{font-size:19px!important}
  header>div:first-of-type>a[aria-label="Cart"],header>div:first-of-type>a[aria-label="Notifications and messages"],#tl-mobile-toggle{width:40px;height:40px;flex-basis:40px}
  .tl-mobile-locale-controls{margin-inline:12px;grid-template-columns:1fr 1fr}

  .tl-v11-brand-stack{grid-template-columns:1fr!important}.tl-v11-home-main{min-height:340px!important}.tl-v11-brand-stack>article{min-height:180px!important}
  .tl-home-sale-hero{flex-direction:column!important;align-items:flex-start!important}.tl-home-sale-hero>a,.tl-home-sale-hero>b{white-space:normal!important}

  .tl-cat-tools,.tl-collection-tools{grid-template-columns:1fr!important}.tl-cat-tools button,.tl-collection-tools button{grid-column:auto!important}
  .tl-highlights,.tl-specs{grid-template-columns:1fr!important}
  .tl-variant-grid{grid-template-columns:1fr!important}
  .tl-secondary-actions{grid-template-columns:1fr!important}
  .tl-why,.tl-process{grid-template-columns:1fr!important}
  .tl-mobile-buybar{grid-template-columns:minmax(72px,.65fr) minmax(0,1fr)!important}.tl-mobile-buybar .m-buy{display:none!important}

  .tl-cart-line{grid-template-columns:78px minmax(0,1fr)!important}.tl-cart-image{width:78px!important;height:78px!important}.tl-gift-options{grid-template-columns:1fr!important}
  .tl-checkout-line{grid-template-columns:48px minmax(0,1fr)!important}.tl-checkout-line>*:last-child{grid-column:2}.tl-checkout-miniimg{width:48px!important;height:48px!important}.tl-gift-sheet-grid{grid-template-columns:1fr!important}

  .metric-grid{grid-template-columns:1fr!important}.orders .filters{grid-template-columns:1fr!important}.tl-overview-cards{grid-template-columns:1fr!important}
  .gc-options{grid-template-columns:1fr!important}
  .tl-footer-trust-grid{grid-template-columns:1fr!important}.tl-trust-item{border-right:0!important}
}

@media(max-width:420px){
  header>div:first-of-type>a[aria-label="Terralora home"] .text-\[26px\]{font-size:18px!important}
  header>div:first-of-type>a[aria-label="Notifications and messages"]{display:none!important}
  .tl-recent-grid,.wish-grid,.grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4,.tl-related-grid{grid-template-columns:1fr!important}
  .tl-purchase-row{grid-template-columns:68px minmax(0,1fr)!important}
  .tl-mobile-buybar{grid-template-columns:1fr!important}.tl-mobile-buybar>div{display:none!important}.tl-mobile-buybar button{width:100%!important}
}

@media(max-width:350px){
  header>div:first-of-type>a[aria-label="Terralora home"] .text-\[26px\]{display:none!important}
  .tl-mobile-locale-controls{grid-template-columns:1fr}
}

/* Touch devices: remove hover-only transformations that can stick after taps. */
@media(hover:none){
  .tl-thumb:hover,.tl-related-card:hover img,.tl-home-proof-card:hover img,.tl-home-product-card:hover img{transform:none!important}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* Page-specific final guards discovered by the full-template audit. */
@media(max-width:1023px){
  .reward-grid,.review-grid,.tp-grid,.detail-grid,.gift-hero,.gift-steps,.trade-meta{grid-template-columns:1fr!important}
  .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .review-layout{grid-template-columns:1fr!important}
  .ref-link{grid-template-columns:minmax(0,1fr) auto!important}.history-row{grid-template-columns:1fr!important;gap:6px!important}
  .detail .line{grid-template-columns:64px minmax(0,1fr) auto!important}
  .timeline{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-address-grid{grid-template-columns:1fr!important}
  .settings-facts{grid-template-columns:1fr!important}
  .close-form{grid-template-columns:1fr!important}
  .n{max-width:100%}
  .tl-compare-table{min-width:660px!important}
}
@media(max-width:640px){
  .gift-grid{grid-template-columns:1fr!important}.timeline{grid-template-columns:1fr!important}.detail .line{grid-template-columns:54px minmax(0,1fr)!important}.detail .line>*:last-child{grid-column:2}
  .ref-link{grid-template-columns:1fr!important}
}


/* Terralora Mobile v36 — full-site audit corrections.
   Final overrides discovered during template-by-template mobile review. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{
  --tl-safe-left:env(safe-area-inset-left,0px);
  --tl-safe-right:env(safe-area-inset-right,0px);
}

@media(max-width:1023px){
  /* Safe-area aware shell: iPhone notches and landscape never clip the UI. */
  header>div:first-of-type{padding-left:max(10px,var(--tl-safe-left))!important;padding-right:max(10px,var(--tl-safe-right))!important}
  #tl-mobile-menu{padding-left:var(--tl-safe-left)!important;padding-right:var(--tl-safe-right)!important}
  .tl-mobile-buybar{padding-left:max(10px,var(--tl-safe-left))!important;padding-right:max(10px,var(--tl-safe-right))!important}
  .tl-cart-drawer{padding-right:var(--tl-safe-right)}

  /* Mobile navigation details and keyboard/touch ergonomics. */
  #tl-mobile-menu summary{list-style:none;-webkit-tap-highlight-color:transparent;user-select:none}
  #tl-mobile-menu summary::-webkit-details-marker{display:none}
  #tl-mobile-menu a,#tl-mobile-menu summary,#tl-mobile-menu button,#tl-mobile-menu select{touch-action:manipulation}
  #tl-mobile-menu input,#tl-mobile-menu select,#tl-locale-modal input,#tl-locale-modal select{font-size:16px!important}

  /* Product page final audit fixes. */
  .tl-main-stage video,.tl-main-stage iframe{width:100%!important;height:auto!important;aspect-ratio:16/9!important;display:block!important}
  .tl-community-form>div[style*="grid-template-columns"]{grid-template-columns:1fr!important}
  .tl-decide-box{grid-template-columns:1fr!important;gap:14px!important;padding:17px!important}
  .tl-decide-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .tl-decide-actions a,.tl-decide-actions button{width:100%!important;text-align:center!important;min-height:44px!important}
  .tl-review-images{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .tl-review-images img{max-width:none}
  .tl-product-lightbox-stage{max-width:100%!important}
  .tl-product-lightbox-stage img{max-width:100%!important;max-height:calc(100dvh - 150px)!important}
  .tl-product-lightbox-side{max-width:100%!important}
  .tl-product-lightbox-thumbs{max-width:100%!important;overflow-x:auto!important}

  /* Cart drawer class names are tl-cd-* in the actual template. */
  .tl-cd-body{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;min-height:0!important}
  .tl-cd-foot{flex:0 0 auto!important;padding-bottom:calc(16px + var(--tl-mobile-safe-bottom))!important}
  .tl-cd-added{grid-template-columns:72px minmax(0,1fr)!important;gap:10px!important}
  .tl-cd-added img{width:72px!important;height:72px!important}
  .tl-cd-rec{grid-template-columns:60px minmax(0,1fr) auto!important;gap:8px!important}
  .tl-cd-rec img{width:60px!important;height:60px!important}
  .tl-cd-gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Account timeline does not wrap into a misleading second row on narrow phones. */
  .tl-order-progress{display:flex!important;overflow-x:auto!important;gap:4px!important;padding:2px 2px 8px!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .tl-order-progress-step{flex:1 0 68px!important;scroll-snap-align:start}

  /* Flexible cards / action rows that can contain translated long labels. */
  .tl-account-card .flex,.r-card .flex,.settings-card .flex,.security-card .flex,.gift-step .flex,.trade-card .flex{flex-wrap:wrap}
  .tl-account-card button,.tl-account-card a.tl-btn-primary,.r-card button,.settings-card button{max-width:100%}

  /* Footer + newsletter: no two-column squeeze on actual phones. */
  #tl-newsletter-form{max-width:100%!important}
  #tl-newsletter-form>div{max-width:100%!important}
  footer .grid.grid-cols-2{min-width:0}
  .tl-footer-payment-row,.tl-secure-pay,.tl-payment-brand-assets{min-width:0}

  /* Floating notices cannot push beyond the viewport. */
  .tl-gift-awareness,.tl-cart-toast,.tl-offer-panel,.tl-notification-panel,.tl-profile-dropdown{max-width:calc(100vw - 16px)!important}

  /* Prevent long localized strings / codes from creating document overflow. */
  .code,.coupon-code,.gift-code,.ref-link,.tl-offer-code,.tl-cart-sku,.tl-product-sku,.tl-profile-value{overflow-wrap:anywhere;word-break:break-word}
}

@media(max-width:520px){
  /* Footer navigation and newsletter become true single-column mobile blocks. */
  footer .grid.grid-cols-2{grid-template-columns:1fr!important;gap:28px!important}
  #tl-newsletter-form>div{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important}
  #tl-newsletter-form input{width:100%!important;min-height:46px!important;border:1px solid #ffffff33!important;border-radius:999px!important;background:#ffffff12!important;padding:11px 15px!important}
  #tl-newsletter-form button{width:100%!important;min-height:46px!important;border-radius:999px!important}
  .tl-footer-locale-row{margin-left:-2px;margin-right:-2px}

  /* Dense transaction rows stack cleanly when amount/status text is long. */
  .tl-order-row{grid-template-columns:auto minmax(0,1fr)!important}
  .tl-order-row-status,.tl-order-row-total,.tl-order-row-view{grid-column:2!important;justify-self:start!important;white-space:normal!important}
}

@media(max-width:380px){
  .tl-cd-gift-grid{grid-template-columns:1fr!important}
  .tl-cd-rec{grid-template-columns:52px minmax(0,1fr)!important}
  .tl-cd-rec img{width:52px!important;height:52px!important}
  .tl-cd-rec button{grid-column:2!important;width:100%!important}
  .tl-cart-toast{left:6px!important;right:6px!important}
}

/* Short landscape phones: dialogs/menu remain usable above browser chrome/keyboard. */
@media(max-width:1023px) and (max-height:520px){
  #tl-mobile-menu{top:var(--tl-mobile-header-offset)!important}
  .tl-photo-lightbox-card,.tl-product-lightbox-layout,#tl-locale-modal>div{max-height:calc(100dvh - 8px)!important}
  .tl-product-lightbox-side{display:none!important}
  .tl-product-lightbox-stage img{max-height:calc(100dvh - 28px)!important}
}

/* ============================================================
   Terralora Mobile + Tablet v37 — conversion-first responsive pass
   Built from real iPhone screenshots and live template structure.
   ============================================================ */
:root{
  --tl-phone-gutter:12px;
  --tl-tablet-gutter:18px;
  --tl-touch:44px;
}

/* Swatch images are real lazy images now, not eager CSS backgrounds. */
.tl-card-swatch{position:relative;overflow:hidden;display:inline-grid;place-items:center}
.tl-card-swatch>img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover;border-radius:inherit;display:block}

/* Rendering work for far-below-the-fold content is deferred on supporting browsers. */
@supports(content-visibility:auto){
  .tl-page-home main>section:nth-of-type(n+4),
  .tl-page-product .tl-story-section,
  .tl-page-product .tl-compare-wrap,
  .tl-page-product .tl-bundle,
  .tl-page-product .tl-community,
  .tl-page-product .tl-related,
  .tl-page-wholesale #catalog .trade-card{content-visibility:auto;contain-intrinsic-size:1px 700px}
}

@media(max-width:1023px){
  /* ---- Header / menu reliability ---- */
  header.bg-white.sticky{z-index:90!important;overflow:visible!important}
  #tl-mobile-toggle{position:relative;z-index:103;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
  #tl-mobile-toggle span{transition:transform .18s ease,opacity .18s ease,margin .18s ease;transform-origin:center}
  body.tl-mobile-menu-open #tl-mobile-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  body.tl-mobile-menu-open #tl-mobile-toggle span:nth-child(2){opacity:0}
  body.tl-mobile-menu-open #tl-mobile-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  body.tl-mobile-menu-open #tl-mobile-menu{display:block!important;visibility:visible!important;pointer-events:auto!important}
  #tl-mobile-menu{z-index:102!important;height:calc(100dvh - var(--tl-mobile-header-offset))!important;max-height:calc(100dvh - var(--tl-mobile-header-offset))!important;border-top:1px solid #e9e8e3!important}
  #tl-mobile-menu nav{padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important}
  #tl-mobile-menu .tl-mobile-nav-group summary{position:relative;padding-right:34px!important;font-weight:850}
  #tl-mobile-menu .tl-mobile-nav-group summary:after{content:'+';position:absolute;right:6px;font-size:20px;font-weight:500;color:#686b69}
  #tl-mobile-menu .tl-mobile-nav-group[open] summary:after{content:'−'}
  #tl-mobile-menu .tl-mobile-nav-group>a{background:#fafaf7}

  /* ---- Universal catalog card hardening ---- */
  .tl-unified-card,.tl-home-product-card{display:flex;flex-direction:column;min-width:0}
  .tl-unified-card h3,.tl-home-product-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.35!important}
  .tl-unified-card .tl-card-rating,.tl-home-product-card .tl-card-rating{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tl-unified-card .tl-card-swatches,.tl-home-product-card .tl-card-swatches{overflow:hidden;flex-wrap:nowrap;max-width:100%}
  .tl-unified-card .tl-card-swatch:nth-child(n+5),.tl-home-product-card .tl-card-swatch:nth-child(n+5){display:none!important}
  .tl-unified-card form,.tl-home-product-card [data-card-add-form]{margin-top:auto;padding-top:8px}
  .tl-unified-card .tl-quick-add,.tl-home-product-card .tl-quick-add{width:100%;min-height:42px;padding:9px 10px}

  /* ---- Product page: gallery -> buy box -> details (not gallery -> long details -> buy) ---- */
  .tl-page-product .tl-pdp-media-column{display:contents!important}
  .tl-page-product .tl-gallery-shell{order:1!important;grid-row:auto!important}
  .tl-page-product .tl-buy{order:2!important;grid-row:auto!important}
  .tl-page-product .tl-under-gallery{order:3!important;grid-row:auto!important}
  .tl-page-product .tl-pdp-grid{align-items:start!important}
  .tl-page-product .tl-pdp>nav{white-space:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:10px!important;padding-bottom:2px;font-size:11px!important}
  .tl-page-product .tl-pdp>nav::-webkit-scrollbar{display:none}
  .tl-page-product .tl-buy{background:#fff;border:1px solid #e7e4dc;border-radius:18px;padding:18px!important;box-shadow:0 5px 24px rgba(0,0,0,.035)}
  .tl-page-product .tl-kicker{margin-bottom:5px!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.07em}
  .tl-page-product .tl-buy h1{margin-bottom:8px!important;line-height:1.12!important}
  .tl-page-product .tl-price-wrap{margin:4px 0 12px!important}
  .tl-page-product .tl-choice-title{margin-top:15px!important;margin-bottom:8px!important;font-size:13px!important;font-weight:850}
  .tl-page-product .tl-variant-option span{border-radius:13px!important}
  .tl-page-product .tl-purchase-row{margin-top:14px!important}
  .tl-page-product .tl-safe-note{font-size:10px!important;line-height:1.45!important;margin:8px 0 0!important}
  .tl-page-product .tl-delivery-card{margin:14px 0 10px!important;padding:12px!important}
  .tl-page-product .tl-trust-row{gap:6px!important;margin-top:9px!important}
  .tl-page-product .tl-trust-chip{padding:7px 9px!important;font-size:10px!important}
  .tl-page-product .tl-secondary-actions{margin-top:10px!important}
  .tl-page-product .tl-trade-box{margin-top:12px!important;padding:14px!important}
  /* Product highlights/trust were duplicated above and below the buy box. On compact screens keep one source of truth. */
  .tl-page-product .tl-under-highlights,.tl-page-product .tl-under-trust-card{display:none!important}
  .tl-page-product .tl-under-details{margin-top:0!important;padding:14px 16px!important}
  .tl-page-product .tl-under-details>h2{font-size:18px!important;margin-bottom:3px!important}
  .tl-page-product .tl-under-details details{padding:12px 0!important}
  .tl-page-product .tl-under-details summary{font-size:14px!important;cursor:pointer;min-height:40px;display:flex;align-items:center}
  .tl-page-product .tl-under-details .body{font-size:13px!important;line-height:1.55!important}
  .tl-page-product .tl-section-title{font-size:clamp(25px,6vw,34px)!important;line-height:1.08!important}
  .tl-page-product .tl-section-eyebrow{font-size:10px!important;letter-spacing:.14em!important}
  .tl-page-product .tl-story-section,.tl-page-product .tl-community,.tl-page-product .tl-related,.tl-page-product .tl-bundle{margin-top:30px!important}
  .tl-page-product .tl-story-section{padding-top:0!important}
  .tl-page-product .tl-why{gap:8px!important}
  .tl-page-product .tl-why>div{padding:14px!important;border-radius:14px!important;font-size:12px!important;min-height:0!important}
  .tl-page-product .tl-process-step{padding:16px!important;min-height:0!important}
  .tl-page-product .tl-process-step b{font-size:13px!important;line-height:1.55!important}
  .tl-page-product .tl-still-deciding{margin-top:28px!important}
  .tl-page-product .tl-bundle-box{padding:16px!important;border-radius:18px!important}
  .tl-page-product .tl-bundle-item{padding:10px!important}
  .tl-page-product .tl-community-form textarea,.tl-page-product .tl-community-form input,.tl-page-product .tl-community-form select{font-size:16px!important}
  .tl-page-product .tl-related-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

  /* Desktop comparison table is fundamentally a desktop pattern. Mobile/tablet get tap-friendly cards. */
  .tl-page-product .tl-compare-wrap{display:none!important}
  .tl-mobile-compare{display:block;margin-top:28px;border:1px solid #e5e2da;border-radius:18px;background:#fff;overflow:hidden}
  .tl-mobile-compare>details>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;font-weight:900;cursor:pointer;min-height:54px}
  .tl-mobile-compare>details>summary::-webkit-details-marker{display:none}
  .tl-mobile-compare>details[open]>summary span{transform:rotate(45deg)}
  .tl-mobile-compare>details>summary span{font-size:24px;font-weight:400;transition:transform .18s}
  .tl-mobile-compare-strip{display:flex;overflow-x:auto;gap:10px;padding:0 14px 16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .tl-mobile-compare-card{flex:0 0 min(78vw,360px);display:grid;grid-template-columns:78px minmax(0,1fr) 18px;gap:10px;align-items:center;padding:10px;border:1px solid #e7e5df;border-radius:14px;text-decoration:none;color:inherit;scroll-snap-align:start;background:#faf9f6}
  .tl-mobile-compare-card img{width:78px;height:78px!important;object-fit:cover;border-radius:10px}
  .tl-mobile-compare-card b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;line-height:1.35}
  .tl-mobile-compare-card strong{display:block;margin-top:4px;font-size:13px}
  .tl-mobile-compare-card small{display:block;color:#666;margin-top:3px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tl-mobile-buybar{transform:translateY(calc(115% + env(safe-area-inset-bottom,0px)))!important;opacity:0!important;pointer-events:none!important;transition:transform .22s ease,opacity .18s ease!important}
  .tl-mobile-buybar.is-visible{transform:translateY(0)!important;opacity:1!important;pointer-events:auto!important}

  /* ---- Wholesale / trade: one usable card per row on phones, two on tablets ---- */
  .tl-page-wholesale .tl-wholesale-hero .tl-wholesale-shell{padding-top:34px!important;padding-bottom:34px!important}
  .tl-page-wholesale .tl-wholesale-hero h1{font-size:clamp(30px,7vw,44px)!important;line-height:1.06!important}
  .tl-page-wholesale .trade-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .tl-page-wholesale .trade-tools>*{width:100%!important;min-height:44px}
  .tl-page-wholesale .trade-tools button{grid-column:1/-1}
  .tl-page-wholesale .trade-card{padding:12px!important;border-radius:16px!important;min-width:0}
  .tl-page-wholesale .trade-card img{height:auto!important;aspect-ratio:1!important;object-fit:cover!important}
  .tl-page-wholesale .trade-card h3{font-size:14px!important;line-height:1.35!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:3px}
  .tl-page-wholesale .trade-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .tl-page-wholesale .trade-meta span{padding:8px!important;min-height:54px}
  .tl-page-wholesale .trade-card>form[action="cart.php"]{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:8px!important;width:100%}
  .tl-page-wholesale .trade-card>form[action="cart.php"] input[type="number"]{width:100%!important;min-height:44px!important;padding:9px!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"] button{width:100%!important;min-height:44px!important;padding:10px!important;writing-mode:horizontal-tb!important;white-space:nowrap!important}
  .tl-page-wholesale .quick-table td{overflow-wrap:anywhere}
  .tl-page-wholesale .quick-table input{font-size:16px!important}

  /* ---- Category / brand / search ---- */
  .tl-page-category .tl-cat-hero .py-14,.tl-page-brand main>section:first-child .py-14{padding-top:30px!important;padding-bottom:32px!important}
  .tl-page-category .tl-cat-hero-grid{gap:16px!important}
  .tl-page-category .tl-cat-desc{font-size:13px!important;line-height:1.55!important}
  .tl-page-category .tl-cat-hero-image{max-height:240px!important;object-fit:cover!important}
  .tl-page-category .tl-cat-tools,.tl-page-brand .tl-collection-tools{margin:12px 0 16px!important}
  .tl-page-category .tl-subcats{margin-top:12px!important}
  .tl-page-category .tl-subcats a{padding:7px 11px!important;min-height:38px!important}
  .tl-page-search main{padding-top:28px!important}
}

/* Phone-specific conversion layout. */
@media(max-width:767px){
  :root{--tl-mobile-gutter:12px}

  /* Header: no accidental giant gaps and consistent tap targets. */
  header>div:first-of-type{min-height:60px!important;padding-top:8px!important;padding-bottom:8px!important}
  header>div:first-of-type>a[aria-label="Terralora home"] .text-\[26px\]{font-size:20px!important}

  /* Homepage hero: main card + two compact brand cards, with images always filling the cards. */
  .tl-page-home .tl-home-hero-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .tl-page-home .tl-home-hero-main{grid-column:1/-1!important;min-height:0!important;height:auto!important;aspect-ratio:1.04/1!important;border-radius:18px!important}
  .tl-page-home .tl-home-hero-main>img,.tl-page-home .tl-home-brand-card>img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
  .tl-page-home .tl-home-hero-main>img{opacity:.58!important}
  .tl-page-home .tl-home-hero-main>div{padding:22px!important;max-width:88%!important}
  .tl-page-home .tl-home-hero-main h1{font-size:clamp(31px,9vw,42px)!important;line-height:1.04!important;margin-bottom:15px!important}
  .tl-page-home .tl-home-hero-main p{font-size:11px!important;margin-bottom:9px!important}
  .tl-page-home .tl-home-brand-card{min-height:0!important;aspect-ratio:1/1!important;border-radius:16px!important}
  .tl-page-home .tl-home-brand-card>div:last-child{padding:13px!important}
  .tl-page-home .tl-home-brand-card p{font-size:15px!important;line-height:1.15!important}
  .tl-page-home .tl-home-category-strip{gap:16px!important;margin-right:-12px;padding-right:12px;padding-bottom:6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .tl-page-home .tl-home-category-strip>a{scroll-snap-align:start}
  .tl-page-home .tl-home-category-strip .w-24{width:82px!important;height:82px!important}
  .tl-page-home .tl-home-category-strip .text-sm{font-size:12px!important;line-height:1.25!important;max-width:86px!important}
  .tl-page-home #urunler{padding-top:26px!important}
  .tl-page-home #urunler>div:first-child{align-items:center!important;margin-bottom:14px!important}
  .tl-page-home #urunler h2{font-size:25px!important}
  .tl-page-home #urunler>div:first-child>a{font-size:12px!important}
  /* Keep two products per row even on common 375–430px phones. */
  .tl-page-home .tl-home-feature-grid,
  .tl-page-category .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4,
  .tl-page-brand .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4,
  .tl-page-search .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 9px!important
  }
  .tl-page-home .tl-home-product-card h3,.tl-unified-card h3{font-size:12px!important;line-height:1.32!important;margin-top:8px!important}
  .tl-page-home .tl-home-price strong,.tl-unified-card .tl-home-price strong{font-size:14px!important}
  .tl-page-home .tl-home-price del,.tl-unified-card .tl-home-price del{font-size:10px!important}
  .tl-page-home .tl-card-feature{display:none!important}
  .tl-page-home .tl-card-swatches,.tl-unified-card .tl-card-swatches{gap:5px!important;margin-top:6px!important;min-height:20px!important}
  .tl-page-home .tl-card-swatch,.tl-unified-card .tl-card-swatch{width:20px!important;height:20px!important}
  .tl-page-home .tl-quick-add,.tl-unified-card .tl-quick-add{font-size:11px!important;min-height:40px!important}
  .tl-page-home .tl-home-proof{padding:15px!important;border-radius:18px!important}
  .tl-page-home .tl-home-proof-card{flex-basis:min(72vw,230px)!important}

  /* Product: compact gallery + immediate purchase controls. */
  .tl-page-product .tl-pdp-grid{grid-template-columns:1fr!important;gap:14px!important}
  .tl-page-product .tl-gallery-shell{grid-column:1!important}
  .tl-page-product .tl-buy{grid-column:1!important;padding:15px!important;border-radius:16px!important}
  .tl-page-product .tl-under-gallery{grid-column:1!important}
  .tl-page-product .tl-main-media{border-radius:14px!important}
  .tl-page-product .tl-gallery-arrow{width:42px!important;height:42px!important}
  .tl-page-product .tl-thumbs{gap:7px!important;padding-bottom:5px!important}
  .tl-page-product .tl-thumb{flex-basis:62px!important;width:62px!important;height:62px!important}
  .tl-page-product .tl-buy h1{font-size:23px!important;line-height:1.16!important;letter-spacing:-.2px!important}
  .tl-page-product .tl-price-now{font-size:25px!important}
  .tl-page-product .tl-variant-grid{display:flex!important;grid-template-columns:none!important;gap:8px!important;overflow-x:auto!important;padding:1px 1px 7px!important;margin-right:-4px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .tl-page-product .tl-variant-option{flex:0 0 min(44vw,154px)!important;scroll-snap-align:start}
  .tl-page-product .tl-variant-option span{min-height:50px!important;padding:7px 9px!important;font-size:12px!important}
  .tl-page-product .tl-swatch{width:34px!important;height:34px!important;flex:0 0 34px!important}
  .tl-page-product .tl-qty-offers{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;gap:8px!important;padding-bottom:6px!important;scroll-snap-type:x proximity}
  .tl-page-product .tl-qty-offers button{flex:0 0 min(65vw,230px)!important;scroll-snap-align:start;text-align:left!important}
  .tl-page-product .tl-purchase-row{grid-template-columns:70px minmax(0,1fr)!important;gap:7px!important}
  .tl-page-product .tl-purchase-row .tl-buy-now{grid-column:1/-1!important;min-height:48px!important}
  .tl-page-product .tl-purchase-row .tl-add{min-height:48px!important}
  .tl-page-product .tl-secondary-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .tl-page-product .tl-secondary-actions>*{font-size:11px!important;padding:10px 7px!important}
  .tl-page-product .tl-trade-box{font-size:12px!important}
  .tl-page-product .tl-under-details{border-radius:16px!important}
  .tl-page-product .tl-why{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-page-product .tl-process{display:flex!important;grid-template-columns:none!important;gap:9px!important;overflow-x:auto!important;padding:2px 1px 8px!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .tl-page-product .tl-process-step{flex:0 0 min(76vw,300px)!important;scroll-snap-align:start}
  .tl-page-product .tl-still-deciding{display:none!important}
  .tl-page-product .tl-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .tl-page-product .tl-related-card h3{font-size:12px!important;line-height:1.32!important}
  .tl-page-product .tl-community{padding-left:0!important;padding-right:0!important}
  .tl-page-product .tl-community h2{font-size:30px!important}
  .tl-page-product .tl-bundle-submit{width:100%!important}
  .tl-page-product .tl-mobile-buybar{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important}
  .tl-page-product .tl-mobile-buybar .m-buy{display:none!important}
  .tl-page-product .tl-mobile-buybar b{font-size:13px!important}
  .tl-page-product .tl-mobile-buybar small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  /* Wholesale phone catalog: no squeezed two-column cards / vertical buttons. */
  .tl-page-wholesale .tl-wholesale-catalog-grid{grid-template-columns:1fr!important;gap:14px!important}
  .tl-page-wholesale #catalog{padding-left:12px!important;padding-right:12px!important}
  .tl-page-wholesale .trade-card{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:12px;align-items:start}
  .tl-page-wholesale .trade-card>a:first-child{grid-row:1/7;grid-column:1}
  .tl-page-wholesale .trade-card>a:first-child img{width:112px!important;height:112px!important;aspect-ratio:1!important}
  .tl-page-wholesale .trade-card>small,.tl-page-wholesale .trade-card>h3,.tl-page-wholesale .trade-card>p,.tl-page-wholesale .trade-card>.trade-meta,.tl-page-wholesale .trade-card>form{grid-column:2}
  .tl-page-wholesale .trade-meta{font-size:10px!important;margin:7px 0!important}
  .tl-page-wholesale .trade-meta span{min-height:0!important;padding:6px!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"]{grid-template-columns:74px minmax(0,1fr)!important;margin-top:4px}
  .tl-page-wholesale .trade-card .tl-btn-primary{font-size:11px!important}
  .tl-page-wholesale .trade-tools{grid-template-columns:1fr!important}
  .tl-page-wholesale .trade-tools button{grid-column:auto}
  .tl-page-wholesale .quick-table tr{padding:9px!important}
  .tl-page-wholesale .quick-table td{padding:5px 0!important}

  /* Category/brand headers and filters use less vertical space. */
  .tl-page-category .tl-cat-hero-image{max-height:190px!important;border-radius:14px!important}
  .tl-page-category .tl-cat-tools,.tl-page-brand .tl-collection-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .tl-page-category .tl-cat-tools select,.tl-page-brand .tl-collection-tools select{min-height:44px!important;font-size:14px!important}
  .tl-page-category .tl-cat-tools button,.tl-page-brand .tl-collection-tools button{grid-column:1/-1!important;min-height:44px!important}
  .tl-page-search>main,.tl-page-search main{padding-left:12px!important;padding-right:12px!important}
}

/* Tablet layout: keep critical purchase controls alongside the gallery. */
@media(min-width:768px) and (max-width:1023px){
  .tl-page-product .tl-pdp{padding-left:var(--tl-tablet-gutter)!important;padding-right:var(--tl-tablet-gutter)!important;padding-bottom:50px!important}
  .tl-page-product .tl-pdp-grid{grid-template-columns:minmax(0,1fr) minmax(310px,0.82fr)!important;gap:18px!important}
  .tl-page-product .tl-gallery-shell{grid-column:1!important;grid-row:1!important}
  .tl-page-product .tl-buy{grid-column:2!important;grid-row:1!important;position:sticky!important;top:calc(var(--tl-mobile-header-offset) + 12px)!important;max-height:calc(100dvh - var(--tl-mobile-header-offset) - 24px);overflow:auto}
  .tl-page-product .tl-under-gallery{grid-column:1/-1!important;grid-row:2!important}
  .tl-page-product .tl-mobile-buybar{display:none!important}
  .tl-page-product .tl-under-details{max-width:none!important}
  .tl-page-product .tl-why{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .tl-page-product .tl-process{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .tl-page-wholesale .tl-wholesale-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .tl-page-home .tl-home-hero-grid{grid-template-columns:1.35fr .65fr .65fr!important}
  .tl-page-home .tl-home-hero-main,.tl-page-home .tl-home-brand-card{min-height:300px!important}
}

@media(max-width:360px){
  .tl-page-home .tl-home-feature-grid,
  .tl-page-category .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4,
  .tl-page-brand .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4,
  .tl-page-search .grid.grid-cols-2.sm\:grid-cols-3.lg\:grid-cols-4{gap:18px 7px!important}
  .tl-page-product .tl-variant-option{flex-basis:58vw!important}
  .tl-page-wholesale .trade-card{grid-template-columns:96px minmax(0,1fr)!important}
  .tl-page-wholesale .trade-card>a:first-child img{width:96px!important;height:96px!important}
}

/* ============================================================
   v38 real-device corrections: mobile-first commerce flow
   ============================================================ */
/* The compact comparison surface is mobile/tablet-only. */
.tl-mobile-compare{display:none}

@media(max-width:1023px){
  .tl-mobile-compare{display:block}
}

@media(max-width:767px){
  /* Product page should feel like a native shopping screen, not a desktop page squeezed down. */
  .tl-page-product .tl-pdp{padding-top:8px!important;padding-left:10px!important;padding-right:10px!important}
  .tl-page-product .tl-pdp>nav{display:none!important}
  .tl-page-product .tl-pdp-grid{gap:10px!important}
  .tl-page-product .tl-gallery-shell{margin:0!important}
  .tl-page-product .tl-main-media{width:100%!important;aspect-ratio:1/1!important;max-height:min(92vw,430px)!important;background:#faf9f6!important}
  .tl-page-product .tl-main-stage{width:100%!important;height:100%!important;display:grid!important;place-items:center!important}
  .tl-page-product .tl-main-stage>img{width:100%!important;height:100%!important;object-fit:contain!important}
  .tl-page-product .tl-gallery-arrow{width:38px!important;height:38px!important;font-size:20px!important}
  .tl-page-product .tl-gallery-arrow.prev{left:8px!important}.tl-page-product .tl-gallery-arrow.next{right:8px!important}
  .tl-page-product .tl-gallery-count{right:9px!important;bottom:9px!important;padding:6px 9px!important}
  .tl-page-product .tl-thumb-rail{margin-top:7px!important}
  .tl-page-product .tl-thumbs{padding-bottom:2px!important}
  .tl-page-product .tl-thumb{flex:0 0 56px!important;width:56px!important;height:56px!important}
  .tl-page-product .tl-buy{margin-top:2px!important;padding:14px 13px!important;border-radius:15px!important;box-shadow:none!important}
  .tl-page-product .tl-kicker{display:none!important}
  .tl-page-product .tl-buy h1{font-size:20px!important;line-height:1.18!important;margin-bottom:6px!important}
  .tl-page-product .tl-review-line{margin-bottom:7px!important}
  .tl-page-product .tl-price-now{font-size:24px!important}
  .tl-page-product .tl-choice-title{margin-top:12px!important;margin-bottom:7px!important;font-size:12px!important}
  .tl-page-product .tl-variant-grid{margin-right:-13px!important;padding-right:13px!important}
  .tl-page-product .tl-variant-option{flex-basis:min(42vw,145px)!important}
  .tl-page-product .tl-variant-option span{min-height:48px!important}
  .tl-page-product .tl-qty-offers{margin-right:-13px!important;padding-right:13px!important}
  .tl-page-product .tl-purchase-row{margin-top:11px!important}
  .tl-page-product .tl-delivery-card{margin:11px 0 7px!important}
  .tl-page-product .tl-trust-row{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;margin-right:-13px!important;padding-right:13px!important;padding-bottom:4px!important;scrollbar-width:none}
  .tl-page-product .tl-trust-row::-webkit-scrollbar{display:none}
  .tl-page-product .tl-trust-chip{flex:0 0 auto!important;white-space:nowrap!important}
  .tl-page-product .tl-stockline{font-size:10px!important;margin:7px 0!important}
  .tl-page-product .tl-trade-box{padding:11px 12px!important}
  .tl-page-product .tl-under-gallery{margin-top:0!important}
  .tl-page-product .tl-under-details{border-radius:15px!important;padding:10px 13px!important}
  .tl-page-product .tl-under-details>h2{font-size:16px!important;margin:0!important}
  .tl-page-product .tl-under-details .tl-accordion{margin-top:5px!important}
  .tl-page-product .tl-under-details details{padding:9px 0!important}
  .tl-page-product .tl-under-details summary{font-size:13px!important;min-height:34px!important}
  .tl-page-product .tl-specs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px 10px!important}
  .tl-page-product .tl-spec{font-size:11px!important;padding:6px 0!important}
  .tl-page-product .tl-spec b{font-size:9px!important}

  /* Long editorial/help blocks become explicit accordions on phones. */
  .tl-mobile-collapsible{position:relative!important;margin-top:16px!important;padding:14px!important;border:1px solid #e5e2da!important;border-radius:16px!important;background:#fff!important}
  .tl-mobile-collapsible>.tl-section-eyebrow{margin-right:38px!important}
  .tl-mobile-collapsible>.tl-section-title{font-size:20px!important;margin:3px 42px 0 0!important}
  .tl-mobile-collapsible-toggle{position:absolute!important;right:11px!important;top:15px!important;width:36px!important;height:36px!important;border:1px solid #dedbd3!important;border-radius:50%!important;background:#f8f7f3!important;color:#173f3b!important;font-size:24px!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important;z-index:2}
  .tl-mobile-collapsible-toggle[aria-expanded="true"]{transform:rotate(45deg)}
  .tl-mobile-collapsible-panel{padding-top:13px!important}
  .tl-mobile-collapsible-panel[hidden]{display:none!important}
  .tl-mobile-collapsible .tl-why{grid-template-columns:1fr!important;margin-top:0!important}
  .tl-mobile-collapsible .tl-why>div{padding:10px 12px!important;font-size:11px!important}
  .tl-mobile-collapsible .tl-process{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;margin-top:10px!important;padding:0!important}
  .tl-mobile-collapsible .tl-process-step{padding:11px 12px!important;display:grid!important;grid-template-columns:30px 1fr!important;gap:9px!important;align-items:center!important}
  .tl-mobile-collapsible .tl-process-step span{margin:0!important}
  .tl-mobile-collapsible .tl-process-step b{font-size:11px!important;line-height:1.4!important}
  .tl-page-product .tl-bundle-box.tl-mobile-collapsible{padding:14px!important}
  .tl-page-product .tl-bundle-items{display:flex!important;overflow-x:auto!important;gap:8px!important;margin:10px -2px 12px!important;padding:2px 2px 5px!important;scroll-snap-type:x proximity}
  .tl-page-product .tl-bundle-item{flex:0 0 min(78vw,300px)!important;scroll-snap-align:start!important}
  .tl-page-product .tl-community.tl-mobile-collapsible{padding:14px!important}
  .tl-page-product .tl-community-form{margin-top:10px!important}
  .tl-page-product .tl-community-form textarea{min-height:92px!important}
  .tl-page-product .tl-related{margin-top:20px!important}
  .tl-page-product .tl-related .tl-section-title{font-size:22px!important}
  .tl-page-product .tl-mobile-compare{margin-top:16px!important;border-radius:16px!important}
  .tl-page-product .tl-mobile-compare>details>summary{min-height:50px!important;padding:13px 14px!important;font-size:13px!important}

  /* Mobile sticky purchase control appears only after the real buy box has scrolled away. */
  .tl-page-product .tl-mobile-buybar{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;grid-template-columns:64px minmax(0,1fr)!important;box-shadow:0 -5px 18px rgba(0,0,0,.10)!important}
  .tl-page-product .tl-mobile-buybar button{min-height:46px!important;font-size:14px!important}

  /* Homepage: reduce above-the-fold weight and keep products scannable. */
  .tl-page-home main>section:first-child{padding-top:14px!important}
  .tl-page-home .tl-home-hero-grid{gap:8px!important}
  .tl-page-home .tl-home-hero-main{aspect-ratio:1.18/1!important;max-height:430px!important}
  .tl-page-home .tl-home-hero-main>div{padding:18px!important;max-width:90%!important}
  .tl-page-home .tl-home-hero-main h1{font-size:clamp(28px,8.4vw,38px)!important}
  .tl-page-home .tl-home-brand-card{aspect-ratio:1.18/1!important}
  .tl-page-home .tl-home-category-strip{gap:11px!important}
  .tl-page-home .tl-home-category-strip .w-24{width:72px!important;height:72px!important}
  .tl-page-home .tl-home-category-strip .text-sm{font-size:11px!important;max-width:76px!important}
  .tl-page-home .tl-home-feature-grid{gap:18px 8px!important}
  .tl-page-home .tl-home-product-card,.tl-page-category .tl-unified-card,.tl-page-brand .tl-unified-card,.tl-page-search .tl-unified-card{min-width:0!important}
  .tl-page-home .tl-home-product-card>a:first-child img,.tl-page-category .tl-unified-card>a:first-child img,.tl-page-brand .tl-unified-card>a:first-child img,.tl-page-search .tl-unified-card>a:first-child img{aspect-ratio:1/1!important;object-fit:cover!important;border-radius:12px!important}
  .tl-page-home .tl-home-product-card h3,.tl-page-category .tl-unified-card h3,.tl-page-brand .tl-unified-card h3,.tl-page-search .tl-unified-card h3{-webkit-line-clamp:2!important;font-size:11px!important;min-height:29px}
  .tl-page-home .tl-quick-add,.tl-page-category .tl-quick-add,.tl-page-brand .tl-quick-add,.tl-page-search .tl-quick-add{min-height:38px!important;border-radius:999px!important;padding:8px!important}

  /* Wholesale: never place full product cards side-by-side on a phone. */
  .tl-page-wholesale .tl-wholesale-catalog-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
  .tl-page-wholesale .trade-card{width:100%!important;grid-template-columns:96px minmax(0,1fr)!important;column-gap:10px!important;padding:10px!important}
  .tl-page-wholesale .trade-card>a:first-child img{width:96px!important;height:96px!important;border-radius:12px!important}
  .tl-page-wholesale .trade-card h3{font-size:13px!important;-webkit-line-clamp:2!important}
  .tl-page-wholesale .trade-card>p{font-size:12px!important;margin:2px 0!important}
  .tl-page-wholesale .trade-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-page-wholesale .trade-meta span{min-height:42px!important;padding:6px!important;font-size:10px!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"]{grid-template-columns:70px minmax(0,1fr)!important;gap:6px!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"] select,.tl-page-wholesale .trade-card>form[action="cart.php"] input{min-width:0!important;font-size:14px!important}
  .tl-page-wholesale .trade-card .tl-btn-primary{writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:nowrap!important;letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal!important}
}

@media(min-width:768px){
  .tl-mobile-collapsible-toggle{display:none!important}
  .tl-mobile-collapsible-panel{display:contents!important}
}
.tl-swatch{overflow:hidden;display:inline-grid;place-items:center}
.tl-swatch>img{width:100%;height:100%!important;object-fit:cover;display:block;border-radius:inherit}
@media(max-width:767px){
  .tl-page-wholesale section .grid.grid-cols-2.md\:grid-cols-3{grid-template-columns:1fr!important}
  .tl-page-wholesale .tl-wholesale-info{padding-left:12px!important;padding-right:12px!important}
  .tl-page-wholesale .tl-info-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .tl-page-wholesale .tl-info-tile{padding:12px!important;border-radius:13px!important}
  .tl-page-wholesale .tl-info-tile h3{font-size:12px!important;line-height:1.25!important}
  .tl-page-wholesale .tl-info-tile p{font-size:10px!important;line-height:1.4!important}
  .tl-page-wholesale #catalog>div:first-child{align-items:flex-start!important}
  .tl-page-wholesale #catalog>div:first-child>div:last-child{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .tl-page-wholesale #catalog>div:first-child>div:last-child a{min-width:0!important;font-size:10px!important;padding:9px!important;text-align:center!important}
}

/* ===== Terralora V39 real-device mobile/tablet correction layer ===== */
@media (max-width: 1023px){
  html,body{max-width:100%;overflow-x:hidden}
  body{font-size:15px}
  main{min-width:0}
  .max-w-\[1400px\],.max-w-\[1200px\]{max-width:100%!important}
  .px-6{padding-left:16px!important;padding-right:16px!important}
  .py-10,.py-12,.py-14{padding-top:24px!important;padding-bottom:24px!important}

  /* Header / menu: reliable touch target and true drawer behavior */
  #tl-mobile-toggle{position:relative!important;z-index:10002!important;min-width:48px!important;min-height:48px!important;touch-action:manipulation!important;cursor:pointer!important}
  #tl-mobile-menu{position:fixed!important;z-index:10001!important;left:0!important;right:0!important;top:var(--tl-mobile-header-offset,72px)!important;bottom:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain!important;background:#fff!important;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))!important;box-shadow:0 20px 40px rgba(0,0,0,.16)!important}
  #tl-mobile-menu.hidden{display:none!important}
  #tl-mobile-menu:not(.hidden){display:block!important}
  #tl-mobile-menu nav{padding:8px 18px 30px!important;gap:0!important}
  #tl-mobile-menu nav>a,#tl-mobile-menu summary{display:flex!important;align-items:center!important;min-height:52px!important;padding:10px 4px!important;border-bottom:1px solid #eee!important;font-size:15px!important}
  #tl-mobile-menu .tl-mobile-nav-group>a{display:flex!important;min-height:44px!important;align-items:center!important;padding:8px 12px!important;font-size:14px!important;border-bottom:1px solid #f3f3f3!important}
  body.tl-mobile-menu-open{overflow:hidden!important;touch-action:none!important}

  /* PDP: mobile order is Gallery -> title/price/options/buy -> compact details. */
  .tl-page-product .tl-pdp{padding:10px 12px 88px!important}
  .tl-page-product .tl-pdp>nav{margin:4px 2px 10px!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .tl-page-product .tl-pdp-grid{display:block!important}
  .tl-page-product .tl-pdp-media-column{display:flex!important;flex-direction:column!important;gap:0!important}
  .tl-page-product .tl-gallery-shell{position:static!important;order:1!important;margin:0!important}
  .tl-page-product .tl-buy{position:static!important;order:2!important;margin:10px 0 0!important;padding:14px 12px!important;border:1px solid #e9e6df!important;border-radius:16px!important;background:#fff!important}
  .tl-page-product .tl-under-gallery{order:3!important;margin:10px 0 0!important;display:block!important}
  .tl-page-product .tl-under-highlights,.tl-page-product .tl-under-trust-card{display:none!important}
  .tl-page-product .tl-under-details{padding:0!important;border:1px solid #e7e4dc!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important}
  .tl-page-product .tl-under-details>h2{font-size:15px!important;padding:13px 14px!important;margin:0!important;border-bottom:1px solid #eee!important}
  .tl-page-product .tl-under-details .tl-accordion{margin:0!important;border:0!important}
  .tl-page-product .tl-under-details details{padding:0 14px!important}
  .tl-page-product .tl-under-details summary{min-height:46px!important;display:flex!important;align-items:center!important;font-size:13px!important}
  .tl-page-product .tl-under-details .body{font-size:12px!important;line-height:1.5!important;padding:0 0 12px!important}
  .tl-page-product .tl-main-media{border-radius:15px!important;max-height:min(62vh,560px)!important;background:#f7f6f2!important}
  .tl-page-product .tl-main-stage img{max-height:min(62vh,560px)!important;object-fit:contain!important}
  .tl-page-product .tl-gallery-arrow{width:40px!important;height:40px!important;font-size:22px!important}
  .tl-page-product .tl-gallery-count{font-size:10px!important;padding:6px 9px!important}
  .tl-page-product .tl-thumb-rail{margin-top:7px!important}
  .tl-page-product .tl-thumbs{display:flex!important;gap:7px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important;padding:1px 0 4px!important;scrollbar-width:none!important}
  .tl-page-product .tl-thumbs::-webkit-scrollbar{display:none!important}
  .tl-page-product .tl-thumb{flex:0 0 58px!important;width:58px!important;height:58px!important;scroll-snap-align:start!important}
  .tl-page-product .tl-thumb-scroll{display:none!important}
  .tl-page-product .tl-buy h1{font-size:20px!important;line-height:1.22!important;margin:0 0 7px!important;letter-spacing:-.2px!important}
  .tl-page-product .tl-price-now{font-size:25px!important}
  .tl-page-product .tl-choice-title{font-size:13px!important;margin:12px 0 7px!important}
  .tl-page-product .tl-variant-grid{display:flex!important;overflow-x:auto!important;gap:8px!important;scroll-snap-type:x proximity!important;margin:0 -12px!important;padding:1px 12px 5px!important;scrollbar-width:none!important}
  .tl-page-product .tl-variant-grid::-webkit-scrollbar{display:none!important}
  .tl-page-product .tl-variant-option{flex:0 0 min(72vw,250px)!important;scroll-snap-align:start!important}
  .tl-page-product .tl-variant-option span{min-height:54px!important;padding:8px 10px!important;font-size:13px!important}
  .tl-page-product .tl-purchase-row{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:8px!important;margin-top:11px!important}
  .tl-page-product .tl-purchase-row input{min-width:0!important;min-height:48px!important;padding:10px!important}
  .tl-page-product .tl-purchase-row .tl-add{min-height:48px!important}
  .tl-page-product .tl-purchase-row .tl-buy-now{grid-column:1/-1!important;min-height:48px!important}
  .tl-page-product .tl-safe-note{font-size:10px!important;line-height:1.35!important;margin:7px 4px 0!important}
  .tl-page-product .tl-delivery-card{padding:11px!important;margin:10px 0 6px!important}
  .tl-page-product .tl-trust-row{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important;margin:8px -12px 8px!important;padding:0 12px 4px!important;scrollbar-width:none!important}
  .tl-page-product .tl-trust-row::-webkit-scrollbar{display:none!important}
  .tl-page-product .tl-trust-chip{flex:0 0 auto!important;font-size:10px!important;padding:7px 9px!important}
  .tl-page-product .tl-secondary-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .tl-page-product .tl-secondary-actions a,.tl-page-product .tl-secondary-actions button{min-height:44px!important;padding:9px!important;font-size:11px!important}
  .tl-page-product .tl-trade-box{padding:11px!important;margin-top:9px!important;font-size:12px!important}

  /* Long PDP content is intentionally de-emphasized on phones/tablets. */
  .tl-page-product .tl-still-deciding,.tl-page-product .tl-compare-wrap{display:none!important}
  .tl-page-product .tl-story-section,.tl-page-product .tl-bundle,.tl-page-product .tl-community,.tl-page-product .tl-related{margin-top:14px!important}
  .tl-page-product .tl-mobile-collapsible{margin-top:10px!important;padding:12px!important;border-radius:14px!important}
  .tl-page-product .tl-mobile-collapsible>.tl-section-title{font-size:17px!important;line-height:1.25!important;margin-right:44px!important}
  .tl-page-product .tl-mobile-collapsible-toggle{top:10px!important;right:10px!important}
  .tl-page-product .tl-related .tl-section-title{font-size:19px!important;line-height:1.25!important}
  .tl-page-product .tl-related-grid{display:flex!important;overflow-x:auto!important;gap:10px!important;margin-right:-12px!important;padding-right:12px!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
  .tl-page-product .tl-related-grid::-webkit-scrollbar{display:none!important}
  .tl-page-product .tl-related-card{flex:0 0 min(62vw,220px)!important;scroll-snap-align:start!important}
  .tl-page-product .tl-related-card h3{font-size:11px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  .tl-page-product .tl-mobile-compare{display:block!important;margin-top:12px!important}
  .tl-page-product .tl-mobile-buybar{z-index:9998!important}

  /* Storefront/card grids: compact, predictable two-column shopping on phones. */
  .tl-page-home .tl-home-feature-grid,
  .tl-page-category main section>div.grid.grid-cols-2,
  .tl-page-brand main section>div.grid.grid-cols-2,
  .tl-page-search main section>div.grid.grid-cols-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 9px!important}
  .tl-page-home .tl-home-product-card,
  .tl-page-category .tl-unified-card,
  .tl-page-brand .tl-unified-card,
  .tl-page-search .tl-unified-card{width:100%!important;min-width:0!important}
  .tl-page-home .tl-home-product-card img,
  .tl-page-category .tl-unified-card img,
  .tl-page-brand .tl-unified-card img,
  .tl-page-search .tl-unified-card img{aspect-ratio:1/1!important;object-fit:cover!important;border-radius:12px!important}
  .tl-page-home .tl-home-product-card h3,
  .tl-page-category .tl-unified-card h3,
  .tl-page-brand .tl-unified-card h3,
  .tl-page-search .tl-unified-card h3{font-size:11px!important;line-height:1.3!important;margin:7px 0 3px!important;min-height:29px!important;-webkit-line-clamp:2!important}
  .tl-page-home .tl-home-price strong,.tl-unified-card .tl-home-price strong{font-size:13px!important}
  .tl-page-home .tl-card-swatches,.tl-unified-card .tl-card-swatches{gap:4px!important;margin-top:5px!important}
  .tl-page-home .tl-card-swatch,.tl-unified-card .tl-card-swatch{width:20px!important;height:20px!important}
  .tl-page-home .tl-quick-add,.tl-unified-card .tl-quick-add{min-height:38px!important;width:100%!important;padding:8px 6px!important;font-size:10px!important}

  /* Category filters: one compact horizontal control row on mobile. */
  .tl-page-category .tl-cat-hero .py-14{padding-top:22px!important;padding-bottom:22px!important}
  .tl-page-category .tl-cat-hero-grid{gap:12px!important}
  .tl-page-category .tl-cat-hero h1{font-size:28px!important;line-height:1.15!important}
  .tl-page-category .tl-cat-desc{font-size:12px!important;line-height:1.5!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .tl-page-category .tl-cat-hero-image{max-height:220px!important;object-fit:cover!important}
  .tl-page-category .tl-cat-tools{display:flex!important;overflow-x:auto!important;gap:7px!important;margin:12px -16px 14px!important;padding:0 16px 4px!important;scrollbar-width:none!important}
  .tl-page-category .tl-cat-tools::-webkit-scrollbar{display:none!important}
  .tl-page-category .tl-cat-tools select,.tl-page-category .tl-cat-tools button{flex:0 0 auto!important;min-height:40px!important;padding:8px 10px!important;font-size:11px!important;border-radius:999px!important}

  /* Wholesale: never show desktop multi-column forms/cards on a phone/tablet. */
  .tl-page-wholesale .tl-wholesale-catalog-grid,
  .tl-page-wholesale section .grid.grid-cols-2.md\:grid-cols-3{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .tl-page-wholesale .trade-card{display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;grid-template-rows:auto!important;gap:4px 10px!important;padding:10px!important;border-radius:14px!important;overflow:hidden!important}
  .tl-page-wholesale .trade-card>a:first-child,.tl-page-wholesale .trade-card>img{grid-row:1/6!important;grid-column:1!important;width:92px!important;height:92px!important;align-self:start!important}
  .tl-page-wholesale .trade-card>a:first-child img,.tl-page-wholesale .trade-card>img{width:92px!important;height:92px!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:11px!important}
  .tl-page-wholesale .trade-card>small,.tl-page-wholesale .trade-card>h3,.tl-page-wholesale .trade-card>p,.tl-page-wholesale .trade-card>.trade-meta,.tl-page-wholesale .trade-card>form{grid-column:2!important;min-width:0!important}
  .tl-page-wholesale .trade-card h3{font-size:13px!important;line-height:1.3!important;margin:0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  .tl-page-wholesale .trade-card>p{font-size:12px!important;margin:2px 0!important}
  .tl-page-wholesale .trade-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:5px 0!important}
  .tl-page-wholesale .trade-meta span{padding:6px!important;font-size:9px!important;line-height:1.25!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"]{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:6px!important;width:100%!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"] input[type="number"]{width:100%!important;min-width:0!important;min-height:42px!important;padding:8px!important}
  .tl-page-wholesale .trade-card .tl-btn-primary{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:42px!important;width:100%!important;padding:8px 10px!important;font-size:11px!important;line-height:1.1!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
}

@media (max-width: 520px){
  .tl-page-home .tl-home-hero-main{max-height:360px!important}
  .tl-page-home .tl-home-hero-main h1{font-size:30px!important;line-height:1.05!important}
  .tl-page-home .tl-home-category-strip{display:flex!important;overflow-x:auto!important;justify-content:flex-start!important;margin-right:-16px!important;padding-right:16px!important;scrollbar-width:none!important}
  .tl-page-home .tl-home-category-strip>*{flex:0 0 82px!important}
  .tl-page-product .tl-main-media,.tl-page-product .tl-main-stage img{max-height:52vh!important}
  .tl-page-wholesale .trade-card{grid-template-columns:82px minmax(0,1fr)!important}
  .tl-page-wholesale .trade-card>a:first-child,.tl-page-wholesale .trade-card>img,.tl-page-wholesale .trade-card>a:first-child img{width:82px!important;height:82px!important}
}

@media (min-width: 768px) and (max-width: 1023px){
  .tl-page-product .tl-pdp{max-width:860px!important;padding-left:22px!important;padding-right:22px!important}
  .tl-page-product .tl-main-media,.tl-page-product .tl-main-stage img{max-height:620px!important}
  .tl-page-product .tl-variant-option{flex-basis:220px!important}
  .tl-page-home .tl-home-feature-grid,.tl-page-category main section>div.grid.grid-cols-2,.tl-page-brand main section>div.grid.grid-cols-2,.tl-page-search main section>div.grid.grid-cols-2{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .tl-page-wholesale .tl-wholesale-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tl-page-wholesale .trade-card{display:block!important}
  .tl-page-wholesale .trade-card>a:first-child,.tl-page-wholesale .trade-card>img,.tl-page-wholesale .trade-card>a:first-child img{width:100%!important;height:auto!important;aspect-ratio:1!important}
  .tl-page-wholesale .trade-card>form[action="cart.php"]{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important}
}
@media (min-width:768px) and (max-width:1023px){
  .tl-mobile-collapsible-toggle{display:grid!important}
  .tl-mobile-collapsible-panel[hidden]{display:none!important}
  .tl-mobile-collapsible-panel:not([hidden]){display:block!important}
}
