/* Vice Cannabis — Weedmaps-style shop (menu.html) */

.shop-wrap {
  padding-top: 78px;
  min-height: 100vh;
  background: #07070c;
}

.shop-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.shop-topbar {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  background: rgba(7, 7, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.shop-search {
  flex: 1 1 220px;
  min-width: 160px;
  position: relative;
}

.shop-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vice-text-muted);
  pointer-events: none;
}

.shop-search input {
  width: 100%;
  background: #12121e;
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search input:focus {
  border-color: var(--vice-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.shop-fulfill {
  display: inline-flex;
  background: #12121e;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.shop-fulfill button {
  border: 0;
  background: transparent;
  color: var(--vice-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.shop-fulfill button.on {
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #050508;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.shop-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #12121e;
  border: 1px solid rgba(255, 45, 149, 0.35);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.shop-cart-btn:hover {
  border-color: var(--vice-pink);
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.25);
}

.shop-cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vice-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}

.shop-cats {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0c0c14;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.shop-cat {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--vice-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.shop-cat:hover { background: rgba(0, 229, 255, 0.06); color: #fff; }
.shop-cat.on {
  background: rgba(0, 229, 255, 0.12);
  color: var(--vice-cyan);
  box-shadow: inset 3px 0 0 var(--vice-cyan);
}

.shop-filters-sticky {
  display: contents; /* desktop: children participate normally */
}

.shop-cats-mobile {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.shop-cats-mobile .shop-cat {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #12121e;
  border: 1px solid rgba(0, 229, 255, 0.12);
  box-shadow: none;
}
.shop-cats-mobile .shop-cat.on {
  border-color: var(--vice-cyan);
  background: rgba(0, 229, 255, 0.15);
}

.shop-main-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-main-head h1,
.shop-main-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shop-main-meta {
  color: var(--vice-text-muted);
  font-size: 13px;
}

.shop-wm-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--vice-text-muted);
  line-height: 1.35;
}
.shop-wm-link a {
  color: var(--vice-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.shop-wm-link a:hover { color: var(--vice-pink); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.shop-card {
  background: #101018;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  border-color: rgba(0, 229, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 229, 255, 0.08);
}

.shop-card-img {
  aspect-ratio: 1;
  background: #0a0a10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-img .ph {
  color: var(--vice-text-muted);
  font-size: 28px;
  opacity: 0.45;
}

.shop-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.shop-card-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 1.1em;
}

.shop-card-brand {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-card-thc {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vice-text-muted);
  text-align: right;
  white-space: nowrap;
}

.shop-card-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vice-cyan);
  font-weight: 700;
}

.shop-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
}

.shop-card-meta {
  font-size: 12px;
  color: var(--vice-text-muted);
  line-height: 1.4;
}

.shop-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.shop-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.shop-card-price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--vice-text-muted);
  margin-left: 2px;
}

.shop-add {
  border: 0;
  background: linear-gradient(135deg, #00e5ff, #00b8d4);
  color: #050508;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.15s;
}

.shop-add:hover {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
  transform: scale(1.03);
}

.shop-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.shop-tier-select {
  width: 100%;
  margin-top: 4px;
  background: #1a1a28;
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 12px;
  font-family: var(--font-body);
}

.shop-empty, .shop-loading, .shop-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--vice-text-muted);
  background: #101018;
  border-radius: 14px;
  border: 1px dashed rgba(0, 229, 255, 0.2);
}

.shop-error { color: #ff8ab8; border-color: rgba(255, 45, 149, 0.3); }

/* Cart drawer */
.shop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.shop-overlay.open { opacity: 1; pointer-events: auto; }

.shop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #0c0c14;
  border-left: 1px solid rgba(0, 229, 255, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}
.shop-drawer.open { transform: translateX(0); }

.shop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-drawer-head h2 {
  font-size: 18px;
  font-weight: 700;
}

.shop-drawer-close {
  background: transparent;
  border: 0;
  color: var(--vice-text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.shop-drawer-close:hover { color: #fff; }

.shop-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.shop-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: start;
}

.shop-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.shop-line-trash {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vice-pink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.shop-line-trash svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-line-trash:hover {
  background: rgba(255, 45, 149, 0.12);
  color: #ff5eab;
}

.shop-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.7;
}

.shop-line-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #161622;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-line-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-line-img .ph { font-size: 18px; opacity: 0.4; color: var(--vice-text-muted); }

.shop-line-name { font-weight: 600; font-size: 14px; color: #fff; }
.shop-line-meta { font-size: 12px; color: var(--vice-text-muted); margin-top: 2px; }
.shop-line-price { font-weight: 700; font-size: 14px; white-space: nowrap; }

.shop-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #161622;
  border-radius: 8px;
  padding: 2px;
}

.shop-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.shop-qty button:hover { background: rgba(0, 229, 255, 0.12); color: var(--vice-cyan); }
.shop-qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.shop-drawer-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--vice-text-muted);
}

.shop-drawer-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 18px 22px;
  background: #0a0a12;
}

.shop-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.shop-subtotal strong { font-size: 18px; color: var(--vice-cyan); }
.shop-discounts strong { color: #7dffa3; font-size: 15px; }
.shop-line-deal {
  font-size: 12px;
  color: #7dffa3;
  margin-top: 2px;
}
.shop-line-was {
  font-size: 11px;
  color: var(--vice-text-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-top: 2px;
}

.shop-checkout-btn {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #ff2d95 0%, #00e5ff 100%);
  color: #050508;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.35), 0 0 18px rgba(0, 229, 255, 0.25);
}
.shop-checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.shop-pay-note {
  text-align: center;
  font-size: 12px;
  color: var(--vice-text-muted);
  margin-top: 10px;
}

/* Checkout modal */
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
}
.shop-modal.open { display: flex; }

.shop-modal-panel {
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  background: #0e0e18;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 229, 255, 0.08);
}

.shop-modal-panel h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.shop-modal-sub {
  color: var(--vice-text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.shop-field[hidden] { display: none !important; }
.shop-field.full { grid-column: 1 / -1; }

.shop-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vice-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-field input,
.shop-field select,
.shop-field textarea {
  background: #161622;
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.shop-field input:focus,
.shop-field select:focus,
.shop-field textarea:focus {
  border-color: var(--vice-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.shop-field textarea { min-height: 70px; resize: vertical; }

.shop-banner {
  grid-column: 1 / -1;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--vice-cyan);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.shop-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.shop-btn-ghost {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}

.shop-btn-primary {
  flex: 2;
  border: 0;
  background: linear-gradient(135deg, #ff2d95 0%, #00e5ff 100%);
  color: #050508;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.3), 0 0 16px rgba(0, 229, 255, 0.22);
}

.shop-form-error {
  grid-column: 1 / -1;
  color: #ff8ab8;
  font-size: 13px;
  margin-top: 4px;
}

.shop-thanks {
  text-align: center;
  padding: 20px 8px;
}
.shop-thanks h2 { color: var(--vice-cyan); margin-bottom: 10px; }
.shop-thanks p { color: var(--vice-text); margin-bottom: 10px; line-height: 1.6; }
.shop-thanks .summary {
  background: #161622;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--vice-text-muted);
  margin: 14px 0 18px;
}

@media (max-width: 860px) {
  /* minmax(0,1fr) is required — plain 1fr = minmax(auto,1fr) and chip rows
     inflate .shop-main past the viewport (~720px), so the 2-col grid paints off-screen */
  .shop-body {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }
  .shop-main {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }
  .shop-cats { display: none; }
  .shop-cats-mobile {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    max-width: 100%;
  }
  .shop-species-filters {
    flex-wrap: wrap;
    overflow-x: visible;
    max-width: 100%;
  }
  .shop-topbar { top: 64px; }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .shop-card { min-width: 0; max-width: 100%; }
  .shop-shell { overflow-x: hidden; max-width: 100%; }
  .shop-wrap { overflow-x: hidden; }
}

@media (max-width: 480px) {
  .shop-form-grid { grid-template-columns: 1fr; }
  .shop-fulfill button { padding: 10px 14px; font-size: 13px; }
}


.shop-fulfill-modal {
  margin: 0 0 12px;
  width: 100%;
  max-width: 360px;
}
.shop-fulfill-modal button { flex: 1; min-height: 44px; }


/* SEO crawlable section below live shop */
.shop-seo {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px 72px;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--vice-text-muted);
  background: #07070c;
}
.shop-seo-inner { max-width: 900px; }
.shop-seo-crumbs {
  font-size: 13px;
  margin-bottom: 18px;
  color: #6b708c;
}
.shop-seo-crumbs a { color: var(--vice-cyan); text-decoration: none; }
.shop-seo-crumbs a:hover { text-decoration: underline; }
.shop-seo h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #e8eaf2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.25;
}
.shop-seo h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #c8cce0;
  margin: 28px 0 12px;
}
.shop-seo p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 12px;
  color: #9aa0b8;
}
.shop-seo p strong { color: #d5d8e8; font-weight: 600; }
.shop-seo-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.shop-seo-cats a {
  color: var(--vice-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.shop-seo-cats a:hover { color: var(--vice-pink); text-decoration: underline; }
.shop-seo-links {
  font-size: 13px !important;
  line-height: 1.9 !important;
  margin-bottom: 28px !important;
}
.shop-seo-links a { color: #8b90a8; text-decoration: underline; text-underline-offset: 2px; }
.shop-seo-links a:hover { color: var(--vice-cyan); }

.shop-seo-catalog {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-seo-catalog > h2 {
  font-size: 1.05rem;
  color: #aeb3c8;
  margin-top: 0;
}
.shop-seo-catalog-note {
  font-size: 13px !important;
  color: #6b708c !important;
  margin-bottom: 20px !important;
}
.shop-seo-cat {
  margin-bottom: 22px;
}
.shop-seo-cat h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vice-cyan);
  margin: 0 0 8px;
  opacity: 0.85;
}
.shop-seo-cat ul {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #7a8098;
  font-size: 12.5px;
  line-height: 1.55;
}
.shop-seo-cat li {
  break-inside: avoid;
  margin-bottom: 3px;
}
@media (max-width: 640px) {
  .shop-seo-cat ul { columns: 1; }
  .shop-seo { padding: 36px 16px 56px; }
}


/* Species badges + filter + product modal */
.shop-species {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.shop-species-indica {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #f3e8ff;
  border: 1px solid rgba(196, 181, 253, 0.35);
}
.shop-species-sativa {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ecfdf5;
  border: 1px solid rgba(134, 239, 172, 0.35);
}
.shop-species-hybrid {
  background: linear-gradient(135deg, #ff2d95, #00e5ff);
  color: #050508;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.shop-species-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 2px;
}
.shop-species-filters[hidden] { display: none !important; }

.shop-species-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid rgba(0, 229, 255, 0.12);
  background: #12121e;
  color: var(--vice-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.shop-species-chip:hover {
  background: rgba(0, 229, 255, 0.06);
  color: #fff;
}
.shop-species-chip.on {
  border-color: var(--vice-cyan);
  background: rgba(0, 229, 255, 0.15);
  color: var(--vice-cyan);
}
.shop-species-chip-indica.on {
  border-color: #a78bfa;
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}
.shop-species-chip-sativa.on {
  border-color: #4ade80;
  background: rgba(22, 163, 74, 0.2);
  color: #bbf7d0;
}
.shop-species-chip-hybrid.on {
  border-color: #ff2d95;
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.22), rgba(0, 229, 255, 0.18));
  color: #fff;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-modal.open { display: flex; }

.product-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c0c14;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 229, 255, 0.08);
}

.product-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.product-modal-close:hover { background: rgba(255, 45, 149, 0.35); }

.product-modal-media {
  aspect-ratio: 1.15;
  background: #0a0a10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-modal-media .ph {
  color: var(--vice-text-muted);
  font-size: 42px;
  opacity: 0.45;
}

.product-modal-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal-brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--vice-cyan);
  font-weight: 700;
  min-height: 1em;
}

.product-modal-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.product-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-modal-badges .shop-species {
  position: static;
  pointer-events: auto;
  box-shadow: none;
}

.product-modal-meta {
  font-size: 13px;
  color: var(--vice-text-muted);
  line-height: 1.4;
}

.product-modal-desc {
  margin: 0;
  font-size: 14px;
  color: #c8cce0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.product-modal-tier-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vice-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-modal-tier-label[hidden] { display: none !important; }

.product-modal-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-modal-qty-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vice-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-modal-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c0c14;
  z-index: 2;
}
.product-modal-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}
.product-modal-add {
  padding: 12px 18px;
  font-size: 14px;
}

@media (max-width: 520px) {
  .product-modal-media { aspect-ratio: 1; max-height: 42vh; }
  .product-modal-name { font-size: 1.15rem; }
}

/* ===== Floating cart FAB (shown on phone) ===== */
.shop-cart-fab {
  display: none;
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 45, 149, 0.45);
  background: linear-gradient(145deg, #1a1020, #0c0c14);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 45, 149, 0.28);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.shop-cart-fab i { font-size: 20px; pointer-events: none; }
.shop-cart-fab-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vice-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #07070c;
}
.shop-cart-fab-count:empty,
.shop-cart-fab-count[data-empty="1"] { display: none; }
body.shop-drawer-open .shop-cart-fab,
body.shop-modal-open .shop-cart-fab,
body.product-modal-open .shop-cart-fab { display: none !important; }

/* ===== Mobile shop polish (phones / small tablets) ===== */
@media (max-width: 768px) {
  .shop-wrap {
    padding-top: 56px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .shop-shell {
    padding: 0 12px 110px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .shop-body {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .shop-main {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Compact sticky topbar under site header */
  .shop-topbar {
    top: 56px;
    gap: 6px;
    padding: 6px 0 6px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .shop-search {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .shop-search input {
    font-size: 16px; /* avoid iOS zoom */
    padding: 10px 12px 10px 40px;
    border-radius: 12px;
    min-height: 42px;
  }

  .shop-fulfill {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .shop-fulfill button {
    flex: 1;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12.5px;
  }

  /* Cart moves to thumb-zone FAB on phone */
  .shop-topbar .shop-cart-btn { display: none; }

  .shop-cart-fab {
    display: inline-flex;
  }

  /* Sticky filter strip — contained so chips cannot expand page width */
  .shop-filters-sticky {
    display: block;
    position: sticky;
    top: 152px; /* header 56 + compact topbar ~96 */
    z-index: 35;
    background: rgba(7, 7, 12, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 0 -12px;
    padding: 6px 12px 8px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    width: auto;
    max-width: none;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .shop-cats-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 2px 2px 6px;
    margin-bottom: 0;
    max-width: 100%;
  }

  .shop-cats-mobile .shop-cat {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    line-height: 1.2;
  }

  .shop-species-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    overflow-y: visible;
    margin: 4px 0 0;
    padding: 0 2px 2px;
    max-width: 100%;
  }

  .shop-species-chip {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .shop-main-head {
    margin-top: 10px;
  }

  .shop-main-head h1,
  .shop-main-head h2 {
    font-size: 18px;
  }

  .shop-wm-link {
    font-size: 13px;
    width: 100%;
  }

  /* True 2-col product grid */
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .shop-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 12px;
  }

  .shop-card:hover { transform: none; }

  .shop-card-img {
    min-width: 0;
  }

  .shop-card-img img {
    max-width: 100%;
    min-width: 0;
  }

  .shop-card-body {
    padding: 8px 8px 10px;
    gap: 4px;
    min-width: 0;
  }

  .shop-card-topline {
    gap: 4px;
  }

  .shop-card-brand {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shop-card-thc {
    font-size: 10px;
  }

  .shop-card-name {
    font-size: 12.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .shop-card-meta {
    font-size: 10.5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .shop-card-foot {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .shop-card-price {
    font-size: 14px;
  }

  .shop-add {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .shop-tier-select {
    font-size: 14px;
    padding: 8px 6px;
    min-height: 36px;
    max-width: 100%;
  }

  /* Cart: bottom sheet */
  .shop-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(92dvh, 100%);
    max-height: 100%;
    border-left: none;
    border-top: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  }
  .shop-drawer.open { transform: translateY(0); }

  .shop-drawer-head {
    padding: 16px 16px 12px;
  }

  .shop-drawer-close {
    font-size: 28px;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
  }

  .shop-drawer-body {
    padding: 12px 16px;
  }

  .shop-line {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .shop-line-trash {
    width: 40px;
    height: 40px;
  }
  .shop-line-trash svg {
    width: 20px;
    height: 20px;
  }

  .shop-qty button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .shop-qty span {
    min-width: 28px;
    font-size: 15px;
  }

  .shop-drawer-foot {
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .shop-checkout-btn {
    min-height: 48px;
    font-size: 16px;
  }

  /* Checkout modal: near full-screen, 16px inputs */
  .shop-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .shop-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shop-fulfill-modal {
    max-width: none;
  }

  .shop-fulfill-modal button {
    min-height: 48px;
    font-size: 15px;
  }

  .shop-field input,
  .shop-field select,
  .shop-field textarea {
    font-size: 16px;
    padding: 14px 12px;
    min-height: 48px;
    border-radius: 10px;
  }

  .shop-field textarea { min-height: 88px; }

  .shop-form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .shop-btn-ghost,
  .shop-btn-primary {
    flex: none;
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  /* Product detail: full-screen sheet */
  .product-modal {
    padding: 0;
    align-items: stretch;
  }

  .product-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .product-modal-close {
    width: 44px;
    height: 44px;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: 12px;
    font-size: 26px;
  }

  .product-modal-body {
    padding: 16px 16px 12px;
  }

  .product-modal-qty-row .shop-qty button {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .product-modal-add {
    flex: 1;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .product-modal-foot {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .shop-seo {
    padding: 28px 14px 48px;
  }

  .shop-seo p { font-size: 14px; }
}

@media (max-width: 480px) {
  .shop-filters-sticky {
    top: 148px;
  }

  .shop-card-name { font-size: 12px; }
  .shop-card-price { font-size: 13.5px; }
  .shop-add { min-height: 38px; font-size: 12px; padding: 8px; }

  .shop-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .shop-card-name { font-size: 11.5px; }
  .shop-card-price { font-size: 13px; }
  .shop-cart-fab { width: 52px; height: 52px; }
}

/* Menu page header: keep hamburger + logo tidy */
@media (max-width: 900px) {
  body:has(.shop-wrap) .logo-text {
    font-size: 26px;
    letter-spacing: 4px;
  }
  body:has(.shop-wrap) .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  body:has(.shop-wrap) .main-nav a {
    white-space: normal;
  }
  body:has(.shop-wrap) .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
  }
}
.shop-opt[hidden] { display: none !important; }


/* Dedicated cart / checkout page */
body.cart-body {
  padding-bottom: 96px;
}
.cart-page {
  padding-top: 24px;
  padding-bottom: 40px;
}
.cart-shell {
  max-width: 980px;
}
.cart-head {
  margin-bottom: 22px;
}
.cart-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vice-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cart-back:hover { text-decoration: underline; }
.cart-head h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 6px;
  color: #fff;
}
.cart-head-sub {
  color: var(--vice-text-muted);
  font-size: 14px;
  margin: 0;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.cart-lines-panel,
.cart-form-panel {
  background: #0e0e18;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.cart-section-title {
  font-size: 1.1rem;
  margin: 0 0 14px;
  color: var(--vice-cyan);
}
.cart-lines .shop-line {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cart-lines .shop-drawer-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--vice-text-muted);
  line-height: 1.5;
}
.cart-lines .shop-drawer-empty a {
  color: var(--vice-cyan);
}
.cart-totals {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}
.cart-continue {
  display: inline-block;
  margin-top: 14px;
  color: var(--vice-pink);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.cart-continue:hover { text-decoration: underline; }
.cart-form-panel .shop-fulfill-modal {
  margin-bottom: 14px;
}
.cart-layout.cart-ordered .cart-lines-panel {
  opacity: 0.55;
  pointer-events: none;
}
.cart-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: rgba(8, 8, 14, 0.96);
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}
.cart-sticky-bar[hidden] { display: none !important; }
.cart-sticky-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-sticky-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 88px;
  color: var(--vice-text-muted);
  font-size: 12px;
}
.cart-sticky-total strong {
  color: #fff;
  font-size: 16px;
}
.cart-sticky-inner .shop-btn-primary {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
}
.cart-sticky-inner .shop-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 861px) {
  .cart-sticky-bar { display: none !important; }
}
@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cart-form-actions-desktop {
    display: none;
  }
  .cart-head h1 { font-size: 1.35rem; }
  .cart-lines-panel,
  .cart-form-panel {
    padding: 14px;
    border-radius: 14px;
  }
  body.cart-body {
    padding-bottom: 108px;
  }
}
