:root {
  --bg: #0b0d12;
  --panel: #111528;
  --card: #121a33;
  --text: #e7e9f3;
  --muted: #a6acd3;
  --line: rgba(255, 255, 255, 0.09);
  --brand: #8b5cf6;
  --brand2: #22d3ee;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --r: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  padding-top: 150px;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg); /* ✅ now solid color */
  color: var(--text);
}

@media (max-width: 768px) {
  body {
    padding-top: 300px; /* ✅ larger because header stacks */
  }
}

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(96, 3, 245, 0.603);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}


.header__row {
  display: flex;
  flex-direction: column; /* ✅ stack rows */
  gap: 4px;
}

/* TOP ROW */.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LEFT SIDE */
.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* MENU stays inline */
.menu {
  display: flex;
  gap: 10px;
}

/* ✅ BOTTOM SEARCH ROW */
.header__bottom {
  display: flex;
  justify-content: center;   /* ✅ center search */
  gap: 4px;
  margin-top: 4px;
}

/* search sizing */
.header__bottom .input {
  width: 280px;
}


.header__actions {
  margin-left: auto; /* ✅ pushes it all the way right */
}

.header__center .input {
  width: 280px;
}
@media (max-width: 768px) {
  .header__top {
    flex-wrap: wrap;
    gap: 4px;
  }

  .header__left {
    flex-wrap: wrap;
  }

  .header__bottom {
    flex-wrap: wrap;
    width: 100%;
  }

  .header__bottom .input {
    width: 100%;
  }
}

/* Header menu buttons */
.menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* wraps nicely on smaller widths */
}

.menuLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 12px;
  border-radius: 14px;

  border: 1px solid var(--line);
  background: rgba(17, 21, 40, 0.55);

  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;

  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.menuLink:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.menuLink:active {
  transform: translateY(0px);
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.35);
}

/* Accessibility: keyboard focus ring */
.menuLink:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.6);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

#shop {
  scroll-margin-top: 150px; /* adjust if needed */
}

#storeName {
  display: inline-block;
  max-width: 160px;      /* ✅ controls wrapping width */
  word-break: keep-all;
  white-space: normal;   /* ✅ allows wrapping */
  overflow-wrap: break-word;
  line-height: 1.1;
}


.logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;   /* ✅ prevents logo squishing */
}


.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;        /* ✅ allows wrapping if needed */
}

.menu {
  display: flex;
  flex-wrap: wrap;     /* ✅ allows wrapping */
  gap: 10px;
}

.menuLink {
  white-space: nowrap; /* ✅ prevents text breaking */
  font-size: 13px;
}


.brand span {
  word-break: break-word;   /* ✅ allows text wrapping */
}


.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}



.header__center {
  display: flex;
  justify-content: center;   /* ✅ centers horizontally */
  align-items: center;
  gap: 8px;
}

/* Make search feel centered visually */
.header__center .input {
  width: 260px;
}

/* Keep filters compact */
.header__center .select {
  min-width: 100px;
}

@media (max-width: 768px) {
  .header__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header__left,
  .header__center,
  .header__actions {
    justify-content: center;
  }

  .header__center {
    flex-wrap: wrap;
  }

  .header__center .input {
    width: 100%;
  }
}

.brand { margin: 0; font-size: 20px; letter-spacing: 0.2px; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.header__search {display: flex; align-items: center; gap: 8px; margin-left: auto;}
.header__search .input {width: 180px;}
.header__search .select {min-width: 100px;}

@media (max-width: 768px) {
  .header__search {
    width: 100%;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .header__search .input {
    width: 100%;
  }
}

.controls {
  margin: 18px 0 16px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.controls__left { display: flex; gap: 10px; flex-wrap: wrap; }

.input, .select {
  background: rgba(17, 21, 40, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}
.input { width: 260px; }
.select { min-width: 180px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding-bottom: 40px;
}

.card {
  grid-column: span 4;
  background: linear-gradient(180deg, rgba(18, 26, 51, 0.95), rgba(17, 21, 40, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.35); }

.card__img {
  width: 100%;
  height: 250px;
  object-fit: contain;   /* ✅ no cropping */
  background: rgba(0,0,0,0.25); /* ✅ gives contrast */
  padding: 8px;         /* ✅ prevents edge cutoff */
}

.card__title { margin: 0; font-size: 16px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 999px;
}
.price { font-weight: 700; }
.compare { margin-left: 8px; color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card__desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.card__actions { display: flex; gap: 10px; margin-top: 6px; }

.btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(17, 21, 40, 0.8);
  color: var(--text);
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-color: transparent;
  font-weight: 700;
}
.btn--ghost { background: transparent; }
.iconbtn {
  border: 1px solid var(--line);
  background: rgba(17, 21, 40, 0.6);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 12px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }


.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;   /* ✅ ABOVE header */
}

.modal[aria-hidden="false"] { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }

.modal__panel {
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 40, 0.96);
  box-shadow: var(--shadow);
  margin-top: 100px;  /* ✅ FIX */
}

.modal__panel--wide { width: min(1100px, calc(100% - 24px)); }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.modal__content { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; padding: 16px; }


.gallery__main {
  width: 100%;
  height: 600px;
  object-fit: contain;  /* ✅ no crop here either */
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  padding: 8px;
}

.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.9;
}
.thumb:hover { opacity: 1; border-color: rgba(34, 211, 238, 0.35); }

.detail__title { margin: 2px 0 6px; font-size: 22px; }
.detail__short { margin: 0; color: var(--muted); line-height: 1.45; }
.detail__price { margin: 10px 0 12px; }
.label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 12px; }
.detail__row { margin: 10px 0; }
.detail__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.detail__section { margin-top: 14px; }
.detail__desc { color: var(--muted); line-height: 1.55; }

.list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.callout {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
  color: var(--muted);
}

.drawer { position: fixed; inset: 0; display: none; z-index: 200; }
.drawer[aria-hidden="false"] { display: block; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }


.drawer__panel {
  position: absolute;
  right: 0;
  top: 110px;                     /* ✅ FIX */
  height: calc(100% - 110px);     /* ✅ FIX */
  width: min(420px, calc(100% - 32px));
  background: rgba(35, 40, 75, 0.75);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

@media (max-width: 768px) {
  .drawer__panel {
    top: 160px;                   /* ✅ taller mobile header */
    height: calc(100% - 160px);
  }
}

.drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.drawer__footer { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.cart { padding: 12px; display: grid; gap: 12px; }
.cartItem { border: none; border-bottom: 1px solid var(--line); border-radius: 0px; padding: 8px; display: grid; gap: 4px; }
.cartItem__row--top {display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px;}
.cartItem__img {width: 48px; height: 48px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.2);}
.cartItem__info {min-width: 0; /* prevents overflow */}
.cartItem__name { font-weight: 14px; }
.cartItem__meta { color: var(--muted); font-size: 11px; }
.qty { display: flex; gap: 6px; align-items: center; }
.qty button { padding: 6px 10px; border-radius: 12px; }
.totals { display: flex; justify-content: space-between; align-items: center; }

.media { padding: 18px; display: grid; gap: 14px; }
.mediaCard { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(18, 26, 51, 0.7);}
.mediaCard__title { padding: 12px 12px 0; margin: 0; font-size: 14px; color: var(--muted); }
.mediaCard__body { padding: 12px; }
.media iframe, .media video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

@media (max-width: 980px) {
  .card { grid-column: span 6; }
  .modal__content { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card { grid-column: span 12; }
  .input { width: 100%; }
}

.sectionTitle {
  font-size: 20px;
  margin-bottom: 12px;
}


.reviews {
  background: rgba(17, 21, 40, 0.6);
  padding: 16px;
  border-radius: 18px;
}


.reviews__list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.reviewCard {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
  background: white;
  color: #111;
}

.reviewName {
  font-weight: 700;
  font-size: 14px;
}

.reviewRating {
  color: gold;
  font-size: 13px;
  font-weight: 600;
  min-width: 30px;   /* ✅ smaller width */
  padding: 6px 8px;  /* ✅ tighter spacing */
}



.reviewMessage {
  font-size: 13px;
  color: #444;
  margin-top: 4px;
}

.reviewForm {
  display: grid;
  max-width: 300px;
  gap: 8px;
}
.customOrder__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.customOrder {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 21, 40, 0.6);
}

.customOrder__preview {
  margin-top: 12px;
}

.tumblerGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  gap: 10px;
  margin-top: 10px;
}

.tumblerOption {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s ease;
  background: rgba(255,255,255,0.03);
}

.tumblerOption img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

.tumblerOption p {
  font-size: 11px;
  margin-top: 4px;
}

.tumblerOption:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tumblerOption.active {
  border: 2px solid var(--brand2);
  background: rgba(34, 211, 238, 0.15);
}

.customForm {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-top: 20px; /* ✅ pushes form below the tumbler images */
}

.customForm label {
  font-size: 12px;
  color: var(--muted);
}

.colorInput {
  height: 44px;
  padding: 4px 6px;
  min-width: 120px;
}

@media (max-width: 1024px) {
  .tumblerGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tumblerGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customForm {
    max-width: 100%;
  }
}

.basePreview {
  text-align: center;
  margin: 10px 0;
}

.basePreview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.tumblerGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .tumblerGrid {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 columns on mobile */
  }
}

.tumblerOption {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: .15s;
}

.tumblerOption img {
  width: 80px;
  height: 90px;
  object-fit: contain;
}

.tumblerOption.active {
  border: 2px solid var(--brand2);
  background: rgba(34,211,238,0.15);
}

.tumblerOption:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .customOrder__layout {
    grid-template-columns: 1fr;
  }
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 20px 0;
  background: linear-gradient(180deg, #0f172a, #0b0d12);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ssl-seal {
  height: 40px;   /* adjust size */
  width: auto;
  opacity: 0.9;
}

.ssl-seal:hover {
  opacity: 1;
}

.footer__right #siteseal {
  display: inline-block;
  transform: scale(0.85); /* slightly smaller */
  transform-origin: right center;
}
