/* ========================================
   CATEGORY GRID
======================================== */
.category-grid { display: grid; gap: 16px; }
.category-grid-row1 { grid-template-columns: repeat(3, 1fr); }
.category-grid-row2 { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.category-tile {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.5s ease;
}
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(90,15,56,0.15), 0 0 0 1px rgba(201,168,76,0.15);
}
.category-tile-bg {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s ease;
}
.category-tile:hover .category-tile-bg {
  transform: scale(1.06);
  filter: brightness(0.9);
}
.category-tile-pattern {
  position: absolute; inset: 0;
  opacity: 0.06; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='cat' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Cpath d='M60 5 L115 60 L60 115 L5 60 Z' fill='none' stroke='%23C9A84C' stroke-width='0.8'/%3E%3Cpath d='M60 20 L100 60 L60 100 L20 60 Z' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23cat)' width='120' height='120'/%3E%3C/svg%3E");
  background-size: 120px;
}
.category-tile-shimmer {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(201,168,76,0.12) 45%, rgba(255,255,255,0.15) 50%, rgba(201,168,76,0.12) 55%, transparent 65%);
  transform: translateX(-120%);
  transition: none;
}
.category-tile:hover .category-tile-shimmer {
  animation: catShimmer 0.8s ease-out forwards;
}
@keyframes catShimmer { to { transform: translateX(120%); } }

.category-tile-icon {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-tile:hover .category-tile-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}
.category-tile-count {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700; color: var(--color-text);
  z-index: 5; letter-spacing: 0.3px;
}
.category-tile-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  z-index: 4;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.category-tile-title {
  font-size: 24px; color: #fff; margin-bottom: 4px;
}
.category-tile-desc {
  font-size: 13px; color: rgba(255,255,255,0.8);
  margin-bottom: 8px; font-family: var(--font-body);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.category-tile:hover .category-tile-desc {
  opacity: 1; transform: translateY(0);
}
.category-tile-link {
  font-size: 12px; font-weight: 700; color: var(--color-gold-light);
  text-transform: uppercase; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s, gap 0.3s ease;
}
.category-tile:hover .category-tile-link { opacity: 1; transform: translateY(0); gap: 10px; }
.category-grid-row2 .category-tile-bg { aspect-ratio: 2/1; }

/* ========================================
   EXPLORE BY NOTES
======================================== */
.notes-section { }
.notes-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.note-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 72px;
}
.note-circle {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--color-bg-ivory);
  border: 1.5px solid rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold);
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 2px 8px rgba(201,168,76,0.06);
  position: relative;
}
.note-item:hover .note-circle {
  background: var(--color-gold);
  color: #fff;
  border-color: var(--color-gold);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.note-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.note-item:hover .note-label {
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Responsive accords — horizontal scroll on smaller screens */
@media (max-width: 959px) {
  .notes-grid {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: 0 20px 8px;
  }
  .notes-grid::-webkit-scrollbar { display: none; }
  .note-item { scroll-snap-align: start; min-width: 68px; }
}
@media (max-width: 639px) {
  .note-item { min-width: 64px; }
  .note-circle { width: 48px; height: 48px; font-size: 18px; }
  .note-label { font-size: 11px; }
}

/* ========================================
   PROMO BANNER
======================================== */
.promo-banner {
  position: relative; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.promo-banner-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, #8B2252 100%);
}
.promo-banner-pattern {
  position: absolute; inset: 0;
  opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='promo' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Cpath d='M60 5 L115 60 L60 115 L5 60 Z' fill='none' stroke='%23C9A84C' stroke-width='0.8'/%3E%3Cpath d='M60 20 L100 60 L60 100 L20 60 Z' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23promo)' width='120' height='120'/%3E%3C/svg%3E");
  background-size: 120px;
}
.promo-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  max-width: 640px; padding: 0 20px;
}
.promo-label {
  display: inline-block;
  padding: 6px 20px; border-radius: 20px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}
.promo-title {
  font-size: 42px; font-weight: 700;
  line-height: 1.15; margin-bottom: 16px;
}
.promo-desc {
  font-size: 16px; line-height: 1.7;
  opacity: 0.85; margin-bottom: 28px;
}

/* ========================================
   TRENDING / VIDEO SECTION
======================================== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  position: relative;
}
.video-card-thumb {
  aspect-ratio: 9/14;
  background: linear-gradient(180deg, #F7C6D0, #7A1B4E);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.video-card-thumb .thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.4);
}
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-dark); font-size: 20px;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.video-card:hover .play-btn {
  background: var(--color-gold); color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}
.video-card-info { padding: 14px 4px; }
.video-card-name {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600;
  color: var(--color-text);
}
.video-card-price {
  font-size: 14px; color: var(--color-gold);
  font-weight: 600; margin-top: 2px;
}

/* ========================================
   LEGACY SECTION
======================================== */
.legacy-section {
  background: var(--color-dark);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.legacy-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.legacy-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.legacy-icon { font-size: 48px; color: var(--color-gold); margin-bottom: 20px; }
.legacy-title {
  font-size: 38px; margin-bottom: 16px; color: #fff;
}
.legacy-desc {
  font-size: 16px; line-height: 1.8;
  opacity: 0.8; margin-bottom: 30px;
}

/* ========================================
   BRAND STORY
======================================== */
.story-section { overflow: hidden; }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.story-image {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  perspective: 600px;
  cursor: pointer;
}
.story-image-inner {
  width: 100%; height: 100%;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  transform-style: preserve-3d;
  will-change: transform;
}
.story-image-inner img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.6s ease;
}
.story-image:hover .story-image-inner img {
  transform: scale(1.06);
}
.story-image-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, transparent 35%, rgba(201,168,76,0.18) 45%, rgba(255,255,255,0.22) 50%, rgba(201,168,76,0.18) 55%, transparent 65%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}
.story-image:hover .story-image-inner::before {
  animation: storyShimmer 0.9s ease-out forwards;
}
@keyframes storyShimmer { to { transform: translateX(120%); } }
.story-image-inner::after {
  content: ''; position: absolute; inset: 10px; z-index: 3;
  border: 1.5px solid rgba(201,168,76,0);
  border-radius: calc(var(--radius-lg) - 6px);
  transition: border-color 0.5s ease 0.1s, inset 0.5s ease 0.1s;
  pointer-events: none;
}
.story-image:hover .story-image-inner::after {
  border-color: rgba(201,168,76,0.35);
  inset: 14px;
}
.story-particles {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  overflow: hidden;
}
.story-particle {
  position: absolute; width: 4px; height: 4px;
  background: radial-gradient(circle, rgba(201,168,76,0.7), transparent);
  border-radius: 50%;
  opacity: 0;
}
.story-image:hover .story-particle {
  animation: particleFloat 2.5s ease-in-out infinite;
}
.story-particle:nth-child(1) { left: 15%; bottom: 0; animation-delay: 0s; }
.story-particle:nth-child(2) { left: 35%; bottom: 0; animation-delay: 0.4s; width: 3px; height: 3px; }
.story-particle:nth-child(3) { left: 55%; bottom: 0; animation-delay: 0.8s; width: 5px; height: 5px; }
.story-particle:nth-child(4) { left: 75%; bottom: 0; animation-delay: 1.2s; }
.story-particle:nth-child(5) { left: 90%; bottom: 0; animation-delay: 0.6s; width: 3px; height: 3px; }
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-280px); }
}
.story-text h2 {
  font-size: 36px; margin-bottom: 16px;
}
.story-text p {
  font-size: 15px; line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ========================================
   NEWSLETTER
======================================== */
.newsletter-section { background: var(--color-bg-ivory); }
.newsletter-inner {
  max-width: 580px; margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 { font-size: 32px; margin-bottom: 8px; }
.newsletter-inner p {
  font-size: 15px; color: var(--color-text-muted);
  margin-bottom: 24px;
}
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; padding: 14px 20px;
  border: 1.5px solid #ddd; border-radius: 30px;
  background: #fff; outline: none;
  font-size: 14px;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--color-gold); }
.newsletter-form button {
  padding: 14px 32px; border-radius: 30px;
  background: var(--color-gold); color: #fff;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--color-gold-dark); }
.newsletter-form button.subscribed { background: var(--color-success); }
.newsletter-privacy {
  font-size: 12px; color: var(--color-text-muted);
  margin-top: 12px;
}

/* ========================================
   SWIPE HINT (mobile only)
======================================== */
.swipe-hint {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  padding: 10px 0 4px;
  font-size: 12px; font-weight: 600; color: var(--color-text-muted);
  letter-spacing: 0.5px;
  animation: swipeHintAnim 1.5s ease-in-out 2, swipeHintFade 0.5s ease 4s forwards;
}
.swipe-hint i {
  font-size: 16px; color: var(--gold);
  animation: swipeIconSlide 1.5s ease-in-out 2;
}
@keyframes swipeIconSlide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}
@keyframes swipeHintAnim {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes swipeHintFade {
  to { opacity: 0; visibility: hidden; }
}

/* ── Tablet Optimizations ── */
@media (max-width: 1023px) {
  .category-grid-row1 { grid-template-columns: repeat(2, 1fr); }
  .trending-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .story-grid { gap: 32px; }
  .brand-legacy-title { font-size: 28px; }
  .gifting-content h2 { font-size: 28px; }
}
@media (max-width: 767px) {
  .category-grid-row1 { grid-template-columns: 1fr; }
  .category-grid-row2 { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
}
