@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* ==========================================
   YUJEE BOUTIQUE — LUXURY PRODUCTS STYLESHEET
   ========================================== */

:root {
  --maroon-primary: #691b2d;
  --maroon-deep: #4a0d1b;
  --maroon-dark: #380812;
  --gold-primary: #D4AF37;
  --gold-dark: #aa861d;
  --gold-light: #F4E8C1;
  --bg-cream: #FFF8F5;
  --bg-cream-alt: #F8F4F1;
  --text-dark: #2B1518;
  --text-muted: #6B5559;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --radius-card: 24px;
  --radius-pill: 50px;
}

.collections-page {
  background-color: var(--bg-cream);
  min-height: 600px;
  padding: 0 0 70px;
  font-family: var(--font-body);
  margin-top: 100px;
}

/* ==========================================
   SECTION 1 — LUXURY HERO BANNER
   ========================================== */
.products-hero {
  position: relative;
  background: linear-gradient(135deg, #380812 0%, #561223 50%, #450c1b 100%);
  color: #FFFFFF;
  padding: 70px 24px 60px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.25);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.products-hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.products-hero .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-primary);
  padding: 7px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.products-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(135deg, #FFF6D6 0%, #EAB75F 40%, #D4AF37 70%, #AA861D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 4px 22px rgba(0,0,0,0.4);
  letter-spacing: 1px;
  text-align: center;
}

.products-hero p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.7;
  text-align: center;
}

.gold-ornament-divider-products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 220px;
  margin: 4px auto 0;
}

.gold-ornament-line-products {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gold-ornament-icon-products {
  color: var(--gold-primary);
  font-size: 16px;
  line-height: 1;
}

/* ==========================================
   CATEGORY TABS (TOUCH-SCROLLABLE ON MOBILE)
   ========================================== */
.collections-page .tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  padding: 0 24px;
}

.collections-page .tab {
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold-primary);
  background: #FFFFFF;
  color: var(--maroon-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 14px rgba(105, 27, 45, 0.05);
  white-space: nowrap;
}

.collections-page .tab:hover {
  background: var(--bg-cream-alt);
  border-color: var(--maroon-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(105, 27, 45, 0.12);
}

.collections-page .tab.on {
  background: var(--maroon-primary);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(105, 27, 45, 0.3);
}

/* ==========================================
   SECTIONS & SECTION HEADERS
   ========================================== */
.collections-page .section {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.collections-page .section.on {
  display: block;
}

.collections-page .sec-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.collections-page .sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.collections-page .sec-label {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--maroon-primary);
  white-space: nowrap;
}

/* ==========================================
   PRODUCT CARDS GRID
   ========================================== */
.collections-page .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.collections-page .card {
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1.5px solid #F5E6D8;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 10px 30px rgba(105, 27, 45, 0.07);
  display: flex;
  flex-direction: column;
}

.collections-page .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(105, 27, 45, 0.16);
  border-color: var(--gold-primary);
}

.collections-page .cimg {
  position: relative;
  height: 175px;
  width: 100%;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F8F0EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.collections-page .cimg img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
  margin: auto;
  filter: drop-shadow(0 6px 14px rgba(105, 27, 45, 0.12));
}

.collections-page .card:hover .cimg img {
  transform: scale(1.08);
}

.collections-page .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #691b2d;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.collections-page .cbody {
  padding: 16px 12px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
}

.collections-page .cname {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #691b2d;
  margin-bottom: 4px;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collections-page .csub {
  font-size: 0.78rem;
  color: #777777;
  margin-bottom: 8px;
  font-weight: 400;
}

.collections-page .cgold-line {
  color: #D4AF37;
  font-size: 12px;
  margin-bottom: 10px;
  opacity: 0.85;
}

.collections-page .cprice-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.collections-page .cprice {
  font-size: 1.25rem;
  font-weight: 700;
  color: #691b2d;
}

.collections-page .cold {
  font-size: 0.88rem;
  color: #AAAAAA;
  text-decoration: line-through;
  font-weight: 400;
}

.collections-page .btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.collections-page .buy-btn {
  flex: 1;
  height: 38px;
  background: #691b2d;
  color: #FFFFFF;
  border-radius: 8px;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(105, 27, 45, 0.2);
}

.collections-page .buy-btn:hover {
  background: var(--gold-primary);
  color: #691b2d;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.collections-page .cwish {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #691b2d;
  color: #691b2d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.collections-page .cwish:hover,
.collections-page .cwish.liked {
  background: #691b2d;
  color: #FFFFFF;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1200px) {
  .collections-page .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .products-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .collections-page .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .collections-page {
    margin-top: 90px;
  }
  .products-hero {
    padding: 55px 20px 48px;
    margin-bottom: 30px;
  }
  .products-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .collections-page {
    margin-top: 80px;
    padding: 0 0 50px;
  }
  .products-hero {
    padding: 40px 16px 35px;
    margin-bottom: 24px;
  }
  .products-hero-mandala {
    width: 320px;
    height: 320px;
  }
  .products-hero .eyebrow-pill {
    padding: 5px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
  }
  .products-hero h1 {
    font-size: 1.95rem;
    margin-bottom: 10px;
  }
  .products-hero p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 14px;
    padding: 0 10px;
  }
  .gold-ornament-divider-products {
    width: 170px;
  }

  /* Horizontal swipeable tabs on mobile */
  .collections-page .tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 16px 12px;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .collections-page .tabs::-webkit-scrollbar {
    display: none;
  }
  .collections-page .tab {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 0.8rem;
  }

  .collections-page .section {
    padding: 0 16px;
  }
  .collections-page .sec-bar {
    gap: 12px;
    margin-bottom: 1.4rem;
  }
  .collections-page .sec-label {
    font-size: 1.3rem;
  }

  /* 2-Column Grid on Mobile */
  .pgrid, .grid, .collections-page .grid, .collections-page .pgrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .pcard, .card, .collections-page .card {
    border-radius: 14px;
  }
  .pcard .pimg, .card .cimg, .collections-page .cimg {
    height: 155px !important;
    padding: 6px;
  }
  .pcard .pbody, .card .cbody, .collections-page .cbody {
    padding: 12px 8px 10px !important;
  }
  .pcard .pname, .card .cname, .collections-page .cname {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
    height: 2.5em !important;
  }
  .pcard .psub, .card .csub, .collections-page .csub {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
  }
  .pcard .pprice-block, .card .cprice-row, .collections-page .cprice-row {
    gap: 4px !important;
    margin-bottom: 8px !important;
  }
  .pcard .pprice, .card .cprice, .collections-page .cprice {
    font-size: 1.02rem !important;
  }
  .pcard .pold, .card .cold, .collections-page .cold {
    font-size: 0.75rem !important;
  }
  .btn-cart-txt {
    display: none !important;
  }
  .pcard .pactions-row, .card .btn-row, .collections-page .btn-row {
    justify-content: center !important;
    gap: 12px !important;
  }
  .pcard .btn-add-cart, .card .buy-btn, .collections-page .buy-btn, .collections-page .btn-add-cart {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    gap: 0 !important;
  }
  .pcard .btn-wish, .card .cwish, .collections-page .cwish {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .products-hero h1 {
    font-size: 1.75rem !important;
  }
  .pgrid, .grid, .collections-page .grid, .collections-page .pgrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .pcard .pimg, .card .cimg, .collections-page .cimg {
    height: 145px !important;
  }
  .pcard .pname, .card .cname, .collections-page .cname {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 320px) {
  .pgrid, .grid, .collections-page .grid, .collections-page .pgrid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pcard .pimg, .card .cimg, .collections-page .cimg {
    height: 200px !important;
  }
}
