/* CloneWatch 3.7.9 — authoritative desktop phone shell. Loaded LAST. */
@media (min-width:960px){
  :root{--cw-desktop-phone:430px;--cw-desktop-ad-gap:28px;--cw-desktop-ad-max:250px}
  html,body.clonewatch-theme{background:#f1f1f1!important;overflow-x:hidden!important}
  body.clonewatch-theme #page.cw-site,
  body.clonewatch-theme .cw-site{
    position:relative!important;box-sizing:border-box!important;
    width:var(--cw-desktop-phone)!important;min-width:var(--cw-desktop-phone)!important;max-width:var(--cw-desktop-phone)!important;
    margin:0 auto!important;background:#fff!important;border-left:1px solid #e4e4e4!important;border-right:1px solid #e4e4e4!important;
    box-shadow:0 0 24px rgba(0,0,0,.035)!important;overflow-x:hidden!important
  }
  /* Header is already INSIDE the centered shell. Do not translate it a second time. */
  body.clonewatch-theme .cw-header{position:sticky!important;top:0!important;left:auto!important;right:auto!important;inset-inline:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important}
  /* Public storefront never needs an extra toolbar offset. WordPress already
     handles wp-admin separately, and the front-end toolbar is disabled by PHP. */
  body.admin-bar.clonewatch-theme .cw-header{top:0!important}
  body.clonewatch-theme .cw-main,body.clonewatch-theme .cw-footer{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
  body.clonewatch-theme .haat-container,body.clonewatch-theme .haat-layout,body.clonewatch-theme .haat-layout__main{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}

  /* Fixed viewport chrome that must line up with the 430px centered shell. */
  body.clonewatch-theme .cw-app-bottom-nav{width:var(--cw-desktop-phone)!important;max-width:var(--cw-desktop-phone)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
  body.clonewatch-theme .cw-category-drawer{width:var(--cw-desktop-phone)!important;max-width:var(--cw-desktop-phone)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}
  body.clonewatch-theme .cw-category-drawer__backdrop{left:50%!important;right:auto!important;width:var(--cw-desktop-phone)!important;max-width:var(--cw-desktop-phone)!important;transform:translateX(-50%)!important}
  body.clonewatch-theme .cw-purchase-sheet__panel,body.clonewatch-theme .cw-product-video-modal__panel,body.clonewatch-theme .cw-trust-modal__panel{width:var(--cw-desktop-phone)!important;max-width:var(--cw-desktop-phone)!important}

  /* Desktop must use PHONE-relative sizes, never browser-vw sizes. */
  body.clonewatch-theme ul.cw-product-rail,body.clonewatch-theme .cw-home ul.cw-product-rail,body.clonewatch-theme .cw-recent-products ul.cw-product-rail{
    display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:43.5%!important;gap:9px!important;
    width:100%!important;max-width:100%!important;padding:1px 15px 14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-padding-left:15px!important
  }
  body.clonewatch-theme .cw-account-recent-products ul.cw-product-rail{grid-auto-flow:row!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:unset!important;gap:10px 8px!important;padding:0 0 14px!important;overflow:visible!important}
  body.clonewatch-theme .cw-real-video-rail{grid-auto-columns:calc(50% - 20px)!important}
  body.clonewatch-theme .cw-review-rail,body.clonewatch-theme .cw-notice-rail{grid-auto-columns:82%!important}
  body.clonewatch-theme .cw-price-recommend__products{grid-auto-columns:46%!important}

  /* Catalogue/search grids: exactly the same two columns as phone. */
  body.clonewatch-theme.woocommerce ul.products:not(.cw-product-rail),body.clonewatch-theme.woocommerce-page ul.products:not(.cw-product-rail),body.clonewatch-theme ul.cw-search-grid,body.clonewatch-theme ul.cw-pick-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:10px 8px!important;width:100%!important;max-width:100%!important
  }
  body.clonewatch-theme ul.products:not(.cw-product-rail)>li.product,body.clonewatch-theme ul.products:not(.cw-product-rail)>li.cw-product-card,body.clonewatch-theme ul.cw-search-grid>li,body.clonewatch-theme ul.cw-pick-grid>li{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important}
  body.clonewatch-theme .cw-product-card__media,body.clonewatch-theme ul.products li.product .cw-product-card__media{width:100%!important;height:auto!important;aspect-ratio:1/1!important;min-height:0!important}

  /* Auth/account/cart/checkout stay phone-single-column. */
  body.clonewatch-theme.woocommerce-account:not(.logged-in) #customer_login{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important}
  body.clonewatch-theme.woocommerce-account:not(.logged-in) #customer_login .u-column1,body.clonewatch-theme.woocommerce-account:not(.logged-in) #customer_login .u-column2{float:none!important;width:100%!important;max-width:100%!important}
  body.clonewatch-theme.woocommerce-account .woocommerce-MyAccount-navigation,body.clonewatch-theme.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:100%!important;margin:0!important}
  body.clonewatch-theme.woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:14px!important}
  body.clonewatch-theme.woocommerce-account .cw-account-layout,body.clonewatch-theme.woocommerce-checkout .col2-set,body.clonewatch-theme.woocommerce-checkout form.checkout{display:block!important;width:100%!important;max-width:100%!important}
  body.clonewatch-theme.woocommerce-cart .cart-collaterals,body.clonewatch-theme.woocommerce-checkout #order_review,body.clonewatch-theme.woocommerce-checkout #customer_details{width:100%!important;max-width:100%!important;position:static!important}
  body.clonewatch-theme.single-product div.product{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}

  /* Existing banner-manager rails occupy ONLY the outer desktop gutters. */
  body.clonewatch-theme .cw-pc-side-ads{display:block!important;position:fixed!important;z-index:35!important;top:96px!important;width:min(var(--cw-desktop-ad-max),calc((100vw - var(--cw-desktop-phone))/2 - var(--cw-desktop-ad-gap)))!important;max-height:calc(100vh - 126px)!important;margin:0!important}
  body.clonewatch-theme .cw-pc-side-ads--left{left:auto!important;right:calc(50% + (var(--cw-desktop-phone)/2) + var(--cw-desktop-ad-gap))!important}
  body.clonewatch-theme .cw-pc-side-ads--right{right:auto!important;left:calc(50% + (var(--cw-desktop-phone)/2) + var(--cw-desktop-ad-gap))!important}
  body.clonewatch-theme .cw-pc-side-ad,body.clonewatch-theme .cw-pc-side-ad img{width:100%!important;max-width:100%!important;height:auto!important}
  body.clonewatch-theme .cw-pc-side-ad img{max-height:calc(100vh - 136px)!important;object-fit:contain!important}
}
