/* ==========================================================================
   Mahir Mohima Furniture Mart — Main Design System Stylesheet
   Color Tokens:
     - Primary Blue: #149FEF
     - Dark Navy: #0B1B34
     - White: #FFFFFF
     - Light Sky Blue: #EAF6FF
     - Pale Background: #F7FAFD
     - Body Text: #34445A
     - Muted Text: #718096
     - Border: #DCE7F1
     - Success: #16A34A
     - Error: #DC2626
   ========================================================================== */

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

:root {
  --primary: #149FEF;
  --primary-hover: #0c8ad4;
  --primary-light: #EAF6FF;
  --dark-navy: #0B1B34;
  --navy-light: #162a4d;
  --white: #FFFFFF;
  --pale-bg: #F7FAFD;
  --text-body: #34445A;
  --text-muted: #718096;
  --border-color: #DCE7F1;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(11, 27, 52, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 27, 52, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(11, 27, 52, 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

/* Base element resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Serif Bengali', 'Kalpurush', serif;
  color: var(--text-body);
  background-color: var(--pale-bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

main {
  flex: 1 0 auto;
}

.font-bengali {
  font-family: 'Noto Serif Bengali', 'Kalpurush', 'SolaimanLipi', serif;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom interactive buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 159, 239, 0.25);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--dark-navy);
  color: var(--white);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Card components */
.card-modern {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  box-shadow: var(--shadow-sm);
}

.card-hover:hover {
  border-color: #BFDCF7;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Product Showcase Card Media (Contain Full Images Without Cropping)
   Ensures tall items (dressing tables, alnas, wardrobes) & wide items
   are completely visible inside the card without changing card layout size */
.product-card-media,
.card-modern .aspect-\[4\/3\]:not(.bg-slate-200) {
  background-color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.product-card-media a,
.card-modern .aspect-\[4\/3\]:not(.bg-slate-200) > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.product-card-img,
.card-modern .aspect-\[4\/3\]:not(.bg-slate-200) img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0.5rem !important;
  transition: transform 0.3s ease !important;
}

.card-modern:hover .product-card-img,
.card-modern:hover .aspect-\[4\/3\]:not(.bg-slate-200) img {
  transform: scale(1.05) !important;
}

/* Form controls */
.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-body);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 159, 239, 0.15);
}

.input-field.error {
  border-color: var(--error);
  background-color: #FEF2F2;
}

/* Floating WhatsApp button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #149FEF;
  outline-offset: 3px;
}

/* Image fallback placeholder styling */
.img-fallback-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(11, 27, 52, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out forwards;
}

.toast-msg.success {
  background-color: #F0FDF4;
  color: #166534;
  border-left: 4px solid #16A34A;
}

.toast-msg.error {
  background-color: #FEF2F2;
  color: #991B1B;
  border-left: 4px solid #DC2626;
}

.toast-msg.info {
  background-color: #EAF6FF;
  color: #0369A1;
  border-left: 4px solid #149FEF;
}

.toast-msg.warning {
  background-color: #FFFBEB;
  color: #92400E;
  border-left: 4px solid #F59E0B;
}

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

/* Skeleton Loading Pulse */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-status.pending { background: #FEF3C7; color: #92400E; }
.badge-status.confirmed { background: #E0E7FF; color: #3730A3; }
.badge-status.processing { background: #EAF6FF; color: #0284C7; }
.badge-status.shipped { background: #F3E8FF; color: #6B21A8; }
.badge-status.delivered { background: #DCFCE7; color: #166534; }
.badge-status.cancelled { background: #FEE2E2; color: #991B1B; }

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   Hero Immersive Showcase (Full-Width, Borderless, Natural Edge Blending)
   ========================================================================== */
.hero-immersive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero-immersive-img {
    /* Soft progressive fade on the left edge dissolving into the hero background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 4%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.65) 18%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 1) 38%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 4%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.65) 18%, rgba(0, 0, 0, 0.95) 28%, rgba(0, 0, 0, 1) 38%, rgba(0, 0, 0, 1) 100%);
  }
}

.hero-showcase-img {
  max-width: 100%;
  height: auto;
}
