@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f5f5f5;
	font-weight: 500;
}

header {
	width: 100vw;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	background-color: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	padding: 2vh 3vw;
	flex-wrap: wrap;
  white-space: nowrap;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	cursor: pointer;
	height: auto;
	width: clamp(9rem, 25vw, 20rem);
	margin-right: 1vw;
}

.logo img {
	height: inherit;
	width: inherit;
	object-fit: contain;
}

h1 {
	text-align: center;
	font-size: clamp(0.5rem, 5vw, 2rem);
	margin: 1rem auto;
	flex: 1 0 100%;
}

h3 {
	text-align: center;
	font-size: clamp(0.5rem, 5vw, 2rem);
	margin: 1rem auto;
	flex: 1 0 100%;
}

.admin-button {
	background-color: red;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	cursor: pointer;
}

.guitar-preview,
.brand-description,
.genre-description {
	background-color: white;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 1.5rem;
	width: 100%;
	max-height: 75vw;
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	box-sizing: border-box;
}

.guitar-preview:hover {
	transform: scale(1.03);
	cursor: pointer;
}

.guitar-preview img {
	width: 100%;
	height: 30vh;
	max-height: min(25vw, 360px);
	object-fit: contain;
	border-radius: 10px;
}

.guitar-preview h2 {
	margin-top: 1rem;
	font-size: clamp(0.5rem, 4vw, 1.75rem);
	/* Cut lines */
	display: -webkit-box;
	-webkit-line-clamp: 2;
  line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.img-price {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 1rem;
}

.guitar-price {
	background-color: red;
	color: white;
	font-size: 1.2rem;
	font-weight: 600;
	text-align: center;
	padding: 0.75rem;
	border-radius: 5px;
	margin-top: 1rem;
	width: fit-content;
	height: calc(fit-content + 10%);
}

.guitar-price p {
	margin: 0;
	padding: 0;
	font-size: clamp(0.5rem, 3vw, 1.5rem);
}

.button {
	background-color: white;
	color: black;
	border-radius: 5px;
	padding: 0.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 100px;
	text-align: center;
	cursor: pointer;
	margin: 0.5rem auto;
}

footer {
  display: flex;
  flex-direction: column;
	text-align: center;
	margin: 1vw;
  text-decoration: underline;
  color: rgb(0, 157, 255);
}
.source {
  margin: 0.5rem
}

a {
	text-decoration: none;
	color: inherit;
}