* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Ubuntu,Cantarell,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
}
body {
	margin: 48px 0;
	background-color: #f3f7fa;
	color: #333;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 2%;
}
.wrapper {
	border-radius: 12px;
}
.demo {
	padding: 32px;
	background-color: #ffffff;
}
.download {
	display: flex;
	flex-direction: row;
	gap: 12px;
}
.download a {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
	line-height: 24px;
	min-height: 48px;
	min-width: 200px;
	padding: 0 23px;
	border: none;
	background: #3261ec;
	color: #ffffff;
	cursor: pointer;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease-out, color 0.2s ease-out, border 0.2s ease-out;
}
.download a:hover {
	background: #1e4bd2;
}

h1 {
	text-align: center;
	margin-bottom: 22px;
}

h2 {
	color: #030306e0;
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
	margin-bottom: 32px;
}
h3 {
	margin-bottom: 8px;
}

.description {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	margin-bottom: 12px;
}

.cart {
	position: relative;
	display: flex;
	gap: 40px;
}
.cart-items {
	flex: 3;
}
.cart-item {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;

	min-height: 100px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
.cart-item.fade-out {
	opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.cart-item img {
	width: 70px;
	margin-right: 20px;
}
.item-details {
	flex: 1;
}
.price, .quantity, .total {
	width: 100px;
	text-align: center;
}
.cart-summary {
	flex: 1;
	background: #f3f7fa;
	padding: 20px;
	border-radius: 12px;
}
.cart-summary h3 {
	margin-bottom: 20px;
}
.summary-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}
.checkout {
	margin-top: 20px;
	width: 100%;
	padding: 12px;
	background: #3261ec;
	color: #ffffff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	border-radius: 8px;
	transition: background 0.2s ease-out, color 0.2s ease-out, border 0.2s ease-out;
}

.checkout:hover {
	background: #1e4bd2;
}

.table-wrapper {
  width: 100%;
  overflow: auto;
  max-height: 950px; /* задай нужную высоту */
  border: 1px solid #eee;
	border-radius: 8px;  
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
  font-family: inherit;
  min-width: max-content;
	border-radius: 8px;
}

/* фиксируем заголовки */
thead th {
  position: sticky;
  top: 0;
  background-color: white; /* важно: чтобы перекрывал строки */
  z-index: 1;
  font-weight: 600;
  color: #333;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* остальные ячейки */
tbody td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  background-color: transparent;
}

/* убрать вертикальные линии */
th,
td {
  border-left: none;
  border-right: none;
}

/* подсветка строки */
tbody tr:hover {
  background-color: #f5f5f5;
}


/* Пример: задать ширину только восьмому столбцу */
thead th:nth-child(8),
tbody td:nth-child(8) {
  max-width: 260px;
}

thead th:nth-child(11),
tbody td:nth-child(11) {
  max-width: 300px;
}

thead th:nth-child(12),
tbody td:nth-child(12) {
  max-width: 500px;
}

/* Скругления углов */
thead th:first-child {
  border-top-left-radius: 8px;
}
thead th:last-child {
  border-top-right-radius: 8px;
}
tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  margin: 16px 0;
}

code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  padding: 0;
  margin: 0;
  display: inline; /* чтобы не добавлял лишние отступы */
}

/* Простая "ручная" подсветка через <span> */
code span {
  color: #569cd6; /* по умолчанию: тег или ключевое слово */
}

/* Можно расширить по классам (если хочешь более гибко): */
code span.tag {
  color: #569cd6;
}
code span.attr {
  color: #9cdcfe;
}
code span.punct {
  color: #d4d4d4;
}
code span.value {
  color: #ce9178;
}

.code-block {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  margin: 16px 0;
}

.code-block code {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Подсветка синтаксиса */
.code-block .keyword {
  color: #569cd6;
  font-weight: 500;
}

.code-block .key {
  color: #9cdcfe;
}

.code-block .string {
  color: #ce9178;
}

.code-block .number {
  color: #b5cea8;
}

.code-block .comment {
  color: #6a9955;
  font-style: italic;
}

.code-block .brace,
.code-block .bracket,
.code-block .operator {
  color: #d4d4d4;
}

.quantity-controls {
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	gap: 8px;
}

.quantity-controls button {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;
	background-color: #3261ec;
	color: white;
	border: none;
	padding: 12px 0;
	font-size: 20px;
	font-weight: bold;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
	height: 100%;
}

.quantity-controls button:hover {
	background-color: #1e4bd2;
}

.quantity-controls span {
	flex: 1;
	text-align: center;
	font-size: 20px;
	line-height: 44px;
	font-weight: bold;
	background: #f0f0f0;
	border-radius: 6px;
}

.product-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.product {
	background: #fff;
	padding: 16px;
	border-radius: 12px;
	box-shadow: 0 0 6px rgba(0,0,0,0.05);
	width: calc(33.333% - 16px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.product img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}

.product-title {
	font-size: 18px;
	font-weight: bold;
}

.product-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

.product-price {
	font-size: 16px;
	margin-bottom: 10px;
}

.add-to-cart {
	background: #3261ec;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	height: 44px;
}

.add-to-cart:hover {
	background: #1e4bd2;
}

.buy {
	background: #3261ec;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	height: 44px;
}

.buy:hover {
	background: #1e4bd2;
}

.cart-link {
	background: #3261ec;
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: bold;
}

.cart-link span {
	background: white;
	color: #3261ec;
	border-radius: 50%;
	padding: 4px 10px;
	margin-left: 10px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.product {
		width: 100%;
	}
}

.title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.title-row h2 {
	margin-bottom: 0;
}

.styled-button {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-out;
}
.styled-button:hover {
  background-color: #e60000;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 20px;
  color: #666;
}

.breadcrumbs a {
  color: #3261ec;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.breadcrumbs a:hover {
  color: #1e4bd2;
}

.breadcrumbs span {
  color: #999;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #555;
}

.empty-cart a.back-to-shop {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #1e88e5;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.quantity, .total, .price {
  transition: all 0.2s ease;
}

.email-field {
  margin-top: 20px;
  font-family: inherit;
}

.email-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.email-field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}

.email-field input[type="email"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}