/* ==========================================================================
   SIVAKA SPARKS — UI COMPONENTS & DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--red-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-400) 0%, var(--red-500) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--red-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: #120722;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 100%);
  color: #120722;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
}

.btn-outline-gold:hover {
  background: rgba(245, 179, 1, 0.1);
  color: var(--gold-300);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Badges & Status Tags (Text Color Only - No Background Highlights)
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-size: var(--font-size-xs);
  font-weight: 700;
  line-height: 1.2;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.badge-gold {
  color: var(--gold-600) !important;
}

.badge-red {
  color: var(--red-600) !important;
}

.badge-green {
  color: var(--emerald-600) !important;
}

.badge-purple {
  color: #7c3aed !important;
}

/* Status Badges (Text Color & Icon Dot Only) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: var(--font-size-xs);
  font-weight: 700;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.badge-status-new {
  color: var(--status-new-text) !important;
}

.badge-status-contacted {
  color: var(--status-contacted-text) !important;
}

.badge-status-confirmed {
  color: var(--status-confirmed-text) !important;
}

.badge-status-dispatched {
  color: var(--status-dispatched-text) !important;
}

.badge-status-delivered {
  color: var(--status-delivered-text) !important;
}

.badge-status-cancelled {
  color: var(--status-cancelled-text) !important;
}

/* --------------------------------------------------------------------------
   Chips & Filter Pills (Clean Outline & Text Color Only)
   -------------------------------------------------------------------------- */
.chip-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-group::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.chip:hover {
  background: transparent !important;
  border-color: var(--gold-600);
  color: var(--gold-600);
}

.chip.active, .chip-active {
  background: transparent !important;
  border: 2px solid var(--gold-600) !important;
  color: var(--gold-600) !important;
  font-weight: 700;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(24, 10, 43, 0.08);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fdfbf7;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-bounce);
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-badge-float {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-discount-float {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent !important;
  color: var(--red-600) !important;
  font-size: var(--font-size-xs);
  font-weight: 800;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  z-index: 2;
}

.product-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-sub {
  font-size: var(--font-size-xs);
  color: var(--gold-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

.product-title a {
  color: inherit;
}

.product-title a:hover {
  color: var(--gold-300);
}

.product-pack-size {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  margin-bottom: 0;
  padding-top: var(--space-2);
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.price-selling {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-600);
  font-family: var(--font-display);
}

.price-mrp {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-cart-btn,
.btn-cart-card {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-cart-btn svg,
.btn-cart-card svg {
  display: block;
}

/* --------------------------------------------------------------------------
   Product Grid
   4 cols desktop, 3 tablet, 2 mobile, 1 small screen
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   Site Header & Topbar
   -------------------------------------------------------------------------- */
.site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.top-banner {
  background: linear-gradient(90deg, #3b0764 0%, #6b21a8 50%, #3b0764 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78125rem;
  font-weight: 700;
  color: #fef08a;
  height: var(--topbar-height, 38px);
  min-height: var(--topbar-height, 38px);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  position: relative;
  z-index: 1001;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-banner:hover .top-banner-track {
  animation-play-state: paused;
}

.top-banner-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: bannerMarquee 38s linear infinite;
  will-change: transform;
}

.top-banner-content {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.top-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  color: #fef08a;
  white-space: nowrap;
}

.top-banner-item svg {
  color: #facc15;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

.top-banner-link {
  color: #fef08a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color var(--transition-fast);
}

.top-banner-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.top-banner-sep {
  color: #facc15;
  fill: #facc15;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
}

.top-banner-sep svg {
  color: #facc15;
  fill: #facc15;
  width: 14px;
  height: 14px;
  display: block;
}

@keyframes bannerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.site-header {
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-logo-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.brand-title span {
  color: var(--gold-400);
}

.brand-tagline-micro {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.4vw, 3rem);
  margin-left: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.15rem, 1.85vw, 2.35rem);
  }
}

.nav-link {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--space-2) 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-400);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.25rem;
  right: 0.25rem;
  height: 2px;
  background: var(--gold-400);
  border-radius: var(--radius-full);
}

/* Price List Button in Navbar */
.btn-price-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.16);
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.btn-price-nav:hover {
  background: #f59e0b;
  color: #180a2b;
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32);
  transform: translateY(-1px);
}

.btn-price-nav.active {
  background: #f59e0b;
  color: #180a2b;
  border-color: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.btn-price-nav svg {
  color: currentColor;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

[data-mobile-menu-trigger] {
  display: inline-flex;
}

@media (min-width: 1024px) {
  [data-mobile-menu-trigger] {
    display: none !important;
  }
}

/* Cart Icon Button (Final Item) */
.nav-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--red-600);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.nav-cart-btn:hover {
  background: var(--red-700);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

.nav-cart-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.nav-cart-btn .cart-count-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  background: #facc15;
  color: #180a2b;
  font-size: 0.6875rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn-indicator {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red-500);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px var(--red-glow);
}

/* --------------------------------------------------------------------------
   Mobile Bottom Navigation Bar (5 tabs)
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--gold-400);
}

.bottom-nav-item.active svg {
  stroke: var(--gold-400);
}

.bottom-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 16px);
  background: var(--red-500);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.mobile-drawer-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-body {
  padding: var(--space-6);
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--gold-400);
}

/* --------------------------------------------------------------------------
   Modals & Drawers
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 6, 28, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* Cart Slide Drawer */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 6, 28, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  z-index: 1700;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: var(--space-4);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 380px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-container {
    bottom: var(--space-6);
    right: var(--space-6);
  }
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  animation: toastSlideIn 250ms var(--transition-bounce);
  transition: opacity 200ms ease, transform 200ms ease;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.toast-success {
  border-left: 4px solid var(--emerald-500);
}

.toast-error {
  border-left: 4px solid var(--red-500);
}

.toast-info {
  border-left: 4px solid var(--gold-500);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.toast-message {
  flex-grow: 1;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-2);
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-label.required::after {
  content: ' *';
  color: var(--red-400);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
  outline: none;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--red-400);
  margin-top: var(--space-1);
  display: none;
}

.form-error.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Responsive Table Container
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-sm);
}

.data-table th {
  background: var(--bg-surface-elevated);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Quantity Stepper
   -------------------------------------------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--gold-400);
}

.qty-input {
  width: 44px;
  height: 32px;
  background: transparent;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item.open {
  border-color: var(--border-strong);
}

.accordion-header {
  margin: 0;
}

.accordion-trigger {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.accordion-trigger:hover {
  color: var(--gold-400);
}

.accordion-icon {
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 var(--space-5) var(--space-5) var(--space-5);
  color: var(--text-secondary);
  display: none;
}

.accordion-item.open .accordion-panel {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #f1ecf9;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.footer-links a:hover {
  color: var(--gold-500);
}

.disclaimer-card {
  background: rgba(217, 4, 41, 0.06);
  border: 1px solid rgba(217, 4, 41, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: var(--space-8);
}

.disclaimer-card strong {
  color: var(--red-500);
}

/* Floating Quick Purchase Widget (Matches Reference Image) */
.floating-quick-purchase {
  position: fixed;
  bottom: 80px;
  left: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #3b0764;
  color: #ffffff;
  padding: 8px 12px 8px 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border: 1.5px solid #facc15;
  border-left: none;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

@media (min-width: 1024px) {
  .floating-quick-purchase {
    bottom: 30px;
  }
}

.floating-quick-purchase:hover {
  background: #4a044e;
  transform: translateX(4px);
  color: #ffffff;
}

.fqp-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  flex-shrink: 0;
}

.fqp-text {
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}
