:root {
  --title-font-path: url("fonts/Cardinal.ttf");
  --header-font-path: url("fonts/HeaderFont.woff2");
  --subheader-font-path: url("fonts/SubheaderFont.woff2");
  --text-font-path: url("fonts/Santa\ Fe.ttf");
  /* palette 0 */
  --color1: #c9b276; /* Adjusted from #dcb957 */
  --color2: #3a1a0e; /* Adjusted from #431e0b */
  --color3: #546510; /* Adjusted from #5d6808 */
  --color4: #386b42; /* Adjusted from #3e7037 */
  /* palette 1 */
  /* --color1: #dcb957;
    --color2: #431e0b;
    --color3: #5d6808;
    --color4: #3e7037; */
}

@font-face {
  font-family: "cardinal";
  src: var(--title-font-path);
  /* Additional font properties */
}

@font-face {
  font-family: "Header Font";
  src: var(--header-font-path);
  /* Additional font properties */
}

@font-face {
  font-family: "Subheader Font";
  src: var(--subheader-font-path);
  /* Additional font properties */
}

@font-face {
  font-family: "santa fe";
  src: var(--text-font-path);
  /* Additional font properties */
}

html {
  background-color: var(--color1);
  height: 100%;
}

body {
  display: grid;
}

header,
footer {
  z-index: 10;
}

header {
  background-color: var(--color1);
  width: 100%;
  top: 0;
  position: fixed;
  display: grid;
  justify-content: space-between;
  align-items: left;
  flex-wrap: wrap;
  font-family: "cardinal", sans-serif;
  padding-right: 50px;
  padding-top: 20px;
  color: var(--color2);
  font-size: 50px;
}

nav {
  padding-right: 50px;
}

main {
  padding: 20px;
  margin-top: 60px; /* Adjust based on header height */
  margin-bottom: 60px; /* Adjust based on footer height */
  overflow-y: auto;
  height: calc(100% - 120px); /* Adjust based on header and footer height */
  /* background-color: #f4f4f4; Example color */
}

footer {
  position: fixed;
  width: 100%;
  bottom: 0;
  background-color: var(--color1);
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
}

/* Style the tab buttons */
.tab-button {
  font-size: 20px;
  background-color: var(--color2);
  color: var(--color1);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: var(--color1);
  color: var(--color2);
}

.tab-button.active {
  background-color: #3d3e3d;
  color: #f3ede2;
}

.slot {
  display: flex;
  margin: auto;
  object-position: center;
  align-items: center;
}

.grid-container {
  display: grid;
  background-color: var(--color1);
  grid-template-columns: repeat(1, 1fr); /* Creates 3 columns */
  grid-gap: 30px;
  padding: 10px;
  width: 100%;
}
.grid-item {
  border: 1px solid var(--color2);
  background-color: var(--color3);
  color: var(--color1);
  padding: 20px;
  height: 300px; /* Fixed height for each grid item */
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* flex-direction: column;
  justify-content: center;
  align-items: center; */
  transition: background-color 0.3s ease;
}

.grid-item-title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

.grid-item-title img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Resize the image to cover the div without losing aspect ratio */
  /* For centering the image if it's larger than the div */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.grid-item-desc {
  align-items: center;
}

.grid-item h3 {
  font-size: 30px;
  margin: 15;
  font-family: "cardinal";
}

.grid-item p {
  font-family: "santa fe";
  font-size: 15px;
}

.grid-item img {
  max-width: 100%; /* Ensure image is not wider than the grid item */
  max-height: 200px; /* Max height for the image */
  object-fit: contain; /* Scale the image to fit within the box without cropping */
}

.grid-item:hover {
  background-color: var(--color4);
}

.badge {
  position: absolute;
  top: -10px; /* Adjust based on your icon */
  right: -10px; /* Adjust based on your icon */
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 12px;
}

.snipcart-add-item {
  background-color: var(--color2);
  color: var(--color1);
  border: none;
  outline: none;

  font-family: "santa fe";
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.snipcart-add-item:hover {
  background-color: var(--color1);
  color: var(--color2);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: column;
  font-family: "santa fe";
  color: var(--color2);
}

footer div {
  flex: auto;
}
