/* ===== PRODUCTS PAGE SPECIFIC STYLES ===== */
.heading-txt {
  padding-top: 15px;
  color: #f6c600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

/* ===== PRODUCTS HERO SECTION ===== */
.products-hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-800) 100%);
  padding: 120px 0 80px;
  color: var(--light-color);
  position: relative;
  overflow: hidden;
  margin-top: 80px; /* Account for fixed navbar */
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="products-grid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23products-grid)"/></svg>');
  opacity: 0.3;
}

.products-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--light-color);
  animation: fadeInUp 1s ease-out;
}

.products-hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--gray-300);
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== PRODUCTS FILTER SECTION ===== */
.products-filter {
  padding: 40px 0;
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.filter-select {
  padding: 10px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  background-color: var(--light-color);
  color: var(--gray-800);
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-box {
  position: relative;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  background-color: var(--light-color);
  color: var(--gray-800);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ===== PRODUCTS GRID ===== */
.products-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-header {
  text-align: center;
  margin-bottom: 50px;
}

.products-header h2 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 2.5rem;
}

.products-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--light-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  line-height: 1.3;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs {
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--gray-600);
  font-weight: 500;
}

.spec-value {
  color: var(--dark-color);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 15px;
}

/* ===== PRODUCT DETAILS MODAL ===== */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--light-color);
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: var(--transition);
}

.product-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-color);
  background-color: var(--gray-100);
}

.modal-body {
  padding: 30px;
}

.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.modal-product-image {
  text-align: center;
}

.modal-product-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.modal-product-details h3 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.modal-product-details ul {
  margin-bottom: 25px;
}

.modal-product-details li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--gray-700);
  line-height: 1.6;
}

.modal-product-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination-btn {
  padding: 10px 15px;
  border: 2px solid var(--gray-200);
  background-color: var(--light-color);
  color: var(--gray-700);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.pagination-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-200);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.products-loading {
  text-align: center;
  padding: 60px 20px;
}

.products-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border-width: 4px;
  margin-bottom: 20px;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.no-results h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-results p {
  margin-bottom: 25px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .products-hero h1 {
    font-size: 3rem;
  }
  
  .products-hero p {
    font-size: 1.2rem;
  }
  
  #product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .modal-product-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .products-hero {
    padding: 100px 0 60px;
  }
  
  .products-hero h1 {
    font-size: 2.5rem;
  }
  
  .products-hero p {
    font-size: 1.1rem;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: center;
  }
  
  .search-box {
    min-width: auto;
  }
  
  #product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .product-info h3 {
    min-height: auto;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modal-product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .products-hero h1 {
    font-size: 2rem;
  }
  
  .products-hero p {
    font-size: 1rem;
  }
  
  .products-section {
    padding: 60px 0;
  }
  
  .products-header h2 {
    font-size: 2rem;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select,
  .search-input {
    width: 100%;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-info h3 {
    font-size: 1.2rem;
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  .modal-body {
    padding: 25px;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-bottom {
  animation: slideInFromBottom 0.8s ease-out;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===== FILTER ANIMATIONS ===== */
.filter-enter {
  opacity: 0;
  transform: translateY(-20px);
}

.filter-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.filter-exit {
  opacity: 1;
  transform: translateY(0);
}

.filter-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: var(--transition);
}

/* ===== CUSTOM SCROLLBAR FOR MODAL ===== */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
