/* ================================================================
   MAISON — Luxury Fashion E-Commerce
   Farfetch-inspired design system
   ================================================================ */

:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999;
  --accent: #C4A265;
  --accent-hover: #A8873F;
  --border: #E8E6E1;
  --border-light: #F0EDE8;
  --header-bg: #111111;
  --header-text: #FFFFFF;
  --overlay: rgba(0, 0, 0, 0.45);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-w: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
input { font-family: inherit; }

/* ================================================================
   HEADER
   ================================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
  height: 60px;
  transition: background var(--transition);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--header-text);
}
.header-nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.header-right { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
  padding: 6px;
}
.icon-btn:hover { color: #fff; }

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -2px; right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-badge.show { opacity: 1; }

/* ================================================================
   SEARCH
   ================================================================ */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 200;
  transform: translateY(-100%);
  transition: transform var(--transition);
}
.search-overlay.open { transform: translateY(0); }
.search-overlay input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.search-overlay input::placeholder { color: var(--text-muted); }
.search-close {
  font-size: 1.8rem;
  color: var(--text-secondary);
  padding: 4px 8px;
}
.search-results {
  position: fixed;
  top: 60px; left: 0; right: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 199;
  display: none;
}
.search-results.open { display: block; }
.search-results-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius);
}
.search-result-item:hover { background: var(--bg); }
.search-result-item img { width: 60px; height: 80px; object-fit: cover; }
.search-result-info { font-size: 0.8rem; }
.search-result-info .brand { font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.65rem; color: var(--text-secondary); }
.search-result-info .title { margin-top: 2px; }
.search-result-info .price { margin-top: 4px; color: var(--text-secondary); }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
main {
  min-height: 100vh;
  padding-top: 60px;
}

/* Home Page */
.hero {
  height: 50vh;
  min-height: 360px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 50%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.hero p {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
  margin: 60px 0 40px;
  letter-spacing: 0.06em;
}

/* Brand Grid */
.brand-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}
.brand-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  transition: left var(--transition), right var(--transition);
}
.brand-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.brand-card:hover::after { left: 0; right: 0; }
.brand-card .brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text);
}
.brand-card .brand-count {
  margin-top: 16px;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================================================
   BRAND PAGE (Sidebar + Products)
   ================================================================ */
.brand-page {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 36px 28px;
  border-right: 1px solid var(--border-light);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section {
  margin-bottom: 24px;
}
.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.02em;
  text-align: left;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active {
  color: var(--text);
  font-weight: 500;
}
.filter-btn .count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Products Grid */
.products-section {
  flex: 1;
  padding: 28px 32px;
}
.products-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; }
.products-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-image-wrap {
  position: relative;
  padding-top: 133%;
  background: #f5f3ef;
  overflow: hidden;
}
.product-image-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}
.product-card-add {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.product-card:hover .product-card-add {
  opacity: 1;
  transform: translateY(0);
}
.product-card-add:hover { background: var(--text); color: #fff; border-color: var(--text); }

.product-info {
  padding: 14px 12px 18px;
}
.product-brand-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-title {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}
.page-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.page-btn:hover { border-color: var(--text); color: var(--text); }
.page-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ================================================================
   PRODUCT MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
  display: flex;
  min-height: 500px;
  position: relative;
  animation: modalIn 0.35s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: fixed;
  top: 20px; right: 28px;
  font-size: 2rem;
  color: #fff;
  z-index: 301;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition);
}
.modal-close:hover { opacity: 0.7; }

.modal-gallery {
  flex: 1.1;
  background: #f5f3ef;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 500px;
}
.modal-main-image img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 20px;
  overflow-x: auto;
}
.modal-thumb {
  width: 64px; height: 85px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  opacity: 0.6;
}
.modal-thumb:hover, .modal-thumb.active {
  border-color: var(--text);
  opacity: 1;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
  flex: 0.9;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}
.modal-brand {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.modal-price {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.modal-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.modal-meta span { color: var(--text); }
.modal-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  flex: 1;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 36px;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition);
  margin-top: 24px;
}
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 36px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: all var(--transition);
  margin-top: 12px;
}
.btn-outline:hover { background: var(--text); color: #fff; }

/* ================================================================
   CART SIDEBAR
   ================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 250;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
}
.cart-header h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.cart-close { font-size: 1.5rem; color: var(--text-secondary); padding: 4px; }
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition);
}
.cart-item:hover { background: #fcfbf9; }
.cart-item-img { width: 80px; height: 106px; object-fit: cover; background: #f5f3ef; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-brand {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cart-item-title { font-size: 0.8rem; margin-top: 4px; line-height: 1.4; }
.cart-item-price { font-size: 0.8rem; font-weight: 500; margin-top: 8px; }
.cart-item-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-precheck {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  line-height: 1;
  transition: all var(--transition);
}
.cart-item-precheck:hover {
  border-color: var(--text);
  background: #faf8f4;
}
.cart-item-precheck:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cart-item-remove {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--text); }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cart-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.cart-precheck {
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  height: 44px;
  font-size: 0.72rem;
}
.cart-start-from {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.cart-start-from label {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.cart-start-from input {
  width: 64px;
  height: 30px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  font-family: inherit;
}
.cart-submit { width: 100%; }
.cart-precheck-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#cartPrecheckResults {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  margin-bottom: 10px;
}
.cart-precheck-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}
.cart-precheck-mainimg {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0;
  width: 58px;
  height: 76px;
  flex-shrink: 0;
}
.cart-precheck-mainimg img {
  width: 42px;
  height: 56px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f3ef;
}
.cart-precheck-info {
  min-width: 0;
  flex: 1;
}
.cart-precheck-info .name {
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-precheck-info .meta {
  font-size: 0.66rem;
  color: var(--text-muted);
}
.cart-precheck-candidates {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
}
.cart-precheck-cand-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 2px;
  width: 44px;
  flex-shrink: 0;
}
.cart-precheck-cand-btn img {
  width: 100%;
  height: 44px;
  object-fit: cover;
  display: block;
}
.cart-precheck-cand-btn span {
  display: block;
  font-size: 0.56rem;
  line-height: 1.1;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2px;
}
.cart-precheck-cand-btn.active { border-color: var(--text); }
.cart-precheck-cand-btn.rejected { opacity: 0.45; }
.cart-precheck-cand-btn.qualified { border-color: #1f8b4c; }

/* Precheck modal */
.precheck-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.precheck-modal.open { display: flex; }
.precheck-modal-content {
  position: relative;
  width: min(92vw, 900px);
  max-height: 90vh;
  background: #111;
  padding: 16px 16px 12px;
}
.precheck-modal-close {
  position: absolute;
  right: 8px;
  top: 2px;
  color: #fff;
  font-size: 1.8rem;
}
#precheckModalImg {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
}
.precheck-modal-title {
  color: #ddd;
  font-size: 0.72rem;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.precheck-modal-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 2px;
}
.precheck-strip-btn {
  border: 1px solid #444;
  background: #1b1b1b;
  color: #aaa;
  padding: 2px;
  width: 66px;
  flex-shrink: 0;
}
.precheck-strip-btn img {
  width: 100%;
  height: 66px;
  object-fit: cover;
}
.precheck-strip-btn span {
  display: block;
  font-size: 0.58rem;
}
.precheck-strip-btn.active {
  border-color: #fff;
  color: #fff;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  z-index: 400;
  transition: transform 0.3s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .header-nav { display: none; }
  .hero h1 { font-size: 2rem; }
  .brand-grid { padding: 0 16px 60px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-card { padding: 24px 16px; }
  .brand-logo { width: 120px; max-height: 40px; }
  .brand-page { flex-direction: column; }
  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar-brand { width: 100%; margin-bottom: 12px; padding-bottom: 12px; }
  .sidebar-section { margin-bottom: 0; }
  .sidebar-section-title { display: none; }
  .filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.72rem;
  }
  .filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
  .products-section { padding: 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .modal-content { flex-direction: column; }
  .modal-info { padding: 28px 24px; }
  .search-results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   USER / LOGIN
   ================================================================ */
.user-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
  margin-left: 4px;
}
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 50%, #1a1a1a 100%);
}
.login-card {
  background: #fff;
  padding: 48px 40px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
}
.login-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.login-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.login-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-item {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.login-item:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

/* Search view-all link */
.search-view-all {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.search-view-all:hover { background: #f5f5f0; }

/* Search results page */
.search-page {
  max-width: 1340px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}
.search-page-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.search-page-header .section-title { margin: 0; }
.search-page-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}
