:root{
  --bg:#0b0c10;
  --text:#f2f3f5;
  --muted:#a7adbb;
  --line:#222636;
  --accent:#7cf7c9;
  --accent2:#7aa7ff;
  --love:#ff7aa9;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, #10142a, var(--bg));
  color:var(--text);
}
a{color:inherit; text-decoration:none}
.container{max-width:1080px; margin:0 auto; padding:24px}
.nav{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0;}
.brand{display:flex; align-items:baseline; gap:10px; font-weight:800; letter-spacing:.6px;}
.brand .logo{font-size:22px}
.brand .tag{font-size:12px; color:var(--muted); font-weight:600}
.nav a.btn{
  border:1px solid var(--line);
  padding:10px 12px; border-radius:12px;
  background: rgba(255,255,255,.03);
}
.hero{
  margin-top:10px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:18px;
  background: linear-gradient(135deg, rgba(124,247,201,.10), rgba(122,167,255,.08));
}
.hero h1{margin:0 0 8px; font-size:34px}
.hero p{margin:0; color:var(--muted); max-width:78ch; line-height:1.5}
.hero .cta{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.primary{
  background: var(--accent);
  color:#081014;
  border:0;
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.secondary{
  border:1px solid var(--line);
  padding:12px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  font-weight:700;
}
.small{font-size:12px; color:var(--muted)}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:16px;
}
.card{
  grid-column: span 4;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.03);
  padding:16px;
}
.card h3{margin:0 0 6px}
.card p{margin:0; color:var(--muted); line-height:1.5}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:10px; padding:8px 10px;
  border-radius:999px; border:1px solid var(--line);
  color:var(--muted); font-weight:600; font-size:12px;
}
.dot{width:8px; height:8px; border-radius:50%}
.dot.explore{background:var(--accent)}
.dot.vibe{background:var(--accent2)}
.dot.love{background:var(--love)}

.section-title{
  margin-top:26px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.section-title h2{margin:0}
.section-title span{color:var(--muted)}

.toolbar{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.input, .select{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}

.table{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow: visible; /* allow dropdown to escape */
}
.row{
  position: relative;
  display:grid;
  grid-template-columns: 120px 1fr 180px 240px 120px;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid var(--line);
  align-items:center;
}
.row:first-child{border-top:0}
.row.header{
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-weight:800;
  letter-spacing:1px;
}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
  user-select:none;
  text-align:center;
}
.qtybox{display:flex; align-items:center; gap:8px;}
.qty{
  min-width:36px;
  text-align:center;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-weight:800;
}

.footer{
  margin:30px 0 10px;
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 900px){
  .card{grid-column: span 12;}
  .row{grid-template-columns: 90px 1fr 150px 160px 90px;}
  .hero h1{font-size:28px}
}
  .hero h1{font-size:28px}
}


/* Shopee-like quantity stepper */
.qty-stepper{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.qty-stepper button{
  border:0;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  padding:10px 12px;
  min-width:44px;
}
.qty-stepper button:hover{
  background: rgba(255,255,255,.06);
}
.qty-stepper input{
  width:52px;
  text-align:center;
  border:0;
  outline:none;
  background: transparent;
  color: var(--text);
  font-weight:900;
  padding:10px 0;
  -moz-appearance:textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* Cells for responsive tables */
.cell{display:flex; align-items:center; gap:10px;}
.cell.qty{justify-content:flex-start;}
.cell.color{justify-content:flex-start;}
.cell.cart{justify-content:flex-start;}

/* Make select look tighter inside tables */
.table .select{padding:10px 12px; border-radius:12px;}

/* Mobile: stack qty + color + cart under the words */
@media (max-width: 900px){
  .row{
    grid-template-columns: 90px 1fr;
  }
  .row.header{display:none;}
  .cell.code{grid-column:1; align-items:flex-start;}
  .cell.words{grid-column:2; align-items:flex-start;}
  .cell.qty{grid-column:1 / 3; margin-top:8px;}
  .cell.color{grid-column:1 / 3;}
  .cell.cart{grid-column:1 / 3;}
}


/* Custom color picker (dark dropdown, Shopee-like) */
.color-picker{position:relative; width:100%; max-width:220px;}
.color-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}
.color-btn .left{display:flex; align-items:center; gap:10px;}
.swatch{
  width:12px; height:12px; border-radius:4px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.25);
}
.swatch.black{background:#0b0c10;}
.swatch.orange{background:#f08a1a;}
.swatch.peakgreen{background:#2bb673;}
.swatch.lightblue{background:#4da3ff;}

.color-menu{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  right:0;
  z-index:999;
  border:1px solid var(--line);
  border-radius:14px;
  background: #0f121a;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  padding:6px;
  display:none;
  max-height:220px;
  overflow:auto;
}
.color-menu.open{display:block;}
.color-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  color: var(--text);
  font-weight:800;
}
.color-item:hover{background: rgba(255,255,255,.06);}
.color-item.active{background: rgba(124,247,201,.14); border:1px solid rgba(124,247,201,.35);}

.color-menu::-webkit-scrollbar{width:10px;}
.color-menu::-webkit-scrollbar-track{background:#0b0c10; border-radius:12px;}
.color-menu::-webkit-scrollbar-thumb{background:#2a3146; border-radius:12px;}
.color-menu::-webkit-scrollbar-thumb:hover{background:#3a4564;}


/* DOKY logo in navbar */
.brand-logo{
  height: 52px; /* bigger on desktop */
  width: auto;
  display:block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
}

/* smaller on mobile */
@media (max-width: 600px){
  .brand-logo{height: 40px;}
}


/* Small color thumbnail (subtle) */
.color-thumb{
  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
@media (max-width: 600px){
  .color-thumb{ width:40px; height:40px; }
}


/* Prevent color picker from overlapping QTY cell */
.cell{min-width:0;}
.cell.color{gap:10px; overflow: visible;}
.color-picker{max-width:170px; flex: 0 0 170px;}
.color-btn{min-width:0;}


/* Color chips (no dropdown => no blocking) */
.color-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  user-select:none;
  font-weight:800;
  font-size:12px;
  color: var(--text);
}
.chip .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
}
.dot.black{background:#0b0c10;}
.dot.orange{background:#f08a1a;}
.dot.peakgreen{background:#2bb673;}
.dot.lightblue{background:#4da3ff;}
.chip.active{
  border-color: rgba(124,247,201,.55);
  background: rgba(124,247,201,.12);
}


/* Keep color chips inside their column (avoid blocking QTY clicks) */
.cell.color{overflow:hidden;}
.color-chips{max-width:220px;}


/* Logo safety clamp (prevents huge logo if inserted without sizing) */
img[src*="doky_logo_green_transparent.png"],
img[src*="doky_logo_transparent.png"],
img[src*="doky_logo_"]{
  max-height: 56px;
  width: auto;
}

/* Navbar logo */
.brand-logo{
  height: 52px;
  width: auto;
  max-height: 52px;
  max-width: 220px;
  display:block;
}
@media (max-width:600px){
  .brand-logo{ height: 40px; max-height:40px; }
}
