/* ============================================
   SHOP PAGE — shop.css
   ============================================ */

/* ---- Shop Header Bar ---- */
.shop-header-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.shop-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.shop-title-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--dark);
}

/* Sort / Filter pill buttons */
.sort-filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sort-filter-btn i { font-size: 13px; }

.sort-filter-btn:hover,
.sort-filter-btn.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* ---- Shop list section ---- */
.shop-list-section { padding-top: 14px; }

/* ============================================
   OVERLAY
   ============================================ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
}
.drawer-overlay.open { display: block; }

/* ============================================
   SORT — inline bottom sheet (pill chips)
   ============================================ */
.sort-sheet {
  position: fixed;
  bottom: calc(var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 24px);
  max-width: 456px;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.18);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 14px 14px 14px 16px;
}

.sort-sheet.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.sort-sheet-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.sort-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sort-chip.active {
  background: #1a6fff;
  border-color: #1a6fff;
  color: #fff;
}

.sort-chip:hover:not(.active) {
  border-color: var(--dark);
}

.sort-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sort-close-btn:hover { background: var(--border); }

/* ============================================
   FILTER — full-screen two-panel
   ============================================ */
.filter-fullscreen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(100%) translateX(-50%);
  right: auto;
  bottom: 0;
  background: var(--bg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.filter-fullscreen.open {
  transform: translateX(0) translateX(-50%);
}

/* ---- Top bar ---- */
.filter-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  height: var(--header-h);
}

.filter-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s;
}

.filter-close-btn:hover { background: var(--border); }

.filter-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-topbar-title i { font-size: 16px; }

.filter-reset-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-reset-top:hover { background: var(--border); }

/* ---- Two-panel body ---- */
.filter-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* LEFT panel — category list */
.filter-left-panel {
  width: 120px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.filter-left-panel::-webkit-scrollbar { display: none; }

.flp-item {
  display: block;
  width: 100%;
  padding: 14px 12px 14px 16px;
  text-align: left;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
  word-break: break-word;
}

.flp-item:hover {
  background: rgba(255,255,255,0.7);
  color: var(--dark);
}

.flp-item.active {
  background: var(--bg);
  color: #1a6fff;
  font-weight: 700;
  border-left-color: #1a6fff;
}

/* RIGHT panel — options */
.filter-right-panel {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  background: var(--bg);
}

/* Step number badge */
.frp-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}

/* Search row */
.frp-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.frp-search-wrap {
  flex: 1;
  position: relative;
}

.frp-search-input {
  width: 100%;
  padding: 9px 34px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}

.frp-search-input:focus { border-color: #1a6fff; }

.frp-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Step 2 label row */
.frp-step-label {
  margin-bottom: 8px;
}

/* Checkbox list */
.frp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.frp-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.frp-check-item:last-child { border-bottom: none; }

/* Blue left accent bar on Sachet row */
.frp-divider-item {
  border-left: 3px solid #1a6fff;
  padding-left: 8px;
  margin-left: -16px;
  padding-right: 0;
}

.frp-check-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.frp-check-item input[type="checkbox"] { display: none; }

/* Custom checkbox */
.frp-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--bg);
}

.frp-check-item input[type="checkbox"]:checked + .frp-check-box {
  background: #1a6fff;
  border-color: #1a6fff;
}

.frp-check-item input[type="checkbox"]:checked + .frp-check-box::after {
  content: '';
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.frp-check-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frp-check-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
}

/* ---- Bottom bar ---- */
.filter-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.filter-items-found {
  font-size: 14px;
  color: var(--dark);
}

.filter-items-found strong { font-weight: 700; }

.btn-filter-apply {
  padding: 11px 32px;
  border-radius: 20px;
  background: #7ed321;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 10px rgba(126,211,33,0.4);
}

.btn-filter-apply:hover {
  background: #6ab81e;
  transform: scale(1.02);
}
