/* ============================================
   LUXURY HOMEPAGE — PREOWNED LUXURIES
   ============================================ */

/* --- Hero Section --- */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hp-hero-slideshow {
  position: absolute;
  inset: -5%;
  z-index: 0;
}

.hp-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
  transition: opacity 1.5s ease-in-out;
}

.hp-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 15, 30, 0.78) 0%, rgba(10, 25, 47, 0.4) 55%, rgba(6, 15, 30, 0.65) 100%);
}

.hp-hero-slide-active {
  opacity: 1;
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 750px;
}

.hp-hero-content h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 3.4rem;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 600;
}

.hp-hero-content .hp-hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.2px;
}

.hp-hero-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-btn-primary,
.hp-btn-outline {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.hp-btn-primary {
  background: #fff;
  color: #0a192f;
}

.hp-btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hp-btn-outline {
  background: transparent;
  color: #fff;
}

.hp-btn-outline:hover {
  background: #fff;
  color: #0a192f;
  border-color: #fff;
}

/* --- Hero Staggered Animation --- */
.hp-hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Indicator --- */
.hp-scroll-indicator {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hp-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.hp-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50%      { top: 18px; opacity: 0.3; }
}

/* --- Trust Bar --- */
.hp-trust-bar {
  background: rgba(248, 248, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 18px 0;
  transition: all 0.35s ease;
}

.hp-trust-bar .hp-trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #444;
  font-weight: 500;
  white-space: nowrap;
}

.hp-trust-item i {
  font-size: 1.1rem;
  color: #b8860b;
}

/* --- Scroll Reveal System --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-d, 0s);
}

[data-reveal].hp-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Collections Section --- */
.hp-collections {
  padding: 80px 0;
  background: #f7f6f9;
}

.hp-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.hp-section-title h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  color: #0a192f;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hp-section-title p {
  font-size: 0.95rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.3px;
}

.hp-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.hp-collection-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

.hp-collection-card:hover {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.hp-card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.hp-collection-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #f0f0f0;
  filter: contrast(1.12) saturate(1.15) brightness(1.03);
  image-rendering: -webkit-optimize-contrast;
  box-shadow: 6px 8px 20px rgba(0, 0, 0, 0.3), 2px 3px 6px rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.hp-img-zoom {
  animation: hp-slow-zoom 10s ease-in-out infinite alternate;
}

@keyframes hp-slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-img-zoom { animation: none; }
}

.hp-collection-card h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a192f;
  margin: 16px 0 12px;
}

.hp-collection-card .hp-shop-pill {
  display: inline-block;
  padding: 9px 30px;
  border-radius: 0;
  background: #0a192f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.hp-collection-card:hover .hp-shop-pill {
  background: #b8860b;
}

/* --- Featured Products --- */
.hp-featured {
  padding: 80px 0;
  background: #fafafa;
}

.hp-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.hp-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  text-decoration: none;
  color: inherit;
}

.hp-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f5f5f5;
  overflow: hidden;
}

.hp-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hp-product-card:hover .hp-product-img-wrap img {
  transform: scale(1.08);
}

.hp-product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hp-product-card:hover .hp-product-overlay {
  opacity: 1;
}

.hp-product-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
}

.hp-product-heart:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.hp-product-heart i {
  font-size: 0.9rem;
  color: #888;
  transition: color 0.2s ease;
}

.hp-product-heart i.like_red {
  color: #e74c3c;
  font-weight: 900;
}

.hp-product-info {
  padding: 18px;
}

.hp-product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b8860b;
  margin-bottom: 8px;
  font-weight: 500;
}

.hp-product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.hp-product-price {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a192f;
  transition: color 0.3s ease;
}

.hp-product-card:hover .hp-product-price {
  color: #b8860b;
}

.hp-product-soldout {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(4px);
}

.hp-view-all-wrap {
  text-align: center;
  margin-top: 50px;
}

.hp-view-all-btn {
  display: inline-block;
  padding: 15px 50px;
  border-radius: 0;
  background: transparent;
  color: #0a192f;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s ease;
  border: 1.5px solid #0a192f;
}

.hp-view-all-btn:hover {
  background: #0a192f;
  color: #fff;
  text-decoration: none;
}

/* --- Instagram --- */
.hp-instagram {
  padding: 60px 0;
  background: #fff;
}

.hp-section-heading {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  color: #0a192f;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* --- Help CTA --- */
.hp-help-cta {
  position: relative;
  background: url('/images/help-cta-bg.png') center center / cover no-repeat;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.hp-help-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 15, 30, 0.92) 0%, rgba(15, 30, 50, 0.8) 100%);
  z-index: 1;
}

.hp-cta-glow {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #b8860b, #d4a843, #b8860b, transparent);
  z-index: 3;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.hp-help-cta .container {
  position: relative;
  z-index: 2;
}

.hp-help-cta h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  font-weight: 600;
}

.hp-help-cta p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hp-help-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-help-btns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s ease;
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hp-help-btns a:hover {
  border-color: #b8860b;
  background: rgba(184, 134, 11, 0.15);
  color: #d4a843;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(184, 134, 11, 0.15);
}

.hp-help-btns a i {
  font-size: 1rem;
  color: #b8860b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .hp-hero {
    min-height: 480px;
  }

  .hp-hero-content h1 {
    font-size: 2.4rem;
  }

  .hp-collections-grid,
  .hp-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .hp-collections,
  .hp-featured {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .hp-hero {
    min-height: 400px;
  }

  .hp-hero-content {
    padding: 50px 16px 40px;
  }

  .hp-hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .hp-hero-content .hp-hero-sub {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hp-hero-btns {
    gap: 12px;
  }

  .hp-btn-primary,
  .hp-btn-outline {
    padding: 12px 28px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .hp-scroll-indicator {
    display: none;
  }

  .hp-trust-bar .hp-trust-items {
    gap: 10px 16px;
    justify-content: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hp-trust-item {
    font-size: 0.75rem;
    gap: 6px;
    justify-content: center;
  }

  .hp-trust-item > span:first-of-type {
    display: none;
  }

  .hp-trust-item .hp-trust-short {
    display: inline !important;
    font-size: 0.75rem;
    color: #444;
  }

  .hp-collections,
  .hp-featured {
    padding: 50px 0;
  }

  .hp-section-title {
    margin-bottom: 30px;
  }

  .hp-section-title h2 {
    font-size: 1.5rem;
  }

  .hp-collection-card h3 {
    font-size: 0.9rem;
    margin: 12px 0 8px;
  }

  .hp-collection-card .hp-shop-pill {
    padding: 7px 22px;
    font-size: 0.7rem;
  }

  .hp-product-info {
    padding: 14px;
  }

  .hp-product-name {
    font-size: 0.82rem;
  }

  .hp-product-price {
    font-size: 0.95rem;
  }

  .hp-help-cta {
    padding: 60px 0;
  }

  .hp-help-cta h2 {
    font-size: 1.5rem;
  }

  .hp-help-btns a {
    padding: 12px 26px;
    font-size: 0.78rem;
  }

  .hp-tilt {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .hp-hero-content h1 {
    font-size: 1.5rem;
  }

  .hp-collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hp-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hp-collection-card {
    padding: 10px 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero-slide {
    animation: none;
    transition: none;
  }

  .hp-hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hp-scroll-indicator span::before {
    animation: none;
  }

  .hp-cta-glow {
    animation: none;
    opacity: 0.7;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
