/* ═══════════════════════════════════════════════════════
   OWEIAAN — own.css
   ═══════════════════════════════════════════════════════ */

:root {
    --white: #FFFFFF; --black: #0A0A0A; --dark: #111111; --dark2: #181818;
    --dark3: #222222; --grey: #888888; --grey2: #555555; --grey3: #2A2A2A;
    --border: rgba(255,255,255,0.06); --glass: rgba(255,255,255,0.03);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height: 68px;
    --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --accent: #656565; --red: #B30000; --green: #25D366; --gold: #c8a96e;
}
[data-theme="light"] {
    --black: #F5F5F5; --dark: #EEEEEE; --dark2: #E0E0E0; --dark3: #CCCCCC;
    --border: rgba(0,0,0,0.06); --glass: rgba(0,0,0,0.03); --white: #111111;
    --grey: #666666; --grey2: #999999; --grey3: #DDDDDD;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; max-width:100vw; overflow-x:hidden; }
body { font-family:var(--font); background:var(--black); color:var(--white); overflow-x:hidden; line-height:1.5; transition:background .4s ease,color .4s ease; -webkit-font-smoothing:antialiased; max-width:100vw; width:100%; }
body.cart-open { overflow:hidden; }
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--dark); }
::-webkit-scrollbar-thumb { background:var(--grey2); border-radius:2px; }
.container { max-width:1280px; margin:0 auto; padding:0 24px; width:100%; box-sizing:border-box; }
@media (max-width:768px) { .container { padding:0 16px; } }
@media (max-width:480px) { .container { padding:0 12px; } }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:14px 32px; font-family:var(--font); font-size:11px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; text-decoration:none; border:none; cursor:pointer; transition:all var(--transition); min-height:48px; border-radius:4px; }
.btn:hover { transform:translateY(-2px); opacity:.85; }
.sec-label { font-size:10px; font-weight:600; letter-spacing:4px; text-transform:uppercase; color:var(--grey); margin-bottom:8px; }
.sec-title { font-family:var(--font); font-size:clamp(36px,4.5vw,56px); font-weight:800; letter-spacing:-1px; line-height:1.05; color:var(--white); margin-bottom:24px; }
.fade-in-up { opacity:0; transform:translateY(40px); transition:opacity .8s ease,transform .8s cubic-bezier(.25,.46,.45,.94); }
.fade-in-up.visible { opacity:1; transform:translateY(0); }

/* MUSIC PLAYER */
.music-player-container { position:fixed; bottom:24px; left:24px; z-index:9999; }
.music-player-main { width:60px; height:60px; border-radius:50%; background:var(--dark2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .3s ease; box-shadow:0 4px 20px rgba(0,0,0,.5); color:var(--grey); font-size:22px; position:relative; }
.music-player-main:hover { transform:scale(1.1); border-color:var(--accent); color:var(--white); }
.music-player-main.playing { color:var(--accent); border-color:var(--accent); animation:spinWaves 2s linear infinite; }
@keyframes spinWaves { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
.music-progress-ring { position:absolute; inset:-4px; border-radius:50%; pointer-events:none; }
.music-progress-ring svg { transform:rotate(-90deg); width:68px; height:68px; }
.music-progress-ring circle { fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:188.5; stroke-dashoffset:188.5; transition:stroke-dashoffset .3s ease; }
#bgMusic { display:none; }
.hidden-audio-controls { position:fixed; bottom:90px; left:24px; z-index:9998; background:var(--dark2); border:1px solid var(--border); border-radius:16px; padding:18px 20px; display:none; flex-direction:column; gap:12px; min-width:240px; max-width:280px; box-shadow:0 8px 32px rgba(0,0,0,.6); backdrop-filter:blur(12px); }
.hidden-audio-controls.open { display:flex; }
.audio-top-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.audio-top-row .song-name { font-size:13px; font-weight:600; color:var(--white); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.audio-top-row .song-time { font-size:11px; color:var(--grey2); white-space:nowrap; }
.audio-progress-container { width:100%; height:4px; background:var(--grey3); border-radius:2px; cursor:pointer; position:relative; }
.audio-progress-fill { width:0%; height:100%; background:var(--accent); border-radius:2px; transition:width .1s linear; }
.audio-controls-row { display:flex; align-items:center; justify-content:center; gap:14px; }
.audio-controls-row button { background:none; border:none; color:var(--grey); font-size:16px; cursor:pointer; padding:6px; border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; }
.audio-controls-row button:hover { color:var(--white); background:rgba(255,255,255,.06); }
.audio-controls-row .play-btn { width:42px; height:42px; font-size:18px; background:var(--accent); color:var(--white); border-radius:50%; }
.audio-controls-row .play-btn:hover { background:var(--white); color:var(--black); }
.audio-volume-row { display:flex; align-items:center; gap:10px; }
.audio-volume-row i { color:var(--grey2); font-size:13px; width:16px; }
.audio-volume-row input[type="range"] { flex:1; height:3px; -webkit-appearance:none; background:var(--grey3); border-radius:2px; outline:none; }
.audio-volume-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:var(--accent); cursor:pointer; }
@media (max-width:480px) {
    .music-player-container { bottom:16px; left:16px; }
    .music-player-main { width:50px; height:50px; font-size:18px; }
    .music-progress-ring svg { width:58px; height:58px; }
    .hidden-audio-controls { left:16px; bottom:76px; min-width:200px; padding:14px 16px; }
}

/* LANG */
.lang-switcher { position:relative; display:inline-block; }
.lang-btn { background:none; border:none; color:var(--grey); font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; cursor:pointer; padding:6px 8px; display:flex; align-items:center; gap:4px; font-family:var(--font); }
.lang-btn:hover { color:var(--white); }
.lang-btn i { font-size:10px; margin-left:2px; }
.lang-dropdown { position:absolute; top:100%; right:0; background:var(--dark2); border:1px solid var(--border); border-radius:8px; padding:6px 0; min-width:70px; display:none; flex-direction:column; box-shadow:0 8px 24px rgba(0,0,0,.4); z-index:100; }
.lang-dropdown.open { display:flex; }
.lang-dropdown button { background:none; border:none; color:var(--grey); font-size:13px; font-weight:500; padding:8px 16px; text-align:left; cursor:pointer; font-family:var(--font); }
.lang-dropdown button:hover, .lang-dropdown button.active-lang { background:var(--grey3); color:var(--white); }
@media (max-width:768px) { .nav-r .lang-switcher { display:none; } .mobile-menu .lang-switcher { display:block; padding:0 24px 24px; } }
@media (min-width:769px) { .mobile-menu .lang-switcher { display:none; } }

/* PWA */
.pwa-install-btn { display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:var(--white); border:none; padding:8px 18px; border-radius:8px; font-size:11px; font-weight:600; letter-spacing:1px; cursor:pointer; font-family:var(--font); text-decoration:none; }
.pwa-install-btn:hover { background:var(--white); color:var(--black); transform:translateY(-2px); }
.pwa-install-btn i { font-size:14px; }
.pwa-install-btn.hidden { display:none !important; }
.mobile-menu .pwa-install-mobile { padding:8px 24px 24px; border-top:1px solid var(--border); }
.mobile-menu .pwa-install-mobile a { display:flex; align-items:center; gap:12px; padding:14px 0; font-size:13px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; color:var(--grey); text-decoration:none; }
.mobile-menu .pwa-install-mobile a i { font-size:18px; }

/* NAVBAR */
.navbar { position:fixed; top:0; left:0; right:0; height:var(--nav-height); z-index:1000; transition:all .4s ease; width:100%; max-width:100vw; }
.navbar.scrolled { background:rgba(0,0,0,.92); backdrop-filter:blur(16px); border-bottom:1px solid var(--border); }
[data-theme="light"] .navbar.scrolled { background:rgba(245,245,245,.92); }
.nav-c { max-width:1280px; margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logo { font-family:var(--font); font-size:22px; font-weight:800; letter-spacing:4px; color:var(--white); text-decoration:none; display:flex; align-items:center; gap:8px; flex-shrink:0; }
.logo img { height:28px; width:auto; }
.logo:hover { opacity:.6; }
.nav-links { display:flex; list-style:none; gap:32px; align-items:center; }
.nav-links a { font-size:10px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; color:var(--grey); text-decoration:none; position:relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:1.5px; background:var(--white); transition:width var(--transition); }
.nav-links a:hover, .nav-links a.active { color:var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-r { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.theme-btn, .wishlist-nav-btn, .cart-nav-btn { background:none; border:none; color:var(--grey); font-size:17px; cursor:pointer; padding:6px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius:50%; position:relative; }
.theme-btn:hover, .wishlist-nav-btn:hover, .cart-nav-btn:hover { color:var(--white); background:rgba(255,255,255,.05); }
.nav-back { font-size:10px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--grey); text-decoration:none; display:flex; align-items:center; gap:6px; }
.nav-back:hover { color:var(--white); }
.wishlist-nav-btn .wishlist-count, .cart-nav-btn .cart-count { position:absolute; top:-2px; right:-2px; color:#fff; font-size:8px; font-weight:700; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.5); transition:all var(--transition); }
.wishlist-nav-btn .wishlist-count { background:var(--red); }
.cart-nav-btn .cart-count { background:var(--accent); }
.wishlist-nav-btn .wishlist-count.show, .cart-nav-btn .cart-count.show { opacity:1; transform:scale(1); }
.menu-toggle { display:none; flex-direction:column; gap:4px; background:none; border:none; cursor:pointer; padding:4px; width:26px; }
.menu-toggle span { display:block; width:100%; height:2px; background:var(--white); transition:all var(--transition); border-radius:1px; }
.menu-toggle.open span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity:0; }
.menu-toggle.open span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.mobile-menu { position:fixed; top:var(--nav-height); left:0; right:0; background:rgba(0,0,0,.98); backdrop-filter:blur(20px); z-index:999; transform:translateY(-110%); opacity:0; visibility:hidden; transition:all .5s cubic-bezier(.25,.46,.45,.94); border-bottom:1px solid var(--border); }
.mobile-menu.open { transform:translateY(0); opacity:1; visibility:visible; }
[data-theme="light"] .mobile-menu { background:rgba(245,245,245,.98); }
.mobile-menu ul { list-style:none; padding:24px 24px 32px; }
.mobile-menu li { border-bottom:1px solid var(--border); }
.mobile-menu a { display:block; padding:14px 0; font-size:13px; font-weight:600; letter-spacing:2.5px; text-transform:uppercase; color:var(--grey); text-decoration:none; }
.mobile-menu a:hover { color:var(--white); }
@media (max-width:768px) {
    .nav-links { display:none; }
    .menu-toggle { display:flex; }
    .nav-c { padding:0 16px; }
    .logo { font-size:17px; letter-spacing:2px; }
    .logo img { height:24px; }
    .nav-r { gap:8px; }
    .theme-btn, .wishlist-nav-btn, .cart-nav-btn { font-size:16px; width:32px; height:32px; }
    .nav-back { font-size:9px; }
}
@media (max-width:480px) {
    .logo { font-size:15px; letter-spacing:1px; gap:6px; }
    .logo img { height:20px; }
    .nav-r { gap:4px; }
    .theme-btn, .wishlist-nav-btn, .cart-nav-btn { font-size:14px; width:28px; height:28px; }
    .nav-back { font-size:8px; gap:4px; }
    .menu-toggle { width:22px; gap:3px; padding:3px; }
}

/* HERO */
.hero { position:relative; min-height:100vh; height:100vh; width:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--black); margin-top:var(--nav-height); }
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-bg img { width:100%; height:100%; object-fit:cover; opacity:.3; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(to bottom,rgba(0,0,0,.3),rgba(0,0,0,.7)); z-index:1; }
.hero-content { position:relative; z-index:2; text-align:center; padding:0 24px; max-width:800px; }
.hero-label { font-size:11px; font-weight:600; letter-spacing:6px; text-transform:uppercase; color:var(--accent); margin-bottom:12px; }
.hero-title { font-size:clamp(48px,8vw,80px); font-weight:900; line-height:1.05; color:var(--white); margin-bottom:16px; letter-spacing:4px; }
.hero-title span { color:var(--accent); }
.hero-sub { font-size:18px; color:var(--grey); letter-spacing:1px; margin-bottom:32px; }
.hero-cta { display:inline-flex; align-items:center; gap:12px; padding:16px 40px; background:var(--accent); color:#fff; border-radius:4px; font-family:var(--font); font-size:12px; font-weight:700; letter-spacing:3px; text-transform:uppercase; text-decoration:none; }
.hero-cta:hover { background:var(--white); color:var(--black); transform:translateY(-3px); }
.scroll-indicator { position:absolute; bottom:32px; left:50%; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:8px; opacity:.5; }
.scroll-indicator span { font-size:10px; letter-spacing:4px; color:var(--grey); font-weight:600; }
.scroll-line { width:1.5px; height:30px; background:linear-gradient(to bottom,var(--accent),transparent); animation:scrollPulse 2.5s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3; transform:scaleY(.8)} 50%{opacity:1; transform:scaleY(1.2)} }
@media (max-width:768px) { .hero-title { font-size:clamp(36px,10vw,52px); } .hero-sub { font-size:15px; } .hero-cta { padding:14px 28px; font-size:11px; } .scroll-indicator { display:none; } }
@media (max-width:480px) { .hero-title { font-size:clamp(28px,12vw,40px); letter-spacing:2px; } .hero-sub { font-size:13px; } }

/* STUDIO */
.studio { padding:80px 0 60px; background:var(--black); width:100%; overflow:hidden; }
.studio-header { text-align:center; margin-bottom:60px; }
.studio-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:start; }
.mockup-panel { background:var(--dark); border:1px solid var(--border); border-radius:16px; padding:32px; text-align:center; position:sticky; top:90px; }
.mockup-stage { position:relative; display:inline-block; width:100%; max-width:340px; }
.garment-img { width:100%; height:auto; display:block; border-radius:8px; transition:opacity .3s ease; filter:drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.live-text { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:70%; text-align:center; font-weight:800; font-size:1rem; text-transform:uppercase; pointer-events:none; text-shadow:0 2px 12px rgba(0,0,0,.9); word-break:break-word; line-height:1.3; transition:all .25s; color:#fff; letter-spacing:1px; font-family:var(--font); }
.live-text.font-script { font-family:Georgia,serif; font-style:italic; text-transform:none; font-size:1.2rem; letter-spacing:0; }
.live-text.font-display { font-weight:900; font-size:1.4rem; letter-spacing:4px; }
.mockup-label { margin-top:16px; font-size:12px; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:var(--grey); }
.btn-download, .btn-share { display:inline-flex; align-items:center; gap:8px; margin-top:16px; padding:10px 24px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:6px; font-family:var(--font); font-size:10px; font-weight:600; letter-spacing:2px; text-transform:uppercase; cursor:pointer; }
.btn-download:hover, .btn-share:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
@media (max-width:1024px) { .studio-grid { grid-template-columns:1fr 1.1fr; gap:32px; } .mockup-panel { position:sticky; top:80px; padding:24px; } .mockup-stage { max-width:280px; } }
@media (max-width:768px) { .studio { padding:60px 0 40px; } .studio-grid { grid-template-columns:1fr; gap:32px; } .mockup-panel { position:static; padding:24px 16px; } .mockup-stage { max-width:260px; } .studio-header { margin-bottom:40px; } }
@media (max-width:480px) { .studio { padding:40px 0 30px; } .mockup-stage { max-width:200px; } .mockup-panel { padding:16px; } .live-text { font-size:.75rem; } .btn-download, .btn-share { padding:8px 16px; font-size:9px; } }

/* CONTROLS */
.controls-panel { display:flex; flex-direction:column; gap:16px; }
.ctrl-block { background:var(--dark); border:1px solid var(--border); border-radius:12px; padding:20px 24px; }
.ctrl-block-title { font-size:10px; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:var(--grey); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.ctrl-block-title::after { content:''; flex:1; height:1px; background:var(--border); }
.garment-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.garment-tab { background:transparent; border:1.5px solid var(--border); color:var(--grey); padding:12px; border-radius:8px; font-size:11px; font-weight:600; letter-spacing:2px; text-transform:uppercase; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; font-family:var(--font); }
.garment-tab i { font-size:20px; }
.garment-tab.active, .garment-tab:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.color-row { display:flex; gap:16px; flex-wrap:wrap; padding-bottom:4px; }
.color-swatch { width:44px; height:44px; border-radius:50%; cursor:pointer; border:3px solid transparent; position:relative; flex-shrink:0; }
.color-swatch.active { border-color:var(--white); box-shadow:0 0 0 2px var(--accent); }
.color-swatch:hover { transform:scale(1.1); }
.color-swatch .swatch-label { position:absolute; bottom:-18px; left:50%; transform:translateX(-50%); font-size:8px; font-weight:600; letter-spacing:1px; color:var(--grey); white-space:nowrap; text-transform:uppercase; }
.text-field { width:100%; background:rgba(255,255,255,.03); border:1.5px solid var(--border); color:var(--white); padding:12px 16px; font-family:var(--font); font-size:14px; border-radius:8px; outline:none; }
.text-field:focus { border-color:var(--accent); }
.text-field::placeholder { color:var(--grey2); }
.char-bar { margin-top:6px; display:flex; justify-content:space-between; font-size:11px; color:var(--grey2); }
.char-progress { width:100%; height:2px; background:var(--border); margin-top:6px; border-radius:2px; overflow:hidden; }
.char-fill { height:100%; background:var(--accent); width:0%; transition:width .3s ease; }
.font-btns { display:flex; gap:8px; }
.font-btn { flex:1; padding:10px 8px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:8px; font-size:11px; font-weight:600; letter-spacing:1px; text-transform:uppercase; cursor:pointer; font-family:var(--font); }
.font-btn.active, .font-btn:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.tcolor-row { display:flex; gap:8px; flex-wrap:wrap; }
.tcolor-btn { display:flex; align-items:center; gap:8px; padding:8px 14px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:8px; font-size:11px; font-weight:500; letter-spacing:1px; text-transform:uppercase; cursor:pointer; font-family:var(--font); }
.tcolor-btn.active, .tcolor-btn:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.tcolor-dot { width:14px; height:14px; border-radius:50%; display:inline-block; flex-shrink:0; }
.position-row { display:flex; gap:8px; }
.position-btn { flex:1; padding:10px 8px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:8px; font-size:10px; font-weight:600; letter-spacing:1px; text-transform:uppercase; display:flex; flex-direction:column; align-items:center; gap:4px; cursor:pointer; font-family:var(--font); }
.position-btn i { font-size:14px; }
.position-btn.active, .position-btn:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.slider-wrap { display:flex; align-items:center; gap:12px; }
.slider-label { font-size:13px; color:var(--grey); font-weight:600; min-width:18px; text-align:center; }
.slider-label.big { font-size:20px; }
.size-slider { flex:1; -webkit-appearance:none; height:4px; background:var(--border); border-radius:2px; outline:none; cursor:pointer; }
.size-slider::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--accent); cursor:pointer; border:2px solid var(--dark); }
.slider-val-row { display:flex; justify-content:space-between; font-size:11px; color:var(--grey2); margin-top:4px; }
.slider-val { color:var(--accent); font-weight:700; }
.align-row { display:flex; gap:8px; }
.align-btn { flex:1; padding:10px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:8px; font-size:16px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.align-btn.active, .align-btn:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.size-row { display:flex; gap:8px; flex-wrap:wrap; }
.size-btn { width:48px; height:48px; background:transparent; border:1.5px solid var(--border); color:var(--grey); border-radius:8px; font-size:13px; font-weight:700; letter-spacing:1px; cursor:pointer; font-family:var(--font); }
.size-btn.active, .size-btn:hover { border-color:var(--accent); color:var(--white); background:var(--glass); }
.qty-row { display:flex; align-items:center; gap:16px; }
.qty-btn { width:40px; height:40px; background:var(--border); border:1.5px solid var(--border); color:var(--white); border-radius:8px; font-size:18px; font-weight:300; cursor:pointer; font-family:var(--font); }
.qty-btn:hover { background:var(--glass); border-color:var(--accent); }
.qty-num { font-size:28px; font-weight:800; min-width:40px; text-align:center; color:var(--white); }
.notes-field { width:100%; min-height:80px; resize:vertical; background:rgba(255,255,255,.03); border:1.5px solid var(--border); color:var(--white); padding:12px 16px; font-family:var(--font); font-size:13px; border-radius:8px; outline:none; line-height:1.6; }
.notes-field:focus { border-color:var(--accent); }
.notes-field::placeholder { color:var(--grey2); }

/* REF UPLOAD */
.ref-upload-zone { border:2px dashed var(--border); border-radius:12px; padding:24px 16px; text-align:center; cursor:pointer; background:rgba(255,255,255,.02); position:relative; }
.ref-upload-zone:hover, .ref-upload-zone.dragover { border-color:var(--accent); background:rgba(101,101,101,.08); }
.ref-upload-zone input[type="file"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.ref-upload-zone .ref-icon { font-size:28px; color:var(--accent); margin-bottom:8px; }
.ref-upload-zone .ref-text { font-size:12px; color:var(--grey); font-weight:600; letter-spacing:1px; }
.ref-upload-zone .ref-hint { font-size:10px; color:var(--grey2); margin-top:4px; }
.ref-preview { display:none; margin-top:12px; position:relative; border-radius:10px; overflow:hidden; border:1px solid var(--border); }
.ref-preview.show { display:block; }
.ref-preview img { width:100%; display:block; max-height:200px; object-fit:cover; }
.ref-preview .ref-remove { position:absolute; top:8px; right:8px; width:32px; height:32px; border-radius:50%; background:rgba(0,0,0,.75); border:1px solid rgba(255,255,255,.15); color:#fff; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.ref-preview .ref-remove:hover { background:#f44; transform:scale(1.1); }
.ref-upload-progress { display:none; margin-top:10px; height:4px; background:var(--border); border-radius:2px; overflow:hidden; }
.ref-upload-progress.show { display:block; }
.ref-upload-progress-fill { height:100%; width:0%; background:var(--accent); transition:width .3s ease; }

/* SUMMARY */
.summary-card { background:var(--glass); border:1px solid var(--border); border-radius:12px; padding:20px 24px; }
.summary-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:13px; color:var(--grey); border-bottom:1px solid var(--border); }
.summary-row:last-child { border-bottom:none; }
.summary-row span:last-child { color:var(--white); font-weight:600; }
.summary-total { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.summary-total-label { font-size:11px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--grey); }
.summary-total-price { font-size:26px; font-weight:800; color:var(--accent); }
.btn-order { width:100%; padding:16px; background:var(--accent); color:#fff; border:none; border-radius:8px; font-family:var(--font); font-size:12px; font-weight:700; letter-spacing:3px; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; margin-top:4px; }
.btn-order:hover { background:var(--white); color:var(--black); transform:translateY(-2px); }
.btn-whatsapp { width:100%; padding:16px; background:transparent; color:#25D366; border:1.5px solid #25D366; border-radius:8px; font-family:var(--font); font-size:12px; font-weight:700; letter-spacing:3px; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; margin-top:8px; }
.btn-whatsapp:hover { background:rgba(37,211,102,.1); transform:translateY(-2px); }
.btn-instagram { width:100%; padding:16px; background:transparent; color:#E1306C; border:1.5px solid #E1306C; border-radius:8px; font-family:var(--font); font-size:12px; font-weight:700; letter-spacing:3px; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; margin-top:8px; }
.btn-instagram:hover { background:rgba(225,48,108,.1); transform:translateY(-2px); }
@media (max-width:768px) {
    .ctrl-block { padding:16px; }
    .size-btn { width:42px; height:42px; font-size:12px; }
    .qty-num { font-size:24px; }
    .summary-total-price { font-size:22px; }
    .btn-order, .btn-whatsapp, .btn-instagram { padding:14px; font-size:11px; }
}
@media (max-width:480px) {
    .ctrl-block { padding:12px; }
    .ctrl-block-title { font-size:9px; letter-spacing:2px; }
    .garment-tab { padding:10px; font-size:10px; }
    .garment-tab i { font-size:16px; }
    .color-swatch { width:36px; height:36px; }
    .tcolor-btn { padding:6px 10px; font-size:10px; }
    .position-btn { font-size:9px; padding:8px 4px; }
    .font-btn { font-size:10px; padding:8px 4px; }
    .size-btn { width:36px; height:36px; font-size:11px; }
    .qty-btn { width:34px; height:34px; font-size:16px; }
    .qty-num { font-size:20px; min-width:32px; }
    .summary-total-price { font-size:20px; }
    .btn-order, .btn-whatsapp, .btn-instagram { padding:12px; font-size:10px; letter-spacing:2px; }
    .text-field { font-size:13px; padding:10px 12px; }
    .notes-field { font-size:12px; min-height:60px; }
}

/* CART / WISHLIST */
.cart-overlay, .wishlist-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); z-index:2000; opacity:0; pointer-events:none; transition:opacity .4s ease; }
.cart-overlay.active, .wishlist-overlay.active { opacity:1; pointer-events:auto; }
.cart-drawer, .wishlist-drawer { position:fixed; top:0; right:-420px; width:400px; max-width:90vw; height:100vh; background:var(--dark); z-index:2001; padding:28px 20px; transition:right .5s cubic-bezier(.25,.46,.45,.94); display:flex; flex-direction:column; border-left:1px solid var(--border); overflow-y:auto; }
.cart-drawer.open, .wishlist-drawer.open { right:0; }
[data-theme="light"] .cart-drawer, [data-theme="light"] .wishlist-drawer { background:var(--dark2); }
.cart-drawer .cart-header, .wishlist-drawer .wishlist-header { display:flex; justify-content:space-between; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.cart-drawer .cart-header h2, .wishlist-drawer .wishlist-header h2 { font-family:var(--font); font-size:22px; font-weight:800; letter-spacing:1px; color:var(--white); }
.wishlist-drawer .wishlist-header h2 { color:var(--red); }
.cart-drawer .cart-header .cart-close, .wishlist-drawer .wishlist-header .wishlist-close { background:none; border:none; color:var(--grey); font-size:22px; cursor:pointer; padding:4px; }
.cart-drawer .cart-items, .wishlist-drawer .wishlist-items { flex:1; overflow-y:auto; margin-bottom:16px; }
.cart-drawer .cart-item, .wishlist-drawer .wishlist-item { display:flex; gap:14px; padding:12px 0; border-bottom:1px solid var(--border); align-items:center; }
.cart-drawer .cart-item img, .wishlist-drawer .wishlist-item img { width:56px; height:56px; object-fit:cover; border-radius:8px; background:var(--dark3); }
.cart-drawer .cart-item-info, .wishlist-drawer .wishlist-item-info { flex:1; }
.cart-drawer .cart-item-info h4, .wishlist-drawer .wishlist-item-info h4 { font-size:13px; font-weight:600; color:var(--white); }
.cart-drawer .cart-item-info p, .wishlist-drawer .wishlist-item-info p { font-size:13px; font-weight:600; color:var(--accent); }
.wishlist-drawer .wishlist-item-info p { color:var(--red); }
.cart-drawer .cart-item-info .custom-badge { font-size:10px; color:var(--grey); letter-spacing:1px; }
.cart-drawer .cart-item-qty { display:flex; align-items:center; gap:4px; }
.cart-drawer .cart-item-qty button { background:none; border:1px solid var(--border); color:var(--white); width:26px; height:26px; border-radius:4px; cursor:pointer; font-size:14px; }
.cart-drawer .cart-item-qty button:hover { border-color:var(--accent); }
.cart-drawer .cart-item-qty span { min-width:18px; text-align:center; font-weight:600; color:var(--white); }
.cart-drawer .cart-item-remove, .wishlist-drawer .wishlist-item-remove { background:none; border:none; color:var(--grey); cursor:pointer; font-size:14px; padding:4px; }
.cart-drawer .cart-item-remove:hover, .wishlist-drawer .wishlist-item-remove:hover { color:#f44; }
.cart-drawer .empty-cart, .wishlist-drawer .empty-wishlist { text-align:center; padding:60px 0; color:var(--grey); }
.cart-drawer .empty-cart i, .wishlist-drawer .empty-wishlist i { font-size:40px; margin-bottom:12px; opacity:.3; }
.cart-drawer .cart-footer { border-top:1px solid var(--border); padding-top:16px; }
.cart-drawer .cart-total { display:flex; justify-content:space-between; align-items:center; font-size:16px; font-weight:700; color:var(--white); margin-bottom:12px; }
.cart-drawer .cart-total span:last-child { color:var(--accent); font-size:20px; }
.cart-drawer .cart-checkout { width:100%; border-radius:8px; padding:14px; background:var(--accent); color:var(--white); border:none; font-weight:700; font-family:var(--font); font-size:12px; letter-spacing:2px; text-transform:uppercase; cursor:pointer; }
.cart-drawer .cart-checkout:hover { background:var(--white); color:var(--black); }
@media (max-width:768px) {
    .cart-drawer, .wishlist-drawer { width:100%; max-width:100vw; right:-100%; padding:20px 16px; }
}

/* PROCESS */
.process { padding:80px 0; background:var(--dark); border-top:1px solid var(--border); }
.process-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:48px; }
.process-step { background:var(--black); border:1px solid var(--border); border-radius:16px; padding:32px 24px; text-align:center; }
.process-step:hover { transform:translateY(-6px); border-color:var(--accent); box-shadow:0 12px 40px rgba(0,0,0,.3); }
.step-num { font-size:40px; font-weight:900; color:var(--accent); opacity:.2; line-height:1; margin-bottom:8px; }
.step-icon { font-size:28px; color:var(--accent); margin-bottom:12px; }
.step-title { font-size:14px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--white); margin-bottom:6px; }
.step-desc { font-size:13px; color:var(--grey); line-height:1.6; }
@media (max-width:1024px) { .process-steps { grid-template-columns:repeat(2,1fr); gap:16px; } }
@media (max-width:768px) { .process { padding:60px 0; } .process-step { padding:24px 16px; } }
@media (max-width:480px) { .process { padding:40px 0; } .process-steps { grid-template-columns:1fr; gap:12px; } }

/* FOOTER */
.footer { padding:40px 0 24px; background:var(--dark); border-top:1px solid var(--border); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:32px; }
.footer-brand .footer-logo { font-size:24px; font-weight:800; letter-spacing:4px; color:var(--white); text-decoration:none; display:inline-block; margin-bottom:12px; }
.footer-brand .footer-manifesto { font-size:14px; color:var(--grey); line-height:1.7; max-width:320px; }
.footer-col h4 { font-size:11px; font-weight:600; letter-spacing:2px; text-transform:uppercase; color:var(--white); margin-bottom:12px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:8px; }
.footer-col ul a { font-size:13px; color:var(--grey); text-decoration:none; }
.footer-col ul a:hover { color:var(--white); }
.footer-col .social-links { display:flex; gap:12px; }
.footer-col .social-links a { display:flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid var(--border); border-radius:50%; color:var(--grey); font-size:16px; text-decoration:none; }
.footer-col .social-links a:hover { border-color:var(--white); color:var(--white); transform:translateY(-2px); }
.footer-bottom { padding-top:20px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-bottom p { font-size:12px; color:var(--grey2); }
@media (max-width:1024px) { .footer-grid { grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:768px) { .footer { padding:30px 0 20px; } .footer-grid { grid-template-columns:1fr; gap:24px; } .footer-bottom { flex-direction:column; text-align:center; } }

/* TOASTS */
.copy-toast { position:fixed; bottom:32px; left:50%; transform:translateX(-50%) translateY(80px); background:var(--dark2); border:1px solid var(--border); color:var(--white); padding:14px 28px; border-radius:12px; font-size:13px; font-weight:600; display:flex; align-items:center; gap:10px; z-index:999; opacity:0; transition:all .4s cubic-bezier(.34,1.56,.64,1); pointer-events:none; }
.copy-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.cart-toast { position:fixed; bottom:100px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--dark2); border:1px solid var(--border); border-radius:12px; padding:12px 24px; color:var(--white); font-size:13px; font-weight:600; z-index:9999; opacity:0; transition:all .4s ease; pointer-events:none; }
.cart-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.cart-toast i { color:#4CAF50; margin-right:10px; }
img { max-width:100%; height:auto; }
/* ═══════════════════════════════════════════════════════════
   PWA SAFE-AREA FIX — iPhone notch / status bar overlap
   ═══════════════════════════════════════════════════════════ */

/* 1. Navbar — push down by safe-area-inset-top */
.navbar {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    background: var(--black);
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.92);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 245, 245, 0.92);
}

/* 2. Ticker — sits below navbar + safe-area */
.ticker {
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

/* 3. Hero — starts below navbar + ticker + safe-area */
.hero {
    margin-top: calc(var(--nav-height) + 52px + env(safe-area-inset-top, 0px));
}

/* Use dynamic viewport height (fixes iOS PWA 100vh bug) */
@supports (height: 100dvh) {
    .hero {
        height: 100dvh;
        min-height: 100dvh;
    }
}

/* 4. Mobile menu — same offset */
.mobile-menu {
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-top, 0px));
}

/* 5. Bottom safe-area (home indicator) */
.music-player-container {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
}
.hidden-audio-controls {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
}
.hero-scroll-indicator {
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* 6. Drawers — padding for notch + home indicator */
.basket-drawer,
.wishlist-drawer {
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* 7. Checkout modal — padding for safe-area */
.checkout-modal {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* 8. Mobile-specific offsets */
@media (max-width: 768px) {
    .hero {
        margin-top: calc(var(--nav-height) + 42px + env(safe-area-inset-top, 0px));
    }
    .music-player-container {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: calc(16px + env(safe-area-inset-left, 0px));
    }
    .hidden-audio-controls {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        left: calc(16px + env(safe-area-inset-left, 0px));
    }
    .basket-drawer,
    .wishlist-drawer {
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}