@font-face {
  font-family: Gyahegi;
  src: url(Fonts/Gyahegi.otf);
}

@font-face {
  font-family: Argue;
  src: url(Fonts/Argue-DEMO.otf);
}

@font-face {
  font-family: Montserrat;
  src: url(Fonts/Montserrat-VariableFont_wght.ttf);
}

@font-face {
  font-family: Graphik;
  src: url(Fonts/Graphik-Regular-Trial.otf);
}

/* Clase para texto accesible pero visualmente oculto */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  max-height: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

header {
  margin: 0%;
  height: 20px;
  padding: 0.5%;
  max-width: 100%;
}

header a {
  color: black;
  text-decoration: none;
  font-size: 1em;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  flex-wrap: wrap;
  padding-left: 0.5%;
  padding-right: 0.5%;
  max-width: 100%;
}

.menu-toggle {
  display: none;
}

header a:hover {
  color: black;
  /* Change text color on hover */
}

/* Add underline effect on hover */
header a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: black;
  /* Underline color */
  transition: width 0.3s;
  /* Smooth transition effect */
}

header a:hover::after {
  width: 100%;
  /* Full width underline on hover */
}

/* 🔽 Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* 🔘 Drop button */
.dropbtn {
  color: black;
  text-decoration: none;
  font-size: 1em;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;
}

/* ⬇️ Dropdown menu */
.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0;
  margin-top: 8px;
  list-style: none;
  z-index: 999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* 🟢 Dropdown visible cuando se pasa sobre todo el bloque (botón o contenido) */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  visibility: visible;
  opacity: 1;
}

/* Items */
.dropdown-content li a {
  display: block;
  padding: 10px 14px;
  color: black;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.dropdown-content li a:hover {
  background-color: #f5f5f5;
  color: #b18f5a;
}

/* Subrayado elegante */
.dropdown .dropbtn::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: black;
  transition: width 0.3s;
}

.dropdown:hover .dropbtn::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  margin-left: 10px;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1em;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  position: relative;
}

.cart-count {
  background-color: #b18f5a;
  color: white;
  font-size: 0.7em;
  border-radius: 50%;
  padding: 3px 6px;
  position: absolute;
  top: -6px;
  right: -10px;
}


section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: fit-content;
  border-bottom: 1px solid black;

}

#logo-section img {
  font-family: "Gyahegi", sans-serif;
  font-size: 20vw;
  width: 100%;
  margin: 0%;
  padding: 0%;
  display: flex;

  padding-bottom: 0.5%;
}

#collection-section {
  display: flex;
  flex-direction: column;

  height: 70vh;
  display: flex;
  flex-direction: row;
  margin-right: 1px;
  width: auto;
}

.collection1 {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  justify-content: center;
  border: 1px solid black;
  align-self: center;
}

.collection1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#grid4 {
  display: flex;
  flex-direction: row;
  height: 200vh;
  width: auto;
  flex-wrap: wrap;
}

#grid2 {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: auto;
  flex-wrap: wrap;
}

.square {
  display: flex;
  flex-direction: row;
  width: 50%;
  height: 50%;
  padding-bottom: 2px;
}

.fotext {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#img4,
#img41,
#img42,
#img43 {
  align-content: center;
  height: 100%;
  z-index: -1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#img4 {
  background-color: rgb(253, 238, 255);
}

#img41 {
  background-color: rgb(224, 238, 255);
}

#img42 {
  background-color: rgb(235, 255, 237);
}

#img43 {
  background-color: rgb(242, 215, 250);
}

.fotext img {
  display: flex;
  justify-self: center;
  align-self: center;
  height: 60%;
  width: 70%;
  object-fit: cover;
  z-index: -1;
  padding-bottom: 10%;
  transform: scale(1.444);
  /* zoom inicial */
  transition: transform 0.1s linear;
  transform-origin: center center;
}

#lastgrid {
  display: flex;
  justify-self: center;
  align-self: center;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top: 2px solid black;
}

#lastgrid img {
  object-fit: cover;
  height: 100%;
}

.fotext h2 {
  display: flex;
  width: 100%;
  height: 5%;
  font-weight: 600;
  padding-bottom: 0%;
  font-family: "Graphik";
  letter-spacing: 1.4px;
  background-color: white;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  z-index: 0;
  margin: 0%;
  padding-left: 1.5%;
  font-size: 2em;
}

.h2 {
  z-index: 1;
  display: flex;
  align-content: center;
  height: 100%;
  width: 5%;
  max-width: 100%;
  border: 2px solid black;
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  margin-left: auto;

  margin-bottom: -2px;
  box-sizing: border-box;
  overflow: hidden;
}

.h2 p {
  writing-mode: vertical-rl;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  font-weight: 400;
  padding-top: 10%;
  font-family: "Graphik";
  font-size: 1.6em;
  box-sizing: border-box;
  overflow-wrap: break-word;
  overflow: hidden;
}

#animated-row {
  display: flex;
  justify-content: center;
  align-content: center;
  background-color: white;
  height: 60vh;
  width: auto;
  border: 2px solid black;
  margin: 0%;
  padding: 0%;
  margin-top: 3px;
}

#rowcontainer {
  display: flex;
  height: 100%;
}

#rowcontainer img {
  display: flex;
  width: 80%;
  height: 70%;
  object-fit: contain;
  align-self: center;
  transition: transform 0.75s ease;
  transform-origin: center center;
}

#rowcontainer div:hover img {
  transform: rotate(25deg) scale(1.05);
}

#rowcontainer div {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  gap: 10%;
  border-right: 2px solid;
  width: 100%;
}

#rowcontainer div:last-child {
  border: none;
}

#rowcontainer div span {
  font-family: "Graphik";
  font-weight: 100;
  font-size: 1.2em;
  letter-spacing: 1.8px;

  padding-left: 2%;
  padding-top: 1%;
}

#collectionF {
  display: flex;
  width: 100%;
  height: 105vh;
  background-image: url("inannajewelry.shop/src/slctpg/CIJ14.jpg");
  background-size: cover;
  background-position: center top;
}

#eggs3 {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: auto;
  height: 90vh;
  align-content: center;
  gap: 0%;
}

#eggs3 img {
  padding: 1% 0;
  width: 32%;
  object-fit: cover;
  border-radius: 320px;
  align-self: center;
  height: 98%;
  transition: transform 0.1s linear;
  transform-origin: center center;
}

.square2 {
  display: flex;
  flex-direction: row;
  width: 50%;
  height: 100%;
  padding-bottom: 2px;
}


.square22 {
  display: flex;
  flex-direction: row;
  width: 50%;
  /* Add this line */
  height: 100%;
  padding-bottom: 2px;
}


#lastgrid2 {
  display: flex;
  justify-self: center;

  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top: 2px solid black;
}

#lastgrid2 img {
  object-fit: cover;
  height: 100%;
}

footer {
  display: flex;
  background-color: white;
  flex-direction: column;
  height: 20px;
  padding: 2%;
}

footer button {
  font-family: "Argue";
  font-size: 1.1em;
  margin: 0%;
  width: 50%;
  height: 37%;
  margin: 3% 3% 3% 0%;
  background-color: black;
  color: white;
  border-radius: 50vh;
}

footer input {
  margin: 2% 3% 3% 3%;
  width: 50%;
  height: 30%;

  border: none;
  border-bottom: 2px solid black;
}

footer input::placeholder {
  text-wrap: end;
  font-family: Argue;
  font-size: 1.5em;
  margin: 0%;
  padding: 0% 0% 1% 1%;
  height: auto;
}

footer nav {
  justify-content: space-around;
  flex-wrap: wrap;
  padding-left: 0.5%;
  padding-right: 0.5%;
  margin-bottom: 1%;
  height: 50%;
  display: flex;
  align-items: flex-end;
}

footer a {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  color: black;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
}

footer a:hover {
  color: black;
  /* Change text color on hover */
}

/* Add underline effect on hover */
footer a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: black;
  /* Underline color */
  transition: width 0.3s;
  /* Smooth transition effect */
}

footer a:hover::after {
  width: 100%;
  /* Full width underline on hover */
}

@media only screen and (max-width: 800px) {
  header {
    margin: 0%;
    height: auto;
    padding: 1%;
    max-width: 100%;
  }

  header a {
    color: black;
    text-decoration: none;
    font-size: 0.9em;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    z-index: 1000;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  header {
    position: relative;
  }

  header nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 60px 20px 20px;
    gap: 1em;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  header nav.active {
    right: 0;
  }

  /* Overlay oscuro cuando el menú está abierto */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  header nav>a,
  header nav>.dropdown,
  header nav>.cart-icon {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  header nav>a:last-of-type {
    border-bottom: none;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
    margin-top: 0;
    padding-left: 20px;
  }

  .cart-icon {
    margin-left: 0;
    margin-top: auto;
  }

  header a:hover {
    color: black;
    /* Change text color on hover */
  }

  /* Add underline effect on hover */
  header a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0%;
    background: black;
    /* Underline color */
    transition: width 0.3s;
    /* Smooth transition effect */
  }

  header a:hover::after {
    width: 100%;
    /* Full width underline on hover */
  }

  #logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30%;
    border-bottom: 0px solid black;
    padding-bottom: 1%;
  }

  #logo-section img {
    width: 35%;
    padding-bottom: 0.5%;
  }

  #collection-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    border-top: 1px solid black;

  }

  .collection1 {
    flex: 1 1 50%;

  }

  .collection1:last-child {
    content-visibility: hidden;
  }

  .collection1 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #grid4 {
    height: 90vh;
    width: 100%;
    flex-wrap: wrap;
  }

  .square {
    display: flex;
    flex-direction: row;
    width: 50%;
    height: 50%;
    padding-bottom: 2px;
  }

  .fotext {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical centering */

    height: auto;
    /* avoid percent height dependence */

  }


  .fotext img {
    display: block;


    margin: 0 auto;
    /* horizontal center fallback */

    transform: none;
    /* avoid visual shift from scale on small screens */
    transition: transform 0.15s linear;
    transform-origin: center center;
    z-index: 0;
    /* avoid negative stacking problems on mobile Safari */
    object-fit: cover;
    /* keep cropping behavior if needed */
  }


  .fotext h2 {
    font-weight: 400;
    background-color: white;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    z-index: 0;
    margin: 0%;
    padding-left: 5%;
    font-size: 1em;
    width: auto;
  }

  .h2 p {
    letter-spacing: 0.3vh;
    place-content: center;
    font-weight: 400;
    padding-top: 50%;
    font-family: "Graphik";
    font-size: 0.75em;
    height: 100%;
  }

  /* Ocultar los elementos con clase .h2 en dispositivos móviles */
  .h2 {
    display: none !important;
  }

  #animated-row {
    height: 20vh;
    margin: 0%;
    padding: 0%;
    margin-top: 3px;
  }

  #rowcontainer div {
    justify-content: space-evenly;

    text-align: center;
  }

  #rowcontainer div span {
    font-size: 1em;
    letter-spacing: 1.8px;

    padding-left: 2%;
    padding-top: 1%;
  }

  #rowcontainer div img {
    height: 100%;
  }

  #collectionF {
    height: 50vh;
    background-position: center top !important;
  }

  #eggs3 {
    flex-wrap: wrap;
    height: 50vh;
  }

  #eggs3 img {
    padding: 2% 0;
    width: 32%;
    object-fit: cover;
    border-radius: 9999px;
  }
}

/* width */
::-webkit-scrollbar {
  width: 0.5vw;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 50px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(218, 179, 247);
  border-radius: 50px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(142, 85, 186);
}