:root {
  --bg: #0b1220;
  --card: #0f1a33;
  --muted: #a9b4d0;
  --text: #eaf0ff;
  --brand: #7c5cff;
  --brand2: #00d4ff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ring: rgba(124, 92, 255, .35);
  --shadow: 0 20px 45px rgba(0, 0, 0, .35);
  --radius: 18px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124, 92, 255, .28), transparent 55%),
    radial-gradient(800px 500px at 90% 30%, rgba(0, 212, 255, .22), transparent 55%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none
}

/* Container */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(124, 92, 255, .25);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  box-shadow: 0 16px 30px rgba(124, 92, 255, .25);
}

.pill {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

/* HERO */
.hero {
  padding: 42px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(380px 200px at 20% 0%, rgba(124, 92, 255, .28), transparent 60%),
    radial-gradient(380px 200px at 90% 20%, rgba(0, 212, 255, .20), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.3vw, 44px);
  line-height: 1.12;
  letter-spacing: -.4px;
}

.sub {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 26, 51, .55);
  border-radius: 16px;
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

/* RIGHT PANEL */
.side {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 26, 51, .55);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.side h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.side p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.notice {
  margin-top: 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 16px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* SECTIONS */
.section {
  padding: 26px 0 34px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.2px;
}

.section .lead {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* PRODUCTS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 26, 51, .55);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.img {
  height: 170px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(0, 212, 255, .18));
  display: grid;
  place-items: center;
  position: relative;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img small {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}

.img .placeholder {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.card-body {
  padding: 14px 14px 16px;
}

.title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.title h3 {
  margin: 0;
  font-size: 16px;
}

.price {
  font-weight: 900;
  white-space: nowrap;
  background: rgba(124, 92, 255, .18);
  border: 1px solid rgba(124, 92, 255, .25);
  padding: 6px 10px;
  border-radius: 999px;
}

.desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 6px 10px;
  border-radius: 14px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  cursor: pointer;
}

.qty input {
  width: 38px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-weight: 800;
}

/* CHECKOUT */
.checkout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: start;
}

.panel {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(15, 26, 51, .55);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px;
}

.line:last-child {
  border-bottom: none
}

.total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 900;
}

.empty {
  color: var(--muted);
  font-size: 14px;
  margin: 0
}

form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
  width: 100%;
  max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 92, 255, .45);
  box-shadow: 0 0 0 4px var(--ring);
}

textarea {
  min-height: 90px;
  resize: vertical
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: -6px;
}

/* TOAST */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  display: none;
  max-width: 330px;
}

.toast.show {
  display: block;
}

.toast b {
  display: block;
  margin-bottom: 4px
}

/* FOOTER */
.footer {
  padding: 22px 0 30px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(11, 18, 32, .25);
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablet */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    flex-wrap: wrap;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: min(1120px, 94%);
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .pill {
    font-size: 11px;
    padding: 5px 9px;
  }

  .hero {
    padding: 22px 0 12px;
  }

  .hero-card {
    padding: 16px;
  }

  .side {
    padding: 14px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .sub {
    font-size: 14px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .qty {
    width: 100%;
    justify-content: space-between;
  }

  .btn.primary {
    width: 100%;
    justify-content: center;
  }
}

/* Variant dropdown: option text black when opened */
.variantSelect option {
  color: #000 !important;
  background: #fff !important;
}

/* Selected text (closed state) – চাইলে সাদা রাখো */
.variantSelect {
  color: #fff;
  /* closed অবস্থায় text */
  background: rgba(30, 34, 60, .9);
  border: 1px solid rgba(124, 92, 255, .35);
}


/* Small devices */
@media (max-width: 420px) {
  .title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}