@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* ==========================================================================
   THEME DESIGN TOKENS (Dark Mode: Bangla Artisan Dark / Light Mode: Warm Ivory)
   ========================================================================== */

:root, html.dark {
  --bg-canvas: #0B0B0A;
  --bg-surface: #131312;
  --bg-surface-lowest: #0e0e0d;
  --bg-surface-low: #1c1c1a;
  --bg-surface-container: #20201e;
  --bg-surface-high: #2a2a29;
  --bg-surface-highest: #353533;
  --text-ink: #e5e2df;
  --text-muted: #a08d7c;
  --border-hairline: #332D22;
  --border-variant: #534435;
  --color-primary: #ffb86a;
  --color-primary-container: #e8952a;
  --color-on-primary-container: #5a3400;
  --color-secondary: #ffb876;
  --color-secondary-container: #9f5900;
  --header-bg: rgba(11, 11, 10, 0.95);
  --footer-bg: #0B0B0A;
  --chip-bg: #1c1c1a;
  color-scheme: dark;
}

html.light {
  --bg-canvas: #F7F3EA;
  --bg-surface: #FFFDF8;
  --bg-surface-lowest: #FFFFFF;
  --bg-surface-low: #FCF9F2;
  --bg-surface-container: #FAF6EE;
  --bg-surface-high: #EFE9DC;
  --bg-surface-highest: #EAE2D2;
  --text-ink: #2B2620;
  --text-muted: #4F473E;
  --border-hairline: #E4DCC8;
  --border-variant: #D5CCB6;
  --color-primary: #e8952a;
  --color-primary-container: #e8952a;
  --color-on-primary-container: #5a3400;
  --color-secondary: #8d4f00;
  --color-secondary-container: #FDEBD4;
  --header-bg: rgba(255, 253, 248, 0.95);
  --footer-bg: #FAF6EE;
  --chip-bg: #FAF6EE;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Hind Siliguri', sans-serif;
  background-color: var(--bg-canvas) !important;
  color: var(--text-ink) !important;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  overflow-x: hidden;
}

/* Typography mappings */
h1, h2, h3, h4, h5, h6, .font-heading, .font-bangla-num, .font-price {
  font-family: 'Baloo Da 2', cursive, sans-serif;
}

/* Material Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-outlined.fill-current {
  font-variation-settings: 'FILL' 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hairline);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-container);
}

/* Interactive Card Effects */
.product-card-hover {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-container) !important;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.15);
}

/* Navigation active */
.nav-link-active {
  background-color: var(--color-primary-container);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 4px;
}

/* Header & Footer Theme Sync */
.theme-header {
  background-color: var(--header-bg) !important;
  border-color: var(--border-hairline) !important;
}

.theme-footer {
  background-color: var(--footer-bg) !important;
  border-color: var(--border-hairline) !important;
}

/* ==========================================================================
   High-Contrast Status & COD Badges (Ensures 100% legibility in White/Light mode)
   ========================================================================== */
.badge-cod {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  background-color: #dcfce7 !important; /* emerald-100 */
  color: #065f46 !important;            /* deep rich emerald-800 - crisp high contrast on white/ivory */
  border: 1px solid #86efac !important; /* emerald-300 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .badge-cod {
  background-color: rgba(6, 78, 59, 0.5) !important; /* deep emerald-950 */
  color: #6ee7b7 !important;                          /* light mint - crisp high contrast in dark mode */
  border-color: rgba(52, 211, 153, 0.4) !important;
}

/* Status text & indicator dots */
.status-green-text {
  color: #047857 !important; /* rich emerald-700 in white mode */
}
html.dark .status-green-text {
  color: #34d399 !important; /* bright emerald-400 in dark mode */
}

.status-green-dot {
  background-color: #059669 !important;
}
html.dark .status-green-dot {
  background-color: #10b981 !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideUpToast {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUpToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Invoice styles */
@media print {
  header, footer, .no-print, #cartDrawer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .print-clean {
    border: 1px solid #ddd !important;
    background: #fff !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
/* ==========================================================================
   হিরো ব্যানার — প্রিমিয়াম সিঙ্গেল প্রোডাক্ট কার্ড (Hero Single Featured Card)
   ========================================================================== */
.hero-single-card-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-featured-single-card {
  position: relative;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}

.hero-featured-single-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -12px rgba(232, 149, 42, 0.35), 0 10px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(232, 149, 42, 0.5);
}

.hero-still-life-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

@media (max-width: 640px) {
  .hero-still-life-wrap {
    height: 380px;
    max-width: 100%;
  }
}

/* মূল পেডেস্টাল / রাইজার বেস (Elevated Riser Stage) */
.hero-pedestal-stage {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(232, 149, 42, 0.15) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}

.hero-collage-card {
  position: absolute;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}

.hero-collage-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 24px 48px -10px rgba(232, 149, 42, 0.3), 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 45 !important;
}

/* টিয়ার ১: সেন্টার হিরো — সবচেয়ে উঁচু ও কেন্দ্রীয় পেডেস্টালে */
.tier-hero-center {
  width: 220px;
  height: 280px;
  bottom: 55px;
  left: calc(50% - 110px);
  z-index: 30;
  border: 2px solid rgba(232, 149, 42, 0.4);
}

@media (max-width: 640px) {
  .tier-hero-center {
    width: 170px;
    height: 220px;
    left: calc(50% - 85px);
    bottom: 50px;
  }
}

/* টিয়ার ২: ফ্রন্ট-লেফট ও ফ্রন্ট-রাইট (সামনের পাশের লেয়ার) */
.tier-front-left {
  width: 160px;
  height: 200px;
  bottom: 25px;
  left: calc(50% - 210px);
  z-index: 25;
}

.tier-front-right {
  width: 160px;
  height: 200px;
  bottom: 25px;
  left: calc(50% + 50px);
  z-index: 25;
}

@media (max-width: 640px) {
  .tier-front-left {
    width: 120px;
    height: 155px;
    left: 4%;
    bottom: 20px;
  }
  .tier-front-right {
    width: 120px;
    height: 155px;
    left: auto;
    right: 4%;
    bottom: 20px;
  }
}

/* টিয়ার ৩: ব্যাক-লেফট ও ব্যাক-রাইট (পেছনের উচ্চতর লেয়ার) */
.tier-back-left {
  width: 140px;
  height: 180px;
  top: 40px;
  left: calc(50% - 240px);
  z-index: 15;
  opacity: 0.92;
}

.tier-back-right {
  width: 140px;
  height: 180px;
  top: 40px;
  left: calc(50% + 100px);
  z-index: 15;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .tier-back-left {
    width: 105px;
    height: 135px;
    top: 25px;
    left: 2%;
    opacity: 0.85;
  }
  .tier-back-right {
    width: 105px;
    height: 135px;
    top: 25px;
    left: auto;
    right: 2%;
    opacity: 0.85;
  }
}

/* টিয়ার ৪: অ্যাকসেন্ট রাইজার (নিচের ক্ষুদ্র ফ্রন্ট রাইজার) */
.tier-accent-riser {
  width: 130px;
  height: 150px;
  bottom: 10px;
  left: calc(50% - 65px);
  z-index: 35;
  transform: translateY(10px);
}

@media (max-width: 640px) {
  .tier-accent-riser {
    width: 95px;
    height: 110px;
    bottom: 5px;
    left: calc(50% - 47px);
  }
}

