@font-face {
	font-family: "badaboom";
	src: url("../src/assets/fonts/badaboom.ttf");
}

:root {
	--gris: #c0c0c0;
}

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

html{
	scroll-behavior: smooth;
}

body {
	background-color: black;
	color: var(--gris);
	font-family: "Open Sans", sans-serif;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.products__categories__title {
	width: 100%;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 25px;
	font-family: "badaboom", "Open Sans", sans-serif;
	letter-spacing: 1px;
	text-shadow: 0 0 45px #00adef;
	color: #00adef;
}

.logo {
	transform: scale(0);
	animation: aparecer 0.6s forwards;
	animation-delay: 0.4s;
}

.logo img {
	width: 48px;
}

@keyframes aparecer {
	0% {
		transform: scale(0);
	}
	70% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes aparecerNavbar {
	0% {
		transform: scale(0);
	}
	70% {
		transform: scale(1);
	}
	100% {
		transform: scale(1);
	}
}

.top {
	background-color: var(--gris);
	color: black;
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 30px;
}

.top p {
	animation: aparecer 0.5s forwards;
	animation-delay: 1s;
	transform: scale(0);
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 10px;
}

.navbar {
	display: flex;
	justify-content: center;
	width: 100%;
	animation: aparecerNavbar 0.3s forwards;
}

.navbar ul {
	display: flex;
	list-style-type: none;
	padding: 0;
}

.navbar li {
	position: relative;
}

.navbar li a {
	display: block;
	color: var(--gris);
	text-align: center;
	padding: 10px 14px;
	text-decoration: none;
	font-size: 12px;
}

.navbar .dropdown-content {
	display: none;
	position: absolute;
	background-color: #1e1e1e;
	min-width: 160px;
	z-index: 1;

	box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-webkit-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
}

.navbar .dropdown-content a {
	color: var(--gris);
	padding: 10px 14px;
	text-decoration: none;
	display: block;
	text-align: left;
}

.navbar .dropdown-content a:hover {
	background-color: #2e2e2e;
}

.navbar .dropdown:hover .dropdown-content {
	display: block;
}

.navbar .dropdown-submenu {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	background-color: #333;
	min-width: 160px;
	z-index: 1;
}

.navbar .dropdown-gamer:hover .dropdown-submenu,
.navbar .dropdown-clubber:hover .dropdown-submenu,
.navbar .dropdown-anime:hover .dropdown-submenu,
.navbar .dropdown-sports:hover .dropdown-submenu,
.navbar .dropdown-movies:hover .dropdown-submenu,
.navbar .dropdown-heroes:hover .dropdown-submenu,
.navbar .dropdown-cartoons:hover .dropdown-submenu,
.navbar .dropdown-series:hover .dropdown-submenu {
	display: block;
}


#categorias,
#anime,
#cartoons,
#clubber,
#gamer,
#movies,
#series,
#sports{
	position: relative;
}
#categorias::after,
#anime::after,
#cartoons::after,
#clubber::after,
#gamer::after,
#movies::after,
#series::after,
#sports::after{
	content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gris); /* Color del triángulo */
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%); /* Centra el triángulo verticalmente */
}

#anime::after,
#cartoons::after,
#clubber::after,
#gamer::after,
#movies::after,
#series::after,
#sports::after{
	margin-right: 5px;
}

@media screen and (max-width: 650px) {
	.products__categories__title {
		font-size: 15px;
	}
	.navbar {
		display: none;
		position: absolute;
		width: 100%;
		top: 90px;
		left: 0;
		background-color: #242424;
	}

	.navbar ul {
		flex-direction: column;
	}

	.navbar .dropdown-content {
		position: initial;
		background-color: #333;

		box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.75);
		-webkit-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.75);
		-moz-box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.75);
	}

	.navbar .dropdown-submenu {
		position: initial;
		top: 0;
		left: 100%;
		background-color: #131313;
	}

	.navbar .dropdown:hover .dropdown-content {
		display: none;
	}

	/*Hace que no se abran las categorias al hacer over en movil, se abren al hacer click en javascript*/
	.navbar .dropdown-gamer:hover .dropdown-submenu,
	.navbar .dropdown-clubber:hover .dropdown-submenu,
	.navbar .dropdown-anime:hover .dropdown-submenu,
	.navbar .dropdown-sports:hover .dropdown-submenu,
	.navbar .dropdown-movies:hover .dropdown-submenu,
	.navbar .dropdown-heroes:hover .dropdown-submenu,
	.navbar .dropdown-cartoons:hover .dropdown-submenu,
	.navbar .dropdown-series:hover .dropdown-submenu {
		display: none;
	}

	#categorias::after{
		margin-right: 5px;
	}

	.product-units p {
		padding: 0 2px !important;
	}

	.menu-toggle {
		cursor: pointer;
	}
	.menu-toggle .menu-icon {
		display: block;
		width: 30px;
		height: 3px;
		background-color: var(--gris);
		margin: 6px 0;
		transition: transform 0.3s ease;
	}

	.menu-toggle .menu-icon.open:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	.menu-toggle .menu-icon.open:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle .menu-icon.open:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -8px);
	}
}

.slider {
	/* background-color: #070707; */
	/* background: linear-gradient(110deg, #000000 8%, #0f0f0f 18%, #000000 33%); */
	background-size: 200% 100%;
	/* -webkit-animation: 1.5s shine linear infinite;
	animation: 1.5s shine linear infinite; */
}

.slider img {
	width: 100%;
}

@-webkit-keyframes shine {
	to {
		background-position-x: -200%;
	}
}

@keyframes shine {
	to {
		background-position-x: -200%;
	}
}

.search{
	display: flex;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
	/* justify-content: center; */
}

.search svg{
	margin: 5px;
}

.search input{
	padding: 5px;
	border: none;
	background-color: transparent;
	color: var(--gris);
	border-bottom: 1px solid var(--gris)
}

.search input:focus{
	outline: none;
}

.search__products{
	font-size: 12px;
	padding: 10px;
}

.show-products {
	padding: 30px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-auto-rows: 1fr;
	gap: 40px;
	margin: 0 10px;
}

.logo {
	margin: 0 10px;
}
.cart {
	cursor: pointer;
	position: relative;
	margin: 0 10px;
	animation: aparecer 0.6s forwards;
	animation-delay: 0.4s;
	transform: scale(0);
}
.count-products {
	background-color: rgb(152, 36, 36);
	color: var(--gris);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: none;
	text-align: center;
	line-height: 20px;
	font-size: 12px;
	position: absolute;
	bottom: 0px;
	left: 25px;
	font-weight: 600;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

.article {
	border-radius: 5px 5px 0 0;
	border: 1px solid var(--gris);
	font-size: 12px;
	background-color: var(--gris);
	color: black;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 240px;
}

.article p {
	padding: 2px 1px;
}
.article img {
	width: 100%;
	height: auto;
	border-radius: 5px 5px 0 0;
}

.article__title {
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	padding: 2px 5px !important;
}

.article__category {
	font-size: 12px;
}
.article__price {
	font-weight: 700;
	font-size: 16px;
}

.btn-add {
	width: 100%;
	border: none;
	background-color: black;
	color: var(--gris);
	font-size: 11px;
	padding: 10px 5px;
	cursor: pointer;
	transition: ease 0.2s all;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-add svg {
	margin: 0 5px 2px 5px;
}

.btn-add:hover {
	color: white;
}
.btn-add:active,
.modal-button-buy:active{
	background-color: #2f2f2f;
}

footer{
	background-color: var(--gris);
	color: #000000;
}

.footer__content {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 20vh;
	font-size: 13px;
	text-align: center;
}

.footer__content ul{
	list-style-type: none;
}

.footer__content__element{
	padding: 5px;
}

.footer__box{
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	padding: 0 20px;
	min-height: 15vh;
}
.pagos{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 10vh;
	flex-wrap: wrap;
	gap: 10px;
}

.footer__envios{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 10vh;
	flex-wrap: wrap;
	gap: 10px;
}

.pagos img,
.footer__envios img{
	width: 50px;
	padding: 3px;
}

.footer__developer {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 12px;
	height: 25px;
	background-color: #000000;
}

.footer__developer a {
	text-decoration: none;
	text-shadow: 0 0 45px #00adef;
	color: #00adef;
	transition: ease 0.2s all;
}

.footer__developer a:hover {
	text-shadow: 0px 0px 30px #00adef;
}

.show-added-product {
	position: fixed;
	bottom: 10px;
	left: 50%;
	background-color: #015c01;
	padding: 15px 10px;
	border-radius: 5px;
	text-align: center;
	font-size: 13px;
	visibility: hidden;
	opacity: 0;
	transform: translateY(100%) translateX(-50%);
	transition: opacity 0.2s, transform 0.2s;

	box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-webkit-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
}

/* ESTILOS DEL MODAL CARRITO*/
.modal-content {
	position: absolute;
	top: 84px;
	right: 34px;
	width: 600px;
	background-color: var(--gris);
	color: black;
	border-radius: 5px;
	font-size: 12px;
	/* border: 1px solid var(--gris); */
	display: none;

	box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-webkit-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: -1px -1px 15px -3px rgba(0, 0, 0, 0.75);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 3px 7px;
	background-color: black;
	color: var(--gris);
	border: 1px solid var(--gris);
	border-radius: 5px 5px 0 0;
}

.modal-product {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 7px;
	border-bottom: 1px solid rgb(171, 171, 171);
}

.modal-product:hover {
	background-color: #b5b5b5;
}

.modal-product img {
	width: 100%;
	max-width: 50px;
	border: 1px solid black;
	background-color: rgb(171, 171, 171); /* Esqueleto precarga*/
}

.product-title {
	min-width: 180px;
}

.product-units {
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-units p {
	padding: 0 8px;
}

.btn-close-modal {
	border: 1px solid black;
	color: var(--gris);
	background-color: transparent;
	cursor: pointer;
	padding: 4px 0px 0px 0px;
	transition: ease 0.3s all;
}

.btn-close-modal-empty {
	color: black;
	cursor: pointer;
	border: none;
	background-color: transparent;
	position: absolute;
	right: 5px;
	top: 2px;
	font-size: 16px;
}

.total-content {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 6px 6px;
}

.substract,
.add {
	cursor: pointer;
	margin-top: 4px;
	transition: ease 0.3s all;
}

.substract:hover,
.add:hover,
.btn-close-modal:hover {
	transform: scale(1.1);
}

.delete-product {
	cursor: pointer;
}

.modal-button-buy {
	width: 100%;
	background-color: black;
	color: var(--gris);
	padding: 12px 2px;
	border: none;
	cursor: pointer;
	border: 1px solid var(--gris);
	border-radius: 0 0 5px 5px;
	transition: .3s ease all;
}

.modal-button-buy:hover{
	background-color: #111111;
}

.modal-cart-empty {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
}
.modal-cart-empty p {
	font-weight: 500;
}

@media screen and (max-width: 650px) {
	.show-products {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.article__total {
		display: none;
	}

	.modal-content {
		right: 5px;
		width: 98% !important;
	}
	.product-title {
		min-width: 165px;
	}

	.product-units {
		flex-direction: column-reverse;
		justify-content: flex-start;
		background-color: rgb(172, 172, 172);
		color: black;
		border-radius: 10px;
	}

	.search{
		justify-content: center;
	}
	.search__products{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.pagos{
		justify-content: flex-start;
	}
}

@media screen and (max-width: 400px) {
	.modal-product img {
		width: 100%;
		max-width: 50px;
		border: 1px solid black;
		display: none;
	}

	.show-products {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	}
}
