/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

- Primary: 
black
- Tints: 
rgb(0, 10, 10)
rgb(0, 30, 30)
- Shades: 
rgb(10, 0, 0)
rgb(30, 0, 0)
- Greys:
#888
#767676 (lightest grey allowed on #fff)
#6f6f6f (lightest grey allowed on #fdf2e9)
#555
#333

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  /* font-size: 10px; */

  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;

  /* Does NOT work on Safari */
  /* scroll-behavior: smooth; */
}

body {
  font-family: "roboto", sans-serif;
  line-height: 1;
  font-weight: 400;
  background-color: #ffffff;
}

/**************************/
/* GENRAL REUSABLE COMPONENTS */
/**************************/
@font-face {
  font-family: 'ScotchRomanMTStd';
  src: url('/fonts/ScotchRomanMTStd.woff2') format('woff2'),
  url('/fonts/ScotchRomanMTStd.woff') format('woff'),
  url('/fonts/ScotchRomanMTStd.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.products {
  display: grid; /* Use grid for layout */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Use flexbox for side-by-side alignment */
  flex-wrap: wrap; /* Allow wrapping to the next row on smaller screens */
  gap: 10px; /* Add space between products */
  justify-content: space-between; /* Center-align the items */
  margin: 50px auto; /* Center the grid container */
  max-width: 1200px; /* Optional: Limit container width */
  padding: 0px;
}
@media (max-width: 1024px) { /* Target tablets */
  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust column size for smaller screens */
    padding: 20px; /* Ensure adequate spacing around items */
    margin: 0 auto; /* Center-align the grid on the screen */
  }
}
@media (max-width: 768px) {
  .products {
    grid-template-columns: 1fr; /* Single column layout for smaller screens */
    padding: 20px; /* Add padding for breathing space */
    justify-content: center; /* Center items inside the grid */
  }
  .product {
    margin: 0 auto; /* Center-align individual containers */
    max-width: 300px; /* Limit the container width */
  }
}

/* Individual Product */
.product {
  width: 300px;
  max-width: 100%; /* Fixed width for each product */
  text-align: center; /* Center-align content */
  background-color: whitesmoke; /* Background for each product */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* Hover effect transitions */
  overflow: hidden; /* Ensure content stays inside the box */
}

.product img {
  width: 200px; /* Ensure image fills the container */
  height: auto;
  box-shadow: -8px 0px 15px rgba(0, 0, 0, 0.5);
  max-height: 300px; /* Prevent images from becoming too large */
  object-fit: cover; /* Ensure the image is cropped nicely if it's too large */
}

.product:hover {
  transform: translateY(-5px); /* Slight upward motion */
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.product-title {
  font-family: 'ScotchRomanMTStd', serif;
  font-size: 18px;
  margin: 50px 0;
  color: #000;
}

.add-to-cart {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  margin: 50px 0;
}

.add-to-cart:hover {
  background-color: #333;
}

.container {
  /* 1140px */
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--center-v {
  align-items: center;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  color: black;
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 5.2rem;
  line-height: 1.1;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn--full:link,
.btn--full:visited {
  background-color: black;
  color: #fff;
}

.btn--full:hover,
.btn--full:active {
  background-color: #fff;
  color: #111;
}

.btn--outline:link,
.btn--outline:visited {
  background-color: black;
  color: #555;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: black;
  box-shadow: inset 0 0 0 3px #fff;
}

.btn--form {
  color: black;
  background-color: white;
  align-self: end;
  padding: 1.2rem;
}

.btn--form:hover {
  background-color: black;
  color: white;
}

.link:link,
.link:visited {
  display: inline-block;
  color: black;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: black;
  border-bottom: 1px solid transparent;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.list-item {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  line-height: 1.2;
}

.list-icon {
  width: 3rem;
  height: 3rem;
  color: black;
}

/* HELPER/SETTINGS CLASSES */
.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

.center-text {
  text-align: center;
}

strong {
  font-weight: 500;
}

.instagram-links {
  color: black;
  font-weight: 600;
}

.note {
  align-items: center;
  justify-content: center;
  color: #555;
  position: center;
  padding-bottom: 30px;
}
