/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button {
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: inherit;
}
input { font-family: inherit; font-size: inherit; }
select { font-family: inherit; font-size: inherit; }

/* Global focus-visible ring for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
:focus:not(:focus-visible) { outline: none; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   GLOBAL SELECT / DROPDOWN
======================================== */
select {
  accent-color: var(--color-gold, #C9A84C);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--color-gold-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A84C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}
select:hover {
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(201,168,76,0.12);
}
select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1), 0 2px 8px rgba(201,168,76,0.12);
  color: var(--color-text);
}
select option {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: #fff;
}
select option:checked {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  color: var(--color-gold-dark);
}
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--color-border);
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }

.container {
  max-width: 1320px; margin: 0 auto;
  padding: 0 20px;
}
.section-padding { padding: 60px 0; }

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 34px; color: var(--color-text);
}
.section-header p {
  font-size: 15px; color: var(--color-text-muted);
  margin-top: 4px; font-family: var(--font-body);
}
.view-all-link {
  font-size: 14px; font-weight: 600;
  color: var(--color-gold); text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 6px;
  transition: gap var(--transition), color var(--transition);
  white-space: nowrap;
}
.view-all-link:hover { color: var(--color-gold-dark); gap: 10px; }

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 30px;
  background: var(--color-gold); color: #fff;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative; overflow: hidden;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--color-gold-light);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
    transform: translateY(-2px);
  }
}
.btn-primary:active { background: var(--color-gold-dark); transform: none; }

/* Button ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  z-index: 0;
}
@keyframes rippleAnim {
  to { transform: scale(2); opacity: 0; }
}

/* Disable tap highlight on mobile */
.btn-primary, .btn-outline, .btn-gold-outline {
  -webkit-tap-highlight-color: transparent;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 30px;
  background: transparent;
  border: 2px solid #fff; color: #fff;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .btn-outline:hover {
    background: #fff; color: var(--color-text);
    transform: translateY(-2px);
  }
}

.btn-gold-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 34px; border-radius: 30px;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .btn-gold-outline:hover {
    background: var(--color-gold); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
  }
}

/* Button hover shine */
.btn-primary::before,
.checkout-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
@media (hover: hover) {
  .btn-primary:hover::before,
  .checkout-btn:hover::before {
    left: 120%;
  }
}

/* Magnetic button effect */
.btn-magnetic {
  transition: transform 0.2s ease-out;
}

/* ========================================
   UTILITY
======================================== */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========================================
   DYNAMIC EFFECTS
======================================== */
/* Scroll Progress Bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--gold));
  z-index: 9999;
  transition: width 0.05s linear;
}

/* Floating Particles */
.particles-container {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100%) scale(0); }
  15% { opacity: 0.6; }
  85% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* Card tilt glow */
.product-card .tilt-glow {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; z-index: 10;
}
.product-card:hover .tilt-glow { opacity: 1; }

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--gold);
  margin-left: 3px;
  animation: blink-cursor 0.7s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink-cursor {
  50% { opacity: 0; }
}

/* Stagger reveal */
.stagger-item {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.visible {
  opacity: 1; transform: translateY(0);
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-bg {
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Smooth card entrance — works in both Swiper carousels and static grids */
.product-card {
  opacity: 0; transform: translateY(20px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-card.card-visible,
.swiper-slide-visible .product-card {
  opacity: 1; transform: translateY(0) scale(1);
}

/* Glow pulse on note circles */
.note-item:hover .note-circle {
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(201,168,76,0.35); }
  50% { box-shadow: 0 6px 30px rgba(201,168,76,0.5); }
}

/* ── Tablet Optimizations ── */
@media (max-width: 1023px) {
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 14px; }
  .btn-primary, .btn-outline { padding: 12px 28px; font-size: 14px; }
  .section-padding { padding: 48px 0; }
}
@media (max-width: 639px) {
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 13px; }
  .btn-primary, .btn-outline { padding: 11px 22px; font-size: 13px; }
  .section-padding { padding: 36px 0; }
  .container { padding: 0 16px; }
}
