/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
  6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}
/*
  7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1;
}

:root {
  --Darkcyan-400: hsl(158, 36%, 37%);
  --Cream-200: hsl(30, 38%, 92%);

  --Verydarkblue-900: hsl(212, 21%, 14%);
  --Darkgrayishblue-400: hsl(228, 12%, 48%);
  --White-100: hsl(0, 0%, 100%);

  --ff-accent: "Fraunces", sans-serif;
  --ff-base: "Montserrat", sans-serif;

  --fw-regular: 500;
  --fw-bold: 700;
}

/*general styling */

body {
  font-family: var(--ff-base);
  font-weight: var(--fw-regular);
  background-color: var(--Cream-200);
  font-size: 0.825rem;
  color: var(--Darkgrayishblue-400);
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 3rem;
  margin: 1rem;
}

/* utilities  */
.flex-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.visiability-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* product  style*/

.product {
  --content-padding: 1.5rem;
  --content-spacing: 1rem;
  background-color: var(--White-100);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}
.product-content {
  padding: var(--content-padding);
  display: grid;
  gap: var(--content-spacing);
}

.product-category {
  letter-spacing: 5px;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--ff-accent);
  font-weight: var(--fw-bold);
  font-size: 2rem;
  color: black;
}

.product-price {
  font-family: var(--ff-accent);
  font-weight: var(--fw-bold);
  font-size: 2rem;
  color: var(--Darkcyan-400);
}

/* button */

button {
  background-color: var(--Darkcyan-400);
  color: white;
  border: none;
  padding: 0.5em 1.5em;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
}

button[data-icon="shopping-cart"]::before {
  content: "";
  background-image: url(/images/icon-cart.svg);
    background-repeat: no-repeat;
  background-size: contain;
  width: 15px;
  height: 16px;
}

button:is(:hover, :focus) {
  background-color: var(--Verydarkblue-900);
}

/* footer */
.attribution {
  text-align: center;
  color: black;
}

.attribution a {
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  background: #3c8067;
  background: linear-gradient(to right, #3c8067 75%, #1b4133 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 600px) {
  .product {
    display: flex;
  }

  .product-content {
    --content-padding: 1.5rem;
    flex: 1;
  }
  picture {
    flex: 1;
  }
}
