/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Properties */
:root {
  /* Primary Colors */
  --color-green-500: hsl(158, 36%, 37%);
  --color-green-700: hsl(158, 42%, 18%);
  --color-cream: hsl(30, 38%, 92%);
  
  /* Neutral Colors */
  --color-black: hsl(212, 21%, 14%);
  --color-grey: hsl(228, 12%, 48%);
  --color-white: hsl(0, 0%, 100%);
  
  /* Typography */
  --font-family-primary: 'Montserrat', sans-serif;
  --font-family-secondary: 'Fraunces', serif;
  --font-weight-regular: 500;
  --font-weight-bold: 700;
  --font-size-body: 14px;
}

/* Base Styles */
body {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-body);
  background-color: var(--color-cream);
  color: var(--color-grey);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

main {
  width: 100%;
  max-width: 600px;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-category {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.8rem;
}

.product-title {
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-bold);
  color: var(--color-black);
  font-size: 2rem;
  line-height: 1;
}

.product-description {
  line-height: 1.6;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

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

.original-price {
  text-decoration: line-through;
  font-size: 0.9rem;
}

.add-to-cart-btn {
  background-color: var(--color-green-500);
  color: var(--color-white);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
  background-color: var(--color-green-700);
  outline: none;
}

/* Desktop Styles */
@media (min-width: 640px) {
  .product-card {
    flex-direction: row;
    max-height: 450px;
  }
  
  .product-image,
  .product-content {
    flex: 1;
  }
  
  .product-content {
    padding: 2rem;
    justify-content: space-between;
  }
}
