
body {
  font-family: sans-serif;
  margin: 0;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 400px;
  background: white;
  min-height: 100vh;
  position: relative;
}

.product-image {
  position: relative;
}

.product-image img {
  width: 100%;
  border-radius: 0 0 30px 30px;
}

.top-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 20px;
}

.product-detail {
  background: #fff;
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.title-rating {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-rating h2 {
  margin: 0;
}

.rating {
  font-size: 14px;
  color: goldenrod;
}

.rating a {
  text-decoration: none;
  color: dodgerblue;
}

.description {
  font-size: 14px;
  color: #444;
  margin-top: 10px;
}

.sizes, .colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.size, .color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.color {
  border: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.cart-button {
  background: #000;
  color: white;
  padding: 15px;
  width: 100%;
  border-radius: 50px;
  font-size: 16px;
  border: none;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  border: none;
  background: #eee;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
}

.heart.liked i {
  color: red;
}

.top-icons i {
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 50%;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
  --ratio: 3.74;
  --cta-color: rgb(0, 102, 254);
  --light-color-bg: rgb(238, 241, 247);
  --dark-color-bg: rgb(55, 65, 81);
  --grey-color: rgb(107, 114, 128);
  --leading: 0.025em;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2 {
  margin: 0;
}

main {
  width: 700px;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 2rem;
}

button {
  display: block;
  margin-top: 2rem;
  width: calc(44px * var(--ratio));
  height: 44px;
  border-radius: calc(3px * var(--ratio));
  border: none;
  letter-spacing: ccalc(3 * var(--leading, 0.025em));
  font-family: inherit;
  color: var(--grey-color);
  background-color: var(--light-color-bg);
  font-size: large;
  font-weight: 700;
}

button:focus {
  outline: none;
  border: 0.0625rem solid transparent;
  box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.2rem var(--dark-color-bg);
}

button.cta {
  background-color: var(--cta-color);
  color: white;
}

button.cta:focus {
  box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.2rem var(--cta-color);
}

#open_dialog {
  margin: 0 auto;
}

dialog {
  border: none !important;
  border-radius: calc(5px * var(--ratio));
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.6rem;
  max-width: 400px;
}

dialog img {
  display: block;
  max-width: 75%;
  margin: 1rem 0 auto 2rem;
}

.h1 {
  margin: 2rem 0 1rem;
  font-weight: 900;
}

.h2 {
  margin: 2rem 0 1rem;
  font-weight: 800;
}

p {
  color: var(--grey-color);
  letter-spacing: var(--leading, 0.025em);
  line-height: 1.625;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex.flex-space-between {
  justify-content: space-between;
}

.flex button {
  margin: 8px auto;
}
a{
  text-decoration: none;
}
