*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f3ef; --surface: #fff; --border: rgba(0,0,0,0.08);
  --text: #1a1916; --muted: #6b6860; --accent: #2d6a4f;
  --shopee: #f97316;
}
body { background: var(--bg); font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); line-height: 1.5; padding-bottom: 40px; }

/* HEADER */
.header { background: var(--surface); padding: 14px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; gap: 12px; }
.header-left { display: flex; align-items: center; gap: 15px; }
.btn-back { font-size: 20px; color: var(--text); text-decoration: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); transition: background 0.2s; }
.btn-back:hover { background: #e8e6e2; }
.header-title { font-size: 18px; font-weight: 800; color: var(--accent); }
.header-search { display: flex; flex: 1; max-width: 400px; position: relative; }
.header-search input { width: 100%; padding: 8px 16px 8px 36px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); font-family: inherit; font-size: 13px; outline: none; transition: all 0.2s; }
.header-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.header-search::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.btn-post-ad { background: var(--shopee); color: white; border: none; padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(249,115,22,0.25); text-decoration: none; transition: transform 0.1s; }
.btn-post-ad:active { transform: scale(0.97); }

/* HERO HERO PORTAL */
.hero-banner { background: linear-gradient(135deg, #2d6a4f 0%, #1d4d39 100%); color: white; padding: 32px 20px; text-align: center; position: relative; overflow: hidden; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.hero-banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%); }
.hero-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.hero-desc { font-size: 13px; color: #d0ede3; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* CONTAINER & FILTER */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.fchip { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: all 0.15s; }
.fchip:hover { border-color: #ccc; color: var(--text); }
.fchip.active { background: var(--accent); color: white; border-color: var(--accent); }

/* PRODUCT GRID & CARDS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border-radius: 20px; border: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; box-shadow: 0 2px 12px rgba(0,0,0,0.02); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(45,106,79,0.08); border-color: rgba(45,106,79,0.15); }
.pcard-img-wrap { width: 100%; aspect-ratio: 1/1; background: #f8fafc; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pcard-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s ease; }
.pcard-img-wrap img.loaded { opacity: 1; }
.pcard-no-img { font-size: 40px; color: rgba(0,0,0,0.15); user-select: none; }
.pcard-badge { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.06); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pcard-content { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.pcard-title { font-size: 13.5px; font-weight: 600; color: #0f172a; line-height: 1.45; height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.pcard-price-egp { font-size: 16px; font-weight: 800; color: var(--shopee); margin-bottom: 2px; letter-spacing: -0.2px; }
.pcard-price-idr { font-size: 11px; color: #64748b; font-weight: 600; margin-bottom: 12px; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: #475569; margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.pcard-loc { font-weight: 700; display: inline-flex; align-items: center; gap: 3px; color: var(--accent); background: #edf7f3; padding: 2px 8px; border-radius: 6px; }
.pcard-seller { font-weight: 600; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.pcard-btn-chat { width: 100%; background: #f8fafc; color: #334155; border: none; padding: 11px; font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: all 0.2s ease; }
.pcard-btn-chat:hover { background: #f1f5f9; color: #16a34a; }
.pcard-btn-chat i { font-size: 14px; color: #16a34a; }

/* MODAL */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,15,12,0.55); display: none; align-items: flex-end; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); transition: all 0.3s ease; }
.modal-backdrop.show { display: flex; }
.modal-content { background: var(--surface); border-radius: 24px 24px 0 0; width: 100%; max-width: 520px; max-height: calc(100vh - 10px); overflow-y: auto; padding: 8px 24px 32px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.15); animation: slideUp 0.35s cubic-bezier(.32,.72,0,1) both; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-bar { width: 36px; height: 4px; border-radius: 99px; background: rgba(0,0,0,0.12); margin: 8px auto 16px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; position: absolute; top: 20px; right: 20px; color: var(--muted); }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-family: inherit; font-size: 13px; color: var(--text); transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--accent); background: var(--surface); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1em; }
textarea.form-control { resize: vertical; min-height: 70px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }
.btn-submit { width: 100%; padding: 12px; background: var(--shopee); color: white; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(249,115,22,0.25); margin-top: 12px; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-cancel { width: 100%; padding: 10px; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 8px; text-align: center; display: block; text-decoration: none; }

/* OPTIMIZE CARD / LOADING */
.shimmer { background: linear-gradient(90deg, #ece9e4 25%, #f5f3ef 50%, #ece9e4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.compress-overlay { display: none; margin-top: 10px; padding: 10px; background: rgba(45,106,79,0.1); border-radius: 8px; font-size: 12px; color: var(--accent); text-align: center; }
.compress-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #e3e3e3; border-top: 2px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: 20px; border: 1px solid var(--border); margin-top: 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.empty-desc { font-size: 12px; color: var(--muted); }

/* MOBILE RESPONSIVE MODAL */
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
  .modal-content { border-radius: 24px; margin: 0 auto; max-height: 85vh; }
}

/* PRODUCT DETAIL VIEW */
.detail-modal-content {
  max-width: 800px;
}
.detail-layout {
  display: flex;
  gap: 24px;
  margin-top: 15px;
  flex-direction: column;
}
.detail-img-container {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.detail-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.detail-img-container img.loaded {
  display: block;
}
.detail-no-img {
  font-size: 80px;
  color: rgba(0,0,0,0.15);
  display: none;
}
.detail-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.detail-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.detail-price-egp {
  font-size: 24px;
  font-weight: 800;
  color: var(--shopee);
  margin-bottom: 4px;
}
.detail-price-idr {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.detail-meta-box {
  background: var(--bg);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.detail-meta-item {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-desc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}
.detail-desc-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  white-space: pre-line;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}
.detail-specs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  padding-bottom: 6px;
}
.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-label {
  color: var(--muted);
  font-weight: 600;
}
.spec-value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.detail-actions > * {
  flex: 1;
  min-width: 150px;
}

@media (min-width: 640px) {
  .detail-layout {
    flex-direction: row;
  }
  .detail-img-container {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(26, 25, 22, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  max-width: 90vw;
  width: max-content;
  pointer-events: none;
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .toast {
    bottom: 80px; /* Lift above the mobile floating footer */
    font-size: 12px;
    padding: 10px 16px;
  }
}

/* HEADER CART BUTTON */
.btn-cart {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
}
.btn-cart:hover {
  background: #e8e6e2;
  border-color: #ccc;
  transform: scale(1.05);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 5px rgba(239,68,68,0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.pulse {
  animation: badgePulse 0.3s ease-out;
}
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* CARD CART BUTTON */
.pcard-btn-cart {
  padding: 10px;
  background: #f8fafc;
  color: #64748b;
  border: none;
  cursor: pointer;
  border-left: 1px solid var(--border);
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.pcard-btn-cart:hover {
  background: #f1f5f9;
  color: var(--shopee);
}
.pcard-btn-cart.in-cart {
  background: #ecfdf5;
  color: #10b981;
}
.pcard-btn-cart.in-cart:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* CART DRAWER MODAL */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,15,12,0.55);
  display: none;
  justify-content: flex-end;
  z-index: 1050;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.show {
  display: flex;
  opacity: 1;
}
.cart-drawer-content {
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-backdrop.show .cart-drawer-content {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}
.cart-drawer-close:hover {
  color: #ef4444;
}

.cart-drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  text-align: center;
  gap: 8px;
}
.cart-empty-icon {
  font-size: 40px;
}
.cart-empty-text {
  font-size: 13px;
  font-weight: 600;
}

/* CART ITEM */
.cart-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px;
  position: relative;
  transition: transform 0.2s;
}
.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eae7e2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
}
.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--shopee);
  margin-bottom: 1px;
}
.cart-item-idr {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.cart-item-seller {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}
.cart-item-remove {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
  padding: 4px;
  border-radius: 6px;
}
.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.08);
}
.cart-item-wa {
  background: #eef7f3;
  color: var(--accent);
  border: 1px solid rgba(45,106,79,0.15);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}
.cart-item-wa:hover {
  background: #d0ede3;
}

/* CART FOOTER */
.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.cart-total-label {
  font-weight: 600;
  color: var(--muted);
}
.cart-total-egp {
  font-size: 16px;
  font-weight: 800;
  color: var(--shopee);
}
.cart-total-idr {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.cart-footer-actions {
  display: flex;
  gap: 10px;
}
.btn-clear-cart {
  flex: 1;
  padding: 10px;
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-clear-cart:hover {
  background: #fecaca;
}
.btn-close-drawer {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-close-drawer:hover {
  background: #f5f3ef;
}

/* Responsive adjustment for Mobile Cart Drawer, Grid & Floating Footer */
.mobile-floating-footer {
  display: none;
}

@media (max-width: 640px) {
  body {
    padding-bottom: 80px; /* Space so content isn't covered by floating footer */
  }

  .header .header-actions {
    display: none !important;
  }

  .mobile-floating-footer {
    display: flex;
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 360px; /* Keeps it compact on wider screens */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 6px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
  }

  .mobile-floating-footer .btn-post-ad {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    margin: 0;
    padding: 0 12px;
  }

  .mobile-floating-footer .btn-cart {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin: 0;
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pcard-content {
    padding: 10px;
  }
  .pcard-title {
    font-size: 12px;
    height: 34px;
    margin-bottom: 6px;
  }
  .pcard-price-egp {
    font-size: 14px;
  }
  .pcard-meta {
    font-size: 10px;
    padding-top: 6px;
  }
  .pcard-seller {
    max-width: 60px;
  }
  .cart-drawer-content {
    max-width: 100%;
    transform: translateY(100%);
  }
  .cart-drawer-backdrop.show .cart-drawer-content {
    transform: translateY(0);
  }
  
  /* Compact Search & Sort Row on Mobile */
  .pasar-search-wrap {
    flex-direction: row !important;
    gap: 6px !important;
    margin-top: 2px !important;
    margin-bottom: 10px !important;
  }
  .pasar-search-control input {
    padding: 8px 12px 8px 30px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .pasar-search-control::before {
    left: 10px !important;
    font-size: 12px !important;
  }
  .pasar-sort-control {
    width: 110px !important;
    flex-shrink: 0 !important;
  }
  .form-control-sort {
    padding: 8px 20px 8px 6px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    background-position: right 0.4rem center !important;
  }
}

/* MAIN SEARCH BAR ABOVE CATEGORIES */
.pasar-search-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 640px) {
  .pasar-search-wrap {
    flex-direction: row;
    gap: 12px;
  }
}
.pasar-search-control {
  position: relative;
  flex: 1;
}
.pasar-search-control input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.pasar-search-control input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.08), 0 0 0 3px rgba(45, 106, 79, 0.04);
}
.pasar-search-control::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}
.pasar-sort-control {
  position: relative;
  width: 100%;
}
@media (min-width: 640px) {
  .pasar-sort-control {
    width: 220px;
  }
}
.form-control-sort {
  width: 100%;
  padding: 12px 32px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  cursor: pointer;
}
.form-control-sort:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.08), 0 0 0 3px rgba(45, 106, 79, 0.04);
}

/* LOAD MORE BUTTON */
.btn-load-more {
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.btn-load-more:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.1);
}
.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


