/* products.css - Styling for the Products Explore Catalog */

/* Products Hero Section */
.products-hero-section {
  position: relative;
  background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.products-hero-section .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237, 28, 36, 0.08);
  color: #ed1c24;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.products-hero-section h1 {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
}

.products-hero-section p {
  font-size: 16px;
  color: #64748b;
  max-width: 650px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.feature-pill i {
  color: #ed1c24;
}

/* Products Catalog Container */
.products-catalog-section {
  padding: 50px 0 80px;
  background: #fafafa;
  min-height: 500px;
}

/* Filter & Search Bar */
.catalog-toolbar {
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  margin-bottom: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.catalog-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
}

.catalog-search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.catalog-search-box input:focus {
  border-color: #ed1c24;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  background-color: #fff;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.sort-select:focus {
  border-color: #ed1c24;
}

.products-count-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
}

/* Product Card Enhanced */
.product-catalog-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: #fecaca;
}

.product-card-thumb-wrapper {
  position: relative;
  background: #f8fafc;
  padding: 24px;
  text-align: center;
  overflow: hidden;
  display: block;
}

.product-card-thumb-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-catalog-card:hover .product-card-thumb-wrapper img {
  transform: scale(1.06);
}

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.product-card-title:hover {
  color: #ed1c24;
}

.product-card-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
  min-height: 18px;
}

/* Color Swatches */
.product-color-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.color-dot-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  margin-bottom: 16px;
  border-top: 1px dashed #e2e8f0;
}

.price-label {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.price-value {
  font-size: 22px;
  font-weight: 800;
  color: #ed1c24;
}

/* Custom Action Button */
.card-customize-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: #ed1c24;
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.2);
}

.card-customize-btn:hover {
  background: #c71219;
  color: #ffffff;
  gap: 10px;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.3);
}

/* Empty State */
.catalog-empty-state {
  text-align: center;
  padding: 70px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.catalog-empty-state i {
  font-size: 54px;
  color: #cbd5e1;
  margin-bottom: 15px;
  display: block;
}

.catalog-empty-state h4 {
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.catalog-empty-state p {
  color: #64748b;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .products-hero-section h1 {
    font-size: 32px;
  }
  .catalog-toolbar {
    padding: 15px;
  }
  .catalog-search-box {
    max-width: 100%;
  }
  .catalog-actions {
    width: 100%;
    justify-content: space-between;
  }
}
