/* ─── Shop page ──────────────────────────────────────────────────── */
.shop-page { background: var(--c-bg, #faf9f7); font-family: 'Outfit', sans-serif; }
.shop-page main { padding-top: 80px; }
.shop-wrap { max-width: 960px; margin: 0 auto; padding: 60px var(--gutter, 40px) 100px; }

/* ── Empty state ─────────────────────────────────────────────────── */
.cart-empty { text-align: center; padding: 100px 0; color: var(--c-muted, #9a8f85); }
.cart-empty p { margin-bottom: 20px; font-size: 1rem; }
.cart-empty a { color: var(--c-text, #2c2420); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Cart items ──────────────────────────────────────────────────── */
.cart-section { padding-bottom: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--c-surface, #ede9e4);
}
.cart-item-info { min-width: 0; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 400; }
.cart-item-price { color: var(--c-muted, #9a8f85); font-size: 0.72rem; letter-spacing: 0.08em; margin-top: 4px; }
.cart-item-subtotal { font-size: 0.85rem; min-width: 72px; text-align: right; white-space: nowrap; }

.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty button {
  width: 28px; height: 28px;
  border: 0.5px solid var(--c-muted, #9a8f85);
  background: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cart-qty button:hover { background: var(--c-text, #2c2420); color: #fff; border-color: var(--c-text, #2c2420); }
.cart-qty-value { min-width: 18px; text-align: center; font-size: 0.82rem; }
.cart-remove {
  background: none; border: none; cursor: pointer;
  color: var(--c-muted, #9a8f85); font-size: 0.72rem;
  padding: 4px; line-height: 1; transition: color 0.15s;
}
.cart-remove:hover { color: var(--c-text, #2c2420); }

.cart-total-row {
  display: flex; justify-content: flex-end; align-items: baseline;
  gap: 16px; padding: 20px 0 40px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted, #9a8f85);
}
.cart-total-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--c-text, #2c2420); }

/* ── Checkout ────────────────────────────────────────────────────── */
.checkout-section { padding-bottom: 60px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 840px) { .checkout-grid { grid-template-columns: 1fr; gap: 40px; } }

.checkout-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  margin-bottom: 24px; margin-top: 0;
}
.checkout-form-title + .checkout-form-title,
h2.checkout-form-title:not(:first-child) { margin-top: 36px; }

/* Form fields */
.shop-field { margin-bottom: 20px; }
.shop-field label {
  display: block; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted, #9a8f85); margin-bottom: 8px;
}
.shop-field input {
  width: 100%; padding: 10px 0;
  border: none; border-bottom: 0.5px solid #ccc;
  background: none; font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  outline: none; color: var(--c-text, #2c2420); transition: border-color 0.2s;
}
.shop-field input:focus { border-bottom-color: var(--c-text, #2c2420); }
.shop-field textarea {
  width: 100%; padding: 10px 0;
  border: none; border-bottom: 0.5px solid #ccc;
  background: none; font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  outline: none; color: var(--c-text, #2c2420); transition: border-color 0.2s;
  resize: vertical; min-height: 72px;
}
.shop-field textarea:focus { border-bottom-color: var(--c-text, #2c2420); }

/* PVZ */
.pvz-search-wrap { margin-bottom: 12px; }
.pvz-search-input {
  width: 100%; padding: 10px 0;
  border: none; border-bottom: 0.5px solid #ccc;
  background: none; font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  outline: none; color: var(--c-text, #2c2420); transition: border-color 0.2s;
}
.pvz-search-input:focus { border-bottom-color: var(--c-text, #2c2420); }
.pvz-list {
  max-height: 260px; overflow-y: auto;
  border: 0.5px solid var(--c-surface, #ede9e4);
  background: var(--c-bg, #faf9f7);
}
.pvz-item {
  padding: 12px 14px; cursor: pointer; font-size: 0.8rem;
  border-bottom: 0.5px solid var(--c-surface, #ede9e4);
  transition: background 0.12s;
}
.pvz-item:last-child { border-bottom: none; }
.pvz-item:hover, .pvz-item.selected { background: var(--c-surface, #ede9e4); }
.pvz-item-address { color: var(--c-muted, #9a8f85); font-size: 0.72rem; margin-top: 2px; }
.pvz-selected-info { padding: 10px 0; font-size: 0.78rem; color: var(--c-muted, #9a8f85); }

/* PVZ map */
.pvz-map-search { margin-bottom: 8px; }
.pvz-city-input {
  width: 100%; padding: 10px 0;
  border: none; border-bottom: 0.5px solid #ccc; background: none;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; outline: none;
  color: var(--c-text, #2c2420); transition: border-color 0.2s;
}
.pvz-city-input:focus { border-bottom-color: var(--c-text, #2c2420); }
.pvz-map-wrapper { position: relative; margin-bottom: 8px; }
#pvz-map { height: 360px; border: 0.5px solid var(--c-surface, #ede9e4); }
#pvz-zoom-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-text, #2c2420);
  font-size: 0.85rem; letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 5;
}
#pvz-zoom-hint[hidden] { display: none; }
.pvz-hint { font-size: 0.72rem; color: var(--c-muted, #9a8f85); line-height: 1.5; margin-bottom: 4px; }

.delivery-free { color: #4a8a5a; font-size: 0.82rem; }
.delivery-threshold-note { font-size: 0.68rem; color: var(--c-muted, #9a8f85); letter-spacing: 0.06em; margin-top: 6px; text-align: right; }
.summary-discount-note { font-size: 0.68rem; letter-spacing: 0.06em; color: #4a8a5a; margin-bottom: 10px; }

/* Order summary (sticky sidebar) */
.checkout-summary {
  background: var(--c-surface, #ede9e4);
  padding: 28px 28px 32px;
  position: sticky; top: 100px;
}
.summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 400; margin: 0 0 20px;
}
.summary-line {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; font-size: 0.8rem; gap: 16px;
}
.summary-line span:first-child { color: var(--c-muted, #9a8f85); }
.summary-divider { border: none; border-top: 0.5px solid rgba(0,0,0,0.12); margin: 16px 0; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.summary-total-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted, #9a8f85); }
.summary-total-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; }

.btn-pay {
  display: block; width: 100%; margin-top: 20px;
  padding: 14px 16px;
  background: var(--c-text, #2c2420); color: #fff;
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.btn-pay:hover:not(:disabled) { opacity: 0.82; }
.btn-pay:disabled { opacity: 0.35; cursor: not-allowed; }

.checkout-error { color: #c0392b; font-size: 0.78rem; margin-top: 10px; line-height: 1.5; }

/* ── Add to cart button (product cards on index) ─────────────────── */
.btn-add-to-cart {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--c-text, #2c2420);
  height: 36px; padding: 0 20px; font-weight: 400; font-family: 'Outfit', sans-serif;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  cursor: pointer; border: none; width: 100%;
}
.btn-add-to-cart:hover { background: var(--c-accent, #8b6f5e); }

/* ── Cart icon button in nav ─────────────────────────────────────── */
.btn-cart-nav {
  position: relative; display: inline-flex;
  align-items: center; gap: 7px;
  padding: 10px 16px !important;
}
.btn-cart-nav svg {
  width: 15px; height: 15px; stroke: #fff;
  fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.btn-cart-nav .cart-label {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
}
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent, #8b6f5e); color: #fff;
  border-radius: 50%; width: 14px; height: 14px; font-size: 0.5rem;
  pointer-events: none;
}

/* ── Cancel order button ─────────────────────────────────────────── */
.btn-cancel-order {
  display: inline-block; padding: 12px 24px;
  border: 0.5px solid #c0392b; color: #c0392b; background: none;
  font-family: 'Outfit', sans-serif; font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-cancel-order:hover:not(:disabled) { background: #c0392b; color: #fff; }
.btn-cancel-order:disabled { opacity: 0.45; cursor: not-allowed; }
.cancel-note { font-size: 0.72rem; color: var(--c-muted, #9a8f85); margin-top: 12px; line-height: 1.6; max-width: 420px; }

/* ── Order tracking page ─────────────────────────────────────────── */
.order-page { background: var(--c-bg, #faf9f7); font-family: 'Outfit', sans-serif; }
.order-status-block { padding: 100px var(--gutter, 40px) 80px; max-width: 600px; margin: 0 auto; }

.order-status-badge {
  display: inline-block; padding: 5px 14px;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 0.5px solid currentColor; margin-bottom: 24px;
}
.status-pending_payment { color: #b8962e; }
.status-paid            { color: #4a8a5a; }
.status-shipped         { color: #3a6aaa; }
.status-delivered       { color: #2a7a2a; }
.status-cancelled       { color: #c0392b; }

.order-id-display { color: var(--c-muted, #9a8f85); font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 40px; }

.order-items-list { list-style: none; padding: 0; margin: 20px 0; }
.order-items-list li { padding: 10px 0; border-bottom: 0.5px solid var(--c-surface, #ede9e4); font-size: 0.85rem; }
.order-items-list li:last-child { border-bottom: none; }

.order-delivery-info { font-size: 0.8rem; color: var(--c-muted, #9a8f85); margin-top: 20px; }
.order-tracking-info { font-size: 0.8rem; color: var(--c-muted, #9a8f85); margin-top: 6px; }
.order-date { font-size: 0.72rem; color: var(--c-muted, #9a8f85); margin-top: 32px; }

.order-search-form { max-width: 420px; }
.order-loading { color: var(--c-muted, #9a8f85); padding: 60px 0; }
