@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap");

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

:root {
  font-size: 62.5%;
}

@media (max-width: 600px) {
  :root {
    font-size: 50%;
  }
}

body {
  background: #111;
  color: white;
  /* font-family: "Luckiest Guy", cursive; */
  font-family: sans-serif;
  font-size: 1.6rem;
}

a:link,
a:visited {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:active {
  /* text-decoration: underline; */
}

ul {
  list-style: none;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-container {
  display: flex;
  justify-content: center;
}

nav {
  font-size: 1.8rem;
  font-family: "Luckiest Guy", cursive;
}

.nav-ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.nav-ul li {
  transition: all 0.1s ease;
}

.nav-ul li:hover {
  color: #ccc;
}

.logo {
  max-width: 15rem;
}

footer {
  width: 100%;
  margin-top: 5rem;
  padding: 2rem;

  display: flex;
  justify-content: center;
}

.socials {
  display: flex;
  justify-content: center;
}

.socials a {
  margin: 0 1rem;
}

.socials a img {
  max-width: 3.2rem;
  max-height: 3.2rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7.1rem 3rem;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40rem;
  height: 100%;
  background-color: #222;
  color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: 2rem;
  z-index: 1001;
}

.cart-sidebar.visible {
  right: 0;
}

.cart-sidebar .close-cart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.cart-sidebar h2 {
  margin-bottom: 2rem;
}

.cart-sidebar .cart-content {
  font-size: 1.6rem;
}

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.cart-sidebar-overlay.visible {
  display: block;
}

.cart-icon-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1002;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cart-icon-container:hover {
  background-color: #454545;
}

.cart-icon-container button {
  color: white;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  cursor: pointer;
}

.open-cart {
  position: relative;
}

.red-dot {
  position: absolute;
  content: "";
  top: -0.5rem;
  right: -0.5rem;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  padding: 1rem;

  display: none;
  justify-content: center;
  align-items: center;
}

.red-dot.visible {
  display: flex;
}

.cart-icon {
  max-width: 3rem;
}

/* CART ITEMS */

.cart-item {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  font-size: 1.4rem;
}

.cart-item-image {
  max-width: 15rem;
  height: auto;
}

.cart-item-details {
}

.cart-item-name {
  font-weight: 600;
  font-size: 1.8rem;
}

.cart-item-price {
}

.remove-item {
  background: #333;
  padding: 0.5rem 0;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 7px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

.remove-item:hover {
  background: #444;
}

.remove-icon {
  max-width: 2.4rem;
  max-height: 2.4rem;
  user-select: none;
  pointer-events: none;
}

.cart-img {
  width: 100%;
  height: auto;
}

.cart-item-quantity {
}

.checkout-button {
  width: 100%;
  background-color: #333;
  color: white;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  font-family: inherit;

  transition: all 0.2s ease;
}

.checkout-button:hover {
  background-color: #444;
}

/* ITEMS STYLES */
.gallery-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding: 1rem 2rem;
}

@media (min-width: 600px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-info {
  text-align: center;
}

.product-image-container {
  max-height: 30rem;
}

.tee-img {
  width: 100%;
}

.total-price {
  color: #bbb;
  font-size: 1.4rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.custom-checkbox span {
  line-height: 1;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox .checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 5px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.2s;
}

.custom-checkbox .checkbox-box.error {
  background-color: rgb(27, 2, 2);
  border-color: rgb(126, 11, 11);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background-color: white;
  border-color: white;
}

.custom-checkbox .checkbox-box::after {
  content: "";
  width: 10px;
  height: 10px;
  display: none;
  background-color: #222;
  border-radius: 2px;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  display: block;
}

.contact-container {
  height: 65svh;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
