:root {
  /* Primary Colors */
  --green-500: hsl(158, 36%, 37%);
  --green-700: hsl(158, 42%, 18%);
  
  /* Neutral Colors */
  --black: hsl(212, 21%, 14%);
  --grey: hsl(228, 12%, 48%);
  --cream: hsl(30, 38%, 92%);
  --white: hsl(0, 0%, 100%);
  
  /* Fonts */
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Fraunces', serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 14px; /* */
  background-color: var(--cream);
  display: grid;
  place-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Card Styling */
.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  max-width: 343px;
  display: flex;
  flex-direction: column;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 1.5rem;
}

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

.product-title {
  font-family: var(--font-heading);
  color: var(--black);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}

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

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

.current-price {
  font-family: var(--font-heading);
  color: var(--green-500);
  font-size: 2rem;
}

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

.add-to-cart {
  width: 100%;
  background-color: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-to-cart:hover {
  background-color: var(--green-700);
}

/* Desktop Layout */
@media (min-width: 600px) {
  .product-card {
    flex-direction: row;
    max-width: 600px;
  }

  .product-image, .product-content {
    flex: 1;
  }
  
  .product-content {
    padding: 2rem;
  }
}

.attribution { 
  margin-top: 2.5rem;
  font-size: 11px; 
  text-align: center; 
}
.attribution a { color: hsl(228, 45%, 44%); }