:root {
  /* Colors */
  --primary: #845eee;
  --text-primary: #000000;
  --text-secondary: #9da3ae;
  --border-color: #d2d5da;
  --bg-features: #f3f4f6;
  --white: #ffffff;

  /* Typography */
  --font-family: "Outfit", sans-serif;
  --base-size: 1rem;
  --text-xs: 0.75rem;
  --title: clamp(1.75rem, 4vw, 2rem);

  /* Font Weights */
  --regular: 400;
  --semibold: 600;

  /* Spacing */
  --space-2xs: 0.3rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.25rem;
  --space-2xl: 2.5rem;
  --space-3xl: clamp(2.5rem, 5vw, 3.25rem);

  /* Layout */
  --container-max: 1280px;
  --features-max: 20rem;
  --button-height: 40px;
  --border-radius: 5px;
  --gap: clamp(2rem, 4vw, 52px);
}

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

/* Base styles */
body {
  font-family: var(--font-family);
  font-size: var(--base-size);
  font-weight: var(--regular);
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  justify-content: center;
  align-items: center;
}

/* Product image */
figure img {
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Navigation */
.breadcrumbs {
  font-size: var(--text-xs);
  font-weight: var(--semibold);
  margin-bottom: var(--space-2xl);
}

.breadcrumbs span {
  font-size: var(--text-xs);
  font-weight: var(--semibold);
  color: var(--text-secondary);
}

/* Typography */
h1 {
  font-size: var(--title);
  font-weight: var(--semibold);
}

.text > h1 {
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.text > p {
  margin-bottom: var(--space-2xl);
}

h3 {
  font-weight: var(--semibold);
  margin-bottom: var(--space-xs);
}

h4 {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin-bottom: var(--space-2xs);
}

/* Lists */
ul li {
  margin-bottom: var(--space-sm);
  margin-left: var(--space-lg);
}

/* Features section */
.features {
  display: flex;
  flex-wrap: wrap;
  margin-block: var(--space-2xl);
  background-color: var(--bg-features);
  border-radius: var(--border-radius);
  padding: var(--space-xs) var(--space-md);
  max-width: var(--features-max);
  justify-content: space-between;
  align-items: center;
}

.color,
.size {
  text-align: center;
}

.color p,
.size p {
  font-weight: var(--semibold);
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

button {
  height: var(--button-height);
  padding-inline: var(--space-lg);
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: var(--semibold);
  transition: transform 0.3s ease;
}

button:hover {
  transform: scale(1.1);
}

.cart {
  background-color: var(--primary);
  color: var(--white);
}

.wishlist {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Text utilities */
strong {
  font-weight: var(--semibold);
}

/* Media queries */
@media (min-width: 64em) {
  /* 1024px */
  .container {
    flex-direction: row;
  }

  figure img {
    width: 472px;
  }
}
