/* ==========================================================================
   JACK & SPARROW - DESIGNED IN PARIS
   EXACT MR BUTTON DUPE DESIGN SYSTEM
   LUMINOUS WHITE & LUXURY BLACK & METALLIC GOLD PALETTE
   - Backgrounds: Clean, high-contrast Pure White (#ffffff, #fafafa, #f5f5f5)
   - Typography & Structure: Jet Black (#000000, #111111, #222222)
   - Accents: Radiant Metallic Gold (#d4af37, #c5a059, #b89126)
   ========================================================================== */

/* Font stylesheet preconnected and linked in index.html head for non-blocking parallel fetch */

:root {
  --color-bg-white: #ffffff;
  --color-bg-light: #fafafa;
  --color-bg-subtle: #f4f4f4;
  --color-border-light: #e5e5e5;
  --color-border-dark: #1f1f1f;
  
  --color-text-black: #000000;
  --color-text-dark: #181818;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  
  --color-gold: #d4af37;
  --color-gold-hover: #b89126;
  --color-gold-light: #fef9ea;
  --color-gold-glow: #e5c158;
  
  --font-sans: 'Montserrat', 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  
  --gold-gradient: linear-gradient(135deg, #f7e7be 0%, #d4af37 50%, #aa8222 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #f3df9b 50%, #d4af37 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg-white);
  color: var(--color-text-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg-white);
  color: var(--color-text-black);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

/* Haute Paris Typography System (Cinzel Luxury Serifs + Montserrat Clean Tracking) */
h1, h2, h3, h4, 
.font-display, 
.font-serif,
.editorial-title {
  font-family: var(--font-display) !important;
  letter-spacing: 0.12em;
}

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

.tracking-mrbutton { letter-spacing: 0.16em; }
.tracking-wide-luxury { letter-spacing: 0.25em; }

/* Gold Shimmer & Accents */
.text-gold {
  color: var(--color-gold);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-gold {
  background-color: var(--color-gold);
  color: #000000;
}

.border-gold {
  border-color: var(--color-gold);
}

.border-gold-subtle {
  border-color: rgba(212, 175, 55, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c2c2c2;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Utilities to completely hide scrollbars */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Buttons */
.btn-black-primary {
  background-color: #000000;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid #000000;
}

.btn-black-primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #000000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold-primary {
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 1px solid var(--color-gold);
}

.btn-gold-primary:hover {
  background: #000000;
  color: var(--color-gold);
  border-color: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-outline-black {
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-outline-black:hover {
  background: #000000;
  color: #ffffff;
}

.btn-outline-gold {
  background: transparent;
  color: #000000;
  border: 1px solid var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #000000;
}

/* Header & Navigation */
.mrbutton-header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
}

.mrbutton-nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  position: relative;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.mrbutton-nav-link:hover, .mrbutton-nav-link.active {
  color: var(--color-gold);
}

.mrbutton-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.mrbutton-nav-link:hover::after, .mrbutton-nav-link.active::after {
  width: 100%;
}

/* Luxury Transparent & Black Header Nav Links (All White by default, Gold on Hover, Red for Super Sale) */
.header-nav-link {
  font-family: 'Jost', 'Montserrat', var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  position: relative;
  transition: all 0.25s ease;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.header-nav-link:hover, .header-nav-link.active {
  color: var(--color-gold);
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.header-nav-link:hover::after, .header-nav-link.active::after {
  width: 100%;
}

.header-nav-link.sale {
  color: #ef4444;
  font-weight: 700;
}

.header-nav-link.sale:hover {
  color: #f87171;
}

.header-nav-link.sale::after {
  background-color: #ef4444;
}

/* Reference Screenshot Exact Header Styling (HOME, SHOP BY CATEGORY, MEN, WOMEN, SUPER SALE, LA CRESSIDA) */
.lacressida-nav-item {
  font-family: 'Montserrat', 'Jost', var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  transition: all 0.25s ease;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.lacressida-nav-item:hover, .lacressida-nav-item.active {
  color: var(--color-gold);
}

.lacressida-nav-item.sale {
  color: #ff3b30;
  font-weight: 600;
}

.lacressida-nav-item.sale:hover {
  color: #ff6655;
}

.lacressida-icon-btn {
  color: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.lacressida-icon-btn:hover {
  color: var(--color-gold);
  transform: translateY(-1px);
}

@media (max-width: 639px) {
  .mobile-hide-icon {
    display: none !important;
  }
}

/* Top Announcement Slider (Pure Black Luxury Auto-Moving Banner - Premium Jost/Montserrat) */
.announcement-bar {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Jost', 'Montserrat', var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 450;
  text-transform: none;
  height: 38px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 45;
  border-bottom: 1px solid #141414;
}

@media (min-width: 640px) {
  .announcement-bar {
    font-size: 12px;
    letter-spacing: 0.12em;
    height: 40px;
  }
}

.announcement-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: calc(100vw - 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 4px;
  transition: width 0.35s ease;
}

@media (min-width: 640px) {
  .announcement-slider-wrapper {
    width: auto;
    max-width: 82vw;
    margin: 0 10px;
  }
}

.announcement-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.announcement-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.announcement-slide.prev {
  position: absolute;
  opacity: 0;
  transform: translateY(-100%);
}

.announcement-text {
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  text-decoration: none !important;
  font-family: 'Jost', 'Montserrat', var(--font-sans);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.08em;
  text-transform: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .announcement-text {
    font-size: 12px;
    letter-spacing: 0.12em;
    gap: 12px;
  }
}

.announcement-text * {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-main-text {
  color: #ffffff !important;
  text-decoration: none !important;
}

.announcement-action-text {
  color: #ffffff !important;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none !important;
}

.announcement-separator {
  color: #ffffff !important;
  opacity: 0.9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  margin: 0 3px;
  display: inline-block;
  text-decoration: none !important;
  vertical-align: baseline;
}

/* Hover color state: transitions from pure white to rich metallic gold */
.announcement-text:hover,
.announcement-text:hover * {
  color: #d4af37 !important;
}

.announcement-nav-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 10;
}

.announcement-nav-btn:hover {
  color: #ffffff;
}

/* Product Grid Cards (Clean, Crisp White) */
.product-grid-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-grid-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 10px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.product-media-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #f7f7f7;
}

.product-media-box img.primary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.product-media-box img.secondary-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.product-grid-card:hover .product-media-box img.primary-img {
  opacity: 0;
  transform: scale(1.04);
}

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

/* Star Rating pill directly on image (Exact Mr Button style) */
.mrbutton-star-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  color: #000000;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 2px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Quick Add Size Bar (Exact Mr Button hover drawer) */
.quick-size-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-gold);
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

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

.size-btn {
  background: #f5f5f5;
  color: #000000;
  border: 1px solid #dcdcdc;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.size-btn:hover {
  background: var(--color-gold);
  color: #000000;
  border-color: var(--color-gold);
}

/* Wishlist Button */
.wishlist-float-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.wishlist-float-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000000;
}

.wishlist-float-btn.active {
  background: #ffffff;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Category Circle Cards (Mr Button signature layout) */
.category-round-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-round-card:hover .circle-img-wrap {
  border-color: var(--color-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transform: scale(1.05);
}

.circle-img-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e5e5;
  transition: all 0.3s ease;
  margin: 0 auto;
  background-color: #f5f5f5;
}

@media (max-width: 640px) {
  .circle-img-wrap {
    width: 86px;
    height: 86px;
  }
}

/* Complete The Look Section */
.complete-look-box {
  background: #fafafa;
  border: 1px solid #e5e5e5;
}

/* Slide-out Drawers */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel.active {
  transform: translateX(0);
}

/* Modals */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-container {
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Mobile Responsiveness & Ultra-Smooth Touch Optimization */
@media (max-width: 768px) {
  body {
    padding-bottom: 0px;
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevent accidental horizontal overflow or rubber-banding */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Smooth Touch Interactions & High-Performance Rendering */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select {
  touch-action: manipulation;
}

/* Safe Area Inset Support for modern mobile devices (iPhone notch/home indicator) */
.safe-pb {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.safe-pt {
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}

/* BlissClub-Style Infinite Moving Marquee Ticker (Hardware Accelerated) */
@keyframes marquee-infinite-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-infinite-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  white-space: nowrap;
  user-select: none;
}

.marquee-infinite-track {
  display: inline-flex;
  width: max-content;
  animation: marquee-infinite-scroll var(--marquee-speed, 28s) linear infinite;
  will-change: transform;
}

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

