.main .container {
	padding: 40px 10px;
	display: flex;
	gap: 20px;
}

.product-left-column {
	flex: 1;
	background: #fff;
	padding: 25px;
	border-radius: 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.product-sidebar {
	width: 320px;
	background: #fff;
	padding: 25px;
	border-radius: 16px;
	height: fit-content;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 80px;
}

.badges {
	margin-bottom: 15px;
}

.badge-discount {
	background-color: #ff3b30;
	color: white;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: bold;
	font-size: 13px;
}

.product-title {
	font-size: 26px;
	line-height: 1.3;
	font-weight: 600;
	margin-bottom: 10px;
}

.product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 25px;
	color: #ffa41c;
}

.reviews-count {
	color: #007185;
	font-size: 14px;
	cursor: pointer;
}

.reviews-count:hover {
	text-decoration: underline;
}

.product-visuals {
	display: grid;
	grid-template-columns: 70px 1fr 280px;
	gap: 30px;
}

.thumbnails {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.thumb {
	width: 60px;
	height: 60px;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s;
}

.thumb:hover {
	border-color: #ccc;
}

.thumb.active {
	border-color: #007aff;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.main-image img {
	width: 100%;
	max-height: 450px;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

.product-config {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.label {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.color-options {
	display: flex;
	gap: 10px;
}

.color-opt {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid #ddd;
	box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
	position: relative; /* обязательно для overlay */
}

.color-opt.active {
	outline: 2px solid #007aff;
	outline-offset: 2px;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: white; /* текст белый */
    background: rgba(0, 0, 0, 0.25); /* тёмный полупрозрачный фон */
    pointer-events: none;
    border-radius: 50%;
    text-align: center;
}

.memory-options {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mem-btn {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
}

.mem-btn:hover {
	border-color: #999;
}

.mem-btn.active {
	border-color: #007aff;
	color: #007aff;
	background: #eef7ff;
}

.mem-btn.disabled-btn {
    opacity: 0.5;          /* полупрозрачная */
    cursor: not-allowed;   /* курсор “запрещено” */
    pointer-events: none;  /* нельзя кликнуть */
}

.specs-block h3 {
	font-size: 16px;
	margin-bottom: 15px;
}

.specs-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.specs-list li {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 10px;
	font-size: 14px;
}

.spec-name {
	color: #666;
	background: #fff;
	z-index: 1;
	padding-right: 5px;
}

.spec-val {
	color: #333;
	background: #fff;
	z-index: 1;
	padding-left: 5px;
	font-weight: 500;
}

.dots {
	flex: 1;
	border-bottom: 1px dotted #ccc;
	margin-bottom: 5px;
}

.hidden-specs {
	display: none;
	margin-top: 10px;
}

.toggle-specs-btn {
	background: none;
	border: none;
	color: #007aff;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	margin-top: 10px;
	text-decoration: underline;
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #666;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.stock-status {
	color: #28a745;
	font-weight: 500;
}

.price-block {
	margin-bottom: 25px;
}

.current-price {
	font-size: 32px;
	font-weight: 700;
	color: #333;
}

.old-price {
	text-decoration: line-through;
	color: #999;
	font-size: 16px;
	margin-top: 4px;
}

.action-buttons-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 25px;
}

.btn-primary-buy {
	background: #007aff;
	color: white;
	border: none;
	padding: 14px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-primary-buy:hover {
	background: #005ecb;
}

.btn-secondary-cart {
	background: #f5f5f7;
	color: #333;
	border: 1px solid transparent;
	padding: 14px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-secondary-cart:hover {
	background: #e5e5ea;
}

.delivery-simple {
	font-size: 14px;
	color: #555;
	background: #f9f9f9;
	padding: 15px;
	border-radius: 10px;
}

.del-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.del-item:last-child {
	margin-bottom: 0;
}

.del-item i {
	width: 20px;
	text-align: center;
	color: #999;
}

@media (max-width: 900px) {
	.main .container {
		flex-direction: column;
	}

	.product-visuals {
		grid-template-columns: 1fr;
	}

	.thumbnails {
		flex-direction: row;
		order: 2;
		gap: 10px;
		justify-content: center;
	}

	.main-image {
		order: 1;
	}

	.product-config {
		order: 3;
	}

	.product-sidebar {
		width: 100%;
		position: static;
	}
}
