
/* Responsive styles for mobile */
@media (max-width: 600px) {
  body {
    padding-top: 100px; /* Less space needed for mobile header */
  }
  
  header {
    padding: 8px 6px;
    font-size: 1em;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
  }
  nav a {
    margin: 0 6px;
    font-size: 0.95em;
    padding: 4px 0;
  }
  nav label {
    margin-left: 0 !important;
    font-size: 0.95em;
  }
  .container {
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
    border-radius: 0;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px 0;
  }
  .product-card {
    padding: 8px;
    font-size: 0.98em;
  }
  .product-image {
    height: 140px;
  }
  .filters {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    font-size: 0.98em;
  }
  .filters div, .filters label {
    margin-right: 0;
    margin-bottom: 4px;
  }
  .pagination-controls {
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 8px 0;
    font-size: 0.98em;
  }
  footer {
    font-size: 0.95em;
    padding: 10px;
  }
}
/* Toggle switch styling */
#toggle-theme {
  width: 44px;
  height: 24px;
  appearance: none;
  background: #ccc;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
#toggle-theme:checked {
  background: #2c5282;
}
#toggle-theme::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
#toggle-theme:checked::before {
  left: 24px;
}
body.dark-mode {
  background: #181818;
  color: #e0e0e0;
}

.dark-mode .container {
  background: #23272a;
  color: #e0e0e0;
}

.dark-mode .product-card {
  background: #23272a;
  color: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.dark-mode .product-title {
  color: #f6c915;
}

.dark-mode .product-specs {
  color: #b0b0b0;
}

.dark-mode .product-price {
  color: #f6c915;
}

.dark-mode .stock-status {
  color: #48bb78;
}

.dark-mode .stock-status.low {
  color: #ed8936;
}

.dark-mode header {
  background: #23272a;
  color: #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.dark-mode nav a {
  color: #e0e0e0;
}

.dark-mode nav a:hover {
  color: #f6c915;
}

.dark-mode .pagination-controls button {
  background: #444;
  color: #f6c915;
}

.dark-mode .pagination-controls button:disabled {
  background: #333;
  color: #888;
}

.dark-mode .pagination-controls select {
  background: #23272a;
  color: #e0e0e0;
  border: 1px solid #444;
}

.dark-mode .filters label,
.dark-mode .filters span {
  color: #e0e0e0;
}
/* Pagination controls styling */
.pagination-controls button {
  background: #2c5282;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.pagination-controls button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.pagination-controls select {
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
/* Checkbox filter layout */
.filters div {
  margin-right: 20px;
}
.filters label {
  font-weight: normal;
  margin-right: 10px;
}
.filters span {
  margin-right: 8px;
}
/* Filter controls styling */
.filters label {
  font-weight: bold;
  margin-right: 10px;
}
.filters select {
  margin-left: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Category filter specific styling */
#filter-category {
  min-width: 150px;
  font-weight: 500;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #909090;
  color: #333;
  padding-top: 120px; /* Space for fixed header */
  padding-bottom: 60px; /* Added to prevent content from going under footer */
}

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

/* Enhanced grid for products page with sidebar */
.products-page .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.product-card {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Grid view specific styles - fixed button at bottom */
.product-grid .product-card {
  display: flex;
  flex-direction: column;
  min-height: 450px;
}

.product-grid .product-card .add-to-cart-btn {
  margin-top: auto;
}

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

.product-title {
  font-size: 1.2em;
  margin: 10px 0;
  color: #222;
}

.product-specs {
  color: #666;
  margin: 10px 0;
}

.product-price {
  font-size: 1.4em;
  color: #2c5282;
  font-weight: bold;
  margin: 10px 0;
}

.stock-status {
  color: #48bb78;
  font-weight: bold;
}

.stock-status.low {
  color: #ed8936;
}

header {
  background: #222;
  color: #fff;
  padding: 4px 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: padding 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

header.shrink {
  padding: 2px 15px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

header h1 {
  font-size: 1.3em;
  margin: 2px 0;
}

header.shrink h1 {
  font-size: 1.1em;
  margin: 1px 0;
}

nav {
  margin-top: 3px;
}

nav a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
}

header.shrink nav a {
  margin: 0 10px;
  font-size: 0.85em;
}

nav a:hover {
  color: #ffcc00;
}

/* Language Selector Styles */
.language-selector {
  display: inline-block;
  margin-left: 20px;
}

.language-selector select {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-selector select:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.language-selector select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffcc00;
}

.language-selector option {
  background: #2c5282;
  color: #fff;
  padding: 4px;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: #909090;
  border-radius: 8px;
}

/* Wider container for products page */
.products-page .container {
  max-width: 1400px;
  padding: 30px 40px;
}

/* Main content headings - add spacing after navbar */
.container h1:first-child,
.container h2:first-child {
  margin-top: 0;
  padding-top: 10px;
}

/* All main headings in content */
h1, h2 {
  margin-top: 25px;
  margin-bottom: 15px;
}

footer {
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  background: #222;
  color: #fff;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Cart styles */
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.continue-shopping-btn {
  display: inline-block;
  background: #2c5282;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 15px;
  transition: background 0.3s;
}

.continue-shopping-btn:hover {
  background: #2a4c7a;
}

.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  margin-right: 20px;
}

.cart-item-details {
  flex: 1;
  margin-right: 20px;
}

.cart-item-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}

.cart-item-specs {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.cart-item-os {
  color: #2c5282;
  font-size: 0.9em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-os strong {
  color: #1a365d;
}

.cart-item-os .os-select {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9em;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.cart-item-os .os-select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.cart-item-os .os-select option[value=""] {
  color: #e53e3e;
  font-weight: bold;
}

.cart-item-price {
  font-size: 1.2em;
  color: #2c5282;
  font-weight: bold;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.quantity-btn {
  background: #f0f0f0;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: #e0e0e0;
}

.quantity-input {
  border: none;
  padding: 8px 12px;
  width: 50px;
  text-align: center;
  font-size: 1em;
}

.remove-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: #c53030;
}

.cart-summary {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.summary-row.total {
  font-size: 1.3em;
  font-weight: bold;
  color: #2c5282;
  border-top: 2px solid #ddd;
  padding-top: 15px;
  margin-top: 15px;
}

.cart-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-end;
}

.clear-cart-btn {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.clear-cart-btn:hover {
  background: #c53030;
}

.checkout-btn {
  background: #38a169;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background: #2f855a;
}

/* Dark mode styles for cart */
.dark-mode .cart-empty {
  color: #b0b0b0;
}

.dark-mode .cart-item {
  background: #23272a;
  color: #e0e0e0;
}

.dark-mode .cart-item-title {
  color: #f6c915;
}

.dark-mode .cart-item-specs {
  color: #b0b0b0;
}

.dark-mode .cart-item-os {
  color: #4a9eff;
}

.dark-mode .cart-item-os strong {
  color: #87ceeb;
}

.dark-mode .cart-item-os .os-select {
  background: #23272a;
  border-color: #4a5568;
  color: #e2e8f0;
}

.dark-mode .cart-item-os .os-select:focus {
  border-color: #63b3ed;
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

.dark-mode .cart-item-os .os-select option[value=""] {
  color: #fc8181;
}

.dark-mode .cart-summary {
  background: #23272a;
  color: #e0e0e0;
}

.dark-mode .quantity-btn {
  background: #444;
  color: #e0e0e0;
}

.dark-mode .quantity-btn:hover {
  background: #555;
}

.dark-mode .quantity-input {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}

/* Mobile responsive for cart */
@media (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .cart-item-image {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .cart-item-details {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .cart-actions {
    flex-direction: column;
    gap: 10px;
  }

  .clear-cart-btn,
  .checkout-btn {
    width: 100%;
  }
}

/* Delivery form styles */
.delivery-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  background: #f8f8f8;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.form-section h3 {
  margin: 0 0 15px 0;
  color: #2c5282;
  font-size: 1.3em;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2c5282;
  outline: none;
  box-shadow: 0 0 5px rgba(44, 82, 130, 0.3);
}

/* Radio button styles */
.delivery-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-option,
.payment-option {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-option:hover,
.payment-option:hover {
  border-color: #2c5282;
  background: #f0f4f8;
}

.delivery-option input,
.payment-option input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s;
}

.delivery-option input:checked ~ .radio-custom,
.payment-option input:checked ~ .radio-custom {
  border-color: #2c5282;
  background: #2c5282;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.delivery-option input:checked ~ .radio-custom::after,
.payment-option input:checked ~ .radio-custom::after {
  opacity: 1;
}

/* Checkbox styles */
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s;
}

.payment-option input:checked ~ .checkbox-custom {
  border-color: #2c5282;
  background: #2c5282;
}

.checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.payment-option input:checked ~ .checkbox-custom::after {
  opacity: 1;
}

.delivery-option input:checked,
.payment-option input:checked {
  background: #f0f4f8;
  border-color: #2c5282;
}

/* Bank transfer info */
.bank-transfer-info {
  margin-top: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.bank-info-title {
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1em;
}

.bank-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.bank-info-label {
  font-weight: 600;
  color: #4a5568;
  min-width: 120px;
  font-size: 0.9em;
}

.bank-info-value {
  flex: 1;
  color: #2d3748;
  font-family: 'Courier New', monospace;
  background: #fff;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.9em;
}

.copy-btn {
  background: #3182ce;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  transition: background 0.2s ease;
  min-width: 30px;
}

.copy-btn:hover {
  background: #2c5282;
}

.copy-btn:active {
  background: #2a4365;
  transform: translateY(1px);
}

/* Order summary */
.order-summary {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
}

.order-summary h3 {
  margin: 0 0 15px 0;
  color: #2c5282;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
  border-bottom: none;
}

.summary-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #2c5282;
  text-align: right;
  font-size: 1.2em;
}

/* Final total section */
.final-total {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 2px solid #2c5282;
}

.total-breakdown {
  max-width: 400px;
  margin-left: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.total-row.final {
  border-top: 2px solid #2c5282;
  border-bottom: none;
  padding-top: 15px;
  margin-top: 10px;
  font-size: 1.2em;
}

.discount-row {
  color: #38a169;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: #38a169;
  color: white;
}

.btn-primary:hover {
  background: #2f855a;
}

.btn-secondary {
  background: #e2e8f0;
  color: #2c5282;
  border: 1px solid #2c5282;
}

.btn-secondary:hover {
  background: #2c5282;
  color: white;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Dark mode for delivery form */
.dark-mode .form-section {
  background: #23272a;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .form-section h3 {
  color: #f6c915;
}

.dark-mode .form-group label {
  color: #e0e0e0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
  background: #333;
  color: #e0e0e0;
  border-color: #555;
}

.dark-mode .delivery-option,
.dark-mode .payment-option {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}

.dark-mode .delivery-option:hover,
.dark-mode .payment-option:hover {
  background: #444;
  border-color: #f6c915;
}

.dark-mode .order-summary,
.dark-mode .final-total {
  background: #23272a;
  color: #e0e0e0;
  border-color: #f6c915;
}

.dark-mode .order-item {
  border-color: #555;
}

.dark-mode .total-row {
  border-color: #555;
}

.dark-mode .total-row.final {
  border-color: #f6c915;
}

/* Mobile responsive for delivery form */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .total-breakdown {
    margin: 0;
  }
}

/* Add to cart button styles */
.add-to-cart-btn {
  width: 100%;
  background: #38a169;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 10px;
  transition: background 0.2s;
}

.add-to-cart-btn:hover:not(:disabled) {
  background: #2f855a;
}

.add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  color: #666;
}

.dark-mode .add-to-cart-btn:disabled {
  background: #555;
  color: #999;
}

/* Product actions styling */
.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.order-btn {
  display: inline-block;
  background: #2c5282;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

.order-btn:hover {
  background: #2a4c7a;
}

.product-actions .add-to-cart-btn {
  flex: 1;
  margin-top: 0;
}

/* Delivery form styles */
.delivery-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  background: #f8f8f8;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.form-section h3 {
  margin: 0 0 15px 0;
  color: #2c5282;
  font-size: 1.3em;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2c5282;
  outline: none;
  box-shadow: 0 0 5px rgba(44, 82, 130, 0.3);
}

/* Radio button styles */
.delivery-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-option,
.payment-option {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.delivery-option:hover,
.payment-option:hover {
  border-color: #2c5282;
  background: #f0f4f8;
}

.delivery-option input,
.payment-option input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s;
}

.delivery-option input:checked ~ .radio-custom,
.payment-option input:checked ~ .radio-custom {
  border-color: #2c5282;
  background: #2c5282;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.delivery-option input:checked ~ .radio-custom::after,
.payment-option input:checked ~ .radio-custom::after {
  opacity: 1;
}

/* Order summary */
.order-summary {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
}

.order-summary h3 {
  margin: 0 0 15px 0;
  color: #2c5282;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
  border-bottom: none;
}

.summary-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #2c5282;
  text-align: right;
  font-size: 1.2em;
}

/* Final total section */
.final-total {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 2px solid #2c5282;
}

.total-breakdown {
  max-width: 400px;
  margin-left: auto;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.total-row.final {
  border-top: 2px solid #2c5282;
  border-bottom: none;
  padding-top: 15px;
  margin-top: 10px;
  font-size: 1.2em;
}

.discount-row {
  color: #38a169;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Dark mode for delivery form */
.dark-mode .form-section {
  background: #23272a;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .form-section h3 {
  color: #f6c915;
}

.dark-mode .form-group label {
  color: #e0e0e0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
  background: #333;
  color: #e0e0e0;
  border-color: #555;
}

.dark-mode .delivery-option,
.dark-mode .payment-option {
  background: #333;
  border-color: #555;
  color: #e0e0e0;
}

.dark-mode .delivery-option:hover,
.dark-mode .payment-option:hover {
  background: #444;
  border-color: #f6c915;
}

.dark-mode .order-summary,
.dark-mode .final-total {
  background: #23272a;
  color: #e0e0e0;
  border-color: #f6c915;
}

.dark-mode .order-item {
  border-color: #555;
}

.dark-mode .total-row {
  border-color: #555;
}

.dark-mode .total-row.final {
  border-color: #f6c915;
}

/* Mobile responsive for delivery form */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .total-breakdown {
    margin: 0;
  }
}

/* Enhanced order item styles for delivery page */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-details {
  flex: 1;
  margin-right: 20px;
}

.order-item-title {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #2c5282;
}

.order-item-specs {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.order-item-quantity {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 4px;
}

.order-item-unit-price {
  font-size: 0.9em;
  color: #666;
}

.order-item-total {
  text-align: right;
  font-size: 1.1em;
  color: #38a169;
  font-weight: bold;
  min-width: 100px;
}

/* Dark mode for enhanced order items */
.dark-mode .order-item-title {
  color: #f6c915;
}

.dark-mode .order-item-specs,
.dark-mode .order-item-unit-price {
  color: #cbd5e0;
}

.dark-mode .order-item-quantity {
  color: #e0e0e0;
}

/* Mobile responsive for order items */
@media (max-width: 600px) {
  .order-item {
    flex-direction: column;
    text-align: left;
  }
  
  .order-item-details {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .order-item-total {
    text-align: left;
    font-size: 1.2em;
  }
}

/* Currency display enhancements */
.product-price {
  line-height: 1.3;
}

.cart-item-price,
.order-item-total,
.order-item-unit-price {
  line-height: 1.4;
}

/* Price styling for better EUR/BGN display */
.price-eur {
  color: #666;
  font-size: 0.9em;
  font-weight: normal;
}

.dark-mode .price-eur {
  color: #a0a0a0;
}

/* Product detail page states */
.loading-container, .error-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-container p {
  font-size: 1.1em;
  color: #666;
}

.error-container h2 {
  color: #dc3545;
  margin-bottom: 10px;
}

.error-container p {
  color: #666;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #545b62;
}

.product-description {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #007bff;
}

.dark-mode .product-description {
  background: #2d3748;
  color: #e2e8f0;
}

.stock.available {
  color: #28a745;
  font-weight: bold;
}

.stock.unavailable {
  color: #dc3545;
  font-weight: bold;
}

.price {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1em;
}

/* Cart notification */
.cart-notification {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Ultra compact navbar for mobile and small screens */
@media (max-width: 768px) {
  header {
    padding: 3px 15px;
  }
  
  header.shrink {
    padding: 1px 10px;
  }
  
  header h1 {
    font-size: 1.1em;
    margin: 1px 0;
  }
  
  header.shrink h1 {
    font-size: 0.95em;
    margin: 0;
  }
  
  nav {
    margin-top: 2px;
  }
  
  nav a {
    margin: 0 8px;
    font-size: 0.85em;
  }
  
  header.shrink nav a {
    margin: 0 6px;
    font-size: 0.75em;
  }
}

/* Image Gallery Styles */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 100%;
}

.main-product-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.main-product-image:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.image-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
}

.thumbnail-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail-image:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.thumbnail-image.active {
  opacity: 1;
  border-color: #2c5282;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.3);
}

/* Mobile responsive gallery */
@media (max-width: 768px) {
  .image-gallery {
    gap: 10px;
  }
  
  .main-product-image {
    max-width: 100%;
  }
  
  .image-thumbnails {
    max-width: 100%;
    gap: 8px;
  }
  
  .thumbnail-image {
    width: 60px;
    height: 45px;
  }
}

/* Enhanced Image Gallery Styles */
.main-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
  left: 10px;
}

.gallery-nav-btn.next-btn {
  right: 10px;
}

.image-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.main-product-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* Mobile Popup Gallery */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  overflow: hidden; /* Prevent scrolling */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-popup-container {
  position: relative;
  max-width: 85vw;
  max-height: 80vh;
  width: 85vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 40px; /* More space for close button and controls */
  box-sizing: border-box;
}

.popup-image {
  max-width: 100% !important;
  max-height: 100% !important;
  max-width: 85vw !important; /* Never wider than 85% of viewport */
  max-height: 80vh !important; /* Never taller than 80% of viewport */
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.popup-close-btn {
  position: absolute;
  top: -40px;
  right: -40px;
  background: transparent;
  color: white;
  border: none;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.popup-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.3s ease;
}

.popup-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.popup-nav-btn.prev-btn {
  left: -80px;
}

.popup-nav-btn.next-btn {
  right: -80px;
}

.popup-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 1001;
}

/* Mobile specific popup styles */
@media (max-width: 768px) {
  .image-popup-container {
    max-width: 90vw;
    max-height: 75vh;
    width: 90vw;
    height: 75vh;
    margin: 80px 15px 100px 15px; /* More space for controls */
  }
  
  .popup-image {
    max-width: 90vw !important;
    max-height: 75vh !important;
  }
  
  .popup-nav-btn.prev-btn {
    left: 10px;
  }
  
  .popup-nav-btn.next-btn {
    right: 10px;
  }
  
  .popup-close-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }
  
  .popup-counter {
    bottom: 20px;
  }
  
  .main-product-image {
    cursor: pointer;
  }
  
  .main-product-image::after {
    content: "📱 Докоснете за увеличение";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    opacity: 0.8;
    pointer-events: none;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .gallery-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .gallery-nav-btn.prev-btn {
    left: 5px;
  }
  
  .gallery-nav-btn.next-btn {
    right: 5px;
  }
  
  .image-popup-container {
    max-width: 95vw;
    max-height: 70vh;
    width: 95vw;
    height: 70vh;
    margin: 90px 10px 120px 10px;
  }
  
  .popup-image {
    max-width: 95vw !important;
    max-height: 70vh !important;
  }
  
  .popup-close-btn {
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    font-size: 25px;
  }
  
  .popup-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
}

/* View Toggle Controls */
.view-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-toggle-btn {
  background: #f8f8f8;
  border: 2px solid #ddd;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
}

.view-toggle-btn:hover {
  background: #e9e9e9;
  border-color: #bbb;
  color: #333;
}

.view-toggle-btn.active {
  background: #2c5282;
  border-color: #2c5282;
  color: white;
}

.view-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* Filters Card */
.filters-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.filters-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.filters-header h3 {
  margin: 0;
  color: #2c5282;
  font-size: 18px;
  font-weight: 600;
}

.filters-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.control-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 14px;
  min-width: 150px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #2c5282;
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.checkbox-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: #2c5282;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  accent-color: #2c5282;
}

/* Responsive Design for Filters Card */
@media (max-width: 768px) {
  .filters-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .checkbox-group {
    gap: 10px;
  }
  
  .filter-select {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filters-card {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* Product Grid View (existing) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Product List View */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
}

.product-card.list-view {
  display: flex;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
  max-width: 100%;
}

.product-card.list-view:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card.list-view .product-image-container {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  margin-right: 20px;
  overflow: hidden;
  border-radius: 6px;
}

.product-card.list-view .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card.list-view .product-image:hover {
  transform: scale(1.05);
}

.product-card.list-view .product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card.list-view .product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

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

.product-card.list-view .product-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #333;
}

.product-card.list-view .product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #666;
}

.product-card.list-view .product-specs span {
  background: #e9ecef;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85em;
}

.product-card.list-view .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.product-card.list-view .product-price {
  font-size: 1.1em;
  font-weight: bold;
  color: #2c5282;
  margin: 0;
}

.product-card.list-view .stock-status {
  margin: 0;
  font-size: 0.9em;
}

.product-card.list-view .add-to-cart-btn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s ease;
}

.product-card.list-view .add-to-cart-btn:hover:not(:disabled) {
  background: #218838;
}

.product-card.list-view .add-to-cart-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Mobile responsive for list view */
@media (max-width: 768px) {
  .view-controls {
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .product-card.list-view {
    flex-direction: column;
    text-align: center;
  }
  
  .product-card.list-view .product-image-container {
    width: 100%;
    height: 150px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .product-card.list-view .product-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-card.list-view .product-specs {
    justify-content: center;
  }
  
  .product-card.list-view .product-footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .view-toggle-btn {
    padding: 6px 10px;
  }
  
  .view-toggle-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Dark mode bank transfer info */
.dark-mode .bank-transfer-info {
  background: #2d3748;
  border-color: #4a5568;
}

.dark-mode .bank-info-title {
  color: #f7fafc;
}

.dark-mode .bank-info-label {
  color: #cbd5e0;
}

.dark-mode .bank-info-value {
  background: #1a202c;
  color: #f7fafc;
  border-color: #4a5568;
}

.dark-mode .copy-btn {
  background: #4299e1;
}

.dark-mode .copy-btn:hover {
  background: #3182ce;
}

.dark-mode .copy-btn:active {
  background: #2c5282;
}

/* Dark mode checkbox styles */
.dark-mode .checkbox-custom {
  border-color: #4a5568;
}

.dark-mode .payment-option input:checked ~ .checkbox-custom {
  border-color: #4299e1;
  background: #4299e1;
}

/* Hero Section with Background Slideshow */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.background-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: slideshow 30s infinite;
}

@keyframes slideshow {
  0% { background-image: url('images/1 (1).jpg'); }
  16.66% { background-image: url('images/1 (2).jpg'); }
  33.33% { background-image: url('images/1 (3).jpg'); }
  50% { background-image: url('images/1 (4).jpg'); }
  66.66% { background-image: url('images/1 (5).jpg'); }
  83.33% { background-image: url('images/1 (6).jpg'); }
  100% { background-image: url('images/1 (1).jpg'); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-content p {
  font-size: 1.1rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Dark mode hero styles */
.dark-mode .hero-content {
  background: rgba(26, 32, 44, 0.95);
}

.dark-mode .hero-content h1 {
  color: #f7fafc;
}

.dark-mode .hero-content h2 {
  color: #e2e8f0;
}

.dark-mode .hero-content p {
  color: #cbd5e0;
}

/* Mobile responsiveness for hero section */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-content {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Products Layout with Sidebar */
.products-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Desktop Sidebar */
.filters-sidebar {
  width: 280px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  flex-shrink: 0;
}

/* Optimize sidebar for very large screens */
@media (min-width: 1400px) {
  .filters-sidebar {
    width: 300px;
  }
}

.sidebar-header h3 {
  margin: 0 0 20px 0;
  color: #2c5282;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-content .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-content .filter-label {
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
  margin-bottom: 5px;
}

.sidebar-content .filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #2d3748;
}

.sidebar-content .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-content .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.sidebar-content .checkbox-label input[type="checkbox"] {
  margin: 0;
}

/* Main Products Area */
.products-main {
  flex: 1;
  min-width: 0;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.products-header h2 {
  margin: 0;
  color: #2c5282;
  font-size: 28px;
  font-weight: 600;
}

/* View Controls */
.view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-label {
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}

.view-toggle-btn {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #4a5568;
}

.view-toggle-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

.view-toggle-btn.active {
  background: #3182ce;
  border-color: #3182ce;
  color: white;
}

/* Responsive Design */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Large screens - more columns */
@media (min-width: 1200px) {
  .products-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1600px) {
  .products-page .container {
    max-width: 1600px;
  }
  
  .products-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  .products-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .filters-sidebar {
    display: none;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .products-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .products-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .products-header {
    text-align: center;
    align-items: center;
  }
  
  .view-controls {
    justify-content: center;
  }
}

/* End of file */