@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	padding: 0;
	margin: 0;
}
:root {
	--grid-columns: 350px 2fr;
	--header-padding: 30px;
	--border: #E0E0E0;
	--muted: #B1B1B1;
	--text: #111;
	--red: #FF0000;
	--bg-soft: #f7f7f7;
}
body {
	display: grid;
	min-height: 100vh;
	grid-template-columns: var(--grid-columns);
	grid-template-areas: "header  header"
	"sidebar section"
	"sidebar footer";
}
main {
	display: contents;
}
main > div {
	padding: 20px;
	grid-area: section;
}
main > div aside h2 {
	width: 100%;
}
main > div aside {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 20px;
}
main > div aside form {
	position: relative;
}

main > div aside i {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
}

main > div > aside > form {
	flex: 1;
}
main > div > aside > form:first-of-type {
	min-width: 80%;
}
main > div input,
main > div select {
	width: 100%;
	font-size: 16px;
	height: 56px;
	padding-left: 44px;
	outline: 2pt solid var(--border);
	border: none;
}
main > div > section {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}
main > div > section > article {
	position: relative;
	outline: 2pt solid var(--border);
}
main > div > section > article img {
	width: 100%;
	outline: 2pt solid var(--border);
}
main > div > section > article > *:not(img) {
	padding-left: 15px;
	padding-right: 15px;
}
main > div > section > article > p {
	margin-top: 10px;
}
main > div > section > article > div {
	margin-top: 20px;
	margin-bottom: 40px;
}
main > div > section > article button {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100%;
	border: none;
	position: absolute;
	margin: 20px;
}

main > div > section > article button:first-of-type {
	padding: 10px;
	border-radius: 100%;
	border: none;
	opacity: 0.7;
	position: absolute;
	right: 0;
	margin: 20px;
	transition: 100ms ease-in-out;
}
main > div > section > article button:last-of-type {
	width: 50px;
	height: 50px;
	font-size: 20px;
	padding: 20px;
	border-radius: 100%;
	border: none;
	bottom: 0;
	right: 0;
	background: var(--red);
	color: white;
	margin: 20px;
}
main > div > section > article button:hover {
	cursor: pointer;
	opacity: 1;
}

h2 {
	font-size: 30px;
}

main > aside:first-of-type {
	grid-area: sidebar;
	border-right: 2pt solid var(--border);
	padding: 40px;
}
main > aside:first-of-type > form {
	height: 100%;
}
main > aside:first-of-type button[type="submit"] {
	width: 100%;
	border: none;
	text-transform: uppercase;
	padding-top: 20px;
	padding-bottom: 20px;
	background: var(--red);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}


a {
	color: black;
	white-space: nowrap;
	text-decoration: none;
}

header h1 {
	font-size: 20px;
}
header p {
	font-size: 12px;
	color: var(--muted);
}
header a {
	font-weight: 500;
}
header {
	grid-area: header;
	display: grid;
	grid-template-columns: var(--grid-columns);
	grid-template-areas: "logo        nav"
	"breadcrumbs cart"
}
header section {
	display: contents;
}
header > section > nav {
	padding: var(--header-padding);
	grid-area: breadcrumbs;
}
header > section > nav > ol {
	justify-content: center;
	text-align: center;
	white-space: nowrap;
	gap: 10px;
}
header > section > nav > ol > li {
	flex: 0;
}
header > section > nav > ol > li:last-child {
	color: var(--muted);
}
header > section > ul {
	grid-area: cart;
}
i[with-bg] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: white;
	padding: 5px;
	width: 30px;
	height: 30px;
	text-align: center;
	border-radius: 100%;
	background: var(--red);
}

header ul:not(section > nav > ul) > li,
header ol:not(section > nav > ol) > li,
header > div:first-of-type,
header > section > nav {
	outline: 2px solid var(--border);
	background: white;
}
header > div:first-of-type {
	display: flex;
	justify-content: center;
	align-items: center;
	grid-area: logo;
	padding-top: 20px;
	padding-bottom: 20px;
}
/* сам лого (плейсхолдер) */
header > div:first-of-type > div:first-of-type {
	margin-right: 20px;
	aspect-ratio: 1/1;
	width: 40px;
	height: 40px;
	background: red;
	border-radius: 100%;
}
ol, ul {
	display: flex;
	justify-content: space-between;
	height: 100%;
	list-style-type: none;
}
li {
	display: flex;
	padding: 10px;
	flex-wrap: nowrap;
	width: 100%;
	justify-content: center;
	align-items: center;
}
header > div:nth-of-type(2) {
	display: grid;
	grid-template-columns: 2fr 1fr;
}
header > div:nth-of-type(2) div > ol > li:last-child > a {
	display: flex;
	gap: 30px;
	align-items: center;
}
header > div:nth-of-type(2) div > ol > li:last-child > a > img {
	width: 40px;
	height: 40px;
	aspect-ratio: 1/1;
	border-radius: 100%;
}
header ol li span {
	background: var(--red);
	color: white;
	font-size: 12px;
	padding: 2px 5px 2px 5px;
}
/* бордеры */
/* пользователь */

fieldset {
	border: none;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

legend {
	font-weight: 700;
	margin-bottom: 12px;
}

select {
	padding: 5px;
	border: none;
	background: none;
	font: inherit;
	cursor: pointer;

}
fieldset label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--muted);
	margin: 8px 0;
}

input[type="checkbox"] {
	accent-color: var(--red);
}

input[type="range"] {
	width: 100%;
	margin: 8px 0;
	accent-color: var(--red);
}
input[type="checkbox"] {
	transform: scale(1.5);
	border-radius: 0px;
	accent-color: #ff2b2b;
}
fieldset input[type="number"] {
	width: 100%;
	height: 44px;
	border: none;
	background: var(--bg-soft);
	padding: 0 12px;
	font-size: 14px;
}
fieldset:has(label input[type="number"]) {
	display: flex;
	gap: 10px;
}
footer {
	display: flex;
	padding: 20px;
	justify-content: center;
	align-items: end;
	color: var(--muted);
	font-weight: 600;
}
