/* ============================================
   LisansJet Shop - Modern Design
   Theme Colors: #2f343b (Dark) + #f39321 (Orange)
   ============================================ */

:root {
  /* Theme Colors */
  --shop-dark: #2f343b;
  --shop-dark-light: #3a4149;
  --shop-dark-lighter: #1a1d23;
  --shop-orange: #f39321;
  --shop-orange-light: #ffa64d;
  --shop-white: #ffffff;
  --shop-gray-100: #f8f9fa;
  --shop-gray-200: #e9ecef;
  --shop-gray-300: #dee2e6;
  --shop-gray-400: #ced4da;
  --shop-gray-500: #adb5bd;
  --shop-gray-600: #6c757d;
  --shop-gray-700: #495057;
  --shop-gray-800: #343a40;
  --shop-gray-900: #212529;

  /* Transitions */
  --shop-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Hero Section ============ */
.shop-hero {
  position: relative;
  overflow: visible;
  margin-bottom: 3rem;
  padding-bottom: 0;
}

.shop-hero-wrapper {
  background: linear-gradient(
    135deg,
    var(--shop-dark) 0%,
    var(--shop-dark-light) 25%,
    var(--shop-dark) 50%,
    var(--shop-dark-light) 75%,
    var(--shop-dark) 100%
  );
  background-size: 400% 400%;
  animation: shopGradientShift 15s ease infinite;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: visible;
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* Shapes container - overflow hidden for shapes only */
.shop-hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

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

/* Animated Background Shapes */
.shop-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.shop-hero-shape-1 {
  top: 10%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  animation: shopFloat1 20s ease-in-out infinite;
}

.shop-hero-shape-2 {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: rgba(243, 147, 33, 0.15);
  animation: shopFloat2 25s ease-in-out infinite;
}

.shop-hero-shape-3 {
  top: 50%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: rgba(47, 52, 59, 0.3);
  animation: shopFloat3 18s ease-in-out infinite;
}

@keyframes shopFloat1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -30px) rotate(180deg);
  }
}

@keyframes shopFloat2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-30px, 30px) rotate(-180deg);
  }
}

@keyframes shopFloat3 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, -20px) rotate(90deg);
  }
}

/* Floating Icons */
.shop-hero-icon {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(243, 147, 33, 0.15);
  animation: shopFloatIcon 6s ease-in-out infinite;
  z-index: 5;
}

.shop-hero-icon-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shop-hero-icon-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shop-hero-icon-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes shopFloatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.25;
  }
}

/* Grid Pattern */
.shop-hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.4;
  z-index: 0;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  overflow: visible;
}

/* Hero Badge */
.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(243, 147, 33, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(243, 147, 33, 0.3);
  border-radius: 2rem;
  color: var(--shop-white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.shop-hero-badge i {
  color: var(--shop-orange);
  font-size: 1rem;
}

.shop-hero-badge-pulse {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(243, 147, 33, 0.3), transparent);
  animation: shopBadgePulse 3s ease-in-out infinite;
}

@keyframes shopBadgePulse {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.shop-hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--shop-white);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.shop-hero-title-highlight {
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.shop-hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.shop-hero-subtitle strong {
  color: var(--shop-orange);
  font-weight: 600;
}

/* Hero Stats */
.shop-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.shop-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  transition: var(--shop-transition);
  min-width: 120px;
}

.shop-hero-stat:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.shop-hero-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  border-radius: 50%;
  color: var(--shop-white);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(243, 147, 33, 0.3);
}

.shop-hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--shop-white);
  line-height: 1;
}

.shop-hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.shop-hero-search {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
  overflow: visible;
}

.shop-hero-search input {
  height: 64px;
  padding-left: 64px;
  padding-right: 64px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--shop-white) !important;
  font-size: 1.125rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--shop-transition);
}

.shop-hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.shop-hero-search input:-webkit-autofill,
.shop-hero-search input:-webkit-autofill:hover,
.shop-hero-search input:-webkit-autofill:focus,
.shop-hero-search input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--shop-white) !important;
  -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.15) inset !important;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.15) inset !important;
}

.shop-hero-search input:focus {
  outline: none;
  border-color: var(--shop-orange);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(243, 147, 33, 0.3);
}

.shop-hero-search .search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.shop-hero-search .search-clear {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--shop-transition);
  z-index: 10;
}

.shop-hero-search .search-clear:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--shop-white);
}

/* Search Autocomplete */
.search-autocomplete {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--shop-white);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
  border: 1px solid var(--shop-gray-200);
}

.search-autocomplete.active {
  display: block;
}

.autocomplete-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--shop-transition);
  border-bottom: 1px solid var(--shop-gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--shop-gray-100);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item-icon {
  width: 50px;
  height: 50px;
  background: var(--shop-gray-100);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.autocomplete-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.autocomplete-item-name {
  font-weight: 600;
  color: var(--shop-gray-900);
  margin-bottom: 0.25rem;
  width: 100%;
}

.autocomplete-item-category {
  font-size: 0.875rem;
  color: var(--shop-gray-600);
  width: 100%;
}

.autocomplete-item-price {
  font-weight: 700;
  color: var(--shop-orange);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ============ Sidebar Filters ============ */
.shop-sidebar {
  position: sticky;
  top: 20px;
}

.filter-card {
  background: var(--shop-white);
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  border: 1px solid var(--shop-gray-200);
  overflow: hidden;
  transition: var(--shop-transition);
}

.filter-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.filter-card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--shop-gray-100) 0%, var(--shop-gray-200) 100%);
  border-bottom: 1px solid var(--shop-gray-200);
  font-weight: 700;
  font-size: 1rem;
  color: var(--shop-gray-900);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--shop-transition);
}

.filter-card-header:hover {
  background: linear-gradient(135deg, var(--shop-gray-200) 0%, var(--shop-gray-300) 100%);
}

.filter-card-header i {
  transition: transform 0.3s ease;
  color: var(--shop-orange);
}

.filter-card.collapsed .filter-card-header i {
  transform: rotate(-90deg);
}

.filter-card-body {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.filter-card.collapsed .filter-card-body {
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.price-range-slider {
  margin: 2rem 0;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--shop-gray-700);
}

.price-range-value {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.1) 0%, rgba(243, 147, 33, 0.15) 100%);
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--shop-orange);
  border: 1px solid rgba(243, 147, 33, 0.2);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  transition: var(--shop-transition);
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}

.filter-checkbox:hover {
  background: var(--shop-gray-100);
}

.filter-checkbox input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  accent-color: var(--shop-orange);
}

.filter-checkbox-label {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--shop-gray-700);
  font-weight: 500;
}

.filter-checkbox-count {
  font-size: 0.875rem;
  color: var(--shop-gray-600);
  background: var(--shop-gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.active-filter-badge {
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.15) 0%, rgba(243, 147, 33, 0.2) 100%);
  color: var(--shop-orange);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border: 1px solid rgba(243, 147, 33, 0.3);
}

.active-filter-badge button {
  background: none;
  border: none;
  color: var(--shop-orange);
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--shop-transition);
}

.active-filter-badge button:hover {
  background: var(--shop-orange);
  color: var(--shop-white);
}

/* ============ Products Toolbar ============ */
.products-toolbar {
  background: var(--shop-white);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1px solid var(--shop-gray-200);
}

.products-count {
  font-size: 1rem;
  color: var(--shop-gray-700);
  font-weight: 500;
}

.products-count strong {
  color: var(--shop-orange);
  font-weight: 700;
  font-size: 1.125rem;
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.products-sort select {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 2px solid var(--shop-gray-300);
  border-radius: 0.75rem;
  background: var(--shop-white);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: var(--shop-transition);
  font-weight: 500;
}

.products-sort select:hover {
  border-color: var(--shop-orange);
}

.products-sort select:focus {
  outline: none;
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 3px rgba(243, 147, 33, 0.1);
}

/* ============ Product Cards ============ */
.product-card {
  background: var(--shop-white);
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--shop-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--shop-gray-200);
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--shop-orange);
  transform: translateY(-8px);
}

.product-card-image {
  position: relative;
  padding-top: 100%;
  background: linear-gradient(135deg, var(--shop-gray-100) 0%, var(--shop-gray-200) 100%);
  overflow: hidden;
}

.product-card-image .d-flex {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--shop-gray-100) 0%, var(--shop-gray-200) 100%);
}

.product-card-image .fa-box-open {
  color: var(--shop-gray-400) !important;
  font-size: 2.5rem !important;
  opacity: 0.5;
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  z-index: 10;
}

.product-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-badge.discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--shop-white);
}

.product-badge.featured {
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  color: var(--shop-white);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(47, 52, 59, 0.95) 0%, transparent 100%);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--shop-transition);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.product-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.product-overlay-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--shop-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--shop-transition);
}

.product-overlay-btn:hover {
  background: var(--shop-orange);
  border-color: var(--shop-orange);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(243, 147, 33, 0.4);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-badge {
  font-size: 0.75rem;
  color: var(--shop-orange);
  background: linear-gradient(135deg, rgba(243, 147, 33, 0.1) 0%, rgba(243, 147, 33, 0.15) 100%);
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  margin-bottom: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(243, 147, 33, 0.2);
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--shop-gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: var(--shop-orange);
}

.product-card-description {
  font-size: 0.875rem;
  color: var(--shop-gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--shop-gray-200);
  flex-wrap: wrap;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--shop-gray-600);
  font-weight: 500;
}

.product-meta-item i {
  color: var(--shop-orange);
  font-size: 0.875rem;
}

.product-card-footer {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--shop-gray-100) 0%, var(--shop-gray-200) 100%);
  border-top: 1px solid var(--shop-gray-200);
  margin-top: auto;
}

.product-price-stock-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.product-price-wrapper > div {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.product-price-old {
  font-size: 1rem;
  color: var(--shop-gray-500);
  text-decoration: line-through;
  font-weight: 400;
}

.product-discount-percent {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--shop-white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-stock.in-stock {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-stock.out-of-stock {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-btn {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: var(--shop-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-btn-primary {
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  color: var(--shop-white);
  box-shadow: 0 4px 20px rgba(243, 147, 33, 0.3);
}

.product-btn-primary:hover {
  background: linear-gradient(135deg, var(--shop-orange-light) 0%, var(--shop-orange) 100%);
  box-shadow: 0 6px 30px rgba(243, 147, 33, 0.4);
  transform: translateY(-2px);
}

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

.product-btn-secondary {
  background: var(--shop-gray-300);
  color: var(--shop-gray-600);
  cursor: not-allowed;
}

/* ============ Variant Selector ============ */
.product-variants {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--shop-gray-100);
  border-radius: 0.75rem;
  border: 1px solid var(--shop-gray-200);
}

.product-variant-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--shop-gray-700);
  margin: 0;
  white-space: nowrap;
}

.product-variant-select {
  flex: 1;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--shop-gray-300);
  border-radius: 0.5rem;
  background: var(--shop-white);
  color: var(--shop-gray-900);
  font-weight: 500;
  cursor: pointer;
  transition: var(--shop-transition);
}

.product-variant-select:hover {
  border-color: var(--shop-orange);
}

.product-variant-select:focus {
  outline: none;
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 3px rgba(243, 147, 33, 0.1);
}

/* ============ Loading States ============ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--shop-transition);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--shop-gray-200);
  border-top-color: var(--shop-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ Pagination ============ */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.shop-pagination .page-link {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid var(--shop-gray-300);
  color: var(--shop-gray-700);
  text-decoration: none;
  transition: var(--shop-transition);
  font-weight: 600;
  background: var(--shop-white);
}

.shop-pagination .page-link:hover {
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  color: var(--shop-white);
  border-color: var(--shop-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 147, 33, 0.3);
}

.shop-pagination .page-link.active {
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  color: var(--shop-white);
  border-color: var(--shop-orange);
}

/* ============ Trust Section ============ */
.trust-section {
  background: linear-gradient(135deg, var(--shop-gray-100) 0%, var(--shop-white) 100%);
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--shop-gray-200);
}

.trust-badge {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--shop-white);
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--shop-transition);
  border: 1px solid var(--shop-gray-200);
  height: 100%;
}

.trust-badge:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--shop-orange);
}

.trust-badge-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.trust-badge-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--shop-gray-900);
  margin-bottom: 0.5rem;
}

.trust-badge-text {
  font-size: 0.9375rem;
  color: var(--shop-gray-600);
  line-height: 1.6;
}

/* ============ Utilities ============ */
.hidden {
  display: none !important;
}

/* ============ Mobile Filter - Hide on Desktop ============ */
.mobile-filter-overlay,
.mobile-filter-container {
  display: none !important;
}

/* ============ Responsive Design ============ */
@media (max-width: 991px) {
  /* Show mobile filter on mobile */
  .mobile-filter-overlay {
    display: block !important;
  }

  .mobile-filter-container {
    display: flex !important;
  }
  /* Hide sidebar on mobile */
  .shop-sidebar {
    display: none !important;
  }

  .shop-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .shop-hero-shape,
  .shop-hero-icon {
    display: none;
  }

  .shop-hero-grid {
    opacity: 0.2;
  }

  .shop-hero-title {
    font-size: 2rem;
  }

  .shop-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .shop-hero-stats {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .shop-hero-stat {
    padding: 1rem 1.5rem;
    min-width: 100px;
  }

  .shop-hero-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .shop-hero-stat-value {
    font-size: 1.5rem;
  }

  .shop-hero-stat-label {
    font-size: 0.75rem;
  }

  .products-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .products-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-filter-btn {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--shop-transition);
    background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
    border: none;
    color: var(--shop-white);
    box-shadow: 0 4px 12px rgba(243, 147, 33, 0.3);
  }

  .mobile-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 147, 33, 0.4);
    background: linear-gradient(135deg, var(--shop-orange-light) 0%, var(--shop-orange) 100%);
    color: var(--shop-white);
  }

  .mobile-filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(243, 147, 33, 0.3);
  }

  .mobile-filter-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--shop-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
  }

  /* Mobile Filter Bottom Sheet */
  .mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1070;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-filter-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .mobile-filter-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1071;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-filter-container.show {
    transform: translateY(0);
  }

  .mobile-filter-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 0.75rem auto;
    cursor: grab;
  }

  .mobile-filter-handle:active {
    cursor: grabbing;
  }

  .mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--shop-gray-200);
  }

  .mobile-filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shop-gray-900);
    margin: 0;
  }

  .mobile-filter-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--shop-gray-600);
    font-size: 1.25rem;
    border-radius: 0.5rem;
    transition: var(--shop-transition);
    cursor: pointer;
  }

  .mobile-filter-close:hover {
    background: var(--shop-gray-100);
    color: var(--shop-gray-900);
  }

  .mobile-filter-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.5rem;
  }

  .mobile-active-filters {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--shop-gray-200);
  }

  .mobile-filter-card {
    background: var(--shop-white);
    border-radius: 1rem;
    border: 1px solid var(--shop-gray-200);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .mobile-filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--shop-gray-100);
    cursor: pointer;
    user-select: none;
    transition: var(--shop-transition);
  }

  .mobile-filter-card-header:hover {
    background: var(--shop-gray-200);
  }

  .mobile-filter-card-header i.fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .mobile-filter-card.collapsed .mobile-filter-card-header i.fa-chevron-down {
    transform: rotate(-90deg);
  }

  .mobile-filter-card-body {
    padding: 1rem 1.25rem;
    max-height: 400px;
    overflow-y: auto;
  }

  .mobile-filter-card.collapsed .mobile-filter-card-body {
    display: none;
  }

  .mobile-filter-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--shop-gray-200);
    background: var(--shop-white);
  }

  .mobile-filter-footer .btn {
    flex: 1;
    min-height: 48px;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--shop-transition);
  }

  .mobile-filter-footer .btn-primary {
    background: linear-gradient(135deg, var(--shop-orange) 0%, var(--shop-orange-light) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(243, 147, 33, 0.3);
  }

  .mobile-filter-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 147, 33, 0.4);
  }

  /* Prevent body scroll when filter is open */
  body.mobile-filter-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .shop-hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  .shop-hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  .shop-hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .shop-hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .shop-hero-search input {
    height: 56px;
    font-size: 1rem;
    padding-left: 56px;
    padding-right: 56px;
  }

  .shop-hero-stats {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .shop-hero-stat {
    padding: 0.75rem 1rem;
    min-width: 80px;
  }

  .shop-hero-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .shop-hero-stat-value {
    font-size: 1.25rem;
  }

  .shop-hero-stat-label {
    font-size: 0.7rem;
  }

  .product-card-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .filter-card-body {
    max-height: 300px;
  }

  .trust-section {
    padding: 3rem 0;
  }
}
