/* ==========================================================================
   Homepage Redesign: Clean, Product-Oriented, Beautiful
   ========================================================================== */

/* Hero Section */
.hp-hero {
  overflow-x: clip;
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08), transparent 45%),
              linear-gradient(180deg, var(--bg) 0%, #FAF9F6 100%);
  border-bottom: 1px solid var(--border);
}

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hp-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  margin-bottom: 1.25rem;
}

.hp-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  animation: hpPulse 2s infinite ease-in-out;
}

@keyframes hpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hp-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hp-hero-highlight {
  color: var(--accent);
  display: block;
}

.hp-hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

/* Hero Search */
.hp-hero-search {
  margin-bottom: 1.25rem;
}

.hp-search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 6px 4px 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.hp-search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hp-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.hp-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem;
  color: var(--text);
  padding: 8px 0;
}

.hp-search-submit {
  flex-shrink: 0;
  border-radius: var(--radius-md) !important;
  padding: 10px 20px !important;
  font-size: 0.95rem !important;
  font-weight: 600;
}

/* Quick Category Chips */
.hp-quick-cats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
}

.hp-quick-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}

.hp-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hp-chip {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--duration-fast);
}

.hp-chip:hover {
  background: var(--bg-muted);
  color: var(--text);
  border-color: var(--border-strong);
}

.hp-chip.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* Hero Spotlight Card (Flagship) */
.hp-spotlight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.09);
  transition: transform var(--duration-base), box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.hp-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.12);
  border-color: var(--border-strong);
}

.hp-spotlight-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.hp-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hp-tag--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.hp-tag--copper {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.hp-spotlight-media {
  display: block;
  aspect-ratio: 16/11;
  background: linear-gradient(145deg, #F1F5F9 0%, #E2E8F0 100%);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.hp-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out);
}

.hp-spotlight-card:hover .hp-spotlight-img {
  transform: scale(1.04);
}

.hp-spotlight-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

.hp-spotlight-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.hp-spotlight-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.hp-spotlight-title a:hover {
  color: var(--accent);
}

.hp-spotlight-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hp-spotlight-specs span {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.hp-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.hp-spotlight-pricing {
  display: flex;
  flex-direction: column;
}

.hp-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}

.hp-wholesale-tag {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
}

/* Trust Strip */
.hp-trust-strip {
  padding: 1.75rem 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hp-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .hp-trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hp-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hp-trust-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.hp-trust-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hp-trust-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

/* Products Section */
.hp-products-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.hp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.hp-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

/* Product Card Improvements */
.hp-product-grid .product-card {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: var(--bg-elevated) !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s !important;
}

.hp-product-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -6px rgba(15, 23, 42, 0.08) !important;
  border-color: var(--border-strong) !important;
}

.hp-product-grid .product-card-image {
  background: linear-gradient(145deg, #F8FAFC 0%, #EDF2F7 100%) !important;
  border-radius: 10px 10px 0 0;
}

.hp-product-grid .product-card-img {
  transition: transform 0.35s var(--ease-out);
}

.hp-product-grid .product-card:hover .product-card-img {
  transform: scale(1.05);
}

.hp-product-grid .product-card-body {
  padding: 1.15rem !important;
}

.hp-product-grid .product-card-title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.hp-product-grid .product-card-price {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Wholesale Banner */
.hp-wholesale-section {
  padding: 1rem 0 clamp(2.5rem, 5vw, 4rem);
}

.hp-wholesale-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #F8FAFC;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25);
}

@media (max-width: 860px) {
  .hp-wholesale-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hp-wholesale-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93C5FD;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hp-wholesale-copy h2 {
  color: #FFFFFF !important;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.hp-wholesale-copy p {
  color: #94A3B8 !important;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hp-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-tier-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.hp-tier-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.hp-tier-desc {
  font-size: 0.75rem;
  color: #94A3B8;
}

.hp-wholesale-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 20px -2px rgba(37, 211, 102, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-whatsapp:hover {
  background: #20BA5A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(37, 211, 102, 0.5) !important;
}

.hp-wa-note {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 10px;
}

/* Why Section */
.hp-why-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .hp-why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.hp-why-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color var(--duration-base);
}

.hp-why-card:hover {
  border-color: var(--accent);
}

.hp-why-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hp-why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hp-why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}


/* ==========================================================================
   Homepage Live AJAX Search & 3D Stacked Card Deck Slider
   ========================================================================== */

/* 1. Live AJAX Search Dropdown */
.hp-hero-search {
  position: relative;
  z-index: 30;
}

.hp-search-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 10px;
  flex-shrink: 0;
  user-select: none;
  animation: hpLightningFlash 0.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9));
}

@keyframes hpLightningFlash {
  0% {
    transform: scale(0.88) rotate(-8deg);
    opacity: 0.55;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4));
  }
  100% {
    transform: scale(1.24) rotate(8deg);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 1));
  }
}

.hp-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-elevated, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
  animation: hpDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes hpDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hp-search-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
  background: var(--bg-muted, #f8fafc);
}

.hp-search-results-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.hp-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text, #0f172a);
  transition: background var(--duration-fast, 0.15s), transform var(--duration-fast, 0.15s);
  cursor: pointer;
}

.hp-search-result-item:hover,
.hp-search-result-item.is-selected {
  background: var(--bg-muted, #f1f5f9);
  transform: translateX(3px);
}

.hp-search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #e2e8f0);
}

.hp-search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hp-search-result-info {
  flex: 1;
  min-width: 0;
}

.hp-search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-search-result-title mark {
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent, #2563eb);
  padding: 0 2px;
  border-radius: 2px;
}

.hp-search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}

.hp-search-result-sku {
  background: var(--bg, #ffffff);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border, #e2e8f0);
  font-family: monospace;
  font-size: 0.74rem;
}

.hp-search-stock-tag {
  font-weight: 600;
}
.hp-search-stock-tag.is-in-stock {
  color: var(--success, #059669);
}
.hp-search-stock-tag.is-out-of-stock {
  color: var(--danger, #dc2626);
}

.hp-search-result-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent, #2563eb);
  font-family: var(--font-display, sans-serif);
  flex-shrink: 0;
  text-align: right;
  margin-left: 10px;
}

.hp-search-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border, #f1f5f9);
  background: var(--bg-muted, #f8fafc);
  text-align: center;
}

.hp-search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
  text-decoration: none;
  transition: all var(--duration-fast, 0.15s);
}

.hp-search-view-all:hover {
  color: var(--accent-hover, #1d4ed8);
  transform: translateX(2px);
}

.hp-search-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
}

.hp-search-empty-icon {
  margin-bottom: 8px;
  color: var(--text-muted, #94a3b8);
}

/* 2. 3D Stacked Card Deck */
.hp-deck-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  perspective: 1200px;
}

.hp-card-deck {
  position: relative;
  width: 100%;
  min-height: 540px;
  transform-style: preserve-3d;
}

.hp-deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  will-change: transform, opacity, box-shadow;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center bottom;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Position 0: Front Active Card */
.hp-deck-card[data-pos="0"] {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.14);
}

/* Position 1: Second Card peeking behind to the right & down */
.hp-deck-card[data-pos="1"] {
  transform: translate3d(16px, 14px, -25px) scale(0.96) rotate(1.8deg);
  opacity: 0.85;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.09);
}

/* Position 2: Third Card layer peeking further behind */
.hp-deck-card[data-pos="2"] {
  transform: translate3d(32px, 26px, -50px) scale(0.92) rotate(3.4deg);
  opacity: 0.60;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

/* Positions 3 & 4: Deep in deck waiting to cycle */
.hp-deck-card[data-pos="3"],
.hp-deck-card[data-pos="4"] {
  transform: translate3d(42px, 34px, -75px) scale(0.88) rotate(4.8deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Flicking Animations */
.hp-deck-card.is-flicking-left {
  transform: translate3d(-135%, -22px, 60px) rotate(-14deg) scale(0.92) !important;
  opacity: 0 !important;
  transition: transform 0.48s cubic-bezier(0.32, 0, 0.67, 0), opacity 0.42s ease !important;
  z-index: 10 !important;
}

.hp-deck-card.is-flicking-right {
  transform: translate3d(135%, -22px, 60px) rotate(14deg) scale(0.92) !important;
  opacity: 0 !important;
  transition: transform 0.48s cubic-bezier(0.32, 0, 0.67, 0), opacity 0.42s ease !important;
  z-index: 10 !important;
}

/* Deck Controls */
.hp-deck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0 4px;
}

.hp-deck-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.hp-deck-counter {
  font-variant-numeric: tabular-nums;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text, #0f172a);
}

.hp-deck-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary, #475569);
}

.hp-deck-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  animation: hpPulse 2s infinite ease-in-out;
}

.hp-deck-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-deck-dot {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong, #cbd5e1);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hp-deck-dot:hover {
  background: var(--text-muted, #94a3b8);
}

.hp-deck-dot.is-active {
  width: 32px;
  background: var(--accent, #2563eb);
}

.hp-deck-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-deck-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text, #0f172a);
  cursor: pointer;
  transition: all var(--duration-fast, 0.15s);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hp-deck-arrow:hover {
  background: var(--accent, #2563eb);
  color: #ffffff;
  border-color: var(--accent, #2563eb);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hp-hero-visual {
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .hp-deck-wrap {
    max-width: 100%;
    padding: 0 10px 0 0;
    touch-action: pan-y;
  }

  /* 10-12% larger frame height */
  .hp-card-deck {
    min-height: 575px;
    width: 100%;
  }

  /* 10-12% wider card width & roomier padding */
  .hp-deck-card {
    width: calc(100% - 12px);
    padding: 1.4rem 1.25rem;
    border-radius: 18px;
  }

  .hp-deck-card .hp-spotlight-media {
    aspect-ratio: 16/11;
    min-height: 230px;
    margin-bottom: 1.2rem;
  }

  .hp-deck-card .hp-spotlight-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  .hp-deck-card .hp-spotlight-price {
    font-size: 1.45rem;
  }

  /* Layer stacking safely contained within 100% viewport width */
  .hp-deck-card[data-pos="0"] {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  .hp-deck-card[data-pos="1"] {
    transform: translate3d(6px, 10px, -20px) scale(0.97) rotate(1deg);
    opacity: 0.88;
  }

  .hp-deck-card[data-pos="2"] {
    transform: translate3d(12px, 20px, -40px) scale(0.94) rotate(2deg);
    opacity: 0.65;
  }

  .hp-deck-card[data-pos="3"],
  .hp-deck-card[data-pos="4"] {
    transform: translate3d(16px, 26px, -60px) scale(0.90) rotate(2.5deg);
    opacity: 0;
  }

  /* Smooth swipe physics without page edge overflow */
  .hp-deck-card.is-flicking-left {
    transform: translate3d(-92%, -14px, 30px) rotate(-8deg) scale(0.94) !important;
    opacity: 0 !important;
  }

  .hp-deck-card.is-flicking-right {
    transform: translate3d(92%, -14px, 30px) rotate(8deg) scale(0.94) !important;
    opacity: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-deck-card {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .hp-deck-card:not([data-pos="0"]) {
    display: none !important;
  }
}
