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

.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-in-out;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card .product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card .product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 700;
}
.product-card .product-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.4;
}
.product-card .product-info .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
}
.product-card .product-info .add-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.product-card .product-info .add-btn:hover {
  background-color: rgb(18.5714285714, 76.1428571429, 202.4285714286);
}
.product-card .product-info .add-btn:disabled {
  background-color: #22c55e;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .product-card img {
    height: 180px;
  }
  .product-card .product-info {
    padding: 1.25rem;
  }
  .product-card .product-info h3 {
    font-size: 1rem;
  }
  .product-card .product-info .price {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .product-card:hover {
    transform: none;
  }
  .product-card img {
    height: 220px;
  }
  .product-card .product-info .add-btn {
    padding: 1rem;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}
.header .cart-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(247.2142857143, 249.4285714286, 254.2857142857);
  padding: 8px 15px;
  border-radius: 20px;
  transition: transform 0.2s;
}
.header .cart-status:hover {
  transform: scale(1.05);
}
.header .cart-status .cart-icon {
  font-size: 1.2rem;
}
.header .cart-status #cart-count {
  background-color: #2563eb;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.controls {
  display: flex;
  gap: 1rem;
  padding: 2rem 0;
}
.controls .search-box {
  flex: 1;
}
.controls .search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(186.3723849372, 194.2719665272, 205.6276150628);
  border-radius: 8px;
  font-family: inherit;
  outline: none;
}
.controls .search-box input:focus {
  border-color: #2563eb;
}
.controls .filter-box select {
  padding: 0.75rem 1rem;
  border: 1px solid rgb(186.3723849372, 194.2719665272, 205.6276150628);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.modal .modal-content {
  background-color: #ffffff;
  width: 95%;
  max-width: 500px;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(216.0334728033, 220.5188284519, 226.9665271967);
  padding-bottom: 1rem;
}
.modal .modal-header .close-modal {
  font-size: 2rem;
  color: #64748b;
  line-height: 1;
}
.modal .modal-header .close-modal:hover {
  color: #ef4444;
}

#cart-items-container {
  padding: 1rem 0;
  max-height: 400px;
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid rgb(216.0334728033, 220.5188284519, 226.9665271967);
  padding-top: 1.5rem;
}
.modal-footer .total-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.modal-footer .total-price-row .price-amount {
  color: #2563eb;
}
.modal-footer .checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-footer .checkout-btn:hover {
  background-color: #000;
}

.remove-item-btn {
  transition: transform 0.2s;
}
.remove-item-btn:hover {
  transform: scale(1.2);
  color: #ef4444 !important;
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }
  .header .logo {
    font-size: 1.25rem;
  }
  .header .cart-status {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .controls {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .controls .search-box input,
  .controls .filter-box select {
    width: 100%;
  }
  .modal-content {
    width: 90% !important;
    margin: 15% auto !important;
    padding: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .header-content {
    flex-direction: row;
    align-items: center;
  }
  .modal-header h2 {
    font-size: 1.2rem;
  }
  .modal-footer .total-price-row {
    font-size: 1.1rem;
  }
  .modal-footer .checkout-btn {
    padding: 0.85rem;
  }
  #cart-items-container {
    max-height: 300px;
  }
}
@media (hover: none) {
  .cart-status:hover {
    transform: none;
  }
  .remove-item-btn:hover {
    transform: none;
  }
}

/*# sourceMappingURL=main.css.map */
