/* Complete responsive redesign matching Dior Luxury home page style */

/* Category Products Section */
.category-products-section {
  padding: 60px 0;
}

.category-hero {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
  padding: 80px 0 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 140, 66, 0.2);
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #ff8c42;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #1a1a1a;
}

.breadcrumb span {
  margin: 0 10px;
  color: #ccc;
}

.category-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 2px;
}

.category-hero p {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
}

/* Filters Section - Dior Style */
.category-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 50px 0 40px;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 20px;
}

.dior-style {
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group label {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
  white-space: nowrap;
}

.filter-group select,
#sortFilter,
.dior-select {
  padding: 12px 40px 12px 15px;
  border: 2px solid #ddd;
  border-radius: 0;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-color: white;
  color: #1a1a1a;
  min-width: 180px;
}

.filter-group select:hover,
#sortFilter:hover,
.dior-select:hover {
  border-color: #ff8c42;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.15);
}

.filter-group select:focus,
#sortFilter:focus,
.dior-select:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 2px 12px rgba(255, 140, 66, 0.25);
}

.results-count {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  font-weight: 300;
}

.dior-count {
  font-size: 14px;
  color: #666;
}

.results-count span,
.dior-count span {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 16px;
}

/* Products Grid - Matching Home Page Style */
.dior-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 60px;
  min-height: 200px;
}

/* No Products Message - Enhanced Style */
.no-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.05), rgba(255, 107, 53, 0.05));
  border-radius: 0;
  grid-column: 1 / -1;
}

.no-products i {
  font-size: 100px;
  color: #ddd;
  margin-bottom: 30px;
  opacity: 0.5;
}

.no-products h3 {
  font-size: 36px;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 400;
  letter-spacing: 1px;
}

.no-products p {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 16px 45px;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  border-radius: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid #1a1a1a;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  border-color: #ff8c42;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover::before {
  left: 0;
}

/* Product Card Styling - Dior Luxury */
.dior-product-card {
  background: white;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeInUp 0.6s ease forwards;
}

.dior-product-card:nth-child(1) { animation-delay: 0.1s; }
.dior-product-card:nth-child(2) { animation-delay: 0.2s; }
.dior-product-card:nth-child(3) { animation-delay: 0.3s; }
.dior-product-card:nth-child(n+4) { animation-delay: 0.4s; }

.dior-product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.dior-product-link {
  text-decoration: none;
  color: inherit;
}

.dior-product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 3 / 4;
  margin-bottom: 30px;
}

.dior-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dior-product-card:hover .dior-product-image {
  transform: scale(1.05);
}

.dior-discount-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  color: white;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 0;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
  font-weight: 700;
}

.dior-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dior-product-card:hover .dior-product-overlay {
  opacity: 1;
}

.dior-quick-view {
  color: white;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 30px;
  border: 1px solid white;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  display: block;
}

.dior-quick-view:hover {
  background: #ff8c42;
  border-color: #ff8c42;
}

.dior-product-details {
  text-align: center;
  padding: 0 20px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dior-product-category {
  font-size: 11px;
  color: #999;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.dior-product-name {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dior-product-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.dior-price-current {
  font-size: 24px;
  font-weight: 600;
  color: #ff8c42;
}

.dior-price-current small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
}

.dior-price-original {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

.dior-add-form {
  margin-top: auto;
}

.dior-add-to-bag {
  width: 100%;
  padding: 16px 30px;
  background: #1a1a1a;
  color: white;
  border: 2px solid #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.dior-add-to-bag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff8c42, #ff6b35);
  transition: left 0.4s ease;
  z-index: -1;
}

.dior-add-to-bag:hover {
  border-color: #ff8c42;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.dior-add-to-bag:hover::before {
  left: 0;
}

.dior-add-to-bag i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dior-add-to-bag:hover i {
  transform: translateX(5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RTL Support */
html[dir="rtl"] .dior-add-to-bag i {
  transform: rotate(180deg);
}

html[dir="rtl"] .dior-add-to-bag:hover i {
  transform: rotate(180deg) translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .category-hero h1 {
    font-size: 42px;
  }
  
  .dior-products-grid {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .category-filters {
    gap: 20px;
    padding: 20px 0;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .results-count {
    width: 100%;
    text-align: center;
  }
  
  .dior-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .category-hero h1 {
    font-size: 36px;
    letter-spacing: 1.5px;
  }
  
  .category-hero p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .category-hero {
    padding: 60px 0 40px;
  }
  
  .category-hero h1 {
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }
  
  .category-hero p {
    font-size: 14px;
  }
  
  .category-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select,
  #sortFilter,
  .dior-select {
    width: 100%;
    min-width: auto;
  }
  
  .results-count {
    text-align: center;
    width: 100%;
  }
  
  .dior-products-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .no-products {
    padding: 80px 30px;
  }
  
  .no-products i {
    font-size: 80px;
    margin-bottom: 20px;
  }
  
  .no-products h3 {
    font-size: 28px;
  }
  
  .no-products p {
    font-size: 14px;
  }
  
  .dior-product-name {
    font-size: 16px;
    min-height: auto;
  }
  
  .dior-price-current {
    font-size: 20px;
  }
  
  .dior-add-to-bag {
    padding: 14px 25px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .category-hero h1 {
    font-size: 24px;
    letter-spacing: 0.5px;
  }
  
  .category-hero p {
    font-size: 13px;
  }
  
  .category-filters {
    gap: 10px;
  }
  
  .filter-group label {
    font-size: 13px;
  }
  
  .filter-group select,
  #sortFilter,
  .dior-select {
    font-size: 13px;
    padding: 10px 35px 10px 12px;
  }
  
  .results-count {
    font-size: 13px;
  }
  
  .results-count span,
  .dior-count span {
    font-size: 14px;
  }
  
  .dior-products-grid {
    gap: 40px;
  }
  
  .dior-discount-badge {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 10px;
  }
  
  .dior-product-details {
    padding: 0 12px 20px;
  }
  
  .dior-product-name {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .dior-product-pricing {
    margin-bottom: 20px;
  }
  
  .dior-price-current {
    font-size: 18px;
  }
  
  .dior-price-original {
    font-size: 15px;
  }
  
  .dior-add-to-bag {
    padding: 12px 20px;
    font-size: 10px;
    gap: 8px;
  }
  
  .no-products {
    padding: 60px 20px;
  }
  
  .no-products i {
    font-size: 60px;
    margin-bottom: 15px;
  }
  
  .no-products h3 {
    font-size: 22px;
  }
  
  .no-products p {
    font-size: 13px;
    margin-bottom: 30px;
  }
  
  .btn-primary {
    padding: 12px 30px;
    font-size: 11px;
    width: 100%;
  }
}

/* Loading State */
#loadingState {
  text-align: center;
  padding: 60px 40px;
  grid-column: 1 / -1;
}

#loadingState i {
  font-size: 48px;
  color: #ff8c42;
  margin-bottom: 20px;
  display: block;
}

#loadingState p {
  font-size: 16px;
  color: #666;
  font-weight: 300;
}

/* Trending Section - reuse dior-products-grid */
.trending-dior-luxury {
  padding: 120px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
}

@media (max-width: 768px) {
  .trending-dior-luxury {
    padding: 20px 0;
  }
}
