@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#080d18;--panel:#101a2b;--panel2:#0c1422;--text:#f2f6ff;--muted:#98a7bd;--blue:#438bff;--cyan:#65d6ff;--line:#22334c}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;min-height:100vh}body[data-theme=light]{--bg:#f4f7fc;--panel:#fff;--panel2:#eaf0f8;--text:#101b2d;--muted:#596b83;--line:#d6e0ee}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{height:78px;padding:0 6vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:10}.logo{font:800 13px Manrope;letter-spacing:1.5px;color:var(--text);text-decoration:none;display:flex;align-items:center;gap:10px}.logo span{width:34px;height:34px;border:1px solid var(--blue);color:var(--cyan);display:grid;place-items:center;border-radius:9px}.topbar nav,.tools{display:flex;align-items:center;gap:18px}.topbar nav button,.quiet{border:0;background:none;color:var(--muted)}.admin-open,.primary{border:0;background:linear-gradient(110deg,#2875ed,#55b9ff);color:white;padding:12px 18px;border-radius:8px;font-weight:700}.mobile-menu{display:none;background:none;border:0;color:var(--text);font-size:22px}.view{display:none}.view.active{display:block}.hero{padding:95px 9vw 45px;max-width:1500px;margin:auto;min-height:590px;position:relative}.hero-content{max-width:620px;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--cyan);font-weight:700}.hero h1,.page-heading h1{font:800 clamp(46px,7vw,86px)/1.04 Manrope;letter-spacing:-3px;margin:22px 0}.hero h1 em,.page-heading h1 em,.empty h2 em{font-style:normal;color:var(--cyan)}.hero-copy,.page-heading>p:last-child{max-width:520px;color:var(--muted);line-height:1.8}.hero-actions{display:flex;gap:12px;margin-top:28px}.secondary{border:1px solid var(--line);background:transparent;color:var(--text);padding:11px 17px;border-radius:8px}.hero-art{position:absolute;right:10%;top:90px;width:320px;height:320px;border:1px solid #24466f;border-radius:50%;display:grid;place-items:center;opacity:.9}.orbit{position:absolute;border:1px solid #285b91;border-radius:50%}.orbit-one{width:410px;height:170px;transform:rotate(-28deg)}.orbit-two{width:220px;height:390px;transform:rotate(35deg)}.art-core{font:800 38px/1.05 Manrope;text-align:center;letter-spacing:4px}.art-core b{color:var(--cyan)}.art-core span{color:var(--blue)}.art-label{position:absolute;bottom:18px;right:-20px;font-size:9px;letter-spacing:3px;color:var(--cyan)}.intro{border-top:1px solid var(--line);margin-top:120px;padding:48px 0 30px;max-width:760px}.intro h2{font:700 30px Manrope}.intro>p:last-child,.feature p,.muted{color:var(--muted);line-height:1.8}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0 70px}.feature,.admin-card,.login-panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:23px}.feature>span,.feature .soon{font-size:10px;letter-spacing:2px;color:var(--cyan)}.feature h3{font:700 21px Manrope}.feature p{min-height:45px}.text-link{background:none;border:0;color:var(--cyan);padding:8px 0;font-weight:700}.page{max-width:1200px;margin:auto;padding:75px 6vw 110px;min-height:65vh}.page-heading{margin-bottom:38px}.page-heading h1{font-size:clamp(42px,6vw,68px)}.directory-tools{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.directory-tools input{max-width:430px}.directory-tools span,.inventory-head span{font-size:10px;letter-spacing:2px;color:var(--cyan)}input,textarea,select{width:100%;background:var(--panel2);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--blue)}label{display:grid;gap:8px;color:var(--muted);font-size:12px;margin:13px 0}textarea{resize:vertical}.brand-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.brand-card{border:1px solid var(--line);background:var(--panel);border-radius:12px;overflow:hidden}.brand-card>img{width:100%;height:175px;object-fit:cover;background:var(--panel2)}.brand-card-body{padding:18px}.brand-card h3{margin:0 0 8px;font:700 20px Manrope}.brand-card p{color:var(--muted);line-height:1.6}.brand-card a{color:var(--cyan);font-size:11px;text-decoration:none;font-weight:700}.product-list{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.product-heading{font-size:9px;letter-spacing:2px;color:var(--muted);margin-bottom:8px}.product-item{display:flex;align-items:center;gap:10px;padding:7px 0}.product-item img{width:43px;height:43px;object-fit:cover;border-radius:6px}.product-item div{flex:1;display:grid;gap:4px}.product-item strong{font-size:12px}.product-item small{color:var(--muted)}.empty{text-align:center;padding:65px 12px}.empty>span{color:var(--cyan);font-size:30px}.empty h2{font:700 30px Manrope}.empty p{color:var(--muted)}.coming-panel{height:220px;border:1px solid var(--line);border-radius:14px;background:var(--panel);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}.coming-panel span{font:800 46px Manrope;color:var(--blue)}.coming-panel small{color:var(--cyan);letter-spacing:3px}.login-panel{max-width:460px;margin:20px auto}.login-panel h2{font:700 25px Manrope}.full{width:100%;margin-top:10px}.form-message{min-height:20px;color:#ff8585;font-size:12px;line-height:1.5}.dashboard-head,.inventory-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.stats{display:flex;gap:14px;margin:20px 0}.stats>div{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:17px 24px;min-width:135px;display:grid;gap:5px}.stats span{font:800 29px Manrope}.stats small{color:var(--muted);font-size:9px;letter-spacing:2px}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.admin-card h3{font:700 19px Manrope;margin-top:0}.form-actions{display:flex;gap:10px}.inventory{margin-top:16px}.inventory-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--line)}.inventory-row>div:first-child{display:grid;gap:5px}.inventory-row small{color:var(--muted)}.row-actions{display:flex;gap:8px}.row-actions button{border:1px solid var(--line);border-radius:6px;padding:7px 10px;background:none;color:var(--text)}footer{border-top:1px solid var(--line);padding:32px 6vw;display:flex;align-items:center;justify-content:space-between;gap:18px}footer p,footer small{font-size:9px;letter-spacing:2px;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:850px){.hero-art{opacity:.2;right:3%}.brand-grid{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:1fr}.topbar{padding:0 4vw}.topbar nav{gap:9px}}
@media(max-width:620px){.topbar{height:66px}.mobile-menu{display:block;order:3}.topbar nav{display:none;position:absolute;top:66px;left:0;right:0;padding:16px;background:var(--panel);border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start}.topbar nav.open{display:flex}.tools{margin-left:auto;margin-right:10px;gap:8px}.quiet{font-size:10px}.admin-open{padding:9px;font-size:11px}.logo{font-size:10px}.logo span{width:28px;height:28px}.hero{padding:70px 7vw 30px}.hero h1{letter-spacing:-2px}.hero-art{width:230px;height:230px;top:90px;right:-30px}.orbit-one{width:290px;height:120px}.orbit-two{width:160px;height:280px}.art-core{font-size:27px}.intro{margin-top:85px}.page{padding:50px 6vw 75px}.brand-grid,.admin-columns{grid-template-columns:1fr}.directory-tools{flex-direction:column;align-items:stretch}.directory-tools input{max-width:none}.stats{flex-wrap:wrap}.inventory-row{align-items:flex-start;flex-direction:column}footer{align-items:flex-start;flex-direction:column}}

/* V8 product photo upload additions */
.field-hint{font-size:11px;color:var(--muted);line-height:1.5}.upload-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px;padding:10px;border:1px dashed var(--line);border-radius:9px}.upload-preview img{width:112px;height:128px;object-fit:cover;border-radius:7px;background:var(--panel2)}input[type=file]{padding:10px;border-style:dashed}.product-item img{width:78px;height:88px;object-fit:cover;border-radius:8px;flex:0 0 auto}.product-item{align-items:center}

/* V9: open a brand profile before showing its collection */
.brand-card{cursor:pointer;transition:transform .2s ease,border-color .2s ease}
.brand-card:hover{transform:translateY(-3px);border-color:var(--cyan)}
.brand-card .brand-card-body>p{min-height:42px}
.brand-card .open-profile{display:inline-flex;margin-top:10px;color:var(--cyan);font-size:11px;font-weight:800;letter-spacing:1px}
.brand-card>img{height:190px;object-fit:cover}
/* V10: full-page brand profile with vertically stacked product cards */
.profile-overlay{position:fixed;inset:0;z-index:30;background:var(--bg);display:none;align-items:stretch;justify-content:stretch;padding:0;overflow-y:auto;overscroll-behavior:contain}
.profile-overlay.open{display:flex}
.profile-modal{width:100%;min-height:100%;height:auto;max-height:none;overflow:visible;background:var(--bg);border:0;border-radius:0;padding:clamp(18px,4vw,54px) clamp(16px,7vw,100px);box-shadow:none}
.profile-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:28px;position:sticky;top:0;z-index:2;padding:12px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.profile-close{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:8px;padding:10px 15px;cursor:pointer}
.profile-brand-head{display:grid;grid-template-columns:minmax(220px, min(34vw,360px)) 1fr;gap:clamp(20px,4vw,48px);align-items:center;border-bottom:1px solid var(--line);padding:12px 0 34px}
.profile-brand-head>img{width:100%;height:clamp(240px,34vw,370px);object-fit:cover;border-radius:14px;background:var(--panel2)}
.profile-brand-head h2{font:800 clamp(32px,5vw,56px)/1.1 Manrope;margin:0 0 14px}
.profile-brand-head p{color:var(--muted);line-height:1.85;margin:0 0 20px;max-width:720px}
.profile-brand-head .primary{display:inline-flex;text-decoration:none;align-items:center}
.profile-products-title{font:700 clamp(22px,3vw,30px) Manrope;margin:34px 0 18px}
.profile-products{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;max-width:1050px}
.profile-product{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);align-items:stretch;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.profile-product>img{width:100%;height:100%;min-height:250px;max-height:360px;object-fit:cover;display:block;background:var(--panel2)}
.profile-product-info{padding:clamp(18px,3vw,30px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px}
.profile-product-info strong{font-size:clamp(17px,2vw,22px)}
.profile-product-info small{color:var(--muted);font-size:14px}
.profile-product-info a{color:var(--cyan);font-size:13px;font-weight:800;text-decoration:none;border:1px solid var(--line);border-radius:8px;padding:11px 14px;margin-top:4px}
.profile-no-image{min-height:250px;display:grid;place-items:center;color:var(--muted);background:linear-gradient(135deg,#10233d,#0b1423);font-size:12px}
.profile-no-products{color:var(--muted);padding:24px;border:1px dashed var(--line);border-radius:10px}
@media(max-width:700px){.profile-modal{padding:12px 16px 36px}.profile-top{margin-bottom:18px}.profile-brand-head{grid-template-columns:1fr;gap:18px;padding-bottom:24px}.profile-brand-head>img{width:100%;height:min(72vw,340px)}.profile-products{grid-template-columns:1fr}.profile-product{grid-template-columns:1fr}.profile-product>img{height:min(78vw,360px);min-height:220px;max-height:none}.profile-no-image{min-height:220px}.profile-product-info{padding:18px}}

footer .instagram-link{color:var(--cyan);font-size:11px;font-weight:700;text-decoration:none;letter-spacing:1px}footer .instagram-link:hover{text-decoration:underline}
