/* Al Naser Lighting - Modern Royal Bengali E-commerce Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --gold-gradient: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
  --accent: #eab308;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
}

*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body, button, input, select, textarea {
  font-family: 'Noto Serif Bengali', 'Plus Jakarta Sans', serif, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .product-title, .current-price, .btn-order-now, .btn-gold, .discount-badge {
  font-family: 'Noto Serif Bengali', 'Plus Jakarta Sans', serif !important;
  font-weight: 800 !important;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 70px; /* Space for Mobile Bottom Nav */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
}

/* Badges & Buttons */
.gold-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-gold:hover {
  filter: brightness(1.05);
}

/* ========================================================
   LIQUID GLASS BUTTON STYLING (Glossy Wet-Look, Luminous, Tactile)
   ======================================================== */
.btn-order-now,
.btn-liquid-glass,
#coSubmitBtn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96) 0%, rgba(217, 119, 6, 0.98) 50%, rgba(180, 83, 9, 1) 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 7px 10px;
  border-radius: 8px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 6px 18px rgba(217, 119, 6, 0.38),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.75),
    inset 0 -2px 4px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  font-size: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Liquid Shimmer Light Streak across button */
.btn-order-now::before,
.btn-liquid-glass::before,
#coSubmitBtn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 65% !important;
  height: 100% !important;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%) !important;
  transform: skewX(-25deg) !important;
  animation: liquidShimmer 3.5s infinite ease-in-out !important;
  pointer-events: none !important;
}

@keyframes liquidShimmer {
  0%, 35% {
    left: -100%;
  }
  65%, 100% {
    left: 170%;
  }
}

.btn-order-now:hover,
.btn-liquid-glass:hover,
#coSubmitBtn:hover {
  transform: translateY(-1.5px) scale(1.02) !important;
  box-shadow: 
    0 10px 25px rgba(217, 119, 6, 0.55),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 5px rgba(0, 0, 0, 0.25) !important;
  filter: brightness(1.06) !important;
}

.btn-order-now:active,
.btn-liquid-glass:active,
#coSubmitBtn:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow: 
    0 3px 8px rgba(217, 119, 6, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

.btn-add-cart {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-add-cart:hover {
  background: #e2e8f0;
}

/* ========================================================
   PRODUCTS GRID - 2 COLUMNS ON MOBILE, 3-4 ON DESKTOP
   ======================================================== */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: block;
}

.product-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.discount-badge {
  position: absolute !important;
  top: 7px !important;
  left: 7px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  border-radius: 7px !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.2px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.15 !important;
  animation: badgeGlow 2.5s infinite ease-in-out !important;
}

@keyframes badgeGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.7);
  }
}

@media (max-width: 480px) {
  .discount-badge {
    top: 5px !important;
    left: 5px !important;
    font-size: 11px !important;
    padding: 3px 6px !important;
  }
}

.product-card-body {
  padding: 7px 6px 8px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  box-sizing: border-box;
}

.product-cat-name {
  font-size: 10px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.product-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
  word-break: break-word;
  text-decoration: none;
}
.product-title:hover {
  color: #d97706;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.current-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.old-price {
  font-size: 10.5px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.product-card-actions .btn-order-now {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
  font-size: 11px;
  border-radius: 6px;
}

.product-card-actions .btn-add-cart {
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Category Slider Bar */
.cat-scroll::-webkit-scrollbar {
  display: none;
}
.cat-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

@media (max-width: 1023px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  gap: 2px;
  position: relative;
  flex: 1;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.bottom-nav-item i {
  width: 18px;
  height: 18px;
}
.bottom-nav-item.active {
  color: #d97706;
}

/* Center Elevated Home Button */
.bottom-nav-home {
  position: relative;
  top: -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.bottom-nav-home-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  border: 2.5px solid #ffffff;
  transition: transform 0.2s ease;
}
.bottom-nav-home-btn:hover {
  transform: scale(1.06);
}
.bottom-nav-home-btn i {
  width: 20px;
  height: 20px;
}
.bottom-nav-home-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1px;
}

/* Cart Badge */
.cart-badge-count {
  position: absolute;
  top: -2px;
  right: calc(50% - 13px);
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 68px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 990;
}

@media (min-width: 1024px) {
  .floating-whatsapp {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }
}

/* Forms */
.form-group {
  margin-bottom: 10px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.active {
  transform: translateX(0);
}

/* Tracking Timeline */
.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 24px;
  margin: 16px 0;
}
.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e2e8f0;
}
.tracking-step {
  position: relative;
}
.tracking-step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #cbd5e1;
  box-sizing: border-box;
}
.tracking-step.completed::before {
  background: #10b981;
  border-color: #10b981;
}
.tracking-step.active::before {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.tracking-step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.tracking-step-desc {
  font-size: 11.5px;
  color: #64748b;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* ========================================================
   CATEGORY TABS & SMOOTH TAB SWITCH ANIMATIONS
   ======================================================== */
.category-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 10px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.category-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  flex-shrink: 0;
}
.category-tab-btn:hover {
  border-color: #f59e0b;
  color: #d97706;
  background: #fffbeb;
  transform: translateY(-1px);
}
.category-tab-btn.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fbbf24;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

/* Tab Switch Animation */
.tab-content-anim {
  animation: tabFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tabFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Fireworks & Celebration Pop-up Animation */
@keyframes celebrateBounce {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.celebrate-popup {
  animation: celebrateBounce 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}
