/* shop.css — Customer-facing catalog, cart, checkout styles */

/* Product grid */
.shop-hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%); padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.shop-hero .sh-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.shop-hero h1 { font-family: var(--font-display); font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.shop-hero p { color: var(--fg-muted); }

.catalog-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-card img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--bg-alt); }
.product-card .card-body { padding: 16px; }
.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--green); font-family: var(--font-display); }
.product-card .category { font-size: 12px; color: var(--fg-muted); margin-bottom: 12px; }
.product-card .add-btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: background 0.2s; }
.product-card .add-btn:hover { background: #e63e3e; }
.product-card .add-btn.added { background: var(--green); color: #000; }

/* Cart */
.cart-wrap { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }
.cart-empty p { color: var(--fg-muted); }
.cart-empty .btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 700; margin-top: 20px; }

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.cart-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 15px; font-weight: 600; }
.cart-item-info .price { color: var(--green); font-weight: 700; font-size: 16px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { background: var(--bg-alt); border: 1px solid var(--border); color: var(--fg); width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-remove { color: var(--accent); background: none; border: none; cursor: pointer; font-size: 18px; }

.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.cart-summary h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 15px; color: var(--fg-muted); }
.summary-row.total { font-size: 20px; font-weight: 700; color: var(--fg); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.summary-row.total .price { color: var(--green); }
.checkout-btn { width: 100%; background: var(--green); color: #000; border: none; border-radius: 10px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: var(--font-body); margin-top: 16px; transition: opacity 0.2s; }
.checkout-btn:hover { opacity: 0.85; }
.continue-shopping { text-align: center; margin-top: 16px; }
.continue-shopping a { color: var(--fg-muted); font-size: 14px; text-decoration: none; }
.continue-shopping a:hover { color: var(--accent); }

/* Order success */
.success-wrap { max-width: 600px; margin: 60px auto; padding: 0 24px; text-align: center; }
.success-icon { font-size: 64px; margin-bottom: 20px; }
.success-wrap h1 { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.success-wrap p { color: var(--fg-muted); }
.order-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 24px 0; text-align: left; }
.order-box .order-num { font-size: 13px; color: var(--fg-muted); margin-bottom: 8px; }
.order-box .order-total { font-size: 24px; font-weight: 700; color: var(--green); font-family: var(--font-display); }
.order-items-list { margin-top: 12px; font-size: 14px; color: var(--fg-muted); }

/* Login / register */
.auth-wrap { max-width: 440px; margin: 60px auto; padding: 0 24px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.auth-card h1 { font-family: var(--font-display); font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--fg-muted); font-size: 14px; margin-bottom: 28px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.auth-field input, .auth-field select { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--fg); font-size: 15px; font-family: var(--font-body); outline: none; }
.auth-field input:focus { border-color: var(--accent); }
.role-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.role-btn { flex: 1; padding: 14px; border: 2px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--fg-muted); cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; font-family: var(--font-body); transition: all 0.2s; }
.role-btn.selected { border-color: var(--accent); color: var(--accent); background: rgba(255,82,82,0.08); }
.auth-submit { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-body); margin-top: 8px; transition: background 0.2s; }
.auth-submit:hover { background: #e63e3e; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--fg-muted); }
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-error { background: rgba(255,82,82,0.12); border: 1px solid rgba(255,82,82,0.3); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: var(--accent); display: none; }

.wa-cta-banner { text-align: center; padding: 20px 16px; border-bottom: 1px solid var(--border); }
.wa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
.wa-cta-btn:hover { box-shadow: 0 6px 24px rgba(37,211,102,0.5); transform: translateY(-1px); }

/* Trust badges — social-proof row below WhatsApp CTA */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  align-items: center;
  padding: 4px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
}
.trust-badge svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cart-item { flex-wrap: wrap; }
}

