@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+CU:wght@100..400&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
	margin: 0;
	padding: 0;
}

:root {
	--green: #0A84FF; 
	--yellow: #F5F7FA; 
	--orange: #FF9500;
	--red: #FF3B30; 
}

body {
	font-family: 'Red Hat Display', sans-serif;
	background-color: var(--yellow);
	height: 100vh;
}

.products-container {
	padding: 50px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 20px;
}

.products-container,
.admin-container {
	position: relative;
	top: 70px;
}

.product-card {
	background-color: white;
	border: 2px solid var(--green);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 12px;
	width: 20vw;
	padding: 5px;
}

.product-card img {
	width: 100%;
	height: 20vh;
	object-fit: cover;
}

.product-info h3 {
	margin: 10px 0;
	font-size: 18px;
	color: var(--green);
}

.price {
	color: var(--red);
	font-weight: bold;
	text-align: center;
	margin-bottom: 10px;
}

.buttons {
	display: flex;
	justify-content: space-around;
}

.buttons button {
	border: none;
	padding: 8px 14px;
	border-radius: 16px;
	cursor: pointer;
	color: white;
}

.details-btn {
	background-color: var(--orange);
}

.cart-btn {
	background-color: var(--green);
}

.navbar {
	background-color: var(--green);
	height: 70px;
	display: flex;
	justify-content: space-around;
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	position: fixed;
	width: 100vw;
	z-index: 100;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--yellow);
}

.fa-f {
	width: 9px !important;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-actions a {
	text-decoration: none;
	color: var(--yellow);
}

.cart-link {
	position: relative;
}

.badge {
	height: 15px;
	width: 15px;
	background-color: red;
	color: white;
	font-size: 12px;
	border-radius: 50%;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: -8px;
	right: 30px;
}

#add-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

#name,
#price,
#imageURL,
#description,
#add-btn {
	border-radius: 5px;
	padding: 10px;
	border: none;
	font-size: 14px;
	outline: none;
}

#description {
	min-height: 50px;
	resize: vertical;
}

#add-btn {
	background-color: var(--red);
	color: white;
	cursor: pointer;
	opacity: 0.9;
}

#add-btn:hover {
	opacity: 1;
}

#products-table {
	width: 100%;
	padding: 10px;
}

#products-table thead th,
#products-table tbody td {
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

#products-table tbody tr td {
	text-align: center;
}

.cell-img img {
	height: 60px;
	width: 60px;
}