* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sc-catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Updated main container and filters to match new design */
.sc-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.sc-filters-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sc-filters {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.sc-filters-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.sc-filter-group {
  flex: 1;
  min-width: 0;
}

.sc-filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.sc-filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.sc-filter-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.sc-filter-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: white;
  color: #111827;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2316a34a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  transition: border-color 0.2s;
}

.sc-filter-select:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.sc-filter-select:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Added header styles matching the new design */
.sc-header {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #16a34a;
  margin-bottom: 0;
}

.sc-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.sc-header h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.25rem;
}

.sc-header-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 768px) {
  .sc-header h1 {
    font-size: 2.25rem;
  }

  .sc-header-content {
    padding: 2rem 1.5rem;
  }
}

/* Added smooth transition for catalog grid */
.sc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  transition: opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .sc-catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Improved card styling with better hover effects */
.sc-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.sc-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f5f5f5;
}

.sc-card-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sc-card:hover .sc-card-image {
  transform: scale(1.05);
}

.sc-card-badge {
  position: absolute;
  color: #fff;
  top: 15px;
  right: 15px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sc-card-badge.new {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.sc-card-badge.hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Updated global badge to use SVG icon instead of emoji */
.sc-card-badge.global {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-card-badge.global::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.sc-card-content {
  padding: 20px;
}

.sc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Improved card info layout - store first with larger font, then location */
.sc-card-store {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-card-store svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
}

.sc-card-location {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-card-location svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
}

.sc-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 8px;
}

.sc-card-info.location svg {
  color: #16a34a;
}

.sc-card-info.date svg {
  color: #dc2626;
}

.sc-card-info svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sc-card-info:last-child {
  margin-bottom: 0;
}

/* Improved loading and no results states */
.sc-loading {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
  font-size: 16px;
  grid-column: 1 / -1;
}

.sc-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
  grid-column: 1 / -1;
}

.sc-no-results h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.sc-no-results p {
  font-size: 16px;
  color: #95a5a6;
}

/* Updated clear button styling to match new design */
.sc-clear-button {
  width: 100%;
  padding: 0.625rem 1.5rem;
  background-color: #16a34a;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-clear-button:hover {
  background-color: #15803d;
}

.sc-clear-button:active {
  background-color: #166534;
}

.sc-clear-button:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .sc-filters-row {
    flex-direction: row;
    align-items: flex-end;
  }

  .sc-clear-button {
    width: auto;
    white-space: nowrap;
  }
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
  .sc-catalog-container {
    padding: 15px;
  }

  .sc-filters {
    padding: 15px;
    gap: 12px;
  }

  .sc-filter-group {
    width: 100%;
    min-width: unset;
  }

  .sc-filter-group label {
    font-size: 13px;
  }

  .sc-filter-group select {
    padding: 10px 12px;
    font-size: 13px;
  }

  .sc-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .sc-card-image-wrapper {
    height: 200px;
  }

  .sc-card-content {
    padding: 15px;
  }

  .sc-card-title {
    font-size: 16px;
  }

  .sc-card-info {
    font-size: 13px;
  }

  .sc-card-info svg {
    width: 14px;
    height: 14px;
  }
}
