/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body - Dark Theme */
body {
  font-family: 'Inter', sans-serif;
  background: #141414;
  color: #FFFFFF;
  min-height: 100vh;
}

/* ==================== */
/* LOADING OVERLAY */
/* ==================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(600px 380px at 50% 35%, rgba(27, 94, 32, 0.18), rgba(0, 0, 0, 0) 60%),
    rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.loading-overlay.active {
  display: flex;
}

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loading-bar-inner {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.0), rgba(76, 175, 80, 0.85), rgba(76, 175, 80, 0.0));
  animation: loadingSweep 1.1s ease-in-out infinite;
  transform: translateX(-40%);
}

@keyframes loadingSweep {
  0% { transform: translateX(-40%); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translateX(240%); opacity: 0.7; }
}

.loading-panel {
  width: 100%;
  max-width: 560px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.loading-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.loading-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.support-panel {
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cashtag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #9be29f;
  background: rgba(27, 94, 32, 0.12);
  user-select: all;
}

.support-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-btn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.05s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.support-btn:hover {
  border-color: rgba(76, 175, 80, 0.35);
  background: rgba(76, 175, 80, 0.08);
  color: #b7f0bb;
}

.support-btn:active {
  transform: translateY(1px);
}

.support-btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.support-hint {
  min-height: 18px;
  font-size: 13px;
  color: #9be29f;
  opacity: 0.95;
}

@media (max-width: 420px) {
  .support-btn { width: 100%; }
}

/* ==================== */
/* CLICK COUNTER */
/* ==================== */
#click-counter {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 140;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(27, 94, 32, 0.28);
}

.counter-big {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.counter-small {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.1;
}

.mode-status {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 140;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  #click-counter {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .mode-status {
    left: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ==================== */
/* FLOATING CLICK NUMBER */
/* ==================== */
.floating-click-number {
  position: fixed;
  z-index: 160;
  pointer-events: none;
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
  text-shadow:
    0 0 10px rgba(27, 94, 32, 0.75),
    0 0 18px rgba(27, 94, 32, 0.4);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: floatClickNumber 800ms ease-out forwards;
}

/* ==================== */
/* CARD FLIP TRANSITION */
/* ==================== */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-wrapper.is-flipping .product-card {
  transition: transform 260ms ease-in;
  transform: rotateY(90deg);
}

.card-wrapper.is-flip-in .product-card {
  transition: transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
  transform: rotateY(0deg);
}

.card-wrapper.is-flipping,
.card-wrapper.is-flip-in {
  pointer-events: none;
}

@keyframes floatClickNumber {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    filter: blur(0px);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.25);
  }
  60% {
    opacity: 0.95;
    transform: translate(-50%, -82%) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -110%) scale(1.05);
    filter: blur(0.2px);
  }
}

/* ==================== */
/* NAVIGATION HEADER */
/* ==================== */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  z-index: 100;
  backdrop-filter: none;
  width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  gap: 12px;
}

/* Icon Buttons */
.icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn-outline {
  background: transparent;
  border: none;
  color: #FFFFFF;
  text-decoration: none;
}

.icon-btn-outline:hover {
  background: transparent;
  color: #1B5E20;
  filter: drop-shadow(0 0 10px rgba(27, 94, 32, 0.45));
}

.refresh-btn {
  gap: 10px;
  padding: 0 14px;
}

.refresh-label {
  display: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ==================== */
/* WATCH LIST PANEL */
/* ==================== */
.watchlist-tab {
  position: fixed;
  right: 16px;
  top: 84px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.55);
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.watchlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watchlist-label {
  white-space: nowrap;
}

.watchlist-tab-mobile {
  position: static;
  width: 64px;
  height: 44px;
  border-radius: 16px;
  padding: 0;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.watchlist-count-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.watchlist-tab:hover {
  border-color: rgba(76, 175, 80, 0.32);
  background: rgba(76, 175, 80, 0.08);
  transform: translateY(-1px);
}

.watchlist-count {
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.85);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 12px;
}

.watchlist-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  z-index: 230;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(12px);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.6);
}

/* ==================== */
/* MAPPING PANEL (SUPER) */
/* ==================== */
.mapping-tab {
  position: fixed;
  right: 16px;
  top: 140px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.55);
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mapping-tab:hover {
  border-color: rgba(76, 175, 80, 0.32);
  background: rgba(76, 175, 80, 0.08);
  transform: translateY(-1px);
}

.mapping-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  z-index: 225;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(12px);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.6);
}

.mapping-panel.open {
  transform: translateX(0%);
}

.mapping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mapping-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.mapping-close {
  width: 42px;
  height: 42px;
}

.mapping-body {
  padding: 12px 12px 16px;
  overflow: auto;
  flex: 1;
}

.mapping-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mapping-list {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px;
}

.mapping-list-title {
  font-weight: 900;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.mapping-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mapping-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(12, 12, 12, 0.35);
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.mapping-chip b {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
  .mapping-tab {
    right: 10px;
    top: 98px;
  }
}

.watchlist-panel.open {
  transform: translateX(0%);
}

.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.watchlist-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.watchlist-close {
  width: 42px;
  height: 42px;
}

.watchlist-body {
  padding: 12px 12px 16px;
  overflow: auto;
  flex: 1;
}

.watchlist-empty {
  padding: 20px 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-align: center;
}

.watchlist-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 88px;
}

.wl-actions {
  display: flex;
  gap: 8px;
  align-items: start;
  justify-content: flex-end;
}

.wl-copy {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-weight: 900;
  line-height: 1;
}

.wl-copy:hover {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.10);
}

.watchlist-poster {
  width: 54px;
  height: 78px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.watchlist-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watchlist-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.watchlist-meta .wl-title {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.watchlist-meta .wl-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-remove {
  width: 34px;
  height: 34px;
  align-self: start;
  justify-self: end;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wl-remove:hover {
  border-color: rgba(229, 57, 53, 0.45);
  background: rgba(229, 57, 53, 0.10);
}

@media (max-width: 1024px) {
  .watchlist-tab {
    right: auto;
    left: 10px;
    top: 44px;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    justify-content: center;
    gap: 0;
  }

  .watchlist-label {
    display: none;
  }

  .watchlist-close,
  .mapping-close,
  .wl-copy,
  .wl-remove {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1024px) {
  .watchlist-tab-desktop {
    display: none;
  }
}

.icon-btn-outline:focus-visible {
  outline: 2px solid rgba(27, 94, 32, 0.85);
  outline-offset: 4px;
  border-radius: 10px;
}

/* ==================== */
/* MAIN CONTENT */
/* ==================== */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 118px 24px 44px;
  min-height: 100vh;
}

.recommend-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Small aspects: tighter top spacing */
@media (max-width: 768px) {
  .nav-header {
    padding: 4px 6px;
  }

  .nav-left, .nav-right {
    gap: 6px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .content {
    padding-top: 48px;
  }
}

/* Fullscreen-ish: larger icons + padding */
@media (min-width: 1200px) and (min-height: 800px) {
  .nav-header {
    padding: 26px 34px;
  }

  .nav-left, .nav-right {
    gap: 18px;
  }

  .icon-btn {
    width: 64px;
    height: 64px;
  }

  .content {
    padding-top: 190px;
  }

  .refresh-btn {
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid rgba(27, 94, 32, 0.85);
    color: #0c220f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(76, 175, 80, 0.35);
    width: auto;
    height: 56px;
    padding: 0 20px;
    border-radius: 14px;
  }

  .refresh-btn:hover {
    transform: translateY(-1px);
    background: rgba(92, 201, 98, 0.95);
    color: #081b0b;
  }

  .refresh-label {
    display: inline-flex;
  }
}

/* Page Title */
.page-title {
  font-weight: 700;
  font-size: 28px;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-align: center;
}

/* Loading/Error Text */
.loading-text, .error-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 40px;
}

.error-text {
  color: #E53935;
}

/* ==================== */
/* CARDS CONTAINER */
/* ==================== */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
}

/* Card Wrapper */
.card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.card-wrapper:hover {
  transform: scale(1.05);
}

.card-wrapper.card-clicked {
  animation: cardPulse 0.3s ease;
}

@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  background: #1E1E1E;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Card Image */
.card-image {
  position: relative;
  width: 100%;
  height: 300px;
  background: #2C2C2C;
  overflow: hidden;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05) 55%);
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.lock-pill .lock-icon {
  color: rgba(255, 255, 255, 0.88);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-wrapper:hover .card-image img {
  transform: scale(1.05);
}

/* Card Body */
.card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Action */
.card-action {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

/* ==================== */
/* CAROUSEL NAVIGATION (small screens) */
/* ==================== */
.carousel-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 280px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #1B5E20;
  width: 24px;
  border-radius: 4px;
}

.carousel-arrow {
  display: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.icon-btn-filled {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.icon-btn-filled:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Favorite Button Active State */
.favorite-btn.active {
  background: #1B5E20;
  border-color: #1B5E20;
  animation: starPop 0.3s ease;
}

.favorite-btn.active svg {
  fill: #FFD700;
  stroke: #FFD700;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 1024px) {
  .product-card {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  
  .card-image {
    height: 240px;
  }
  
  .card-title {
    font-size: 13px;
  }
  
  .card-subtitle {
    font-size: 12px;
  }
}

@media (max-width: 540px) {
  .page-title {
    font-size: 24px;
  }

  .card-image {
    height: 210px;
  }

  .card-body {
    padding: 10px;
  }
}

@media (max-width: 1024px) {
  /* Vertical snap carousel (1 card per view) */
  .recommend-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .cards-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    height: clamp(420px, 58svh, 560px);
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    gap: 0;
    padding: 8px 0 0;
    margin-top: 28px;
  }

  .carousel-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 64px;
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 160;
  }

  .carousel-nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    width: 52px;
    max-width: 52px;
  }

  .carousel-dots {
    flex-direction: column;
    gap: 10px;
  }

  .carousel-dot.active {
    width: 8px;
    height: 24px;
    border-radius: 4px;
  }

  .card-wrapper {
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .carousel-nav,
  .carousel-arrow {
    display: flex;
  }

  /* Hide scrollbars for nested carousel */
  .cards-container::-webkit-scrollbar {
    width: 0;
    display: none;
  }
  .cards-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.carousel-rail {
  display: none;
}

.refresh-rail-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 64px;
  padding: 10px 6px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.refresh-rail-btn:hover {
  transform: translateY(-1px);
  background: transparent;
  border-color: transparent;
}

@media (max-width: 1024px) {
  .refresh-rail-btn {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .carousel-rail {
    display: flex;
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .refresh-rail-btn span {
    display: none;
  }

  .refresh-rail-btn svg {
    width: 24px;
    height: 24px;
  }

  .carousel-nav {
    margin-bottom: 6px;
  }

  .watchlist-tab-mobile {
    margin-top: 2px;
  }
}

@media (max-width: 1024px) {
  .watchlist-panel {
    left: 0;
    right: 0;
    width: 100%;
    height: 100svh;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.6);
  }

  .watchlist-panel.open {
    transform: translateY(0%);
  }
}

.round-progress {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 140;
  display: none;
  gap: 8px;
  align-items: center;
}

.round-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.round-dot.active {
  background: rgba(76, 175, 80, 0.95);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.65);
}

@media (max-width: 768px) {
  .round-progress {
    left: 12px;
    bottom: 54px;
  }
}
