/* Additional Custom Styles for HT Bazar Storefront */
:root {
  --primary-color: #6044f0;
  --primary-hover: #4e32df;
  --secondary-color: #6044f0;
  --secondary-hover: #4e32df;
  --title-color: #131313;
  --paragraph-color: #252a34;
  --border-color: #e5e7eb;
  --white-color: #ffffff;
  --font-bangla-checkout: 'Hind Siliguri', 'Segoe UI', Tahoma, sans-serif;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.animate-shake {
  animation: shake 2.5s infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.flash-sale-badge {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 300% 300%;
  animation: gradient 4s ease infinite;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  z-index: 99995;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
}

.cart-drawer-panel.active {
  transform: translateX(0);
}

/* Mobile Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99980;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  z-index: 99985;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer-panel.active {
  transform: translateX(0);
}

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9990;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-toast {
  background: #111827;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-toast.success {
  border-left: 4px solid var(--primary-color);
}

.custom-toast.error {
  border-left: 4px solid #ef4444;
}

/* Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  max-height: 380px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

/* Bangla Font Scope */
.bangla-font-scope,
.bangla-font-scope input,
.bangla-font-scope textarea,
.bangla-font-scope select,
.bangla-font-scope button {
  font-family: var(--font-bangla-checkout) !important;
}

/* Product Card Improvements */
.product-card-zoom:hover img {
  transform: scale(1.06);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 16-column grid for authentic HT Bazar footer */
@media (min-width: 768px) {
  .md\:grid-cols-16 {
    grid-template-columns: repeat(16, minmax(0, 1fr)) !important;
  }
}

/* Product Details Layout Helpers */
.pd-flex-container {
  display: flex !important;
  gap: 1.25rem !important;
  align-items: flex-start !important;
}

.pd-main-column {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.pd-sidebar {
  width: 280px !important;
  flex: 0 0 280px !important;
}

@media (max-width: 1023px) {
  .pd-sidebar {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .pd-sidebar {
    display: block !important;
  }
}

