/* SKA Distribution - Main CSS */
/* ===================================================== */

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

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

/* Hero slide transitions */
.hero-slide {
  transition: opacity 0.6s ease;
  opacity: 0;
}
.hero-slide.active {
  opacity: 1;
}

/* Account nav item */
.account-nav-item {
  color: #4B5563;
  transition: all 0.2s ease;
}
.account-nav-item:hover,
.account-nav-item.active {
  background: #FEF2F2;
  color: #DC2626;
}

/* Checkout input */
.checkout-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.checkout-input:focus {
  border-color: #E30613;
}

/* Product image placeholder */
.product-emoji-bg {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sticky on scroll */
.sticky-active {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* Badge animations */
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.badge-pulse {
  animation: pulse-badge 2s infinite;
}

/* Payment method cards */
.payment-method-card {
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-method-card:hover,
.payment-method-card.selected {
  border-color: #E30613;
  background: #FFF5F5;
}
.payment-method-card.selected {
  box-shadow: 0 0 0 3px rgba(227,6,19,0.1);
}

/* Step indicator */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.step-item.completed .step-circle {
  background: #27AE60;
}
.step-item.active .step-circle {
  background: #E30613;
}

/* Category card */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Rating stars */
.star-filled { color: #F5A623; }
.star-empty { color: #D1D5DB; }

/* Loyalty tier badges */
.tier-bronze { background: linear-gradient(135deg, #CD7F32, #A0522D); }
.tier-argent { background: linear-gradient(135deg, #C0C0C0, #808080); }
.tier-or { background: linear-gradient(135deg, #FFD700, #FFA500); }

/* Chat bubble */
.chat-bubble {
  background: #1A1A2E;
  color: white;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 16px;
  font-size: 14px;
  max-width: 80%;
}
.chat-bubble-user {
  background: #E30613;
  border-radius: 18px 18px 4px 18px;
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: #E30613;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(227,6,19,0.4);
}
.scroll-top-btn.show {
  opacity: 1;
}

/* Product quick view modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.show {
  display: flex;
}

/* Filter sidebar mobile */
@media (max-width: 768px) {
  .filter-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 50;
    overflow-y: auto;
    padding: 20px;
    transition: left 0.3s ease;
    box-shadow: 5px 0 30px rgba(0,0,0,0.2);
  }
  .filter-sidebar.open {
    left: 0;
  }
}

/* Notification banner */
.promo-banner {
  background: linear-gradient(90deg, #E30613, #B8000F, #E30613);
  background-size: 200% 100%;
  animation: banner-scroll 4s linear infinite;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}
@keyframes banner-scroll {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Image zoom effect */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.4s ease;
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* Stock progress bar */
.stock-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.stock-fill-high { background: #27AE60; }
.stock-fill-mid { background: #F5A623; }
.stock-fill-low { background: #E30613; }

/* Admin table styles */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
}
.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #F8FAFC;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  body { font-size: 12px; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #E30613;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #E30613; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #B8000F; }
