/* ═══════════════════════════════════════════════════════════════
   SHOP PAGE — /cua-hang/
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────── */
.shop-hero {
  background: linear-gradient(135deg, #FDF8F4 0%, #FEF0F2 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 32px;
}
.shop-hero-inner {
  display: flex; align-items: center; gap: 32px;
  justify-content: space-between;
}
.shop-hero-text { flex: 1; max-width: 580px; }
.shop-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose-bg); color: var(--rose-d);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 14px;
}
.shop-hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800; color: var(--brown); line-height: 1.2;
  margin-bottom: 14px;
}
.shop-hero-desc {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 24px;
}

/* Search bar */
.shop-search-bar { max-width: 500px; }
.shop-search-form {
  display: flex; align-items: center; gap: 0;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-s); transition: border-color .2s;
}
.shop-search-form:focus-within { border-color: var(--rose); }
.search-icon { padding: 0 12px; font-size: 16px; flex-shrink: 0; }
.shop-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 12px 0; font-size: 14px; color: var(--text);
  font-family: 'Be Vietnam Pro', sans-serif;
}
.shop-search-input::placeholder { color: var(--muted); }
.shop-search-clear {
  padding: 0 10px; color: var(--muted); font-size: 14px;
  text-decoration: none; flex-shrink: 0; transition: color .15s;
}
.shop-search-clear:hover { color: var(--rose-d); }
.shop-search-btn {
  background: var(--rose-d); color: var(--white);
  border: none; padding: 12px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .18s;
  font-family: 'Be Vietnam Pro', sans-serif;
}
.shop-search-btn:hover { background: #C0506A; }

/* Hero image area */
.shop-hero-img { display: none; }
@media (min-width: 900px) { .shop-hero-img { display: flex; flex-shrink: 0; } }
.shop-hero-blob {
  width: 280px; height: 280px; position: relative;
  background: linear-gradient(135deg, #FEEAEE 0%, #FAD4DC 100%);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  display: flex; align-items: center; justify-content: center;
}
.shop-blob-emoji { font-size: 80px; }
.shop-stat-card {
  position: absolute; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 14px; font-size: 13px; box-shadow: var(--shadow-m);
  white-space: nowrap;
}
.shop-stat-card strong { color: var(--rose-d); }
.shop-stat-1 { top: 30px; left: -60px; }
.shop-stat-2 { bottom: 40px; right: -40px; }

/* ── CATEGORY TABS ─────────────────────────────────────────────── */
.shop-cats-wrap {
  margin: 24px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-cats-wrap::-webkit-scrollbar { display: none; }
.shop-cats {
  display: flex; gap: 8px; padding-bottom: 4px;
  width: max-content; min-width: 100%;
}
.shop-cat-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 24px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
  transition: all .18s; cursor: pointer;
}
.shop-cat-chip:hover { border-color: var(--rose); color: var(--rose-d); background: var(--rose-bg); }
.shop-cat-chip.active { background: var(--rose-d); border-color: var(--rose-d); color: var(--white); }
.shop-cat-chip.active .chip-count { background: rgba(255,255,255,.25); }
.chip-count {
  background: var(--light); color: var(--muted);
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
}

/* ── LAYOUT ────────────────────────────────────────────────────── */
.shop-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding: 24px 0 60px; align-items: start;
}
@media (min-width: 1000px) {
  .shop-layout { grid-template-columns: 240px 1fr; }
}

/* ── SIDEBAR ───────────────────────────────────────────────────── */
.shop-sidebar { display: none; }
@media (min-width: 1000px) {
  .shop-sidebar {
    display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: 86px;
  }
}

.sidebar-filter-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.filter-title {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 14px; color: var(--brown); margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.filter-options { display: flex; flex-direction: column; gap: 4px; }
.filter-radio { display: block; }
.filter-radio input[type=radio] { display: none; }
.filter-radio a, .filter-radio label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 9px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  cursor: pointer; transition: all .15s;
}
.filter-radio a:hover, .filter-radio label:hover { background: var(--rose-bg); color: var(--rose-d); }
.filter-radio a.active, .filter-radio input:checked + span { color: var(--rose-d); font-weight: 600; background: var(--rose-bg); }
.cat-count { font-size: 11px; color: var(--muted); }

.shop-trust-card {
  background: linear-gradient(135deg, var(--sage-bg), #D4EDD7);
  border: 1px solid #B5D9B8; border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.trust-item {
  font-size: 13px; color: var(--sage-d); font-weight: 600; line-height: 1.5;
}

/* ── TOOLBAR ───────────────────────────────────────────────────── */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.shop-toolbar-count { font-size: 14px; color: var(--muted); }
.shop-toolbar-count strong { color: var(--brown); }
.shop-toolbar-count span { font-weight: 600; color: var(--brown); }
.sort-select {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--white); font-size: 13px; font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text); cursor: pointer; outline: none;
  transition: border-color .18s;
}
.sort-select:focus { border-color: var(--rose); }

/* ── PRODUCT GRID ──────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── PRODUCT CARD ──────────────────────────────────────────────── */
.shop-product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.shop-product-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
}
.product-card-inner {
  text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1;
}

/* Product image */
.product-img-wrap {
  position: relative; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cream), #F0E8F0);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.shop-product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* Badges */
.product-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 4px 9px;
  border-radius: 20px; z-index: 1;
}
.badge-pick { background: #FFF3CD; color: #92600A; }
.badge-sale { background: #FFE5E8; color: var(--rose-d); }
.badge-new  { background: var(--sage-bg); color: var(--sage-d); }

/* Product info */
.product-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-cat { font-size: 10px; font-weight: 700; color: var(--sage-d); text-transform: uppercase; letter-spacing: .4px; }
.product-name {
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--brown); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-rating {
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
}
.product-rating .stars { color: #F5A623; font-size: 12px; letter-spacing: 1px; }
.rating-val { font-size: 12px; font-weight: 700; color: var(--brown); }
.rating-cnt { font-size: 11px; color: var(--muted); }
.product-footer { margin-top: auto; padding-top: 8px; }
.product-price { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: var(--rose-d); }
.product-price del { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Buy button */
.product-buy-btn {
  display: block; text-align: center;
  padding: 11px 16px; margin: 0 14px 14px;
  border-radius: 12px; background: var(--rose-d); color: var(--white);
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background .18s; white-space: nowrap;
}
.product-buy-btn:hover { background: #C0506A; }

/* ── PAGINATION ────────────────────────────────────────────────── */
.shop-pagination { margin-top: 32px; }
.shop-pagination .page-numbers {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0;
  list-style: none;
}
.shop-pagination .page-numbers li { list-style: none; }
.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .18s;
}
.shop-pagination .page-numbers a:hover { background: var(--rose-bg); border-color: var(--rose); color: var(--rose-d); }
.shop-pagination .page-numbers .current { background: var(--rose-d); border-color: var(--rose-d); color: var(--white); }
.shop-pagination .page-numbers .prev,
.shop-pagination .page-numbers .next { width: auto; padding: 0 16px; }

/* ── EMPTY STATE ───────────────────────────────────────────────── */
.shop-empty {
  text-align: center; padding: 60px 20px;
  background: var(--white); border-radius: 20px; border: 1px solid var(--border);
}
.empty-emoji { font-size: 64px; margin-bottom: 16px; }
.shop-empty h3 { font-family: 'Nunito', sans-serif; font-size: 22px; color: var(--brown); margin-bottom: 10px; }
.shop-empty p { color: var(--muted); margin-bottom: 24px; }
.btn-rose {
  display: inline-block; padding: 12px 24px; border-radius: 12px;
  background: var(--rose-d); color: var(--white);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: opacity .18s;
}
.btn-rose:hover { opacity: .85; }

/* ── TRUST ROW ─────────────────────────────────────────────────── */
.shop-bottom-section { padding: 40px 0; }
.shop-trust-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (min-width: 768px) { .shop-trust-row { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.trust-badge-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 16px; text-align: center;
}
.trust-icon { font-size: 28px; margin-bottom: 8px; }
.trust-label { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; color: var(--brown); margin-bottom: 4px; }
.trust-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── MOBILE FILTER FAB ─────────────────────────────────────────── */
.shop-filter-fab {
  display: flex; align-items: center; gap: 8px;
  position: fixed; bottom: 80px; right: 16px; z-index: 140;
  background: var(--brown); color: var(--white);
  padding: 12px 18px; border-radius: 30px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(61,35,20,.3);
  border: none; transition: transform .2s;
}
.shop-filter-fab:hover { transform: scale(1.04); }
@media (min-width: 1000px) { .shop-filter-fab { display: none; } }

/* ── BOTTOM SHEET (reuse from archive) ────────────────────────── */
.sheet-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(61,35,20,.45);
}
.sheet-overlay.open { display: block; }
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 301;
  background: var(--white); border-radius: 24px 24px 0 0;
  padding: 0 0 env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.32,0,.34,1);
  max-height: 85vh; display: flex; flex-direction: column;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 0; cursor: pointer; flex-shrink: 0;
}
.sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sheet-title { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: var(--brown); }
.sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--light); cursor: pointer; font-size: 14px; display: flex;
  align-items: center; justify-content: center; color: var(--muted);
}
.sheet-body { overflow-y: auto; padding: 16px 20px 24px; -webkit-overflow-scrolling: touch; }
.sheet-section { margin-bottom: 24px; }
.sheet-section-title {
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--brown); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px;
}
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.filter-chip.active { background: var(--rose-d); border-color: var(--rose-d); color: var(--white); }
.filter-chip:hover:not(.active) { border-color: var(--rose); color: var(--rose-d); background: var(--rose-bg); }

/* ── WooCommerce price overrides ───────────────────────────────── */
.shop-product-card .woocommerce-Price-amount { color: var(--rose-d); }
.shop-product-card del .woocommerce-Price-amount { color: var(--muted); }

/* ── Screen reader only ────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
