
* {
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-backg);
}

::-webkit-scrollbar-thumb{
    background: var(--color-primary);
    border-radius: 30px;
}

:root {
    --color-primary: #F9E700;
    --color-secondary: #4B4E52;
    --color-tertiary: #F9E700;
    --color-black: #000;
    --color-white: #fff;
    --color-backg: #1C1F24;
    --color-backg-sec: #272A2F;
}

body {
    background-color: var(--color-backg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
	transition: 0.3s;
}

a:hover {
	opacity: 0.8;
}

.products-container {
    display: flex;
    margin-top: 50px;
    flex-wrap: wrap;
    flex-direction: row;
    width: 95%;
    align-items: center;
    gap: 0.5rem;
    justify-content:center;
}

.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    height: 185px;
    background: var(--color-backg-sec);
    border-radius: 15px;
    transform: scale(1.5);
    padding: 15px 0px 15px;
    margin: 4rem 3rem 5rem;
    color: var(--color-white);
    gap: 10px;
}

.product span {
    font-size: 0.6rem;
    margin: 5px 0 10px;
}

.product-a {
	display: flex;
	/* align-items: center; */
	justify-content: center;
	cursor: pointer;
	width: 85%;
	text-align: center;
}

.product .price-product {
   font-size: 0.6rem;
}

.wpp-redirect {
    margin: 5px 0 3px;
    font-size: 0.6rem;
}

.wpp-redirect-i {
    margin-right: 3px;
}

.wpp-redirect-a {
	color: var(--color-primary);
}

.product:hover {
    transform: scale(1.6);
}

.back-and-cart {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: center;
}

.link {
	color: var(--color-white);
}

.link:hover {
	color: var(--color-primary);
}

header {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 35px 0 15px
}

header img {
    width: 400px;
    height: 108px; /* 27% da largura */
}

.form-search-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-filter {
    width: 300px;
    height: 45px;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background-color: var(--color-backg-sec);
    padding: 0 15px 0;
    color: var(--color-white);
}

.input-filter:focus {
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 0 0 0;
    outline: 0;
}

.img-product {
    height: 85px;
    width: 85px;
}

.btn-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px;
    border-radius: 50px;
    background-color: var(--color-secondary);
    width: 40px;
    height: 45px;
}

.product-open {
    background-color: var(--color-secondary);
    border-radius: 5px;
    border: none;
    width: 90%;
    height: auto;
    /* line-height: 1.9; */
    padding: 5px 10px;
    color: var(--color-white);
}

.product-open span {
    margin: 0;
    font-weight: bold; 
}

.product-open:hover{
    transform: translateY(-0.1em);
}

.product-name {
	color: var(--color-white);
}

.btn-filter:hover{
    transform: translateY(-0.1em);
    cursor: pointer;
}

.btn-filter i {
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-white);
}

.back-page {
    color: var(--color-white);
    text-decoration: underline;
}

#page-links-container {
	display: flex;
	background-color: var(--color-backg-sec);
	height: 40px;
	gap: 10px;
	border-radius: 8px;
	margin-bottom: 30px;
}

#page-links {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 30px;
	border-radius: 8px;
}

#page-links:hover {
	color: var(--color-black);
	background-color: var(--color-primary);
}


#back-header {
	background-color: rgba(75, 78, 82, 0.2);
	color: var(--color-primary);
	border:none;
    width: 25px;
    position: fixed;
    top: 88%;
    z-index: 9999;
    right: 15;
	border-radius: 100px;
	height: 40px;
	cursor: pointer;
}

/* The dropdown container */
.dropdown {
	float: left;
	overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
	font-size: 16px;
	border: none;
	outline: none;
	color: var(--color-white);
	padding: 14px 16px;
	background-color: inherit;
	/* Important for vertical align on mobile phones */
	margin: 0;
	/* Important for vertical align on mobile phones */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: var(--color-backg-sec);
	min-width: 60px;
	z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
	float: none;
	color: var(--color-white);
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
	background-color: var(--color-backg);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
	display: block;
}

@media only screen and (max-width: 850px) {
    header {
        flex-direction: column;
    }
}

@media only screen and (max-width: 420px) {
    header img {
        width: 300px;
        height: auto; 
    }
	
	.form-search-items {
	    width: 300px;
		gap: 0;
	}

	.btn-filter {
		width: 15%;
		height: 50px;
		border-radius: 0px;
		border-bottom: 2px solid var(--color-primary);
		font-size: 1.2rem;
	}
    
    .input-filter {
        width: 85%;
		height: 50px;
		font-size: 1.1rem;
    }

	.back-page {
	    font-size: 1rem;
	}

	.product {
	    width: 55%;
	    height: 240px;
	    border-radius: 8px;
	    gap: 10px;
	}

	.product:hover {
	    transform: scale(1.5);
	}

	.img-product {
		width: 130px;
		height: auto;
	}

	.product-open {
		padding: 10px 10px;
	}

	.product-open span {
		font-size: 0.75rem;
	}

}