/* Base variables */
:root {
  --bg-light: #F8F8F8;
  --border-color: #E5E5E5;
  --primary: #7F1323;
  --shadow: 0 2px 4px rgba(0,0,0,0.08);
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --transition: all 0.3s ease;
  --primary-dark: #27040A;
  --primary-red: #7F1323;
  --accent-red: #9a1c2f;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
}

dl, ol, ul {
    margin-top: 0;
    margin-bottom: 1rem;
    color: black;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: black;
}

body {
  background: var(--primary-dark);
  color: var(--text-light);
  font-family: din-2014, sans-serif;
  line-height: 1.6;
  padding-top: 100px;
}

/* Header Styles */
header {
  background-color: #27040A;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 10px 0;
  height: 100px;
}

.logo-image {
  height: auto;
  max-width: 250px;
}

.navbar-nav {
  gap: 20px;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Elegant Header */
.catalog-header {
    text-align: center;
    margin-bottom: 48px;
}

.catalog-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: #e2e8f0;
}

/* Base layout */
.container {
  margin: 0 auto;
  max-width: 1600px;
  padding: 40px 20px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Article styles */
.article-number {
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

/* Close button styles */
.close-modal {
  color: #666;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Refined Filter Bar */
.filter-bar {
    background: #2d0610;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid #4a0f1e;
}

.filter-button {
  background: #f7f7f7;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 16px;
  transition: all 0.2s;
}

.filter-button.active {
  background: #7F1323;
  border-color: #7F1323;
  color: white;
}

.filter-button:hover {
  background: #efefef;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-group p {
  white-space: pre-line;
  color: #0B0203;
}

.filter-button {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.filter-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: var(--bg-light);
  margin: 2% auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  width: 85%;
  max-width: 900px;
  max-height: 95vh;
  overflow-y: auto;
}

.modal-details {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 20px;
}

.modal-image {
  margin-bottom: 20px;
  max-height: 400px;
  object-fit: contain;
  width: 100%;
}

.modal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-images .modal-image {
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
  width: calc(50% - 8px);
  cursor: pointer;
}

.modal-title {
  color: #0B0203;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Product styles */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.product-detail {
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.product-detail span {
    font-weight: 500;
    color: #333;
}

.product-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.product-info {
  padding: 16px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-price {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

.products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Search and Quick Actions Styles */
.search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 19, 35, 0.1);
}

.search-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--accent-red);
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.action-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-secondary);
  font-size: 14px;
  min-width: 200px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Wishlist Styles */
.wishlist-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.wishlist-indicator i {
  font-size: 18px;
  color: #666;
  transition: var(--transition);
}

.wishlist-indicator:hover {
  background: white;
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border-color: var(--primary);
}

.wishlist-indicator:hover i {
  color: var(--primary);
}

.wishlist-indicator.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  animation: heartBeat 0.6s ease;
}

.wishlist-indicator.active i {
  color: white;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
  100% { transform: scale(1.15); }
}

/* Recently Viewed Styles */
.recently-viewed {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.recently-viewed h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.recent-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.recent-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.recent-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.recent-item-info {
  padding: 12px;
}

.recent-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.recent-item-brand {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* List View Styles */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-list-item {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.product-list-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-list-content {
  padding: 20px;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-list-info {
  flex: 1;
}

.product-list-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-list-details {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}

.product-list-detail {
  font-size: 14px;
  color: var(--text-secondary);
}

.product-list-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* Comparison Modal */
.comparison-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.comparison-content {
  background: white;
  margin: 2% auto;
  padding: 24px;
  border-radius: 12px;
  width: 95%;
  max-width: 1400px;
  max-height: 90vh;
  overflow-y: auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.comparison-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.comparison-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

#switchLabel {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-container h2 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form-container p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 19, 35, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.share-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Request Quote Button */
.request-quote-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
}

.request-quote-btn:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.action-btn-secondary {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  text-align: center;
}

.action-btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.product-badge.new {
  background: #28a745;
}

.product-badge.popular {
  background: #ff6b35;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 3000;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

.toast.info {
  background: #17a2b8;
}

/* Wishlist Grid Styles */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.wishlist-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.wishlist-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.wishlist-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.wishlist-item-details {
  padding: 16px;
}

.wishlist-item-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wishlist-item-brand {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.wishlist-item-model {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.wishlist-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.wishlist-item-actions {
  display: flex;
  gap: 8px;
}

.recent-item-model {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.recent-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Footer Styles */
footer {
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  color: var(--text-light);
}

.footer-section h3 {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-section p, .footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 20px;
}

.social-links a:hover {
  color: var(--text-light);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal Layout - Side by side design */
.modal-body {
  display: flex;
  gap: 24px;
}

.modal-images-section {
  flex: 1;
  min-width: 300px;
}

.modal-info-section {
  flex: 1;
  min-width: 280px;
}

.modal-main-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
}

.modal-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.modal-gallery.compact {
  max-height: 80px;
}

.modal-gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-gallery-thumb:hover,
.modal-gallery-thumb.active {
  border-color: var(--primary);
}

.gallery-expand-btn {
  display: none;
  width: 70px;
  height: 70px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}

.gallery-expand-btn.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery.expanded {
  max-height: none;
  flex-wrap: wrap;
}

.modal-gallery.expanded .gallery-expand-btn {
  display: none;
}

/* Media Queries */
@media (min-width: 769px) {
  .modal-content {
    width: 85%;
    max-width: 1000px;
    margin: 3% auto;
    padding: 24px;
  }
  
  .modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .modal-details {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 0;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 20px 16px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 8px 0;
    height: 80px;
  }
  
  .logo-image {
    max-width: 200px;
  }
  
  .filter-bar {
    padding: 24px 16px;
  }
  
  .catalog-title {
    font-size: 32px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  
  .quick-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .action-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  .navbar {
    height: 70px;
  }
  
  .logo-image {
    max-width: 180px;
  }
  
  .container {
    padding: 16px 12px;
  }

  .catalog-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .filter-bar {
    padding: 20px 16px;
    margin-bottom: 32px;
  }
  
  .filter-section {
    margin-bottom: 20px;
  }
  
  .filter-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .filter-options {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
  }
  
  .filter-button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 14px;
    white-space: nowrap;
  }
  
  .search-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  .search-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .quick-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .action-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    font-size: 12px;
    padding: 10px 8px;
    text-align: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  
  .product-card {
    border-radius: 8px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: 14px;
  }
  
  .product-name {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .product-detail {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .product-price {
    font-size: 20px;
    margin-top: 16px;
  }
  
  .wishlist-indicator {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  
  .wishlist-indicator i {
    font-size: 16px;
  }
  
  .product-list-item {
    flex-direction: column;
  }
  
  .product-list-image {
    width: 100%;
    height: 200px;
  }
  
  .product-list-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  
  .product-list-details {
    flex-direction: column;
    gap: 4px;
  }
  
  .modal-content {
    margin: 8px;
    padding: 20px;
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }
  
  .modal-body {
    flex-direction: column;
    gap: 16px;
  }
  
  .modal-images-section {
    min-width: auto;
  }
  
  .modal-info-section {
    min-width: auto;
  }
  
  .modal-main-image {
    max-height: 250px;
  }
  
  .modal-gallery.compact {
    max-height: 60px;
  }
  
  .modal-gallery-thumb {
    width: 60px;
    height: 60px;
  }
  
  .modal-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .modal-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-btn-secondary {
    flex: none;
    width: 100%;
  }
  
  .share-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lightbox-nav {
    padding: 8px;
    font-size: 20px;
  }
  
  .lightbox-close {
    font-size: 24px;
    top: 16px;
    right: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 12px 8px;
  }
  
  .catalog-title {
    font-size: 24px;
  }
  
  .filter-bar {
    padding: 16px 12px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-name {
    font-size: 15px;
  }
  
  .product-detail {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 18px;
  }
  
  .wishlist-indicator {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
  }
  
  .wishlist-indicator i {
    font-size: 14px;
  }
  
  .action-btn {
    font-size: 11px;
    padding: 8px 6px;
  }
  
  .filter-button {
    font-size: 11px;
    padding: 5px 12px;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-title {
    font-size: 22px;
  }
  
  .filter-bar {
    padding: 12px 8px;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}