/* ==========================================================================
   Shoppy Game Keys — Search Page
   Design language matched to the homepage's "liquid glass" system:
   dark glass surfaces, blue gradient accent, spring/ease-out motion.
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --surface: #17171b;
  --surface-2: #1e1e23;

  --glass-bg: rgba(22, 22, 28, 0.55);
  --glass-bg-strong: rgba(13, 13, 18, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-dim: #a7a7ae;
  --text-faint: #707078;

  --accent: #3d82f2;
  --accent-bright: #4d92ff;
  --accent-deep: #2a5db0;
  --accent-glow: rgba(61, 130, 242, 0.35);
  --danger: #e35c5c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Apple-ish motion: smooth ease-out for most things, a soft spring for
     playful/interactive moments (matches the homepage bottom-nav bubble). */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  font-family: "Onest", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body, html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Site header (glass, sticky)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 20px;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
}

.site-header__logo img {
  height: 32px;
  transition: transform 0.3s var(--ease);
}

.site-header__logo:hover img {
  transform: scale(1.04);
}

.site-header__nav {
  flex: 1;
  display: flex;
  gap: 28px;
  justify-content: center;
}

.site-header__nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .3px;
  font-size: 13px;
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.site-header__nav a:hover {
  color: var(--text);
}

.site-header__nav a:hover::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.icon-btn:hover { color: var(--text); }

.site-header__user {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
}

.btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn--outline:active { transform: scale(0.96); }

#headerUserName {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
}

@media (max-width: 600px) {
  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 4px;
    height: auto;
  }
  .site-header__logo { order: 1; flex: 1 1 auto; }
  .site-header__actions { order: 1; flex: 0 1 auto; justify-content: flex-end; gap: 6px; }
  .site-header__nav {
    order: 2;
    flex: 1 1 100%;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--glass-border);
    padding-top: 6px;
  }
  .site-header__logo img { height: 24px; }
  .site-header__nav a { font-size: 11px; }
  .icon-btn { font-size: 16px; }
  .user-avatar { width: 22px; height: 22px; }
  .btn, .btn--outline { font-size: 11px; padding: 6px 12px; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 24px 20px;
  background: var(--surface);
  border-right: 1px solid var(--glass-border);
}

.sidebar .section { margin-bottom: 28px; }

.sidebar h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 14px;
}

.sidebar input[type="number"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.sidebar input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.main {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
}

/* ==========================================================================
   Search bar
   ========================================================================== */
.search-bar {
  width: 100%;
  max-width: 640px;
  padding: 15px 20px 15px 46px;
  font-size: 16px;
  color: var(--text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f6f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center,
    color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: all 0.3s var(--ease);
  box-sizing: border-box;
  user-select: text;
}

.search-bar::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.search-bar:focus {
  border-color: var(--accent);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d82f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center,
    color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.35),
    0 0 0 4px var(--accent-glow);
}

@media (max-width: 600px) {
  .search-bar { font-size: 16px; padding: 13px 16px 13px 42px; }
}

#searchResultText {
  font-size: 13px;
  color: var(--text-dim) !important;
  margin: 12px 0 !important;
}

/* Suggestions dropdown */
.search-suggestions,
#searchSuggestionBox {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 999;
  max-height: 320px;
  overflow-y: auto;
}

.suggest-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
  border-bottom: 1px solid var(--glass-border);
}

.suggest-item:last-child { border-bottom: none; }

.suggest-item:hover,
.suggest-item.selected {
  background-color: rgba(61, 130, 242, 0.12);
  color: var(--text);
}

.suggest-icon {
  margin-right: 12px;
  font-size: 19px;
  color: var(--text-faint);
  transition: color 0.15s var(--ease);
}

.suggest-item:hover .suggest-icon,
.suggest-item.selected .suggest-icon {
  color: var(--accent-bright);
}

.suggest-text b {
  font-weight: 700;
  color: var(--accent-bright);
}

.suggest-right {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Sort bar / filters row
   ========================================================================== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-tag {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: popIn 0.25s var(--ease-spring);
}

.filter-tag strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.filter-tag .close-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
  transition: color 0.2s var(--ease);
}

.filter-tag .close-btn:hover { color: var(--danger); }

.active-filters a {
  font-size: 12px;
  text-decoration: none;
  color: var(--danger);
  font-weight: 600;
  transition: opacity 0.2s var(--ease);
}

.active-filters a:hover { opacity: 0.75; }

.campaign-btn-container { display: flex; }

.campaign-btn {
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: white;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #ff6ec4);
  background-size: 600% 600%;
  animation: gradientMove 5s ease infinite;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s var(--ease);
}

.campaign-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 110, 196, 0.6);
}

.campaign-btn:active { transform: scale(0.96); }

.campaign-btn.active {
  border: 2px solid white;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sort select */
.sort-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
  user-select: none;
}

.sort-select select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 34px 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.sort-select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.25s var(--ease);
}

.sort-select select:hover,
.sort-select select:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
}



#lottieContainer {
  overflow: hidden;
}
#lottieContainer svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* ==========================================================================
   Product grid & cards
   ========================================================================== */
.SkeletonsGrid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
  animation-delay: calc(var(--card-i, 0) * 35ms);
}

.card:hover {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: var(--glass-border-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px) scale(1.015);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  background-color: var(--surface-2);
  transition: transform 0.4s var(--ease);
}

.card:hover img { transform: scale(1.04); }

.card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.card-meta {
  font-size: 12px;
  color: var(--text-faint);
}

.card-price {
  font-size: 15px;
  color: var(--accent-bright);
  margin-top: 4px;
  font-weight: 700;
}

.card-strike {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 12px;
  margin-left: 6px;
  font-weight: 400;
}

.badge {
  background: linear-gradient(135deg, #e35c5c, #c73b3b);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 3px 8px;
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.card-content strong {
  color: #f4c900;
  font-weight: bold;
}

/* List view */
.grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grid.list-view .card {
  flex-direction: row;
  align-items: center;
  height: 132px;
}

.grid.list-view .card img {
  width: 200px;
  height: 100%;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.grid.list-view .card-content {
  padding: 14px 18px;
  flex: 1;
  justify-content: center;
}

.grid.list-view .card-title { font-size: 15px; }
.grid.list-view .card-meta { font-size: 12px; }
.grid.list-view .card-price { font-size: 14px; }
.grid.list-view .badge { top: 10px; left: 10px; }

/* Skeleton loading */
@keyframes pulse {
  0% { background-color: var(--surface-2); }
  50% { background-color: #2c2c33; }
  100% { background-color: var(--surface-2); }
}

.skeleton-line {
  background: var(--surface-2);
  height: 14px;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
  margin: 6px 0;
  width: 80%;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.shorter { width: 40%; }

/* ==========================================================================
   Filter sidebar contents
   ========================================================================== */
.filter-group {
  margin-bottom: 22px;
}

.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 10px;
}

.checkbox-container label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  user-select: none;
}

.checkbox-container label:hover {
  background-color: var(--surface-2);
  color: var(--text);
}

.checkbox-container input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 10px;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--glass-border-strong);
  border-radius: 5px;
  background-color: var(--surface-2);
  position: relative;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  vertical-align: middle;
}

.checkbox-container input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: var(--accent);
}

.checkbox-container input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.show-more-toggle {
  display: block;
  text-align: left;
  color: var(--accent-bright);
  cursor: pointer;
  user-select: none;
  margin-top: 6px;
  font-weight: 600;
  font-size: 12px;
  transition: opacity 0.2s var(--ease);
}

.show-more-toggle:hover { opacity: 0.75; }

/* ==========================================================================
   Pagination
   ========================================================================== */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0;
  flex-wrap: wrap;
}

#pagination button {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  min-width: 38px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

#pagination button:hover:not(:disabled),
#pagination button:focus-visible:not(:disabled) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}

#pagination button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

#pagination button:disabled {
  background: transparent;
  color: var(--text-faint);
  border-color: var(--glass-border);
  cursor: not-allowed;
  opacity: 0.5;
}

#pagination span {
  color: var(--text-faint);
  font-size: 13px;
  padding: 0 4px;
  user-select: none;
}

/* ==========================================================================
   Hover popup
   ========================================================================== */
#hoverPopup, .hover-popup {
  position: absolute;
  max-width: 280px;
  background: var(--glass-bg-strong);
  color: var(--text-dim);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.5;
  z-index: 9999;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  opacity: 0;
  pointer-events: none;
}

#hoverPopup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

#hoverPopup strong {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

#hoverPopup img {
  width: 100%;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ==========================================================================
   Filter toggle (mobile)
   ========================================================================== */
.filter-toggle-btn {
  display: none;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 260px;
    height: 100%;
    z-index: 1000;
    border-right: 1px solid var(--glass-border-strong);
    transition: left 0.35s var(--ease);
    overflow-y: auto;
    /* NOTE: no backdrop-filter/background directly on .sidebar — that would
       create a new containing block for position:fixed children (like
       .filter-toggle-btn below), trapping them inside this element's own
       off-canvas coordinate space instead of the viewport. The glass look
       is applied via ::before instead so .sidebar itself stays "plain". */
  }

  .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }

  .sidebar.open { left: 0; }

  .filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px; /* Floats at the bottom */
    right: 24px;  /* Floats on the right */
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%; /* Makes it a perfect circle */
    z-index: 1100;
    cursor: pointer;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s var(--ease);
  }

  .filter-toggle-btn:hover { 
    transform: scale(1.08); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  /* Make the material icon inside the button the correct size */
  .filter-toggle-btn .material-icons {
    font-size: 28px;
  }

  .layout { flex-direction: column; }

  .main { padding: 24px 16px; margin-left: 0; }
}

@media (min-width: 1025px) {
  .filter-toggle-btn { display: none; }
}

@media (max-width: 768px) {
  .SkeletonsGrid,
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .sort-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .sort-select { margin-left: 0; }

  .view-toggle { justify-content: flex-start; margin-top: 6px; }

  .search-bar { width: 100%; }

  .grid.list-view .card {
    flex-direction: row;
    height: auto;
    padding: 8px;
    align-items: center;
  }

  .grid.list-view .card img {
    width: 110px;
    height: 100%;
    border-radius: var(--radius-sm);
  }

  .grid.list-view .card-content {
    padding: 0 10px;
  }

  .grid.list-view .card-title { font-size: 13px; margin-bottom: 3px; }
  .grid.list-view .card-meta { font-size: 11px; margin-bottom: 5px; }
  .grid.list-view .card-price { font-size: 13px; }
  .grid.list-view .badge { font-size: 9px; top: 6px; left: 6px; }

  .card-content { padding: 9px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; }
  .card-price { font-size: 13px; }
  .badge { font-size: 9px; top: 6px; left: 6px; padding: 2px 6px; }
}