/* Luxshop Minimal Theme */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2a9df4; /* Luxembourgish light blue */
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(15, 23, 42, 0.06);
  --border: 1px solid rgba(15, 23, 42, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #fff, var(--bg) 40%);
}

/* Utilities */
.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: 28px; height: 28px; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover { background: rgba(15,23,42,0.05); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-icon { width: 22px; height: 22px; display: inline-block; border-radius: 6px; background: linear-gradient(135deg, var(--accent-blue), var(--primary)); box-shadow: var(--shadow); mask: url('#'); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent-red); border-radius: 999px; }
.nav-search { display: flex; align-items: center; }
.nav-search input { width: 180px; max-width: 30vw; padding: 8px 10px; border-radius: 999px; border: var(--border); background: #fff; box-shadow: var(--shadow); }

/* Layout */
.container { max-width: var(--maxw); margin: 24px auto; padding: 0 16px; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.section-head h2, .section-head h1 { margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Search + Filters */
.searchbar { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; flex: 1; }
.searchbar input { flex: 1; padding: 10px 12px; border-radius: 10px; border: var(--border); background: #fff; box-shadow: var(--shadow); }
.filters-row { display: flex; align-items: center; gap: 12px; }
.filters-row .sort { display: inline-flex; align-items: center; gap: 8px; }
.filters-row select { padding: 10px 12px; border-radius: 10px; border: var(--border); background: #fff; box-shadow: var(--shadow); }
.price-range { display: inline-flex; align-items: center; gap: 10px; }
.price-range label { display: inline-flex; align-items: center; gap: 6px; }
.price-range input { width: 90px; padding: 10px 12px; border-radius: 10px; border: var(--border); background: #fff; box-shadow: var(--shadow); }

/* Category checkboxes */
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: var(--border); background: #fff; box-shadow: var(--shadow); cursor: pointer; user-select: none; }
.checks input { accent-color: var(--accent-blue); }

/* Cards */
.card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h1, .card h2, .card h3, .card h4 { margin: 0 0 10px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.ta-center input[type="number"] { text-align: center; }
/* Ensure alignment wins over default cart-table left align */
.cart-table th.ta-right, .cart-table td.ta-right { text-align: right; }
.cart-table th.ta-center, .cart-table td.ta-center { text-align: center; }

/* Hero */
.hero { padding: 30px; position: relative; overflow: hidden; }
.hero-badge { display: inline-block; background: linear-gradient(90deg, #e11d48, #60a5fa); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow); }
.hero h1 { margin: 12px 0 8px; font-size: 34px; letter-spacing: 0.2px; }
.hero-actions { display: flex; gap: 10px; margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: var(--border); background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); cursor: pointer; }
.btn:hover { transform: translateY(-1px); transition: transform .15s ease; }
.btn.primary { background: linear-gradient(135deg, var(--accent-blue), var(--primary)); color: #fff; border: none; }
.link { color: var(--accent-blue); text-decoration: none; font-weight: 600; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(8, 1fr);} }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr);} }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Product card */
.product { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.product .thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); display: grid; place-items: center; border: var(--border); }
.product .thumb .thumb-label { font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.product .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #fff; border: var(--border); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.pill.active { background: linear-gradient(135deg, #93c5fd, #dbeafe); }

/* Item detail */
.item-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.item-gallery { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border: var(--border); display: grid; place-items: center; }
.item-buy { display: flex; flex-direction: column; gap: 12px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty input { width: 64px; padding: 8px; border-radius: 8px; border: var(--border); }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 10px; border-bottom: 1px solid rgba(15,23,42,0.08); text-align: left; }
.cart-row { vertical-align: middle; }
.cart-thumb { width: 70px; height: 52px; border-radius: 10px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border: var(--border); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.form input, .form select { padding: 10px 12px; border-radius: 10px; border: var(--border); background: #fff; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form button { align-self: start; }
.order-summary { align-self: start; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(15,23,42,0.12); }

/* Footer */
.site-footer { padding: 20px; color: var(--muted); text-align: center; }

/* Thank you */
.checkmark { width: 64px; height: 64px; border-radius: 999px; display: inline-grid; place-items: center; margin: 0 auto 10px; background: linear-gradient(135deg, #22c55e, #86efac); color: #083344; font-size: 36px; box-shadow: var(--shadow); }

/* Small screens */
@media (max-width: 860px) {
  .item-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}

/* Account page niceties */
.auth-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; align-items: start; }
.auth-grid .card { grid-column: span 6; }
@media (max-width: 860px){ .auth-grid .card { grid-column: span 12; } }

.account-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 999px; background: linear-gradient(135deg, #dbeafe, #eff6ff); display: grid; place-items: center; font-weight: 700; border: var(--border); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(15,23,42,0.08); margin: 14px 0; }
.tab-link { appearance: none; border: none; background: transparent; padding: 10px 12px; border-radius: 10px 10px 0 0; cursor: pointer; color: var(--muted); font-weight: 600; }
.tab-link.active { color: var(--text); background: #fff; box-shadow: var(--shadow); border: var(--border); border-bottom: 0; transform: translateY(1px); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; border: var(--border); background: #fff; box-shadow: var(--shadow); font-size: 12px; }
.chip.new { background: #eef2ff; }
.chip.paid { background: #ecfeff; }
.chip.shipped { background: #ecfccb; }
.chip.cancelled { background: #fee2e2; }
