/* Styles for Mobile Devices Mock Store */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f7;
  color: #1d1d1f;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #d2d2d7;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

.cart button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #0071e3;
}

main {
  padding: 1rem;
}

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

.product-card {
  background-color: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.product-card p.price {
  font-size: 1rem;
  font-weight: bold;
  color: #1d1d1f;
}

.product-card button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0071e3;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  border-left: 1px solid #d2d2d7;
  padding: 1rem;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.cart-panel.hidden {
  display: none;
}

.cart-panel h2 {
  margin-top: 0;
}

.cart-panel ul {
  list-style: none;
  padding: 0;
}

.cart-panel li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.cart-panel .total {
  font-weight: bold;
  margin-top: 1rem;
}

#clear-cart {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #ff3b30;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}