* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #042354;
}

.wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.product-card {
  max-width: 1000px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  display: flex;
  gap: 50px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* LEFT */
.left {
  flex: 1;
}

.main-img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
}

.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.thumbnails img {
  width: 75px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.thumbnails img:hover {
  transform: scale(1.05);
}

/* RIGHT */
.right {
  flex: 1;
}

.rating {
  color: #f59e0b;
  font-weight: 600;
  margin: 8px 0;
}

.price {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* SIZE */
.sizes {
  margin-bottom: 20px;
}

.size-btn {
  padding: 8px 14px;
  margin-right: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* QUANTITY */
.quantity {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.quantity button {
  width: 35px;
  height: 35px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.quantity input {
  width: 60px;
  text-align: center;
  height: 35px;
  border: 1px solid #ddd;
}

/* BUTTONS */
.actions button {
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
}

.primary {
  background: #111;
  color: #fff;
  margin-right: 10px;
}

.secondary {
  background: #eee;
}

/* SIDE PANEL */
.side-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  transition: 0.3s;
  overflow-y: auto;
}

.side-panel.active {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item {
  margin: 20px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cart-item button {
  background: crimson;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .product-card {
    flex-direction: column;
    padding: 25px;
  }
}