@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

body {
  font-family: 'Creepster', sans-serif;
  background:#fdf6f0;
  color:#4b2e05;
  margin:0;
  padding:0;
}

header {
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding:15px 20px;
  background:#f7d9b1;
  box-shadow: 0 2px 8px rgba(75, 11, 11, 0.3);
}

header input {
  padding:6px;
  width:200px;
  border-radius: 20px;
  border:1px solid #b87a3e;
  background:#fff3e6;
  color:#4b2e05;
}

a {
  text-decoration:none;
  color:#b87a3e;
  font-weight:bold;
}

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

.product-card {
  background:#fff3e6;
  border:2px solid #b87a3e;
  border-radius:8px;
  padding:10px;
  text-align:center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor:pointer;
  color:#4b2e05;
}

.product-card img {
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:5px;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #b87a3e;
}

button {
  cursor:pointer;
  padding:6px 12px;
  margin-top:8px;
  border:none;
  background:#f7b267;
  color:#4b2e05;
  font-weight:bold;
  border-radius:4px;
}

.modal {
  display:none;
  position:fixed;
  z-index:100;
  left:0;top:0;width:100%;height:100%;
  background:rgba(253, 246, 240, 0.95);
}

.modal-content {
  background:#f7d9b1;
  margin:50px auto;
  padding:20px;
  max-width:500px;
  border-radius:10px;
  position:relative;
  box-shadow:0 0 20px #b87a3e;
}

.modal .close {
  position:absolute;
  top:10px;
  right:15px;
  font-size:28px;
  cursor:pointer;
  color:#b87a3e;
}

.main-modal-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius:5px;
}

#modalImages div img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  border:1px solid #b87a3e;
  border-radius:4px;
}

.cart-item {
  position: relative;
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 16px 20px 16px 16px;
  margin-bottom: 24px;
  gap: 16px;
  align-items: flex-start;
}

.cart-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #333333;
  font-weight: 500;
}

.cart-info span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #555555;
}

.cart-info .product-name {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

.cart-info .product-size,
.cart-info .product-price {
  font-size: 14px;
  color: #777777;
}

.remove-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #999999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, background-color 0.3s ease;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.remove-btn:hover {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

#paypal-button-container {
  display: flex;
  justify-content: center;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}