* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background-color: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  line-height: 1.6;
}

.card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.product-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .product-image{
  transform: scale(1.05);
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="perfume" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23ddd" opacity="0.3"/></pattern></defs><rect width="200" height="200" fill="url(%23perfume)"/></svg>');
  opacity: 0.3;
}


.card-content {
  padding: 2rem;
}

.category {
  font-weight: 500;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  font-size: 12px;
}

.title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1;
}

.description {
  color: var(--grey);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.current-price {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--green-500);
}

.original-price {
  color: var(--grey);
  text-decoration: line-through;
  font-weight: 500;
}

.add-to-cart-btn {
  width: 100%;
  background-color: var(--green-500);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.add-to-cart-btn:hover {
  background-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(158, 36, 37, 0.3);
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.cart-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.attribution {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  text-align: center;
  color: var(--grey);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attribution a {
  color: var(--green-500);
  text-decoration: none;
  font-weight: 500;
}

.attribution a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .card {
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
  }

  .card-image {
    height: auto;
    min-height: 400px;
  }

  .perfume-bottle {
    width: 100px;
    height: 150px;
  }

  .card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .title {
    font-size: 2.25rem;
  }
}

@media (max-width: 375px) {
  .card-content {
    padding: 1.5rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .current-price {
    font-size: 1.75rem;
  }
}