.gas-header {
  background: white;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
}

.gas-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  gap: 15px;
}

.gas-info {
  text-align: center;
  flex: 1;
}

.gas-info h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: #333;
}

.gas-info p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.gas-content-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.gas-filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.gas-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.close-gas-filters-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.gas-filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.gas-filter-section h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 700;
}

.gas-filter-group {
  margin-bottom: 24px;
}

.gas-filter-group h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #555;
  font-weight: 600;
}

.gas-filter-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  background: white;
}

.gas-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gas-price-inputs span {
  flex-shrink: 0;
}

.gas-price-input {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.gas-price-input:focus {
  border-color: #007bff;
}

.apply-gas-filters-btn,
.clear-gas-filters-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.apply-gas-filters-btn {
  background: #007bff;
  color: white;
}

.apply-gas-filters-btn:hover {
  background: #0056b3;
}

.clear-gas-filters-btn {
  background: #f0f0f0;
  color: #555;
}

.clear-gas-filters-btn:hover {
  background: #e0e0e0;
}

.gas-products-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-height: 400px;
}

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

.gas-product-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
}

.gas-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gas-image-container {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f8f8f8;
  overflow: hidden;
}

.gas-product-card img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-bottom: 1px solid #e5e7eb;
}

.gas-details {
  padding: 15px;
}

.gas-product-card p {
  margin: 8px 0;
  color: #333;
  font-size: 15px;
}

.buy-button,
.login-first-button {
  display: inline-block;
  padding: 10px 30px;
  background: #22c55e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.buy-button:hover {
  background: #16a34a;
}

.gas-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: #666;
}

.gas-empty-state i {
  font-size: 80px;
  color: #ccc;
  margin-bottom: 20px;
}

.gas-empty-state p {
  font-size: 18px;
  margin: 0;
}

.mobile-gas-filter-btn {
  display: none;
  padding: 12px;
  background: #1e3a8a;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
  position: fixed;
  bottom: 80px;
  right: 10px;
  z-index: 100;
}

.gas-filter-buttons-mobile {
  display: none;
}

.mobile-gas-filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-gas-filter-overlay.show {
  display: block;
  opacity: 1;
}

.delivery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

.delivery-modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.delivery-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 20px 0;
}

.delivery-modal-content input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.delivery-modal-content input:focus {
  outline: none;
  border-color: #1e3a8a;
}

.delivery-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.delivery-modal-content button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-delivery-btn {
  background: #22c55e;
  color: white;
}

.save-delivery-btn:hover {
  background: #16a34a;
}

.close-delivery-modal-btn {
  background: #e5e7eb;
  color: #374151;
}

.close-delivery-modal-btn:hover {
  background: #d1d5db;
}

.confirmation-modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.confirmation-modal-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 20px 0;
}

.delivery-info-box {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.delivery-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.delivery-info-row:last-child {
  margin-bottom: 0;
}

.delivery-info-label {
  font-weight: 600;
  color: #4b5563;
  font-size: 14px;
}

.delivery-info-value {
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}

.edit-delivery-area-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 20px;
}

.edit-delivery-area-btn:hover {
  background: #2563eb;
}

.edit-delivery-area-btn i {
  font-size: 16px;
}

.confirmation-action-buttons {
  display: flex;
  gap: 10px;
}

.confirmation-action-buttons button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.proceed-order-btn {
  background: #22c55e;
  color: white;
}

.proceed-order-btn:hover {
  background: #16a34a;
}

.cancel-order-btn {
  background: #e5e7eb;
  color: #374151;
}

.cancel-order-btn:hover {
  background: #d1d5db;
}

@media(min-width: 768px) {
  .gas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .gas-header {
    padding: 15px 0;
    margin-bottom: 20px;
  }

  .gas-header-wrapper {
    padding: 0 10px;
  }

  .gas-info h1 {
    font-size: 22px;
    text-align: center;
  }

  .gas-info p {
    font-size: 14px;
    text-align: center;
  }

  .gas-content-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .gas-filters {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    max-height: 600px;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    transition: bottom 0.3s ease;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    padding: 0;
  }

  .gas-filters.show {
    bottom: 60px;
  }

  .gas-filter-header {
    flex-shrink: 0;
  }

  #filterForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
  }

  .filter-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    padding-bottom: 80px;
    min-height: 0;
  }


  .apply-gas-filters-btn:not(.gas-filter-buttons-mobile .apply-gas-filters-btn),
  .clear-gas-filters-btn:not(.gas-filter-buttons-mobile .clear-gas-filters-btn) {
    display: none;
  }

  .gas-filter-buttons-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    z-index: 10;
  }

  .gas-filter-buttons-mobile .apply-gas-filters-btn,
  .gas-filter-buttons-mobile .clear-gas-filters-btn {
    flex: 1;
    margin-bottom: 0;
  }

  .close-gas-filters-btn {
    display: block;
  }

  .gas-products-section {
    padding: 15px 0;
  }

  .gas-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .gas-empty-state {
    min-height: 400px;
  }

  .gas-empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
  }

  .gas-empty-state p {
    font-size: 16px;
    padding: 0 20px;
  }

  .buy-button {
    font-size: 14px;
  }

  .delivery-modal-content,
  .confirmation-modal-content {
    padding: 25px;
  }

  .delivery-modal-content h3,
  .confirmation-modal-content h3 {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .mobile-gas-filter-btn {
    display: flex;
  }

  .gas-info {
    text-align: left;
  }

  .gas-info p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gas-header {
    padding: 10px 0;
  }

  .gas-info h1 {
    font-size: 20px;
  }

  .gas-info p {
    font-size: 13px;
  }

  .gas-products-section {
    padding: 0px;
  }

  .gas-empty-state {
    min-height: 400px;
  }

  .gas-empty-state i {
    font-size: 50px;
  }

  .gas-empty-state p {
    font-size: 14px;
  }
}