/* CSS Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* Global */

:root {
  --color-zomp: #309f94;
  --color-cosmic-latte: #fff8e7;
  --color-yankees-blue: #203040;
  --color-deep-carrot-orange: #f36530;
  --color-pale-silver: #d2c9b8;

  --border-radius: 10px;

  --shadow-color: 43deg 31% 60%;
  --shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
    0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
    1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
  --shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
    0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
    2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
    5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);
  --shadow-elevation-high: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
    1.5px 2.9px 3.7px -0.4px hsl(var(--shadow-color) / 0.34),
    2.7px 5.4px 6.8px -0.7px hsl(var(--shadow-color) / 0.34),
    4.5px 8.9px 11.2px -1.1px hsl(var(--shadow-color) / 0.34),
    7.1px 14.3px 18px -1.4px hsl(var(--shadow-color) / 0.34),
    11.2px 22.3px 28.1px -1.8px hsl(var(--shadow-color) / 0.34),
    17px 33.9px 42.7px -2.1px hsl(var(--shadow-color) / 0.34),
    25px 50px 62.9px -2.5px hsl(var(--shadow-color) / 0.34);
}

* {
  font-family: "Articulat CF", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  font-weight: 500;
  font-style: normal;
  color: var(--color-yankees-blue);
}

html {
  scroll-behavior: smooth;
}

ul,
menu {
  list-style: none;
  padding: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-cosmic-latte);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
}

button {
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 10%;
}

button svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.primary-btn {
  background-color: var(--color-deep-carrot-orange);
  color: var(--color-cosmic-latte);
  box-shadow: var(--shadow-elevation-low);
}

.primary-btn:hover {
  box-shadow: var(--shadow-elevation-medium);
  transform: scale(1.05);
}

.primary-btn:active {
  box-shadow: none;
  transform: scale(1);
}

.secondary-btn {
  color: var(--color-yankees-blue);
  background-color: transparent;
  padding: 8px 20px;
  transition: 0.3s;
  border: 2px solid transparent;
}

.secondary-btn:hover {
  border: 2px solid var(--color-yankees-blue);
}

.secondary-btn:active {
  background-color: var(--color-pale-silver);
}

section {
  padding: min(50px, 5%);
}

main {
  margin-top: 70px;
}

/* end global */

/* nav */

nav {
  /* background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--color-cosmic-latte);
  position: fixed;
  z-index: 3;
  width: 100%;
}

.nav-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px min(25px, 8%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-content img {
  height: 50px;
  width: 100px;
  object-fit: cover;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-menu {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav-link:hover {
  text-decoration: underline;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-yankees-blue);
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  .mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .desktop-menu {
    position: fixed;
    left: 0;
    top: -100%;
    gap: 0;
    flex-direction: column;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 10vh 0;
    background-color: var(--color-cosmic-latte);

    /* background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
  }

  .nav-item {
    margin: 16px 0;
  }

  .desktop-menu.active {
    top: 0;
  }
}

/* end nav */

/* hero */

.hero {
  height: 50vh;
  padding: 0;
  background: url(/assets/images/madi-doell-YYHWa4He1JM-unsplash.jpg)
    center/cover no-repeat;
}

.hero-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.hero-content h1 {
  color: var(--color-yankees-blue);
  font-weight: 900;
  letter-spacing: 0.5rem;
  font-size: 3rem;
}

.hero-text-only {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  height: 50vh;
  background-color: var(--color-yankees-blue);
}

.hero-text-only h1,
.hero-text-only p {
  color: var(--color-cosmic-latte);
}

/* end hero */

/* featured products */

.carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
}

.carousel li {
  flex: 0 0 33.33%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

@media (min-width: 769px) {
  .carousel {
    overflow-x: visible;
  }

  .carousel li {
    flex: 1 1 0;
  }
  .carousel {
    flex-wrap: wrap;
    justify-content: flex-start;
    justify-content: space-between;
  }

  .carousel li {
    flex: 0 1 20%;
    scroll-snap-align: unset;
  }
}

@media (max-width: 768px) {
  .carousel li {
    flex: 0 0 60%;
  }
}

/* end featured products */

/* categories */

.categories-bg {
  background-color: var(--color-yankees-blue);
}

.categories {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: white;
  gap: 25px;
}

.categories h2 {
  color: white;
  font-weight: 700;
}

.category-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-cards-wrapper div {
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  flex: 1 1 100px;
  justify-content: center;
  align-items: center;
  background: center/cover;
}

.category-cards-wrapper div span {
  letter-spacing: 0.1rem;
  font-weight: 800;
  padding: 15vw 0;
  color: var(--color-cosmic-latte);
}

.category-cards-wrapper div:nth-child(1) {
  background-image: url(https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8YmVkcm9vbXxlbnwwfDB8MHx8fDI%3D);
}

.category-cards-wrapper div:nth-child(2) {
  background-image: url(https://images.unsplash.com/photo-1556911220-bff31c812dba?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8a2l0Y2hlbnxlbnwwfDB8MHx8fDI%3D);
}

.category-cards-wrapper div:nth-child(3) {
  background-image: url(https://images.unsplash.com/photo-1584622650111-993a426fbf0a?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8YmF0aHJvb218ZW58MHwwfDB8fHwy);
}

.category-cards-wrapper div:nth-child(4) {
  background-image: url(https://images.unsplash.com/photo-1617228133035-2347f159e755?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8ZGVjb3xlbnwwfDB8MHx8fDI%3D);
}

@media (min-width: 1024px) {
  .category-cards-wrapper {
    height: 70vh;
  }

  .category-cards-wrapper div {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s;
  }

  .category-cards-wrapper div:hover {
    flex: 4;
  }

  .category-cards-wrapper div span {
    transform: rotate(-90deg);
    transition: all 0.5s;
  }

  .category-cards-wrapper div:hover span {
    transform: rotate(0);
  }
}

/* end categories */

/* location banner */

.location {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(/assets/images/cipolletti.jpg) center center / cover no-repeat;
  padding: 100px 0;
}

.location span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cosmic-latte);
}

.location svg {
  font-size: 48px;
}

/* end location banner */

/* info banner */

.info-banner {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
}

.info-banner div {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 25px;
}

@media (min-width: 768px) {
  .info-banner {
    overflow-x: visible;
  }

  .info-banner div {
    flex: 1 1 0;
  }
}

@media (max-width: 767px) {
  .info-banner div {
    flex: 0 0 100%;
  }
}

/* end info banner */

/* filters */

.filters-container {
  background-color: var(--color-zomp);
}

.filters {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

button.active {
  background-color: #333;
  color: #fff;
}

/* catalog */

.product-grid-content h2 {
  text-align: center;
}

.product-grid-content {
  max-width: 1440px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.product-grid-content ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-direction: column;
  justify-content: space-between;
  row-gap: 2rem;
  column-gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  text-decoration: none;
}

.card-image {
  object-fit: cover;
  background-color: white;
  box-shadow: var(--shadow-elevation-low);
  border-radius: var(--border-radius);
  aspect-ratio: 1 / 1;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
}

.card-text div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-price {
  color: var(--color-yankees-blue);
  font-weight: 700;
}

/* Tablets (>= 600px) */
@media (min-width: 600px) {
  .product-grid-content ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Laptops (>= 900px) */
@media (min-width: 900px) {
  .product-grid-content ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pantallas grandes (>= 1200px) */
@media (min-width: 1200px) {
  .product-grid-content ul {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* end catalog */

/* product page */

.product-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1024px;
  margin: 0 auto;
}

.back-arrow {
  margin: 50px 0 0 50px;
}

.product-image {
  object-fit: cover;
  background-color: white;
  box-shadow: var(--shadow-elevation-medium);
  border-radius: var(--border-radius);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 769px) {
  .product-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-image,
  .product-info {
    flex: 1;
  }

  .product-image {
    width: 50%;
  }
}

.product-category {
  background-color: #d2c9b8;
  padding: 5px 25px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  align-self: self-start;
}

.product-variants {
  border-top: 1px solid var(--color-yankees-blue);
  border-bottom: 1px solid var(--color-yankees-blue);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-variants ul {
  display: flex;
  gap: 1rem;
}

.product-info a:hover {
  text-decoration: none;
}

.product-btn {
  width: 100%;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.color-list li {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid var(--color-pale-silver);
  box-shadow: var(--shadow-elevation-medium);
}

/* end product page */

/* footer */

footer {
  background-color: var(--color-pale-silver);
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: min(50px, 8%) min(50px, 8%) 0 min(50px, 8%);
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
}

footer img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

footer div,
footer ul {
  display: flex;
  flex-direction: column;
}

footer div {
  gap: 1rem;
}

footer ul {
  gap: 0.5rem;
}

footer li {
  display: flex;
  gap: 10px;
  align-items: center;
}

footer li svg {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
}

footer span {
  text-align: center;
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-yankees-blue);
  padding: 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .footer-logo {
    grid-column: -1 / 1;
    width: 100%;
  }
}

@media (max-width: 425px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* end footer */
