/* ==========================================================
   HOME.CSS — HERO, TRENDING, HOLIDAY, COLLECTIONS
   Uses theme.css tokens — NO design changes
========================================================== */

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

body {
  background: var(--text-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   TRENDING SECTION
========================================================== */

.home-trending {
  padding: 60px 0;
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.trending-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-32);
  box-sizing: border-box;
}

.trending-heading {
  font-size: var(--font-xl);
  text-align: center;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--space-32);
  font-family: var(--font-primary);
}

/* GRID */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
}

/* CARD */
.trending-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(180, 180, 180, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform var(--transition), box-shadow var(--transition);
}

.trending-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.trending-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid rgba(220, 220, 220, 0.8);
}

/* TEXT */
.trending-title {
  font-size: var(--font-md);
  color: var(--text-dark);
  margin: 12px 14px 4px;
  font-weight: 500;
}

.trending-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 14px 16px;
}

/* TABLET */
@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }

  .trending-img {
    height: 220px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .trending-container {
    padding: 0 var(--space-16);
  }

  .trending-heading {
    font-size: 28px;
    margin-bottom: var(--space-24);
  }

  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }

  .trending-img {
    height: 200px;
    border-radius: var(--radius-sm);
  }
}

/* SMALL DEVICES */
@media (max-width: 420px) {
  .trending-img {
    height: 170px;
  }
}

/* DESKTOP LUX STYLE */
@media (min-width: var(--bp-md)) {
  .home-trending {
    padding: var(--space-48) 0;
    background: var(--bg-light);
  }

  .trending-heading {
    font-size: 38px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a0855c;
  }

  .trending-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    border: 1px solid rgba(206, 186, 155, 0.3);

    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .trending-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(208, 174, 127, 0.5);
  }
}

/* ==========================================================
   HERO SECTION (VIDEO / IMAGE)
========================================================== */

.video-hero {
  width: 100%;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 2;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.28) 40%,
      rgba(0, 0, 0, 0.85));
}

.video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.35) 35%,
      rgba(0, 0, 0, 0));
}

/* DESKTOP HERO */
@media (min-width: 769px) {
  .hero-content {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
    text-align: left !important;
    max-width: 600px;
    width: 100%;
    color: var(--bg-light);
    z-index: 3;
  }

  .hero-title {
    font-size: 68px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    word-spacing: 6px;
    margin-bottom: var(--space-16);
    text-transform: uppercase;
  }

  .hero-btn {
    padding: 15px 48px;
    border: 1.6px solid var(--text-light);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    text-transform: uppercase;
    transition: var(--transition);
  }

  .hero-btn:hover {
    background: var(--text-light);
    color: var(--color-primary);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    margin-top: var(--space-24);
    align-items: flex-start;
  }

  .hero-btn.secondary {
    background: #ffffff;
    color: #000;
    border-color: rgba(5, 5, 5, 0.4);
  }

  .hero-btn.secondary:hover {
    border-color: var(--text-light);
    background: rgba(5, 5, 5, 0);
    color: var(--text-light);
  }
}

/* MOBILE PANDORA HERO */
@media (max-width: 768px) {
  .video-hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #b6797d, #4e3337, #000000);
    background-size: 300% 300%;
    animation: heroGradientShift 18s ease-in-out infinite;
  }

  @keyframes heroGradientShift {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  .hero-content {
    margin: 0 auto;
    position: relative;
    max-width: 90%;
    text-align: left;
    z-index: 3;
  }

  .hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 2px;
    word-spacing: 6px;
    text-transform: uppercase;
  }

  .hero-btn {
    padding: 14px 32px;
    background: var(--text-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: inline-block;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
  }

  .hero-btn.secondary {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
}

/* LARGE DESKTOP LEFT-ALIGNED HERO */
@media (min-width: var(--bp-lg)) {
  .hero-content {
    left: 12%;
    transform: translateY(-50%);
    text-align: left !important;
    max-width: 600px;
  }

  .hero-title {
    font-size: 68px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
}

/* 
==========================================================
   COLLECTION BANNERS
========================================================== 
*/

.collection-banner {
  position: relative;
  max-width: 1100px;
  margin: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;

  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.collection-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-banner:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.collection-banner:hover img {
  transform: scale(1.06);
}

.collection-btn {
  position: absolute;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 34px;
  font-size: 18px;

  background: var(--button-bg);
  color: var(--button-text);

  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
}

.collection-btn:hover {
  background: var(--button-bg-hover);
  transform: translateX(-50%) translateY(-3px);
}

/* 
==========================================================
   HOLIDAY SECTION (MERGED FROM holiday.css)
========================================================== 
*/

.home-trending .lux-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
  max-width: 1100px;
  margin: auto;
  margin-bottom: var(--space-48);
}

.lux-img-wrap {
  position: relative;
  overflow: hidden;
}

.lux-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition);
}

.lux-card:hover .lux-img {
  transform: scale(1.06);
}

.lux-text {
  max-width: 480px;
}

.lux-text h2 {
  font-size: 42px;
  font-weight: 800;
}

.lux-text p {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: var(--space-24);
}

.lux-btn {
  padding: 14px 34px;
  font-size: 16px;
  background: var(--color-primary);
  color: var(--text-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.lux-btn.dark {
  background: #333;
}

.lux-btn:hover {
  background: var(--button-bg-hover);
}

/* MOBILE HOLIDAY LAYOUT */
@media (max-width: var(--bp-sm)) {
  .lux-card {
    flex-direction: column;
    text-align: center;
  }

  .lux-text {
    max-width: 100%;
  }

  .lux-text h2 {
    font-size: 32px;
  }
}

/* 
==========================================================
   UTILITIES
========================================================== 
*/

.h-hero {
  height: 100vh;
}

/****************************************
    SHOP BY CATEGORY (Homepage)
*****************************************/
.shop-category {
  padding: 90px 0;
  background: var(--bg-light);
  text-align: center;
}

.cat-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cat-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.cat-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  /* smaller gap = luxury look */
  max-width: 1200px;
  /* keeps it tight & centered */
  margin: 0 auto;
  /* center grid */
  padding: 20px 0;
}

/* Mobile – 1 per row */
@media (max-width: 700px) {
  .cat-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
  }
}

@media (max-width: 517px) {
  .cat-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/****************************************
    CATEGORY CARD
*****************************************/
.cat-card {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.88));
  border-radius: 28px;
  padding: 48px 24px 42px;
  text-align: center;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 160, 23, 0.22);
  border-color: #d4a017;
}

.cat-card:hover .cat-name,
.cat-card:hover .cat-count {
  color: var(--gold-dark);
}

.cat-card:hover .cat-icon {
  transform: scale(1.08);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4),
    0 16px 40px rgba(201, 164, 99, 0.55);
}

/****************************************
    GOLD CIRCLE ICON
*****************************************/
.cat-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  font-weight: 600;
  color: #fff;

  background: radial-gradient(circle at top, #ffffff, #dddddd);

  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.35),
    0 10px 22px rgba(201, 164, 99, 0.35);

  transition: transform 0.45s ease, box-shadow 0.45s ease;
  overflow: hidden;
}

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

/****************************************
    CATEGORY NAME & COUNT
*****************************************/
.cat-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 22px;
}

.cat-count {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

/****************************************
    PRODUCT GRID (Category Page)
*****************************************/
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  margin-top: 12px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dark);
}

/****************************************
    RESPONSIVE GRID
*****************************************/
@media (max-width: 1063px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-card {
    width: 200px;
  }
}

@media (max-width: 905px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cat-subtitle {
    margin-bottom: 5px;
  }

  .cat-card {
    width: 150px;
    padding: 22px 22px;
  }

  .cat-title {
    font-size: 32px;
  }
}

/* ============================================
   PEARL & TURKISH COLLECTIONS (Homepage Banners)
=============================================== */

/* HERO STYLE LIKE PANDORA */
.pearl-hero {
  width: 100%;
  height: 100vh;
  /* full screen */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Image */
.pearl-hero .pearl-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay like Pandora */
.pearl-hero .pearl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      rgba(0, 0, 0, 0.55) 100%);
}

/* TEXT CONTENT */
.pearl-content {
  position: relative;
  text-align: left;
  max-width: 700px;
  color: white;
  padding: 0 20px;
  transform: translateY(40px);
}

/* Small subtitle like Pandora */
.pearl-content .subtitle {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Big main heading */
.pearl-content .title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
}

/* Button style matching Pandora */
.pearl-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: opacity 0.3s ease;
}

.pearl-btn:hover {
  opacity: 0.7;
}

.collection-banner {
  position: relative;
  max-width: 1100px;
  margin: auto;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.collection-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.18);
}

.collection-banner img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-banner:hover img {
  transform: scale(1.08);
}

/* Centered Call-to-Action Button */
.collection-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 34px;
  font-size: 18px;
  background: #000;
  color: #fff;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
}

.collection-btn:hover {
  background: #333;
  transform: translateX(-50%) translateY(-3px);
}

/* Headings */
.pearl-section h2,
.turkish-section h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pearl-section p,
.turkish-section p {
  font-size: 17px;
  color: #555;
  margin-bottom: 28px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .collection-banner img {
    height: 260px;
  }

  .collection-btn {
    bottom: 16px;
    padding: 12px 28px;
    font-size: 16px;
  }

  .pearl-section h2,
  .turkish-section h2 {
    font-size: 32px;
  }
}

/* =========================================================
   TRENDING SECTION – LUXURY / PANDORA STYLE
========================================================= */

.home-trending {
  position: relative;
  padding: 80px 0 90px;
  background: radial-gradient(1200px 420px at 50% -140px,
      rgba(201, 162, 77, 0.12),
      transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 45%, #ffffff 100%);
  overflow: hidden;
}

/* Bottom soft divider */
.home-trending::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(0, 0, 0, 0.12),
      transparent);
}

/* =========================================================
   CONTAINER + STAGE (DEPTH LAYER)
========================================================= */

.trending-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}

/* Soft gallery pedestal */
.trending-container::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: calc(100% - 130px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 36px;
  z-index: 0;
}

/* Lift content above stage */
.trending-heading,
.trending-carousel {
  position: relative;
  z-index: 1;
}

/* =========================================================
   HEADING
========================================================= */

.trending-heading {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-align: center;
  margin-bottom: 34px;

  background: linear-gradient(90deg, #c9a24d, #e4c97a, #c9a24d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

/* Heading anchor */
.trending-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(to right,
      transparent,
      rgba(201, 162, 77, 0.9),
      transparent);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

/* =========================================================
   MOBILE FIRST – SWIPE CAROUSEL
========================================================= */

.trending-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 16px 18px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending-carousel::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   CARD
========================================================= */

.trending-card {
  flex: 0 0 78%;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;

  scroll-snap-align: start;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.trending-card:active {
  transform: scale(0.97);
}

/* =========================================================
   IMAGE (FRAMED LOOK)
========================================================= */

.trending-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;

  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
  border-radius: 20px;
}

/* =========================================================
   BODY / TEXT
========================================================= */

.trending-body {
  padding: 14px 18px 20px;
}

.trending-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.35;
}

.trending-price {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #b8943d;
}

/* =========================================================
   TABLET & DESKTOP – GRID
========================================================= */

@media (min-width: 768px) {
  .home-trending {
    padding: 70px 0 80px;
  }

  .trending-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    overflow: visible;
    padding: 40px 80px;
  }

  .trending-card {
    flex: unset;
    width: 100%;
  }

  .trending-img {
    aspect-ratio: 4 / 3;
  }

  .trending-container::before {
    width: 88%;
  }
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {
  .trending-carousel {
    grid-template-columns: repeat(4, 1fr);
    padding: 50px 100px;
  }
}

/* =========================================================
   DESKTOP HOVER – LUXURY MOTION
========================================================= */

@media (hover: hover) {
  .trending-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  }
}

/* =========================================================
   MOBILE TUNING
========================================================= */

@media (max-width: 767px) {
  .home-trending {
    padding: 60px 0 70px;
  }
}