:root{
  --bg:#0b0f17;
  --card:#0f1624;
  --muted:#9aa4b2;
  --text:#e6edf6;
  --line:rgba(255,255,255,0.08);
  --accent:#6ea8ff;
  --accent2:#9b7bff;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);

  /* NEW: thin black border for dropdowns */
  --thin-black: rgba(0,0,0,0.85);
}

*{margin:0;padding:0;box-sizing:border-box;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;}
html{scroll-behavior:smooth;}

body{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(110,168,255,0.35), transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, rgba(155,123,255,0.30), transparent 55%),
    var(--bg);
  color:var(--text);
  min-height: 100vh;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrap{width:min(1100px, 92vw); margin:0 auto;}

.header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,15,23,0.72);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);}
.brand-mark{
  width:42px;height:36px;border-radius:10px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(110,168,255,0.9), rgba(155,123,255,0.9));
  font-weight:900;color:#09101d;
  letter-spacing: .6px;
  font-size: .9rem;
}
.brand-name{font-weight:700;letter-spacing:0.2px;}

.nav{display:flex;gap:18px;align-items:center;}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:0.95rem;
}
.nav a:hover{color:var(--text);}
.nav-ghost{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:10px;
}

.hero{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  padding: 36px 0 26px;
}

.pill{
  display:inline-block;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:0.9rem;
  margin-bottom: 12px;
}

.hero h1{font-size: clamp(2rem, 3.2vw, 3rem); line-height:1.05; margin-bottom: 10px;}
.hero-sub{color:var(--muted); line-height:1.5; max-width: 58ch;}

.hero-cta{display:flex;gap:12px; margin-top: 18px; flex-wrap: wrap;}
.hint{color:var(--muted); margin-top:12px; font-size:0.9rem;}

.btn{
  border:0;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(110,168,255,0.95), rgba(155,123,255,0.95));
  color:#06101e;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 140px;
}
.btn:hover{filter: brightness(1.04);}

.btn-secondary{
  background: transparent;
  color: var(--text);
  border:1px solid var(--line);
}
.btn-secondary:hover{background: rgba(255,255,255,0.04);}

.hero-right{display:flex;align-items:flex-start;justify-content:flex-end;}
.hero-card{
  width:min(420px, 100%);
  background: rgba(15,22,36,0.75);
  border:1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card-top{
  display:flex; gap:8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.dot{width:10px;height:10px;border-radius:999px;background: rgba(255,255,255,0.18);}
.hero-card-body{padding: 16px 16px 18px;}
.stat{display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px;}
.stat-label{color:var(--muted);}
.stat-value{font-weight:700;}
.bar{height:1px;background: var(--line); margin: 14px 0;}
.mini{color:var(--muted); line-height:1.5;}

.section{padding: 26px 0;}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2{font-size:1.35rem;}
.sub{color:var(--muted); max-width: 65ch;}

.filters{display:flex; gap:10px; align-items:center; flex-wrap: wrap;}
.search, .select{
  border:1px solid var(--line);
  background: rgba(15,22,36,0.65);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}
.search{width: min(340px, 70vw);}
.select{cursor:pointer;}

/* NEW: dropdown background + thin black border */
.select, .select2{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(110,168,255,0.18), transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, rgba(155,123,255,0.16), transparent 55%),
    var(--bg);
  border: 1px solid var(--thin-black);
}

/* NEW: try to style the actual dropdown list background on supported browsers */
.select option, .select2 option{
  background: var(--bg);
  color: var(--text);
}

/* Removes default bright focus rings that can look “glitchy” */
.select:focus, .select2:focus, .search:focus{
  box-shadow: 0 0 0 3px rgba(110,168,255,0.18);
  border-color: rgba(0,0,0,0.9);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product{
  background: rgba(15,22,36,0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.product:hover{transform: translateY(-2px); border-color: rgba(110,168,255,0.45);}

.product.clickable{cursor:pointer;}
.product.clickable:hover .btn-small{background: rgba(255,255,255,0.06);}

/* ---------- Product images (NEW) ---------- */
.thumb{
  height: 150px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

/* Use this when you drop in real images */
.thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* ensures full shirt is visible */
  display: block;
  background: #ffffff;    /* clean background for product images */
}

/* Fallback gradients if image missing */
.thumb.black{background: linear-gradient(135deg, #1b2536, #0a0f17);}
.thumb.white{background: linear-gradient(135deg, #d9e3f2, #7f93b2);}
.thumb.sand{background: linear-gradient(135deg, #c7b38d, #4b3f2c);}
.thumb.mono{background: linear-gradient(135deg, #2a2a2a, #0b0f17);}
.thumb.slate{background: linear-gradient(135deg, #3b475d, #101826);}
.thumb.navy{background: linear-gradient(135deg, #24324a, #0b0f17);}

.product-body{padding: 12px 12px 14px;}
.product-body h3{font-size:1.05rem; margin-bottom: 4px;}
.meta{color:var(--muted); font-size:0.92rem; margin-bottom: 12px;}
.row{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.price{font-weight:800;}

.btn-small{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.btn-small:hover{background: rgba(255,255,255,0.06);}

.featured{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  background: rgba(15,22,36,0.65);
  border: 1px solid rgba(110,168,255,0.22);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.featured-thumb{
  min-height: 220px;
  background:
    radial-gradient(500px 200px at 30% 20%, rgba(110,168,255,0.35), transparent 55%),
    radial-gradient(450px 220px at 80% 60%, rgba(155,123,255,0.35), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.2));
  border-right: 1px solid var(--line);
}
.featured-body{padding: 18px;}
.featured-price{font-size: 1.6rem; font-weight:900; margin: 10px 0 14px;}
.featured-actions{display:flex; gap:10px; flex-wrap: wrap;}
.tiny{color:var(--muted); font-size:0.9rem; margin-top: 12px;}

.footer{
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 10px;
}

/* Shared icon button */
.icon-btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor:pointer;
}
.icon-btn:hover{background: rgba(255,255,255,0.07);}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 80;
}
.modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  width: min(520px, 92vw);
  background: rgba(15,22,36,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 90;
}
.modal.open{opacity: 1; pointer-events:auto; transform: translate(-50%, -50%) scale(1);}
.modal-backdrop.open{opacity: 1; pointer-events:auto;}
.modal-head{display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 6px;}
.modal-sub{color:var(--muted); line-height:1.45; margin-bottom: 12px;}

.gate-form{display:flex; flex-direction:column;}
.gate-form label{font-size:0.92rem; margin-bottom: 6px; color: var(--muted);}
.gate-form input{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline:none;
  margin-bottom: 10px;
}
.message{min-height: 1.2em; margin-top: 10px; color: var(--muted);}
.message.error{color:#ff8a8a;}
.message.success{color:#7dffb0;}

/* Cart button */
.cart-btn{
  position: relative;
  margin-left: 6px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  display:grid;
  place-items:center;
}
.cart-btn:hover{background: rgba(255,255,255,0.06);}
.cart-btn svg{
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #06101e;
  background: linear-gradient(135deg, rgba(110,168,255,0.95), rgba(155,123,255,0.95));
}

/* Cart drawer */
.cart-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 95;
}
.cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(15,22,36,0.96);
  border-left: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .18s ease;
  z-index: 100;
  display:flex;
  flex-direction: column;
}
.cart-drawer.open{transform: translateX(0);}
.cart-backdrop.open{opacity:1; pointer-events:auto;}

.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-items{
  padding: 10px 16px;
  overflow:auto;
  flex: 1;
}

.cart-empty{
  padding: 18px 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item h4{font-size: 1rem; margin-bottom: 4px;}
.cart-item .muted{color: var(--muted); font-size: 0.9rem;}
.cart-item .right{
  display:flex;
  flex-direction: column;
  align-items:flex-end;
  gap: 8px;
}
.cart-item .price{
  font-weight: 900;
}

.qty{
  display:flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.03);
}
.qty button{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.qty button:hover{background: rgba(255,255,255,0.07);}
.qty span{min-width: 18px; text-align:center; font-weight: 800;}

.link-danger{
  border: 0;
  background: transparent;
  color: #ff8a8a;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}
.link-danger:hover{filter: brightness(1.08);}

.cart-foot{
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.cart-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.cart-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Centered pages */
.page-main{
  min-height: calc(100vh - 72px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 46px 0;
}
.panel{
  width: min(720px, 92vw);
  background: rgba(15,22,36,0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel.narrow{width: min(520px, 92vw);}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 8px;
}
.panel-title{font-size: 1.6rem; margin:0;}
.panel-sub{color:var(--muted); line-height:1.5; margin-bottom: 14px;}

.support-form{display:flex; flex-direction:column;}
.support-form label{color:var(--muted); font-size:0.92rem; margin:10px 0 6px;}
.support-form input, .support-form textarea{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  margin-bottom: 10px;
}
.support-form textarea{resize: vertical;}

/* Product detail page */
.product-page{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  padding: 34px 0 26px;
}
.product-media{
  background: rgba(15,22,36,0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.product-media .thumb{
  height: 420px;
}

.product-detail{
  background: rgba(15,22,36,0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.product-detail h1{font-size: 2rem; line-height: 1.1; margin-bottom: 8px;}
.product-detail .desc{color: var(--muted); line-height: 1.55; margin: 10px 0 14px;}
.product-detail .price-big{font-size: 1.6rem; font-weight: 900; margin: 10px 0 14px;}
.form-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 12px;}
.select2, .qty2{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline:none;
}
.qty2{width: 120px;}
.note{color: var(--muted); font-size: .9rem; margin-top: 10px;}

/* Checkout page */
.checkout-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 34px 0 26px;
}
.card{
  background: rgba(15,22,36,0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2{font-size: 1.2rem; margin-bottom: 10px;}
.small{color: var(--muted); font-size:.92rem; line-height:1.5;}
.field{display:flex; flex-direction:column; margin-bottom: 10px;}
.field label{color: var(--muted); font-size:.92rem; margin-bottom: 6px;}
.field input, .field select{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline:none;
}
.hr{height:1px;background:var(--line);margin:12px 0;}
.summary-row{display:flex;justify-content:space-between;gap:10px;margin:8px 0;}
.summary-row strong{font-weight:900;}

/* Responsive */
@media (max-width: 900px){
  .hero{grid-template-columns: 1fr;}
  .hero-right{justify-content: flex-start;}
  .grid{grid-template-columns: repeat(2, 1fr);}
  .featured{grid-template-columns: 1fr;}
  .featured-thumb{border-right:0;border-bottom:1px solid var(--line);}
  .product-page{grid-template-columns: 1fr;}
  .checkout-grid{grid-template-columns: 1fr;}
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr;}
}