@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;800&display=swap');

/* ========================================================
   OPTIQR ROSE CASHMERE & VELVET BOUTIQUE DESIGN SYSTEM
   (Vibrant, eye-catching, warm luxury retail aesthetic)
   ======================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-page: #FAF7F5;
  --bg-surface: #FFFFFF;
  --text-main: #1C1917;
  --text-muted: #78716C;
  
  --primary-rose: #E11D48;
  --primary-rose-hover: #BE185D;
  --primary-rose-light: #FFE4E6;
  
  --accent-gold: #F59E0B;
  --accent-gold-light: #FEF3C7;
  
  --border-subtle: #E7E5E4;
  --border-focus: #E11D48;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(254, 226, 226, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(254, 243, 199, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(253, 230, 138, 0.25) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

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

/* Boutique Glass Header */
.glass-header {
  background: rgba(255, 250, 248, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(254, 205, 211, 0.75);
  box-shadow: 0 4px 20px -4px rgba(225, 29, 72, 0.05);
}

/* Boutique Store Logo Frame - Luxury Circular Medallion */
.boutique-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  padding: 2.5px;
  background: linear-gradient(135deg, #E11D48 0%, #FDA4AF 45%, #F59E0B 100%);
  box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
}

.boutique-logo-frame:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 6px 18px -2px rgba(225, 29, 72, 0.35);
}

.boutique-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.boutique-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.3s ease;
  display: block;
}

.boutique-logo-frame:hover .boutique-logo-img {
  transform: scale(1.05);
}

/* Eye-Catching Animated Promo Ticker */
.ticker-strip {
  background: linear-gradient(90deg, #FFF1F2 0%, #FEF3C7 50%, #FFF1F2 100%);
  border-bottom: 1px solid rgba(244, 63, 94, 0.15);
  overflow: hidden;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 28s linear infinite;
}

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

/* Interactive Color Tone Swatch Orbs */
.color-swatch-orb {
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
}

.color-swatch-orb:hover {
  transform: translateY(-2px) scale(1.04);
}

.color-swatch-orb.active {
  transform: translateY(-2px) scale(1.08);
}

.color-swatch-orb .orb-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2.5px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.color-swatch-orb.active .orb-ring {
  border-color: #E11D48;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.4);
}

.color-swatch-orb .orb-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}

/* Cute Background Floating Bears, Candies & Sweet Delights */
.cute-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cute-floating-item {
  position: absolute;
  user-select: none;
  animation: float-gentle 6.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.15));
}

.cute-floating-sway {
  position: absolute;
  user-select: none;
  animation: float-sway 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.15));
}

.cute-floating-bob {
  position: absolute;
  user-select: none;
  animation: float-bob 7.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, 0.15));
}

@keyframes float-gentle {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-9px) rotate(6deg) scale(1.04); }
  100% { transform: translateY(4px) rotate(-4deg) scale(0.98); }
}

@keyframes float-sway {
  0% { transform: translate(0px, 0px) rotate(-5deg); }
  50% { transform: translate(6px, -10px) rotate(4deg); }
  100% { transform: translate(-5px, 5px) rotate(-2deg); }
}

@keyframes float-bob {
  0% { transform: translateY(0px) rotate(8deg); }
  50% { transform: translateY(-12px) rotate(-7deg) scale(1.03); }
  100% { transform: translateY(6px) rotate(4deg) scale(0.97); }
}

/* Top Choice Feature Cards - Cute Balanced Proportions (Just a little bit bigger) */
.top-choice-card {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7F8 100%);
  border: 1.5px solid #FECDD3;
  border-radius: 1.15rem;
  box-shadow: 0 4px 12px -2px rgba(225, 29, 72, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.top-choice-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #E11D48;
  box-shadow: 0 10px 22px -4px rgba(225, 29, 72, 0.18);
}

/* Boutique Product Card */
.boutique-card {
  background: #FFFFFF;
  border: 1px solid rgba(231, 229, 228, 0.9);
  box-shadow: 0 2px 8px -2px rgba(28, 25, 23, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.boutique-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: 0 16px 30px -8px rgba(225, 29, 72, 0.12), 0 0 15px 0 rgba(254, 205, 211, 0.3);
}

/* Product Card Image Container with Iris Halo */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #FDF4F5;
}

.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.product-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.boutique-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

/* Category Filter Pills */
.category-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  color: #57534E;
  font-weight: 600;
}

.category-btn:hover {
  background: #FFF1F2;
  color: #E11D48;
  border-color: #FECDD3;
}

.category-btn.active {
  background: #E11D48 !important;
  color: #FFFFFF !important;
  border-color: #E11D48 !important;
  box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.35) !important;
}

/* Color Filter Pills */
.color-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid #E7E5E4;
  color: #44403C;
  font-weight: 600;
  font-size: 11px;
}

.color-btn:hover {
  background: #F5F5F4;
  border-color: #D6D3D1;
}

.color-btn.active {
  background: #1C1917 !important;
  color: #FFFFFF !important;
  border-color: #1C1917 !important;
  box-shadow: 0 3px 10px -2px rgba(28, 25, 23, 0.3) !important;
}

/* Primary Action Button */
.btn-rose {
  background: linear-gradient(135deg, #E11D48 0%, #BE185D 100%);
  color: #FFFFFF;
  border: 1px solid rgba(225, 29, 72, 0.4);
  box-shadow: 0 4px 14px -2px rgba(225, 29, 72, 0.35);
  transition: all 0.18s ease;
}

.btn-rose:hover {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  box-shadow: 0 6px 20px -3px rgba(225, 29, 72, 0.5);
  transform: translateY(-1px);
}

.btn-rose:active {
  transform: translateY(0) scale(0.97);
}

/* Interactive On-Card Stepper */
.card-stepper {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #E11D48;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px 4px;
}

.card-stepper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.15s ease;
}

.card-stepper button:hover {
  background: #E11D48;
  color: #FFFFFF;
}

.card-stepper .stepper-qty {
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  font-size: 12px;
}

/* Floating Bag Bar */
#floating-cart-bar {
  filter: drop-shadow(0 20px 30px rgba(225, 29, 72, 0.25));
}

.floating-bar-inner {
  background: rgba(28, 25, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 45px -10px rgba(28, 25, 23, 0.4);
}

/* Native Dialog Styles with Spring Animation */
dialog {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), display 0.24s allow-discrete, overlay 0.24s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
}

dialog::backdrop {
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), display 0.24s allow-discrete, overlay 0.24s allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Mobile Bottom Sheet */
@media (max-width: 640px) {
  dialog.mobile-bottom-sheet {
    margin-bottom: 0;
    margin-top: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(100%);
  }

  dialog.mobile-bottom-sheet[open] {
    transform: translateY(0);
  }

  @starting-style {
    dialog.mobile-bottom-sheet[open] {
      transform: translateY(100%);
    }
  }
}

/* Pulsing Badge Indicator */
.pulse-rose {
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: pulse-rose 2s infinite;
}

@keyframes pulse-rose {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(225, 29, 72, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* Hide scrollbars cleanly */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.scrollbar-none,
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Thermal Receipt Print Styles (80mm) */
@media print {
  body * {
    visibility: hidden;
  }
  #thermal-receipt, #thermal-receipt * {
    visibility: visible;
  }
  #thermal-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 10px;
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.3;
    display: block !important;
  }
  #printable-stand, #printable-stand * {
    visibility: visible;
  }
  #printable-stand {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 32px;
    display: block !important;
  }
  .no-print {
    display: none !important;
  }
}
