/* ==========================================================================
   THE CUTESY KRAFTS - LUXURY DTC STOREFRONT STYLESHEET
   Harmonized with the official brand logo: Royal Indigo, Champagne Gold & Pure White
   ========================================================================== */

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

:root {
  --brand-indigo-dark: #120824;
  --brand-indigo: #1E103A;
  --brand-purple: #2E1065;
  --brand-violet: #4C1D95;
  --brand-gold: #D4AF37;
  --brand-gold-warm: #E5A93C;
  --brand-gold-light: #FDE68A;
  --brand-rose: #A86866;
  --brand-rose-dark: #8F5250;
  --brand-cream: #FAF8F5;
  --brand-sand: #F4EFE6;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Caveat', cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  color: #1F1914;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-serif { font-family: var(--font-serif); }
.font-script { font-family: var(--font-script); }

/* Ambient Royal Indigo & Gold Hero Gradients */
.hero-gradient-bg {
  background: radial-gradient(circle at 60% 30%, #35155D 0%, #1E103A 65%, #120824 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF1CA 0%, #E5A93C 50%, #FBE7A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-foil-card {
  background: linear-gradient(145deg, rgba(229, 169, 60, 0.12) 0%, rgba(30, 16, 58, 0.03) 100%);
  border: 1px solid rgba(229, 169, 60, 0.25);
}

/* Luxury Button Shimmer Effect */
@keyframes shimmerPass {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmerPass 4s infinite ease-in-out;
}

/* Card Hover Micro-Interactions */
.product-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(30, 16, 58, 0.08), 0 0 15px -3px rgba(229, 169, 60, 0.12);
  border-color: rgba(229, 169, 60, 0.35);
}

.product-image-container {
  overflow: hidden;
}

.product-image-container img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
  transform: scale(1.03);
}

/* Drawer & Modal Transitions */
.drawer-backdrop {
  transition: opacity 0.28s ease;
}

.drawer-slide {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #FAF8F5;
}

::-webkit-scrollbar-thumb {
  background: #D6D3D1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8A29E;
}

/* Smooth Focus States */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand-gold-warm);
  outline-offset: 2px;
}

/* Luxury Photo Thumbnail Swatches */
.swatch-thumbnail {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid #E7E5E4;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background-color: #FAF8F5;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.75;
  user-select: none;
  -webkit-user-select: none;
}

.swatch-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.swatch-thumbnail:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 10px rgba(30, 16, 58, 0.15);
  border-color: #D4AF37;
}

.swatch-thumbnail:hover img {
  transform: scale(1.15);
}

.swatch-thumbnail.active-swatch {
  opacity: 1 !important;
  transform: scale(1.1);
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #1E103A, 0 6px 14px rgba(30, 16, 58, 0.2);
}

/* Hide scrollbar for clean horizontal swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

