/* SellMacBook.in V5.1 — scoped responsive layout refinements.
   Keeps existing functionality, routes, wizard, and location controls intact. */
:root{--layout-line:#e9eaf2;--layout-purple:#7558d7}
html{scroll-padding-top:130px}
body{overflow-x:hidden}
.site-header{height:auto;min-height:92px;background:rgba(255,255,255,.96)}
.site-header .nav-wrap{display:grid;grid-template-columns:minmax(220px,1fr) auto;grid-template-areas:"brand actions" "links links";gap:0 20px;align-items:center;min-height:0;padding-top:12px;padding-bottom:0}
.site-header .brand{grid-area:brand;width:max-content;max-width:100%;font-size:21px;min-width:0}
.site-header .brand small{letter-spacing:.8px}
.site-header .header-actions{grid-area:actions;display:flex;gap:13px;align-items:center;justify-content:flex-end;min-width:0}
.site-header .desktop-nav{grid-area:links;display:flex;justify-content:center;gap:clamp(16px,2.35vw,33px);width:100%;border-top:1px solid #f1f1f5;margin-top:12px;min-height:45px;white-space:nowrap;font-size:12px}
.site-header .desktop-nav a{display:inline-flex;align-items:center;min-height:42px;padding:0 1px;line-height:1.3}
.site-header .desktop-nav a:hover{color:var(--layout-purple)}
.site-header .location-trigger{min-width:0;max-width:220px;border-color:#e5def8;background:#f8f6ff;padding:9px 13px;gap:7px}
.site-header #locationLabel{max-width:150px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .support-link{display:inline-flex;align-items:center;font-size:12px}
.site-header .nav-cta{white-space:nowrap;min-height:40px;padding:10px 16px;gap:9px}
.site-header .menu-btn{display:none}
.device-finder{padding:40px 0 30px}
.device-finder .finder-intro{align-items:end;margin-bottom:20px}
.device-finder .finder-intro h2{font-size:clamp(29px,3vw,40px);letter-spacing:-1.7px;margin:10px 0 9px}
.device-finder .finder-intro p{line-height:1.5}
.device-search-wrap{border-radius:15px}
.device-finder .finder-head{margin-top:22px;margin-bottom:14px}
.device-finder .category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.device-finder .category-card{width:100%;min-width:0;min-height:154px;border:1px solid #e7e9f2;border-radius:18px;box-shadow:0 4px 16px rgba(26,30,65,.02);transition:transform .18s,box-shadow .18s,border-color .18s}
.device-finder .category-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,26,75,.08);border-color:#c9bdf1}
.device-finder .category-card .category-art{display:flex;align-items:center;justify-content:center}
.device-finder .seo-discover{margin-top:16px;gap:9px 16px;line-height:1.5}
.hero{overflow:hidden}
.hero .hero-layout{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:22px;min-height:425px}
.hero .hero-content{padding:48px 0;min-width:0}
.hero h1{font-size:clamp(37px,3.9vw,53px);line-height:1.13;letter-spacing:-2.6px}
.hero .hero-copy{max-width:450px;line-height:1.7}
.hero .hero-visual{width:100%;max-width:100%;min-width:0;min-height:360px;height:360px;transform:none}
.hero .hero-machine{width:80%;top:93px;left:6%}
.hero .hero-phone{right:5%;bottom:25px}
.hero .glass-label-top{right:1%;top:36px}
.hero .glass-label-bottom{left:0;bottom:12px}
/* Compact desktop, tablets and small laptops */
@media(max-width:1100px){
 .site-header .nav-wrap{grid-template-columns:minmax(175px,1fr) auto}
 .site-header .desktop-nav{gap:clamp(11px,1.6vw,23px);font-size:11px}
 .site-header .support-link{display:none}
 .hero .hero-layout{min-height:350px}
 .hero .hero-visual{height:300px;min-height:300px}
 .hero h1{font-size:clamp(34px,4.1vw,45px)}
}
@media(max-width:800px){
 html{scroll-padding-top:78px}
 .site-header{height:66px;min-height:66px}
 .site-header .nav-wrap{height:100%;min-height:0;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:9px;padding:0}
 .site-header .brand{flex:0 1 auto;font-size:18px;letter-spacing:-.9px;min-width:0}
 .site-header .brand-mark{flex-shrink:0;width:34px;height:34px;border-radius:10px}
 .site-header .brand small{font-size:6px;letter-spacing:.5px;line-height:1.25}
 .site-header .desktop-nav,.site-header .nav-cta,.site-header .support-link{display:none}
 .site-header .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:40px;flex:none;font-size:23px}
 .site-header .header-actions{gap:6px;flex:0 0 auto}
 .site-header .location-trigger{max-width:140px;padding:7px 9px;font-size:10px;min-height:35px;gap:4px}
 .site-header #locationLabel{max-width:82px}
 .site-header .mobile-nav{top:66px;max-height:calc(100dvh - 90px);overflow:auto;border-bottom:1px solid var(--layout-line);padding:14px max(18px,5vw)}
 .site-header .mobile-nav a{padding:13px 0;border-bottom:1px solid #f1f2f7}
 .device-finder{padding:28px 0 25px}
 .device-finder .finder-intro h2{font-size:clamp(26px,4.3vw,35px)}
 .device-finder .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
 .device-finder .category-card{min-height:118px;padding:9px 4px;border-radius:14px}
 .device-finder .category-card .category-art{height:72px}
 .device-finder .category-card strong{font-size:11px}
 .device-finder .category-card .category-sub{display:none}
 .hero .hero-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:2px;min-height:230px}
 .hero .hero-content{padding:23px 0}
 .hero h1{font-size:clamp(23px,4vw,32px);letter-spacing:-1.1px}
 .hero .hero-copy{font-size:11px;line-height:1.55}
 .hero .hero-visual{height:210px;min-height:210px;overflow:visible}
 .hero .hero-machine{width:140%;top:60px;left:-15%}
 .hero .hero-phone{right:-6%;bottom:18px;width:48%;height:114px}
 .hero .glass-label,.hero .orbit{display:none}
}
@media(max-width:480px){
 .container{width:calc(100% - 28px)}
 .announcement{font-size:8px;padding:0 9px;gap:5px;letter-spacing:0}
 .site-header{height:62px;min-height:62px}
 .site-header .brand{font-size:15px;gap:6px}
 .site-header .brand-mark{width:31px;height:31px}
 .site-header .brand-mark svg{width:21px}
 .site-header .brand small{font-size:5px;letter-spacing:.1px}
 .site-header .location-trigger{max-width:105px;font-size:9px;padding:6px}
 .site-header #locationLabel{max-width:58px}
 .site-header .location-trigger span:first-child{font-size:14px}
 .site-header .header-actions{gap:2px}
 .site-header .menu-btn{width:28px;font-size:21px}
 .site-header .mobile-nav{top:62px}
 .device-finder{padding:22px 0 20px}
 .device-finder .finder-intro h2{font-size:25px;line-height:1.18;letter-spacing:-.95px;margin:5px 0 7px}
 .device-finder .finder-intro p{font-size:12px}
 .device-finder .finder-head{margin-top:18px;margin-bottom:10px}
 .device-finder .category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .device-finder .category-card{min-height:100px;padding:8px 2px 7px;border-radius:12px}
 .device-finder .category-card .category-art{height:59px}
 .device-finder .category-card .device-svg{width:58px;height:54px}
 .device-finder .category-card strong{font-size:9.5px}
 .device-finder .seo-discover{font-size:10px;gap:6px 10px;margin-top:13px}
 .hero .hero-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:0;min-height:220px}
 .hero .hero-content{padding:20px 0}
 .hero .eyebrow{font-size:7px;padding:6px 8px}
 .hero h1{font-size:clamp(20px,5.5vw,27px);letter-spacing:-.9px;margin:10px 0}
 .hero .hero-copy{font-size:10px;margin-bottom:11px}
 .hero .hero-actions{display:flex;gap:6px;flex-wrap:wrap}
 .hero .hero-actions .btn{font-size:9px;padding:8px 9px;min-height:36px;width:auto}
 .hero .hero-mini{display:none}
 .hero .hero-visual{height:190px;min-height:190px;transform:none;max-width:100%;width:100%;margin:0}
 .hero .hero-machine{width:145%;top:52px;left:-18%}
 .hero .hero-phone{width:53%;height:102px;bottom:20px;right:-4%}
}
@media(max-width:350px){
 .site-header .brand small{max-width:140px;white-space:normal}
 .site-header .location-trigger{max-width:85px}
 .site-header #locationLabel{max-width:44px}
 .hero .hero-copy{font-size:9px}
}
