/* ── Shop Body Reset ── */
.shop-body { background: #fff; }

/* ── Promo Banner ── */
.promo-banner {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 9px 16px;
  font-weight: 500;
}

/* ── Category Nav Bar ── */
.cat-nav {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  position: sticky;
  top: 64px;
  z-index: 90;
}

.cat-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 20px;
  font-size: .88rem;
  font-weight: 500;
  font-family: inherit;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}

.cat-nav-btn:hover { color: #000; }
.cat-nav-btn.active { color: #000; border-bottom-color: #000; font-weight: 600; }

/* ── Coming Soon Bar ── */
.coming-soon-bar {
  background: #f9f5ff;
  border: 1px solid #e0d5f5;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: .88rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.5;
}
.coming-soon-bar a { color: #5b3fc8; font-weight: 600; }
.coming-soon-bar a:hover { text-decoration: underline; }
.price-disclaimer { display: block; font-size: .8rem; color: #888; margin-top: 4px; }

/* ── Stock Labels ── */
.stock-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.stock-label.in  { color: #27ae60; }
.stock-label.out { color: #bbb; }

/* ── Shop Layout ── */
.shop-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 130px);
}

/* ── Filter Sidebar ── */
.filter-sidebar {
  padding: 28px 24px 28px 0;
  border-right: 1px solid #e5e5e5;
  position: sticky;
  top: 114px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-header h3 { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.clear-filters-btn {
  background: none;
  border: none;
  font-size: .8rem;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.clear-filters-btn:hover { color: #000; }

.filter-group {
  border-top: 1px solid #e5e5e5;
  padding: 16px 0;
}

.filter-group-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 12px;
}

.stock-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: #333;
  cursor: pointer;
  font-weight: 500;
}
.stock-toggle input { accent-color: #000; width: 16px; height: 16px; cursor: pointer; }

.fulfillment-pills { display: flex; flex-direction: column; gap: 8px; }

.pill {
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: .85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  color: #444;
}
.pill.active { background: #000; color: #fff; border-color: #000; }
.pill:hover:not(.active) { border-color: #999; color: #000; }

.price-options,
.subcat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-option,
.subcat-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .87rem;
  color: #333;
  cursor: pointer;
}
.price-option input,
.subcat-option input { accent-color: #000; width: 15px; height: 15px; cursor: pointer; }

/* ── Shop Main ── */
.shop-main {
  padding: 24px 28px;
  min-width: 0;
}

/* ── Toolbar ── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 114px;
  background: #fff;
  z-index: 80;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: .9rem;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 9px 36px 9px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color .2s;
  background: #fafafa;
}
#searchInput:focus { border-color: #111; background: #fff; }

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #aaa;
  font-size: .85rem;
  cursor: pointer;
  padding: 4px;
}
.search-clear:hover { color: #333; }

.product-count {
  font-size: .83rem;
  color: #888;
  white-space: nowrap;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: #e5e5e5;
  border: 1px solid #e5e5e5;
}

.product-card {
  background: #fff;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: default;
  transition: background .15s;
  position: relative;
}
.product-card:hover { background: #fafafa; }
.product-card.out-of-stock { opacity: .5; }

.product-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fafafa;
  border-radius: 6px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.emoji-fallback {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oos-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f0f0f0;
  color: #999;
  padding: 3px 8px;
  border-radius: 3px;
}

.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: #c0392b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
}

.product-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #999;
}

.product-name {
  font-size: .93rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  flex: 1;
}

.product-desc {
  font-size: .78rem;
  color: #999;
  line-height: 1.4;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.product-price {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
}
.product-price.sale { color: #c0392b; }
.product-price-orig {
  font-size: .82rem;
  color: #bbb;
  text-decoration: line-through;
}

.add-btn {
  margin-top: 8px;
  padding: 9px;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  font-family: inherit;
}
.add-btn:hover { background: #111; color: #fff; }
.add-btn.oos-btn { border-color: #ddd; color: #bbb; cursor: not-allowed; }
.add-btn.oos-btn:hover { background: #fff; color: #bbb; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #111;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.qty-btn {
  border: none;
  background: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #111;
  transition: background .15s;
  font-family: inherit;
}
.qty-btn:hover { background: #f0f0f0; }
.qty-num { flex: 1; text-align: center; font-size: .9rem; font-weight: 600; }

/* ── Load More ── */
.load-more-wrap { text-align: center; padding: 40px 0; }
.load-more-btn {
  padding: 12px 40px;
  border: 1.5px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.load-more-btn:hover { background: #111; color: #fff; }

/* ── Cart Sidebar ── */
.cart-sidebar {
  border-left: 1px solid #e5e5e5;
  position: sticky;
  top: 114px;
  height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.cart-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cart-close { background: none; border: none; font-size: 1rem; cursor: pointer; color: #999; display: none; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #bbb;
  padding: 40px 0;
  font-size: .88rem;
}
.cart-empty span { font-size: 2rem; }

.cart-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cart-item-name { font-size: .85rem; font-weight: 600; line-height: 1.3; flex: 1; color: #111; }
.cart-item-price { font-size: .85rem; font-weight: 700; color: #111; white-space: nowrap; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn {
  width: 24px; height: 24px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: background .15s;
}
.cart-qty-btn:hover { background: #f5f5f5; }
.cart-qty-num { font-size: .85rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-remove { margin-left: auto; background: none; border: none; color: #ccc; cursor: pointer; font-size: .75rem; font-family: inherit; }
.cart-remove:hover { color: #c0392b; }

.cart-footer {
  padding: 14px 16px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-subtotal, .cart-delivery-fee { display: flex; justify-content: space-between; font-size: .85rem; color: #888; }
.cart-total {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: .95rem;
  border-top: 1px solid #e5e5e5;
  padding-top: 8px; margin-top: 2px;
}

.delivery-address { display: flex; flex-direction: column; gap: 6px; }
.delivery-address label { font-size: .75rem; font-weight: 600; color: #888; letter-spacing: .06em; text-transform: uppercase; }
.delivery-address input {
  border: 1px solid #ddd; border-radius: 5px;
  padding: 8px 10px; font-size: .88rem;
  font-family: inherit; outline: none;
}
.delivery-address input:focus { border-color: #111; }

.checkout-btn {
  width: 100%;
  padding: 13px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.checkout-btn:hover { background: #333; }

.cart-disclaimer { font-size: .72rem; color: #bbb; text-align: center; }

/* ── Cart toggle button in nav ── */
.cart-toggle-btn {
  background: none;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 6px 12px;
  color: #fff;
  font-size: .9rem;
  cursor: pointer;
  position: relative;
  display: none;
}
.cart-badge {
  background: var(--amber);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: .72rem;
  font-weight: 700;
}

/* ── No results ── */
.deposit-note {
  font-size: .73rem;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  color: #aaa;
  font-size: .95rem;
  padding: 60px 0;
}

/* ── Age Gate ── */
.age-gate {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}
.age-gate-box {
  background: #fff;
  border-radius: 4px;
  padding: 52px 44px;
  text-align: center;
  max-width: 400px; width: 90%;
}
.age-gate-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111;
}
.age-gate-logo span { color: #888; }
.age-gate-box h2 { font-size: 1.5rem; margin-bottom: 10px; color: #111; }
.age-gate-box p  { color: #888; margin-bottom: 28px; font-size: .92rem; }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; }
.age-deny-btn {
  padding: 13px 28px; border-radius: 4px;
  border: 1.5px solid #ddd; color: #888;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; background: none; font-family: inherit;
  transition: all .2s;
}
.age-deny-btn:hover { border-color: #aaa; color: #333; }

/* ── Order Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 300;
}
.order-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 400; background: #fff;
  border-radius: 4px; padding: 40px 36px;
  width: min(480px, 94vw); max-height: 90vh;
  overflow-y: auto; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 1rem;
  cursor: pointer; color: #aaa; padding: 4px 8px;
}
.modal-close:hover { color: #111; }
.order-modal h2 { font-size: 1.4rem; }
.modal-sub { color: #888; font-size: .88rem; margin-top: -8px; }
.order-modal form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.order-modal label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #888;
}
.order-modal input {
  border: 1px solid #ddd; border-radius: 4px;
  padding: 10px 12px; font-size: .92rem;
  font-family: inherit; outline: none; color: #111;
}
.order-modal input:focus { border-color: #111; }
.modal-order-summary { background: #f7f7f7; border-radius: 6px; padding: 14px 16px; }
.summary-rows { display: flex; flex-direction: column; gap: 5px; }
.summary-row { display: flex; justify-content: space-between; font-size: .87rem; color: #666; }
.summary-total {
  font-weight: 700; color: #111;
  border-top: 1px solid #e5e5e5;
  padding-top: 8px; margin-top: 4px; font-size: .93rem;
}
.summary-type { font-size: .8rem; color: #888; margin-top: 8px; font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .shop-wrap { grid-template-columns: 200px 1fr 260px; }
}

@media (max-width: 860px) {
  .shop-wrap { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .cart-sidebar {
    position: fixed; right: -100%; top: 64px;
    width: min(320px, 100vw); height: calc(100vh - 64px);
    z-index: 200; transition: right .3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,.1);
  }
  .cart-sidebar.open { right: 0; }
  .cart-close { display: block !important; }
  .cart-toggle-btn { display: inline-flex !important; align-items: center; gap: 6px; }
}

@media (max-width: 540px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-main { padding: 16px 12px; }
}
