/* ============================================
   Products Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
  background: #1a1a1a;
  color: #fff;
  
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.page-hero p {
  color: #C4A882;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Products Section */
.products-section {
  padding: 60px 0 100px;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.filter-tab {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
}

.filter-tab:hover,
.filter-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* Product Count */
.product-count {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 35px;
  font-family: 'Montserrat', sans-serif;
}

/* Product Grid - 3 columns */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 35px;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.product-card .card-image {
  position: relative;
  aspect-ratio: 4 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.product-card:hover .card-image img {
  transform: scale(1.06);
}

/* Card Overlay with Explore Button */
.product-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.explore-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.3);
}

.explore-btn:hover {
  background: #C4A882;
  border-color: #C4A882;
  color: #fff;
}

/* Card Info */
.product-card .card-info {
  padding: 20px 5px 5px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card .card-model {
  font-size: 0.7rem;
  color: #C4A882;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
}

.product-card .card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
}

.product-card .card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e74c3c;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

.product-card .card-contact {
  display: inline-block;
  margin-top: 6px;
  transition: opacity 0.2s;
}

.product-card .card-contact:hover {
  opacity: 0.8;
}

/* Category Badge on Card */
.product-card .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26,26,26,0.8);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  font-family: 'Montserrat', sans-serif;
  z-index: 2;
}

/* Featured Badge */
.product-card .featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #C4A882;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  font-family: 'Montserrat', sans-serif;
  z-index: 2;
}

/* MOQ Badge */
.product-card .moq-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26,26,26,0.6);
  color: #fff;
  font-size: 0.6rem;
  padding: 3px 8px;
  font-family: 'Montserrat', sans-serif;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 60px;
}

.pagination a,
.pagination .page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.pagination a:hover {
  background: #f5f5f5;
  border-color: #C4A882;
  color: #C4A882;
}

.pagination .page-current {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pagination .page-ellipsis {
  border: none;
  color: #ccc;
  cursor: default;
}

.pagination .page-prev,
.pagination .page-next {
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.no-results h3 {
  font-size: 1.3rem;
  color: #ccc;
  margin-bottom: 10px;
  font-weight: 400;
}

/* Loading Spinner */
.loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.loading .spinner {
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.loading .spinner .path {
  stroke: #C4A882;
  stroke-linecap: round;
  animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinner-dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  to { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Featured Section Title */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.section-header .line {
  width: 50px;
  height: 1px;
  background: #C4A882;
  margin: 15px auto;
}

/* Product Detail Modal */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  z-index: 10;
  line-height: 1;
  background: none;
  border: none;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.modal-info {
  padding: 40px;
}

.modal-info .model-label {
  font-size: 0.7rem;
  color: #C4A882;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.modal-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 10px 0 15px;
  color: #1a1a1a;
}

.modal-info .description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.detail-row {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px 0;
  font-size: 0.85rem;
}

.detail-row .label {
  color: #999;
  width: 110px;
  flex-shrink: 0;
}

.detail-row .value {
  color: #333;
  font-weight: 500;
}

.modal-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-inquire {
  padding: 14px 32px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-inquire:hover {
  background: #C4A882;
}

.btn-close-modal {
  padding: 14px 24px;
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s;
}

.btn-close-modal:hover {
  border-color: #333;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 40px;
  }
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .products-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .filter-tabs {
    gap: 6px;
    margin-bottom: 35px;
  }
  .filter-tab {
    padding: 8px 14px;
    font-size: 0.72rem;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-image img {
    min-height: 280px;
  }
  .modal-info {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-card .card-name {
    font-size: 0.85rem;
  }
  .pagination {
    margin-top: 40px;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}