
:root{
  /* Light theme */
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #0b0d12;
  --muted: #727b87;
  --border: #e5e7eb;
  --brand: #111;
  --btn: #111;
  --btnText: #fff;
  --btnGhostBg: #ffffff;
  --btnGhostText: #111;
  --accent: #111;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

[data-theme="dark"]{
  --bg: #0b0d12;
  --card: #12151c;
  --text: #e9eef7;
  --muted: #9aa3af;
  --border: #1c2330;
  --brand: #fff;
  --btn: #e9eef7;
  --btnText: #0b0d12;
  --btnGhostBg: #12151c;
  --btnGhostText: #e9eef7;
  --accent: #e9eef7;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

.container{max-width:1100px;margin:0 auto;padding:16px}
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.6);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--border);
}
[data-theme="dark"] header{ background:rgba(11,13,18,.6); }

.nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{width:40px;height:40px;border-radius:12px;display:block;object-fit:cover}
.brand small{display:block;color:var(--muted)}

.nav-actions{display:flex;gap:8px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;padding:10px 14px;border-radius:12px;
  border:1px solid var(--border);background:var(--btnGhostBg);color:var(--btnGhostText);
  cursor:pointer;user-select:none;transition:.2s ease; text-decoration:none;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--btn);border-color:var(--btn);color:var(--btnText)}
.btn.icon{width:40px;height:40px;padding:0;border-radius:12px}
.btn.small{padding:8px 12px;border-radius:10px}

.hero{padding:28px 0 8px}
.hero h2{margin:0 0 8px;font-size:28px;letter-spacing:-.02em}
.hero p{margin:0;color:var(--muted)}

.socials{display:flex;justify-content:center;gap:10px;margin:16px 0 8px;flex-wrap:wrap}
.socials .btn{min-width:110px}

.grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;
  align-items:stretch;
}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;
}
.card a{text-decoration:none;color:inherit}

.card-img{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:var(--bg)}
.card-img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.card-pad{padding:14px}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;
  padding:6px 10px;border:1px dashed var(--border);border-radius:999px;color:var(--muted)}
.price{font-weight:700;margin-top:6px}
.card-actions{display:flex;gap:8px;margin-top:auto;padding:12px;border-top:1px solid var(--border)}

footer{border-top:1px solid var(--border);padding:24px 0;margin-top:24px;color:var(--muted)}

/* Product page */
.p-wrap{display:grid;grid-template-columns:1fr;gap:16px}
.p-hero{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 860px){
  .p-hero{grid-template-columns:1.05fr 1fr}
}
.p-main{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;border:1px solid var(--border);background:#000}
.p-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.p-thumbs img{width:84px;height:84px;object-fit:cover;border:1px solid var(--border);border-radius:10px;cursor:pointer;opacity:.85}
.p-thumbs img.active{outline:2px solid var(--accent);opacity:1}
.p-title{margin:0}
.p-desc{color:var(--muted)}
.p-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}

/* Forms */
form{display:grid;gap:10px}
.row2{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:700px){ .row2{grid-template-columns:1fr 1fr} }
input,textarea{
  background:transparent;border:1px solid var(--border);border-radius:12px;
  padding:12px;color:var(--text);font:inherit
}
textarea{min-height:120px}
label{font-size:14px;color:var(--muted);display:grid;gap:6px}

/* Icons */
.icon-soc{width:16px;height:16px;display:inline-block}
