/* ==========================================================================
   HARSH STUDIO & ATELIER - AESTHETIC CHIC FASHION STYLESHEET
   Inspired by ONLY.in (Modern European street-glam, minimalist luxury)
   ========================================================================== */

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

:root {
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --color-primary: #121212;
  --color-secondary: #242424;
  --color-accent: #c44f32;
  --color-bg-cream: #f9f8f5;
  --color-bg-subtle: #f3f0ea;
  --color-border: #e6e2db;
  --color-border-dark: #2a2a2a;
  --color-gold: #c89d56;

  --header-height: 80px;
  --announcement-height: 38px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-primary);
  overflow-x: hidden;
}

/* Typography Helpers */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

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

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-cream);
}
::-webkit-scrollbar-thumb {
  background: #bbb5aa;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #888277;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(249, 248, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 226, 219, 0.8);
  transition: all 0.35s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Marquee / Infinite Ticker */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ONLY-Style Dual Image Hover Card */
.product-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

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

.product-image-primary,
.product-image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.product-image-hover {
  opacity: 0;
}

.product-card:hover .product-image-primary {
  transform: scale(1.04);
  opacity: 0;
}

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

/* Quick Size Bar Hover Reveal */
.quick-size-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
}

.product-card:hover .quick-size-bar {
  transform: translateY(0);
}

/* Quick Action Buttons (Wishlist, Quick View) */
.product-action-btn {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-action-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Wishlist Heart Bounce */
.heart-active {
  color: #e53935 !important;
  fill: #e53935 !important;
  animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Hotspot Pulsing Beacon (Shop The Look) */
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 20;
}

.hotspot-dot {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.hotspot-pin:hover .hotspot-dot {
  transform: scale(1.3);
  background: #111111;
}

.hotspot-wave {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: wavePulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes wavePulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Hotspot Popover Tooltip */
.hotspot-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 220px;
  z-index: 30;
}

.hotspot-pin:hover .hotspot-popover,
.hotspot-popover.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Drawers & Slide-overs */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 998;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.drawer-panel.open {
  transform: translateX(0);
}

/* Story Reels Circular Story Avatar */
.story-avatar-wrap {
  position: relative;
  padding: 3px;
  border-radius: 9999px;
  background: linear-gradient(45deg, #c44f32, #c89d56, #242424);
  transition: transform 0.25s ease;
}

.story-avatar-wrap:hover {
  transform: scale(1.06);
}

.story-avatar-inner {
  border-radius: 9999px;
  border: 2px solid var(--color-bg-cream);
  overflow: hidden;
}

/* Free Shipping Meter Progress */
.progress-bar-fill {
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  background: #121212;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Button Shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg);
  animation: shimmerFlow 4s infinite;
}

@keyframes shimmerFlow {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

/* Custom Radio & Checkbox Styling */
.custom-radio:checked {
  border-color: #121212;
  background-color: #121212;
}

/* Editorial Badge */
.badge-editorial {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
}
