body {
  background-color: #f5f6fa;
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 30px;
  color: #1a1a1a;
  margin: 0;
}

header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 20px;
  color: rgb(0, 0, 0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 48px;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

p {
  font-size: 18px;
  margin: 10px 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.item {
  background-color: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

button {
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.primary-btn, .add-to-cart-btn {
  background-color: #2ecc71;
  color: white;
}

.primary-btn:hover, .add-to-cart-btn:hover {
  background-color: #27ae60;
}

.secondary-btn {
  background-color: #7f8c8d;
  color: white;
}

.secondary-btn:hover {
  background-color: #6c7a89;
}

.contact-btn {
  background-color: #e74c3c;
  color: white;
  margin-top: 40px;
}

.contact-btn:hover {
  background-color: #c0392b;
}

#cart-list {
  list-style-type: none;
  padding: 0;
  margin: 40px auto;
  max-width: 500px;
}

#cart-list li {
  padding: 10px;
  background-color: white;
  margin: 8px 0;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #e74c3c;
  padding: 0 10px;
}

.total-display {
  font-weight: 600;
  font-size: 20px;
  margin: 20px auto 0 auto; /* Center with auto margins, keep top margin */
  color: #2c3e50;
  max-width: 500px; /* Match cart-list width */
}

.crown-icon {
  height: 100px;
  vertical-align: middle;
  margin-top: -20px;
  margin-right: -27px;
}

.item-link {
  text-decoration: none;
  color: inherit;
}

.product-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  max-width: 800px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.size-selection {
  display: flex;
  align-items: center;
  gap: 10px;
}

#size-select {
  padding: 8px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 40px 0;
}

.product-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.cart-section h2 {
  margin-top: 60px;
}