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

:root {
  --bg-primary: #FDFBF7;
  --bg-secondary: #F7F2EA;
  --bg-tertiary: #EFE6D8;
  --text-primary: #2C1810;
  --text-secondary: #6E5D53;
  --text-muted: #9B887D;
  --border-color: #EADFD0;
  --card-bg: #FFFFFF;
  --accent-caramel: #C68B59;
  --accent-honey: #DDA15E;
  --accent-rose: #E8A598;
  --accent-cream: #FAF6EE;
  --chocolate-dark: #2C1810;
  --chocolate-rich: #3D2314;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --header-height: 80px;
}

[data-theme="dark"] {
  --bg-primary: #17100D;
  --bg-secondary: #221713;
  --bg-tertiary: #2D1F1A;
  --text-primary: #FDFBF7;
  --text-secondary: #D7C7BC;
  --text-muted: #8E7B70;
  --border-color: #38251E;
  --card-bg: #221713;
  --accent-caramel: #DDA15E;
  --chocolate-dark: #FDFBF7;
  --chocolate-rich: #EFE6D8;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

/* Warm Bakery Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-caramel);
}

/* Bakery Button Styles */
.btn-bakery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #3D2314;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid #3D2314;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(61, 35, 20, 0.15);
}

.btn-bakery:hover {
  background-color: #C68B59;
  border-color: #C68B59;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 139, 89, 0.25);
}

.btn-bakery:active {
  transform: translateY(0);
}

.btn-bakery-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-bakery-outline:hover {
  border-color: var(--accent-caramel);
  color: var(--accent-caramel);
  background-color: rgba(198, 139, 89, 0.08);
  transform: translateY(-2px);
}

.btn-light {
  background-color: #FFFFFF !important;
  color: #2C1810 !important;
  border: 1.5px solid #FFFFFF !important;
  font-weight: 700;
}
.btn-light:hover {
  background-color: #FFF8EE !important;
  color: #8C5326 !important;
}

.btn-outline-light {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
}
.btn-outline-light:hover {
  background-color: #FFFFFF !important;
  color: #2C1810 !important;
  border-color: #FFFFFF !important;
}


.btn-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #3D2314;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid #3D2314;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(61, 35, 20, 0.15);
}

.btn-luxury:hover {
  background-color: #C68B59;
  border-color: #C68B59;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 139, 89, 0.25);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-luxury-outline:hover {
  border-color: var(--accent-caramel);
  color: var(--accent-caramel) !important;
  background-color: rgba(198, 139, 89, 0.08);
  transform: translateY(-2px);
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C68B59 0%, #8C5326 100%);
  color: #FFFDF9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(140, 83, 38, 0.25);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand-monogram:hover {
  transform: scale(1.05);
}


/* Glass Header with Warm Bakery Blur */
.glass-nav {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .glass-nav {
  background: rgba(23, 16, 13, 0.92);
}

/* Top Marquee Bar */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background-color: #2C1810;
  color: #FDFBF7;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Product Cards */
.product-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 139, 89, 0.5);
  box-shadow: 0 16px 36px -12px rgba(61, 35, 20, 0.12);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image-primary,
.product-image-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

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

.product-card:hover .product-image-primary {
  transform: scale(1.05);
}

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

.product-quick-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

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

/* Slide-Over Cart Drawer */
#cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -100%;
  width: 440px;
  max-width: 90vw;
  background: var(--card-bg);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 60;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#cart-drawer.active {
  right: 0;
}

#cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 55;
  transition: opacity 0.3s ease;
}

#cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

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

.toast {
  background: #2C1810;
  color: #FDFBF7;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(198, 139, 89, 0.4);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Pay at Store Badge */
.badge-pay-at-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
[data-theme="dark"] .badge-pay-at-store {
  background: #3B1C0B;
  color: #FB923C;
  border-color: #632C11;
}

/* Eggless Badge */
.badge-eggless {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
[data-theme="dark"] .badge-eggless {
  background: #064E3B;
  color: #6EE7B7;
  border-color: #065F46;
}

/* Custom Cake Drag & Drop Uploader */
.dropzone-container {
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.dropzone-container:hover,
.dropzone-container.dragover {
  border-color: var(--accent-caramel);
  background: rgba(198, 139, 89, 0.05);
}

/* Split-screen login & register responsive wrapper */
.auth-split-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .auth-hero-side {
    display: none;
  }
}
