/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #F1641E;
  --orange-dark: #BC4B1A;
  --orange-light: #FDF0EA;
  --text: #222222;
  --text-muted: #595959;
  --text-light: #767676;
  --border: #D9D9D9;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --star: #E8A01C;
  --green: #2E7D32;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,.12);
  --shadow-md: 0 2px 10px rgba(0,0,0,.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; object-fit: cover; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-img { height: 72px; width: auto; display: block; }
.search-wrap { flex: 1; max-width: 680px; }
.search-form {
  display: flex; border: 2px solid var(--text); border-radius: 24px;
  overflow: hidden; transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--orange); }
.search-form input {
  flex: 1; padding: 9px 16px; border: none; outline: none;
  font-size: 14px; background: transparent;
}
.btn-search {
  padding: 8px 16px; border: none; background: var(--text); color: #fff;
  display: flex; align-items: center; transition: background .2s;
}
.btn-search:hover { background: var(--orange); }
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 12px; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-label { font-size: 11px; }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: 0; right: 4px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.msg-nav-link { position: relative; }
.msg-badge {
  position: absolute; top: 0; right: -2px;
  background: #e53935; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.nav-link--outline {
  border: 1px solid var(--text); border-radius: 24px;
  padding: 6px 16px; font-size: 14px; font-weight: 500;
}
.nav-link--outline:hover { background: var(--bg-alt); text-decoration: none; }

/* ── Category Nav ────────────────────────────────────────────────────────── */
.cat-nav-wrap {
  border-bottom: 1px solid var(--border); background: var(--bg);
  overflow-x: auto; scrollbar-width: none;
}
.cat-nav-wrap::-webkit-scrollbar { display: none; }
.cat-nav {
  max-width: 1280px; margin: 0 auto; padding: 10px 20px;
  display: flex; gap: 8px; flex-wrap: nowrap;
}
.cat-pill {
  padding: 6px 16px; border-radius: 24px; border: 1px solid var(--border);
  background: var(--bg); font-size: 13px; white-space: nowrap;
  cursor: pointer; transition: all .15s;
}
.cat-pill:hover { border-color: var(--text); background: var(--bg-alt); }
.cat-pill.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(135deg, rgba(45,80,22,.72) 0%, rgba(74,124,35,.58) 40%, rgba(241,100,30,.68) 100%),
    url('../images/hero/br-summer.png') center / cover no-repeat;
  color: #fff; padding: 56px 20px 48px;
  text-align: center;
}
.hero-eyebrow { font-size: 14px; opacity: .85; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.hero-title { font-size: clamp(28px, 5vw, 52px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.hero-sub { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.hero-badge {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px; padding: 6px 16px; font-size: 13px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 24px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); text-decoration: none; }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--bg-alt); text-decoration: none; }
.btn--sm { padding: 5px 12px; font-size: 12px; }
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 32px; }
.btn--full { width: 100%; }
.btn--icon { padding: 10px; border-radius: 50%; }

/* ── Main Layout ─────────────────────────────────────────────────────────── */
.main-layout {
  max-width: 1280px; margin: 0 auto; padding: 24px 20px;
  display: grid; grid-template-columns: 240px 1fr; gap: 28px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { }
.sidebar-section {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
}
.sidebar-section h3 { font-size: 15px; margin-bottom: 16px; }
.filter-group { margin-bottom: 18px; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; display: block; }
.price-range { display: flex; align-items: center; gap: 6px; }
.price-range input {
  width: 0; flex: 1; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px;
}
.star-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.star-btn {
  padding: 4px 10px; border-radius: 24px; border: 1px solid var(--border);
  font-size: 12px; background: var(--bg); cursor: pointer;
}
.star-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.toggle-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.toggle-label input { display: none; }
.toggle-switch {
  width: 36px; height: 20px; background: var(--border); border-radius: 10px;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.toggle-label input:checked + .toggle-switch { background: var(--orange); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(16px); }

/* Featured seller cards in sidebar */
.sidebar-seller-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  text-decoration: none;
}
.sidebar-seller-card:last-child { border-bottom: none; }
.sidebar-seller-card:hover { text-decoration: none; }
.sidebar-seller-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--bg-alt);
}
.sidebar-seller-name { font-size: 13px; font-weight: 600; }
.sidebar-seller-loc { font-size: 11px; color: var(--text-muted); }

/* ── Results Bar ─────────────────────────────────────────────────────────── */
.results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.results-bar select {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; background: var(--bg);
}

/* ── Product Grid ────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Product Card ────────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-image-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .card-img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 24px;
}
.card-badge--green { background: var(--green); }
.card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  opacity: 0;
}
.product-card:hover .card-fav { opacity: 1; }
.card-fav:hover { background: #fff; }
.card-fav.active svg { fill: var(--orange); stroke: var(--orange); }

.card-body { padding: 10px 12px 14px; }
.card-seller-name { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.35; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.card-rating .stars { color: var(--star); }
.card-price { font-size: 15px; font-weight: 700; }
.card-original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.card-shipping { font-size: 11px; color: var(--green); margin-top: 3px; }

/* ── Load More ───────────────────────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 32px; }

/* ── Sellers Section ─────────────────────────────────────────────────────── */
.sellers-section {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 40px 0;
  margin-top: 40px;
}
.section-header {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.section-header h2 { font-size: 22px; font-weight: 700; }
.see-all { font-size: 13px; color: var(--orange); font-weight: 600; }
.see-all:hover { text-decoration: underline; }
.sellers-strip {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.seller-strip-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 20px; text-align: center; cursor: pointer;
  border: 1px solid var(--border); transition: box-shadow .2s;
  text-decoration: none; display: block; color: inherit;
}
.seller-strip-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.seller-strip-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px; background: var(--bg-alt);
  border: 3px solid var(--orange-light);
}
.seller-strip-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.seller-strip-loc { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.seller-strip-rating { font-size: 12px; color: var(--star); }
.seller-strip-sales { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
}
.footer-brand .logo-icon { font-size: 32px; margin-bottom: 8px; }
.footer-brand strong { font-size: 20px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 20px;
  text-align: center; font-size: 12px; color: var(--text-muted);
}

/* ── Seller Profile Page ─────────────────────────────────────────────────── */
.seller-banner { height: 180px; background: linear-gradient(135deg, #2d5016, #F1641E); }
.seller-info-wrap {
  max-width: 1280px; margin: -48px auto 0; padding: 0 20px 24px;
  display: flex; align-items: flex-start; gap: 20px;
}
.seller-avatar-lg {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 4px solid #fff; flex-shrink: 0;
  background: var(--bg-alt); margin-top: 8px;
}
.seller-info { padding-top: 52px; }
.seller-shop-name { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.seller-location { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.seller-stats { display: flex; gap: 20px; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.seller-stats span strong { display: block; font-size: 20px; font-weight: 700; }
.seller-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  padding: 3px 10px; border-radius: 24px; font-size: 12px; font-weight: 500;
  background: var(--orange-light); color: var(--orange-dark);
}
.seller-desc { font-size: 14px; color: var(--text-muted); max-width: 600px; margin-bottom: 16px; }

/* ── Product Detail Page ─────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text-muted); padding: 16px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.product-detail {
  max-width: 1280px; margin: 0 auto; padding: 0 20px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.gallery-col { position: sticky; top: 80px; align-self: flex-start; }
.gallery-main {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-alt); margin-bottom: 12px;
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; background: rgba(255,255,255,.9);
  border: none; border-radius: 50%; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.gallery-arrow--prev { left: 10px; }
.gallery-arrow--next { right: 10px; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover;
  cursor: pointer; border: 2px solid transparent; background: var(--bg-alt);
}
.gallery-thumb.active { border-color: var(--orange); }
.info-col { padding-top: 8px; }
.product-category-tag { font-size: 12px; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-title { font-size: 26px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.product-rating-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.product-rating-row .stars { color: var(--star); font-size: 16px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price { font-size: 28px; font-weight: 700; }
.product-original-price { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.product-discount { font-size: 14px; color: var(--green); font-weight: 600; }
.product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.product-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.product-meta span strong { color: var(--text); }
.product-desc { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 20px; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tag {
  padding: 4px 12px; border-radius: 24px; background: var(--bg-alt);
  border: 1px solid var(--border); font-size: 12px; color: var(--text-muted);
}
.product-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.qty-wrap {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
}
.qty-wrap button { padding: 8px 14px; border: none; background: transparent; font-size: 18px; }
.qty-wrap button:hover { background: var(--bg-alt); }
.qty-wrap input { width: 44px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 8px 4px; font-size: 15px; font-weight: 600; }
.product-guarantees { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.guarantee-item { display: flex; align-items: center; gap: 4px; }

/* Seller card on product page */
.seller-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-top: 28px; display: flex; gap: 14px; align-items: center;
  text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.seller-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.seller-card-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.seller-card-name { font-size: 15px; font-weight: 600; }
.seller-card-sub { font-size: 13px; color: var(--text-muted); }
.seller-card-arrow { color: var(--text-muted); font-size: 20px; }
.seller-card-chat {
  margin-left: auto; margin-right: 4px; border: none; background: none; cursor: pointer;
  color: var(--text-muted); padding: 6px; border-radius: 50%;
  display: flex; align-items: center; transition: color .15s, background .15s;
}
.seller-card-chat:hover { color: var(--orange); background: var(--orange-light); }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.reviews-summary {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 24px; padding: 20px; background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.reviews-big-num { font-size: 56px; font-weight: 700; line-height: 1; }
.reviews-stars-col { display: flex; flex-direction: column; gap: 4px; }
.stars-lg { color: var(--star); font-size: 22px; }
.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); object-fit: cover; }
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--star); font-size: 14px; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--text); }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.stars { letter-spacing: 1px; }
.img-placeholder { background: linear-gradient(135deg, #e8f5e9, #fff3e0); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.out-of-stock { opacity: .5; pointer-events: none; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 24px;
  border-radius: 24px; font-size: 14px; z-index: 999;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(16px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ── Sell page ───────────────────────────────────────────────────────────── */
.sell-hero {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c23 50%, #F1641E 100%);
  color: #fff; padding: 72px 40px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  text-align: left;
}
.sell-hero-content { max-width: 600px; }
.sell-hero-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; opacity: .8; margin-bottom: 14px; }
.sell-hero-title { font-size: clamp(32px,5vw,52px); font-weight: 800; line-height: 1.1; margin-bottom: 18px; }
.sell-hero-sub { font-size: 17px; opacity: .9; line-height: 1.65; margin-bottom: 32px; max-width: 520px; }
.sell-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sell-hero-img { font-size: 120px; flex-shrink: 0; display: none; }
.sell-stats {
  display: flex; justify-content: center; gap: 0;
  background: var(--text); color: #fff;
}
.sell-stat {
  flex: 1; max-width: 200px; text-align: center; padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.sell-stat:last-child { border-right: none; }
.sell-stat strong { display: block; font-size: 32px; font-weight: 800; color: var(--orange); }
.sell-stat span { font-size: 13px; opacity: .7; }
.sell-section { padding: 64px 0; }
.sell-section--alt { background: var(--bg-alt); }
.sell-section-title { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 48px; }
.sell-steps {
  display: flex; align-items: flex-start; gap: 0;
  max-width: 900px; margin: 0 auto;
}
.sell-step { flex: 1; text-align: center; padding: 0 24px; }
.sell-step-icon { font-size: 48px; margin-bottom: 16px; }
.sell-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sell-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.sell-step-arrow { font-size: 28px; color: var(--border); padding-top: 24px; flex-shrink: 0; }
.sell-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 960px; margin: 0 auto;
}
.sell-benefit { display: flex; gap: 16px; align-items: flex-start; }
.sell-benefit-icon { font-size: 28px; flex-shrink: 0; }
.sell-benefit h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.sell-benefit p { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.sell-cta-section {
  background: var(--orange); color: #fff; padding: 64px 20px; text-align: center;
}
.sell-cta-inner h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.sell-cta-inner p  { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.sell-cta-section .btn--primary { background: #fff; color: var(--orange-dark); }
.sell-cta-section .btn--primary:hover { background: var(--orange-light); }
@media (max-width: 768px) {
  .sell-hero { padding: 48px 20px; text-align: center; }
  .sell-hero-actions { justify-content: center; }
  .sell-stats { flex-wrap: wrap; }
  .sell-steps { flex-direction: column; align-items: center; }
  .sell-step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .sell-benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sell-benefits { grid-template-columns: 1fr; }
}

/* ── Checkout – Shopify style ─────────────────────────────────────────────── */
.checkout-body { background: var(--bg-alt); }
.co-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; background: var(--bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.co-back { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.co-back:hover { color: var(--text); }
.co-page {
  display: grid; grid-template-columns: 1fr 380px;
  max-width: 1100px; margin: 0 auto; min-height: calc(100vh - 57px);
}
.co-form {
  padding: 40px 48px 80px 40px; background: var(--bg);
  border-right: 1px solid var(--border);
}
/* Sections */
.co-section {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px; overflow: hidden; background: var(--bg);
}
.co-section[data-state="pending"] { opacity: .5; pointer-events: none; }
.co-section[data-state="active"]  { border-color: var(--orange); }
.co-section-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
}
.co-section[data-state="active"] .co-section-head { padding-bottom: 0; }
.co-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--bg-alt); border: 2px solid var(--border); color: var(--text-muted);
}
.co-section[data-state="active"]    .co-num { background: var(--orange); color: #fff; border-color: var(--orange); }
.co-section[data-state="completed"] .co-num { background: var(--green);  color: #fff; border-color: var(--green); }
.co-section-title-wrap { flex: 1; }
.co-section-title-wrap h2 { font-size: 16px; font-weight: 700; margin: 0; }
.co-section-summary { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }
.co-edit-btn {
  font-size: 13px; color: var(--orange); background: none; border: none;
  cursor: pointer; font-weight: 600; padding: 0;
}
.co-edit-btn:hover { text-decoration: underline; }
.co-section-body { padding: 16px 20px 20px; }
/* Form fields */
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.form-field input, .form-field select {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; outline: none; width: 100%; background: var(--bg);
  appearance: none; -webkit-appearance: none;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; cursor: pointer; }
.form-field input:focus, .form-field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,100,30,.1); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-error { color: #c62828; font-size: 13px; min-height: 16px; margin-bottom: 8px; }
/* Delivery options */
.delivery-options { display: flex; flex-direction: column; gap: 10px; }
.delivery-option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s;
}
.delivery-option:has(input:checked), .delivery-option.selected { border-color: var(--orange); background: var(--orange-light); }
.delivery-mixed-group { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.delivery-group-header { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.delivery-mixed-group + .delivery-mixed-group { margin-top: 12px; }
.delivery-option input[type="radio"] { margin-top: 2px; accent-color: var(--orange); }
.delivery-option-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.delivery-price { font-weight: 700; }
.delivery-option-desc { font-size: 13px; color: var(--text-muted); margin: 0; }
/* Payment */
.payment-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pay-tab {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 2px solid var(--border); border-radius: 24px; background: var(--bg);
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.pay-tab:hover { border-color: var(--text); }
.pay-tab.active { border-color: var(--orange); background: var(--orange-light); color: var(--orange-dark); font-weight: 600; }
.card-input-wrap { position: relative; }
.card-input-wrap input { padding-right: 120px; }
.card-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-muted); }
.accepted-cards { display: flex; gap: 8px; margin-top: 8px; }
.card-logo { padding: 3px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.card-logo.visa { color: #1a1f71; } .card-logo.mc { color: #eb001b; }
.alt-pay-info { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.co-pay-btn { font-size: 16px; margin-top: 20px; display: flex; justify-content: space-between; padding: 14px 20px; border-radius: 8px; }
.co-secure-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
/* Right panel */
.co-summary-panel { background: var(--bg-alt); padding: 40px 32px; }
.co-summary-inner { position: sticky; top: 80px; }
.co-summary-items { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.co-summary-item {
  display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px;
}
.co-summary-img-wrap {
  width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); position: relative; flex-shrink: 0;
}
.co-summary-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.co-summary-qty {
  position: absolute; top: -6px; right: -6px; background: var(--text-muted);
  color: #fff; border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.co-summary-name  { flex: 1; font-size: 13px; line-height: 1.3; }
.co-summary-price { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.co-summary-rows  { display: flex; flex-direction: column; gap: 2px; }
/* Processing */
.order-processing {
  text-align: center; padding: 80px 20px;
}
.processing-spinner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 5px solid var(--border);
  border-top-color: var(--orange);
  animation: spin .8s linear infinite;
  margin: 0 auto 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.order-processing h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.order-processing p  { color: var(--text-muted); font-size: 14px; }

/* Success */
.order-success { text-align: center; padding: 48px 20px; }
.success-icon  { font-size: 64px; margin-bottom: 16px; }
.order-success h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.success-order-num { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.success-msg   { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .co-page { grid-template-columns: 1fr; }
  .co-summary-panel { order: -1; border-bottom: 1px solid var(--border); padding: 24px; }
  .co-summary-inner { position: static; }
  .co-form { padding: 24px 20px 60px; border-right: none; }
  .co-header { padding: 12px 20px; }
}

/* ── Cart Page ───────────────────────────────────────────────────────────── */
.cart-page { padding: 32px 0 64px; }
.cart-page-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.cart-empty { text-align: center; padding: 64px 0; }
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty-text { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }
.cart-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; align-items: flex-start;
}
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.cart-item-img-wrap {
  width: 96px; height: 96px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-alt); cursor: pointer; flex-shrink: 0;
}
.cart-item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none; display: block; margin-bottom: 4px;
}
.cart-item-name:hover { color: var(--orange); text-decoration: underline; }
.cart-item-seller { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-seller a { color: var(--text-muted); }
.cart-item-seller a:hover { color: var(--orange); }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-total { font-size: 16px; font-weight: 700; }
.cart-remove-btn {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 4px; border-radius: var(--radius); transition: color .15s;
}
.cart-remove-btn:hover { color: #c62828; }
.cart-summary {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: 80px;
}
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
}
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 20px; border-top: 2px solid var(--border);
  margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--text);
}
@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr auto; }
  .cart-item-img-wrap { width: 80px; height: 80px; }
}

/* ── Chat widget – slides up from bottom-right ────────────────────────────── */
.msg-modal-overlay {
  position: fixed; bottom: 0; right: 24px; width: 340px; z-index: 600;
  display: flex; flex-direction: column;
  animation: chatSlideUp .22s cubic-bezier(.22,1,.36,1);
}
@keyframes chatSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.msg-modal {
  background: var(--bg); border-radius: 12px 12px 0 0; width: 100%;
  height: 420px; display: flex; flex-direction: column;
  box-shadow: 0 -4px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
}
.msg-modal-header {
  padding: 12px 16px; background: var(--orange); color: #fff;
  font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center;
  cursor: default;
}
.msg-modal-close {
  border: none; background: rgba(255,255,255,.2); color: #fff;
  width: 24px; height: 24px; border-radius: 50%; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.msg-modal-close:hover { background: rgba(255,255,255,.35); }
.msg-modal-messages {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; background: var(--bg-alt);
}
/* WhatsApp-style bubble rows (shared between full page + modal) */
.msg-row { display: flex; flex-direction: column; max-width: 75%; margin-bottom: 2px; }
.msg-row--mine   { align-self: flex-end;  align-items: flex-end; }
.msg-row--theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 8px 12px; border-radius: 18px; font-size: 13px; line-height: 1.5; word-break: break-word; }
.msg-bubble--mine   { background: #dcf8c6; color: #111; border-bottom-right-radius: 4px; }
.msg-bubble--theirs { background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.1); border-bottom-left-radius: 4px; }
.msg-bubble-meta { font-size: 10px; color: #999; margin-top: 2px; padding: 0 3px; }

.msg-modal-input { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); }
.msg-modal-input textarea {
  flex: 1; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; font-family: inherit; resize: none; outline: none;
  max-height: 80px;
}
.msg-modal-input textarea:focus { border-color: var(--orange); }
.msg-modal-input .btn { border-radius: 20px; padding: 7px 14px; font-size: 13px; }

/* ── Auth Modal ──────────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 500;
}
.auth-modal {
  background: var(--bg); border-radius: var(--radius-lg); padding: 36px 32px;
  width: 100%; max-width: 380px; position: relative; box-shadow: var(--shadow-md);
}
.auth-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 18px; color: var(--text-muted); cursor: pointer;
}
.auth-close:hover { color: var(--text); }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 22px; text-align: center; }
.auth-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.auth-field input {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 15px; outline: none;
}
.auth-field input:focus { border-color: var(--orange); }
.auth-error { color: #c0392b; font-size: 13px; min-height: 18px; margin-bottom: 10px; }
.auth-tabs {
  display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: none;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.auth-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px; color: var(--text-light); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-social { display: flex; flex-direction: column; gap: 8px; }
.auth-social-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: 14px; cursor: pointer; transition: background .15s;
}
.auth-social-btn:hover { background: var(--bg-alt); }
.auth-social-btn.active { border-color: var(--orange); }
.auth-social-msg {
  text-align: center; font-size: 13px; color: var(--orange);
  font-weight: 600; min-height: 20px; margin-top: 10px;
}

/* ── Profile Dropdown ────────────────────────────────────────────────────── */
.profile-menu {
  position: fixed; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  z-index: 300; min-width: 200px; overflow: hidden;
}
.profile-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 16px; font-size: 14px; color: var(--text);
  text-decoration: none; border: none; background: none; cursor: pointer;
  transition: background .15s;
}
.profile-menu-item:hover { background: var(--bg-alt); text-decoration: none; }
.profile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.profile-menu-signout { color: #c62828; }
.profile-menu-signout:hover { background: #fff5f5; }

/* ── Profile Page ────────────────────────────────────────────────────────── */
.profile-page-banner { height: 160px; background: linear-gradient(135deg, #2d5016, #F1641E); }
.profile-page-header {
  display: flex; align-items: center; gap: 20px;
  margin-top: -28px; padding-bottom: 20px;
}
.profile-page-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; flex-shrink: 0;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
}
.profile-page-name { font-size: 24px; font-weight: 700; margin: 0 0 3px; }
.profile-page-meta { font-size: 13px; color: var(--text-muted); margin: 0; }
.profile-stats {
  display: flex; gap: 32px;
  padding: 14px 0 18px; border-bottom: 1px solid var(--border);
}
.profile-stat { text-align: center; }
.profile-stat-num { display: block; font-size: 26px; font-weight: 700; }
.profile-stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.profile-empty { color: var(--text-muted); padding: 40px 0; font-size: 15px; }

/* ── Order Cards ─────────────────────────────────────────────────────────── */
.order-card {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.order-img-wrap {
  width: 100px; height: 100px; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-alt); cursor: pointer; flex-shrink: 0;
}
.order-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.order-product-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none; display: block; margin-bottom: 4px;
}
.order-product-name:hover { text-decoration: underline; color: var(--orange); }
.order-seller { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.order-seller a { color: var(--text-muted); }
.order-seller a:hover { color: var(--orange); }
.order-meta { font-size: 14px; margin-bottom: 4px; }
.order-date { font-size: 12px; color: var(--text-light); }
.order-badge {
  display: inline-block; padding: 5px 12px; border-radius: 24px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 640px) {
  .order-card { grid-template-columns: 72px 1fr; }
  .order-img-wrap { width: 72px; height: 72px; }
  .order-status { grid-column: 2; }
}

/* ── Language Switcher ───────────────────────────────────────────────────── */
.lang-selector { position: relative; }
.lang-btn {
  padding: 6px 12px; border-radius: 24px; border: 1px solid var(--border);
  background: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
}
.lang-btn:hover { border-color: var(--text); background: var(--bg-alt); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); z-index: 200; min-width: 160px; overflow: hidden;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%; padding: 9px 16px; text-align: left;
  border: none; background: transparent; font-size: 14px; cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-alt); }
.lang-menu button.active { font-weight: 700; color: var(--orange); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .gallery-col { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .search-wrap { order: 3; flex-basis: 100%; }
  .hero-title { font-size: 28px; }
  .sellers-strip { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .seller-info-wrap { flex-direction: column; align-items: flex-start; }
}
