/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Fraunces:wght@700&display=swap');

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

/* CSS Custom Properties */
:root {
  --color-green-500: hsl(158, 36%, 37%);
  --color-green-700: hsl(158, 42%, 18%);
  --color-black: hsl(212, 21%, 14%);
  --color-grey: hsl(228, 12%, 48%);
  --color-cream: hsl(30, 38%, 92%);
  --color-white: hsl(0, 0%, 100%);
  
  --font-montserrat: 'Montserrat', sans-serif;
  --font-fraunces: 'Fraunces', serif;
}

body {
  font-family: var(--font-montserrat);
  background-color: var(--color-cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  line-height: 1.6;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  max-width: 343px;
  width: 100%;
}

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

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

.product-content {
  padding: 1.5rem;
}

.product-category {
  font-family: var(--font-montserrat);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
}

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

.product-description {
  font-family: var(--font-montserrat);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey);
  line-height: 1.714;
  margin-bottom: 1.5rem;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-price {
  font-family: var(--font-fraunces);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-green-500);
}

.product-price-original {
  font-family: var(--font-montserrat);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-grey);
  text-decoration: line-through;
}

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

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

.add-to-cart-btn:focus {
  outline: 2px solid var(--color-green-500);
  outline-offset: 2px;
}

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

/* Desktop Layout */
@media (min-width: 768px) {
  body {
    padding: 2rem;
  }

  .product-card {
    max-width: 600px;
    height: 450px;
    display: flex;
    flex-direction: row;
    border-radius: 0.625rem;
  }

  .product-image {
    width: 50%;
    height: 100%;
    border-radius: 0.625rem 0 0 0.625rem;
    overflow: hidden;
  }

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

  .product-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 0 0.625rem 0.625rem 0;
  }

  .product-category {
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
  }

  .product-title {
    margin-bottom: 1.5rem;
    line-height: 1;
    font-size: 2rem;
  }

  .product-description {
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-size: 0.875rem;
  }

  .product-pricing {
    margin-bottom: 1.875rem;
    align-items: center;
  }

  .product-price {
    font-size: 2rem;
  }

  .product-price-original {
    font-size: 0.8125rem;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 0.9375rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 320px) {
  body {
    padding: 0.5rem;
  }
  
  .product-content {
    padding: 1rem;
  }
  
  .product-title {
    font-size: 1.75rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .add-to-cart-btn {
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
