/* ── Shop header bar ───────────────────────────────────────────── */
.shop-bar {
  background: var(--sand);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(139,94,60,.12);
}
.shop-bar__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.shop-bar__title { font-weight: 700; font-size: 1.4rem; color: var(--wood-dk); }
.shop-bar__count { font-size: .88rem; color: var(--muted); }

/* ── Cart button ───────────────────────────────────────────────── */
.cart-btn {
  position: relative;
  background: var(--wood); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: .65rem 1.25rem;
  font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: .6rem;
  transition: background var(--trans), transform var(--trans);
}
.cart-btn:hover { background: var(--wood-dk); transform: translateY(-1px); }
.cart-btn__badge {
  position: absolute; top: -.5rem; right: -.5rem;
  background: #e74c3c; color: #fff;
  font-size: .7rem; font-weight: 700;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.cart-btn__badge.bump { transform: scale(1.4); }

/* ── Product card on shop page ─────────────────────────────────── */
.shop-product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.shop-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(92,61,30,.15);
}
.shop-product-card__img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: var(--sand); cursor: zoom-in;
}
.shop-product-card__img-ph {
  width: 100%; aspect-ratio: 1; background: var(--sand);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.shop-product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.shop-product-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.shop-product-card__name { font-weight: 700; font-size: 1rem; }
.shop-product-card__price { font-size: 1.2rem; font-weight: 700; color: var(--wood); white-space: nowrap; }
.shop-product-card__desc { font-size: .88rem; color: var(--muted); flex: 1; }

/* Color swatches */
.color-picker { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.color-picker__label { font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: .25rem; }
.color-swatch {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, border-color .15s;
  outline: none;
}
.color-swatch:hover    { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--wood-dk); transform: scale(1.15); }

/* Quantity + add row */
.card-actions { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.qty-control {
  display: flex; align-items: center;
  border: 2px solid var(--sand); border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  background: var(--sand); border: none;
  width: 2rem; height: 2.2rem;
  font-size: 1.1rem; cursor: pointer; color: var(--wood-dk);
  transition: background var(--trans);
}
.qty-control button:hover { background: var(--wood-lt); color: var(--white); }
.qty-control__val {
  width: 2.2rem; text-align: center;
  font-weight: 700; font-size: .95rem; border: none;
  background: var(--white); color: var(--text);
  -moz-appearance: textfield;
}
.qty-control__val::-webkit-inner-spin-button { display: none; }
.add-btn {
  flex: 1; background: var(--wood); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: .55rem 1rem; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: background var(--trans), transform var(--trans);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.add-btn:hover   { background: var(--wood-dk); transform: translateY(-1px); }
.add-btn.added   { background: #27ae60; }

/* Custom note badge */
.custom-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; color: var(--wood-lt); font-weight: 600;
}

/* ── Cart drawer ───────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(44,26,14,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(420px, 100vw);
  background: var(--white);
  box-shadow: -4px 0 32px rgba(44,26,14,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer__head h3 { font-size: 1.15rem; }
.cart-drawer__close {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--muted); line-height: 1;
}

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty {
  text-align: center; padding: 3rem 1rem;
  color: var(--muted); font-size: .95rem;
}
.cart-empty .icon { font-size: 3rem; margin-bottom: 1rem; }

.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--sand);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; background: var(--sand); flex-shrink: 0;
}
.cart-item__img-ph {
  width: 72px; height: 72px; border-radius: 6px;
  background: var(--sand); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }
.cart-item__meta { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.cart-item__row  { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cart-item__price { font-weight: 700; color: var(--wood); }
.cart-item__remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; padding: 0;
  transition: color var(--trans);
}
.cart-item__remove:hover { color: #e74c3c; }

.cart-drawer__foot {
  padding: 1.25rem 1.5rem;
  border-top: 2px solid var(--sand);
  background: var(--cream);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand);
}
.cart-total__amount { color: var(--wood); font-size: 1.4rem; }
.cart-note {
  font-size: .8rem; color: var(--muted);
  margin-bottom: 1rem; line-height: 1.5;
}
.checkout-btn {
  width: 100%; padding: 1rem; border-radius: var(--radius);
  background: var(--wood); color: var(--white);
  border: none; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: .6rem;
  transition: background var(--trans), transform var(--trans);
}
.checkout-btn:hover:not(:disabled) { background: var(--wood-dk); transform: translateY(-1px); }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; }
.payment-icons {
  display: flex; gap: .5rem; justify-content: center;
  margin-top: .75rem; flex-wrap: wrap;
}
.payment-icon {
  background: var(--sand); border-radius: 4px;
  padding: .2rem .5rem; font-size: .72rem;
  font-weight: 700; color: var(--muted);
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img  { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.15); border: none;
  color: #fff; font-size: 2rem; cursor: pointer;
  border-radius: 50%; width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Color map ─────────────────────────────────────────────────── */
/* (defined in JS) */
