/* styles/components.css */

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

.custom-cursor.hover {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.2);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 5%;
  transition: var(--transition-smooth);
  background: var(--bg-charcoal);
  color: var(--text-on-dark);
}

.navbar.scrolled {
  background: var(--bg-charcoal);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.nav-brand, .nav-brand a {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold-primary) 0%, #fff 50%, var(--gold-primary) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerLogo 6s linear infinite;
  display: inline-block;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

@keyframes shimmerLogo {
  to {
    background-position: 200% center;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-links a {
  color: var(--text-on-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icons span {
  cursor: auto;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.nav-icons span:hover {
  color: var(--gold-primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: auto;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: left 0.4s ease;
  }
  .nav-links.open {
    left: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
}

/* Particle Canvas */
#particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
}

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

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  z-index: -2;
  object-fit: cover;
  opacity: 0.75; /* brighter for clarity on light bg */
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(207, 200, 189, 0) 20%, var(--bg-light) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff 40%, #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.7));
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Footer */
footer {
  background: var(--bg-charcoal);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
  color: #ccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .footer-col:nth-child(1),
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
  }
}

.footer-col h3 {
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #a1a1aa;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #a1a1aa;
  font-size: 0.8rem;
}

/* Product Card */
.product-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: auto;
  background: var(--bg-charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.1);
  transform: translateY(-4px);
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: #4a433a;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.5s ease;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Hover: swap images */
.product-img.secondary {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s ease;
}

.product-card:hover .product-img.primary {
  opacity: 0;
}

.product-card:hover .product-img.secondary {
  opacity: 1;
  transform: scale(1.04);
}

/* Card Footer */
.product-footer {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-charcoal);
  color: var(--text-on-dark);
}

.product-footer .text-muted {
  color: #a1a1aa !important;
}

.product-footer a {
  color: var(--text-on-dark);
}

.product-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-on-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  color: var(--gold-primary);
  font-size: 1.1rem;
  font-weight: 500;
}

.add-to-cart-btn {
  margin-top: 0.6rem;
  display: block;
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-primary);
  font-family: var(--font-main);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: auto;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}

.add-to-cart-btn:hover::before {
  transform: scaleX(1);
}

.add-to-cart-btn:hover {
  color: var(--bg-deep);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

/* Responsive Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Floating Socials */
.floating-socials {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light-alt);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  box-shadow: 0 0 15px var(--gold-glow);
  cursor: auto;
  animation: spinCoin 4s linear infinite;
  transition: all 0.3s ease;
}

.social-icon:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--gold-primary);
}

@keyframes spinCoin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@media (max-width: 768px) {
  .floating-socials {
    bottom: 20px;
    right: 20px;
  }
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* --- Brand Slider --- */
.brand-slider-section {
  padding: 4rem 0;
  overflow: hidden;
  background: transparent; /* Background removed as requested */
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.brand-slider-container {
  display: flex;
  width: calc(250px * 14);
  animation: scrollBrands 30s linear infinite;
}

.brand-item {
  width: 250px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08); /* Frame background */
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  margin: 0 15px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.brand-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-5px);
}

.brand-logo {
  max-width: 180px; /* Reset to more balanced size */
  max-height: 60px;
  object-fit: contain;
  filter: contrast(1.1);
  /* mix-blend-mode removed as requested */
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  font-size: 1.2rem;
  text-transform: uppercase;
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

/* --- Review Slider --- */
.reviews-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(92, 83, 71, 0.5), transparent);
  overflow: hidden;
  position: relative;
}

.reviews-container {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollReviews 40s linear infinite;
  padding: 2rem 0;
}

.review-card {
  width: 400px;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
}

.review-stars {
  color: var(--gold-primary);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-on-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
}

.review-author {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-400px * 4 - 2rem * 4)); }
}

/* --- Review Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-charcoal);
  border: 1px solid var(--gold-primary);
  padding: 3rem;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--gold-primary);
}

.rating-stars {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
}

.rating-stars .star {
  cursor: pointer;
  transition: color 0.2s;
}

.rating-stars .star.active {
  color: var(--gold-primary);
}

.review-form input, .review-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  color: white;
  margin-bottom: 1rem;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}

.review-form input:focus, .review-form textarea:focus {
  border-color: var(--gold-primary);
}
