@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-black: #0f1013;
    --bg-red: #af0e0b;
    --white-grey: #f8f9fa;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}

body {
    background: url('../assets/background/bg-2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    /* en vez de fixed safari bug*/

    font-family: "Kanit", sans-serif;
}

html {
    scroll-behavior: smooth;
}

#main {
    background: #0f1013ce;
}


/* Contenido encima del video utilizar z-index: 1 */

.top-banner {
    width: 100%;
    background-color: transparent;
    /* fondo negro */
    color: var(--white-grey);
    /* texto blanco */
    font-family: "Kanit", sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    height: 2rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.header {
    position: sticky;
    top: 2rem;
    margin-top: 2rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background-color: transparent;
}

/* Logo */
.nav-logo {
    height: 7rem;
}

.logo-container {
    height: 100%;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/*menu y estilos para js*/
.menu-toggle {
    margin-left: 1rem;
    color: var(--white-grey);
    font-size: 18px;
    cursor: pointer;
}

/* Menú lateral oculto */
.nav-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: -webkit-fill-available;
    min-height: 100vh;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: 2rem;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    background-color: transparent;
}

.menu-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--white-grey);
    cursor: pointer;
}

/* Menú visible */
.open {
    left: 0;
}

.nav-menu-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: "Kanit", sans-serif;
    color: var(--bg-black);
    height: 6rem;
    margin-bottom: 3rem;
}

/* Enlaces del menú */
.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.nav-menu li {
    padding: 15px 15px;
}

.nav-menu li:first-child {
    margin-top: 4rem;
}

.nav-menu a {
    color: var(--white-grey);
    text-decoration: none;
    display: block;
    font-size: 18px;
    letter-spacing: 1px;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    font-style: italic;
}


/* Asegura que el menú toggle esté por encima */
.menu-toggle {
    z-index: 1100;
    cursor: pointer;
}

/*overlay*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: -webkit-fill-available;
    min-height: 100vh;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show-overlay {
    opacity: 1;
    pointer-events: all;
}

/*cart label*/

.cart-label {
    margin-right: 1rem;
}



/* Carrito desplegable */

.cart-icon {
    font-weight: 600;
    border-radius: 10px;
    font-size: 18px;
    margin-right: 1rem;
    color: var(--white-grey);
    cursor: pointer;
    position: relative;
}

.cart-bubble {
    position: absolute;
    top: -11px;
    right: -11px;
    text-align: center;
    background: rgba(192, 187, 187, 0.445);
    color: var(--white-grey);
    font-size: 10px;
    font-weight: 500;
    height: 18px;
    width: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1px;
    border-radius: 50%;
}

.open-cart {
    right: 0;
}


.cart-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--white-grey);
    cursor: pointer;
}

.cart {
    position: fixed;
    top: 0rem;
    right: -450px;
    /* fuera de pantalla */
    width: 450px;
    height: -webkit-fill-available;
    min-height: 100vh;
    padding: 50px 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: right 0.3s ease-in-out;
    /* asegura la animación */
    z-index: 1000;
    font-family: "Kanit", sans-serif;
    background-color: transparent;
}

.cart.open-cart {
    right: 0;
    /* lo mueve a visible */
}

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*OCULTAR BARRA DE SCROLL DEL CARRITO*/

.cart::-webkit-scrollbar {
    display: none;
}

.cart h2 {
    color: var(--white-grey);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.empty-msg {
    color: #acacac98;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.cart-item img {
    height: 100px;
    width: 100px;
    border-radius: 2px;
}

.item-info {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    padding-left: 0px;
}

.item-title {
    color: var(--white-grey);
    font-weight: 600;
    font-size: 14px;
}

.item-bid {
    color: var(--white-grey);
    font-weight: 300;
    font-size: 12px;
}

.item-price {
    color: var(--white-grey);
    font-size: 16px;
    font-weight: 800;
}

.item-handler {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-handler {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--white-grey);
    font-weight: 400;
}

.item-quantity {
    color: var(--white-grey);
}

.up {
    background-color: transparent;
    cursor: pointer;
    font-size: 2rem;
}

.down {
    background-color: transparent;
    font-size: 2rem;
    cursor: pointer;
}


.divider {
    margin-top: 2rem;
    border: 0.5px solid var(--white-grey);
    width: 100%;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-top: 1rem;
}

.cart-total p {
    color: var(--white-grey);
    font-weight: 500;
}

.cart-total span {
    color: var(--white-grey);
    font-weight: 400;
    font-size: 18px;
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-info,
.btn-add,
.btn-buy,
.btn-delete {
    cursor: pointer;
    padding: 10px 35px;
    height: 2.5rem;
    color: var(--bg-black);
    border-radius: 2px;
    border: none;
    transition: 0.3s all ease-out;
    font-size: 1rem;
    letter-spacing: 1px;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
}

.btn-info,
.btn-buy,
.btn-add,
.btn-delete {
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white-grey);
}

.btn-buy,
.btn-delete {
    width: 100%;
}

.btn-info:hover,
.btn-add:hover,
.btn-buy:hover,
.btn-delete:hover {
    background: var(--bg-black);
    color: var(--white-grey);
    transition: 0.3s all ease-in;
}

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

/* products section */


.products-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 0 2rem 0;
    flex-direction: column;
    background-color: transparent;
}

.products-section-title h2 {
    font-family: "Kanit", sans-serif;
    color: var(--white-grey);
    font-weight: 300;
    font-size: 2.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
}

/* product styles card */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, auto));
    gap: 2rem;
    justify-content: start;
    padding-top: 1rem;
}

.product {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "Kanit", sans-serif;
    color: var(--white-grey);
    padding: 2rem 1rem;
    border-radius: 2px;
}


.product-img {
    height: 20rem;
    border-radius: 2px;
    cursor: pointer;
    transition: .2s ease-out;
}

.product-media {
    height: 30rem;
    width: 20rem;
    object-fit: cover;
}


.product-img:hover {
    transform: scale(1.03);
    transition: .2s ease-in-out;
}

.product-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--white-grey);
}

.created-by-product {
    font-weight: 600;
    margin-top: -10px;
    font-style: italic;
    color: rgba(253, 29, 29, 0.473);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgb(214, 214, 214);
    font-style: italic;
}

.btn-product-container {
    display: flex;
    gap: 15px;
}

/* modal de agregado */

.add-modal {
    font-family: "Kanit", sans-serif;
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-black);
    color: var(--white-grey);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transition: bottom 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    z-index: 9999;
}

.add-modal.active-modal {
    bottom: 30px;
    opacity: 1;
}

/* footer */

.footer {
    width: 100%;
    padding: 2rem 0;
    height: 29rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.top-line {
    width: 95%;
    height: 3px;
    background: rgb(199, 199, 199);
    padding: 1px;
    border-radius: 5px;
    margin-bottom: 3rem;
}

.footer-top-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 7rem;
}

.social-links-container {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--white-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link a:hover {
    transform: scale(1.1);
    color: rgba(31, 31, 31, 0.411);
}

.footer-logo img {
    height: 15rem;
    display: none;
}

.footer-mid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 0;
}

.footer-mid-title h3 {
    color: var(--white-grey);
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    font-style: italic;
}

.payment-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
}

.payment-container li img {
    width: 50px;
    height: auto;
    display: block;
}

.bottom-rights {
    width: 100%;
    background: var(--bg-black);
    padding: .5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-rights p {
    font-family: "Kanit", sans-serif;
    color: var(--white-grey);
    letter-spacing: 1px;
    font-style: italic;
    font-weight: 100;
}



/* animaciones personalizadas */

/* ANIMACIONES GENERALES */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 1s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* delay en cascada */
.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

.delay-4 {
    animation-delay: 1.2s;
}


/* MODAL INFO ESTILIZADO Y RESPONSIVE */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15,16,19,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0.5rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.info-modal.show {
  display: flex;
  opacity: 1;
}

.info-modal-content {
  background: rgba(15,16,19,0.95);
  color: var(--white-grey);
  padding: 2rem;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  opacity: 0;
  animation: popIn 0.35s forwards;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  font-family: "Kanit", sans-serif;
  line-height: 1.5;
}

.info-modal-content.pop-out {
  animation: popOut 0.35s forwards;
}

.info-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.6rem;
  background: transparent;
  border: none;
  color: var(--white-grey);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.info-close-btn:hover {
  transform: rotate(90deg) scale(1.2);
  color: var(--bg-red);
}

.info-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: rgba(253, 29, 29, 0.6);
}

.info-modal p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-grey);
  margin-bottom: 1.5rem;
}

/* animación tipo pop */
@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* animación tipo pop-out */
@keyframes popOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* responsive ultra pequeño */
@media (max-width: 400px) {
  .info-modal-content {
    padding: 1.2rem;
  }
  .info-modal h2 {
    font-size: 1.5rem;
  }
  .info-modal h3 {
    font-size: 1.1rem;
  }
  .info-modal p {
    font-size: 0.95rem;
  }
  .info-close-btn {
    font-size: 1.4rem;
  }
}


.audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: background 0.3s ease;
}

.audio-toggle:hover {
  background: rgba(0,0,0,0.9);
}

