/* ===== Custom CSS for Sweet Delights Bakery ===== */

/* Custom Fonts Import - Elegant Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700&family=Great+Vibes&family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&display=swap');

/* Root Variables */
:root {
  /* Colors */
  --primary-pink: #e8a4b8;
  --primary-pink-light: #f5d5dc;
  --primary-pink-dark: #c4889c;
  --cream: #fef9f3;
  --cream-dark: #fdf5eb;
  --rose-gold: #b76e79;
  --rose-gold-light: #d4a5ad;
  --chocolate: #3d2314;
  --chocolate-light: #5c3a28;
  --gold: #d4af37;
  --gold-light: #f0d68a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
  --gradient-hero: linear-gradient(135deg, rgba(232, 164, 184, 0.9) 0%, rgba(183, 110, 121, 0.85) 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0d68a 50%, #d4af37 100%);

  /* Typography */
  --font-heading: "Noto Serif Bengali", "Playfair Display", serif;
  --font-brand: "Great Vibes", cursive;
  --font-body: "Hind Siliguri", "Poppins", sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(61, 35, 20, 0.08);
  --shadow-medium: 0 8px 30px rgba(61, 35, 20, 0.12);
  --shadow-card: 0 10px 40px rgba(61, 35, 20, 0.15);
  --shadow-glow: 0 0 40px rgba(232, 164, 184, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--chocolate);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ============================================================
   LANGUAGE SWITCHING — Bangla (default) / English
   .bn = Bangla content, .en-inline/.en-sub/.en-block = English content
   Only ONE language is visible at a time, toggled via html[data-lang]
   ============================================================ */

/* Bangla mode (default): hide all English */
html:not([data-lang="en"]) .en-inline,
html:not([data-lang="en"]) .en-sub,
html:not([data-lang="en"]) .en-block {
  display: none !important;
}

/* English mode: hide Bangla, show English with normal styling */
html[data-lang="en"] .bn {
  display: none !important;
}

html[data-lang="en"] .en-inline,
html[data-lang="en"] .en-sub {
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  opacity: 1 !important;
  color: inherit !important;
}

html[data-lang="en"] .en-block {
  display: block !important;
  font-size: inherit !important;
  opacity: 1 !important;
  color: inherit !important;
  margin-top: 0 !important;
  font-style: inherit !important;
}

/* Language toggle button */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2rem;
  padding: 0 0.85rem;
  border-radius: 9999px;
  border: 2px solid var(--rose-gold);
  background: transparent;
  color: var(--rose-gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-toggle:hover {
  background: var(--rose-gold);
  color: #fff;
}

html.dark .lang-toggle {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

html.dark .lang-toggle:hover {
  background: var(--gold-light);
  color: var(--chocolate);
}

/* ===== Glassmorphism Classes ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
  background: rgba(61, 35, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes tilt {
  0% {
    transform: perspective(1000px) rotateX(0) rotateY(0);
  }

  50% {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  }

  100% {
    transform: perspective(1000px) rotateX(0) rotateY(0);
  }
}


/* ===== Animation Classes ===== */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* ===== UI Utilities ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(183, 110, 121, 0.1);
}

.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.float-blob {
  position: absolute;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.4;
  animation: blobFloat 20s infinite ease-in-out;
}

.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--rose-gold);
  transform: translateX(-101%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-mask.active::after {
  transform: translateX(101%);
}

.parallax-bg {
  transform: translateY(var(--scroll-offset, 0));
  transition: transform 0.1s linear;
}

.tilt-effect {
  transition: transform 0.3s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0));
}


/* ===== Navigation ===== */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero-gradient {
  background: var(--gradient-hero);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
}

/* ===== Product Cards ===== */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-image {
  transition: transform 0.5s ease;
}

.product-overlay {
  background: linear-gradient(to top, rgba(61, 35, 20, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--gradient-gold);
  background-size: 200% auto;
  color: var(--chocolate);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--rose-gold);
  color: var(--rose-gold);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--rose-gold);
  color: white;
  transform: translateY(-2px);
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-brand);
  font-size: 2.5rem;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--chocolate), var(--rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-gold);
  box-shadow: var(--shadow-soft);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* ===== Cart Sidebar ===== */
.cart-sidebar {
  animation: slideIn 0.3s ease-out;
}

.cart-item {
  transition: all 0.3s ease;
}

.cart-item:hover {
  background: var(--cream-dark);
}

/* ===== Form Inputs ===== */
.form-input {
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 4px rgba(232, 164, 184, 0.2);
}

/* ===== Badge ===== */
.badge {
  background: var(--rose-gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  animation: scaleIn 0.3s ease;
}

/* ===== Star Rating ===== */
.star-rating {
  color: var(--gold);
}

/* ===== Footer ===== */
.footer-link {
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(5px);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink-dark);
}

/* ===== Category Filter ===== */
.category-btn {
  transition: all 0.3s ease;
}

.category-btn.active {
  background: var(--gradient-gold);
  color: var(--chocolate);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  animation: fadeIn 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .product-card:hover {
    transform: translateY(-5px);
  }
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ============================================================
   VISUAL REFINEMENTS
   ============================================================ */
::selection {
  background: var(--rose-gold);
  color: #fff;
}

img {
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 2px;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

.product-card {
  border: 1px solid rgba(183, 110, 121, 0.08);
}

/* ===== Wishlist Heart Button ===== */
.wishlist-heart {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 10;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  color: #b3a39a;
  transition: all 0.25s ease;
}

.wishlist-heart:hover {
  transform: scale(1.12);
  color: var(--rose-gold);
}

.wishlist-heart.active {
  color: #e0245e;
  animation: heartPop 0.35s ease;
}

@keyframes heartPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ===== Quick View Button ===== */
.quickview-btn {
  position: absolute;
  top: 4rem;
  right: 0.9rem;
  z-index: 10;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  color: #b3a39a;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(-6px);
}

.product-card:hover .quickview-btn {
  opacity: 1;
  transform: translateY(0);
}

.quickview-btn:hover {
  color: var(--rose-gold);
  transform: scale(1.12);
}

@media (hover: none) {
  .quickview-btn {
    opacity: 1;
    transform: none;
  }
}

/* ===== Quick View Modal ===== */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 10, 5, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.qv-modal {
  background: var(--cream);
  border-radius: 28px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: scaleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Wishlist Drawer ===== */
.wish-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #9a8a7e;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--chocolate);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--primary-pink-light);
  transform: rotate(15deg);
}

/* ===== Back To Top ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: var(--gradient-gold);
  color: var(--chocolate);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.35s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: #fff;
  border: 1px solid rgba(183, 110, 121, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--chocolate);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--primary-pink-light);
  color: var(--rose-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--rose-gold);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: #6b5d52;
  line-height: 1.7;
}

/* ===== Order Tracking Timeline ===== */
.track-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 2rem;
}

.track-step:last-child {
  padding-bottom: 0;
}

.track-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #e5d5c5;
}

.track-step:last-child::before {
  display: none;
}

.track-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #f0e6da;
  color: #b3a39a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
}

.track-step.done .track-dot {
  background: var(--gradient-gold);
  color: var(--chocolate);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.track-step.done::before {
  background: var(--gold);
}

.track-step.current .track-dot {
  background: var(--rose-gold);
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   DARK MODE
   ============================================================ */
html.dark body {
  background-color: #170e08;
  color: #f0e6db;
}

html.dark .glass {
  background: rgba(26, 16, 9, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .bg-white {
  background-color: #241710 !important;
}

html.dark .bg-cream-50,
html.dark .bg-cream-100 {
  background-color: #1d1209 !important;
}

html.dark .bg-primary-100 {
  background-color: #3a2230 !important;
}

html.dark .product-card,
html.dark .faq-item,
html.dark .testimonial-card {
  border-color: rgba(255, 255, 255, 0.07);
}

html.dark .text-chocolate,
html.dark .faq-question {
  color: #f0e6db !important;
}

html.dark .text-gray-600,
html.dark .text-gray-700,
html.dark .text-gray-500,
html.dark .faq-answer-inner {
  color: #c3b2a3 !important;
}

html.dark .form-input {
  background: #2b1c12;
  color: #f0e6db;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .form-input::placeholder {
  color: #8d7c6e;
}

html.dark .qv-modal {
  background: #241710;
}

html.dark #cartSidebar,
html.dark #wishlistSidebar {
  background-color: #1d1209;
}

html.dark .border-b,
html.dark .border-t {
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .theme-toggle {
  color: #f0d68a;
}

html.dark .theme-toggle:hover {
  background: rgba(240, 214, 138, 0.12);
}

html.dark .wishlist-heart,
html.dark .quickview-btn {
  background: rgba(36, 23, 16, 0.9);
}

html.dark ::-webkit-scrollbar-track {
  background: #170e08;
}

html.dark .shadow-lg,
html.dark .shadow-xl,
html.dark .shadow-md {
  --tw-shadow-color: rgba(0, 0, 0, 0.5);
}

html.dark .track-dot {
  background: #2b1c12;
}

html.dark .track-step::before {
  background: #3a281b;
}

html.dark .hover\:bg-gray-100:hover,
html.dark .hover\:bg-primary-100:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .bg-gray-50,
html.dark .bg-gray-100 {
  background-color: #2b1c12 !important;
}