/*
Theme Name: custom-theme
WooCommerce styles override (Optimized for wp-Oleg Bento Design)
*/

/* ==========================================================
   1. УВЕДОМЛЕНИЯ WOOCOMMERCE (Ошибки, Успех, Инфо)
========================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	padding: 16px 20px;
	margin-bottom: 24px;
	border-radius: 12px;
	font-weight: 500;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	clear: both;
	list-style: none;
}

/* Информационные сообщения (в т.ч. авторизация на Checkout) */
.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: #eef2ff;
	color: #4338ca;
	border: 1px solid #c7d2fe;
}

/* Успешные действия (Товар добавлен в корзину) */
.woocommerce-message {
	background-color: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

/* Ошибки (Не заполнено поле и т.д.) */
.woocommerce-error {
	background-color: #fff1f2;
	color: #be123c;
	border: 1px solid #fecdd3;
	display: block;
	/* Ошибок может быть списком */
}

.woocommerce-error li {
	margin: 0 0 5px 0;
}

.woocommerce-error li:last-child {
	margin: 0;
}

/* Кнопки внутри уведомлений */
.woocommerce-message .button,
.woocommerce-info .button {
	background: #ffffff;
	color: currentColor;
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid currentColor;
	transition: all 0.2s ease;
	display: inline-block;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
	opacity: 0.8;
}

/* ==========================================================
   2. СТРАНИЦА: ПУСТАЯ КОРЗИНА
========================================================== */
p.cart-empty {
	font-size: 18px;
	color: #64748b;
	text-align: center;
	margin: 40px auto;
	padding: 50px 20px;
	background: #f8fafc;
	border-radius: 20px;
	border: 2px dashed #cbd5e1;
	max-width: 600px;
	font-weight: 500;
}

p.return-to-shop {
	text-align: center;
	margin-bottom: 50px;
}

p.return-to-shop .button {
	background: #6366f1;
	/* Индиго */
	color: #ffffff;
	padding: 16px 32px;
	border-radius: 14px;
	font-weight: 800;
	font-size: 16px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

p.return-to-shop .button:hover {
	background: #4f46e5;
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* ==========================================================
   3. ВАЛИДАЦИЯ ФОРМ (Подсветка инпутов)
========================================================== */
.form-row.woocommerce-validated input.input-text {
	border-color: #10b981 !important;
	/* Tailwind Emerald 500 */
}

.form-row.woocommerce-invalid input.input-text {
	border-color: #f43f5e !important;
	/* Tailwind Rose 500 */
	box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1) !important;
}

.required {
	color: #f43f5e;
	text-decoration: none;
}

/* ==========================================================
   4. BENTO GRID: КОШИК (Cart)
========================================================== */
.woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
	margin-top: 20px;
}

.woocommerce-cart-form {
	flex: 1 1 60%;
	min-width: 300px;
}

.cart-collaterals {
	flex: 1 1 35%;
	min-width: 300px;
	width: 100% !important;
}

.woocommerce-cart-form,
.cart_totals {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	float: none !important;
	width: 100% !important;
}

table.shop_table.cart {
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

table.shop_table.cart th,
table.shop_table.cart td {
	border-top: 1px solid #f1f5f9 !important;
	padding: 16px 8px !important;
	vertical-align: middle !important;
}

table.shop_table.cart thead th {
	border-top: none !important;
	border-bottom: 2px solid #e2e8f0 !important;
	color: #64748b !important;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.product-thumbnail img {
	border-radius: 12px !important;
	max-width: 80px !important;
	height: auto !important;
	border: 1px solid #f1f5f9 !important;
}

.product-name a {
	color: #1e293b !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.product-name a:hover {
	color: #6366f1 !important;
}

a.remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	background: #fee2e2 !important;
	color: #ef4444 !important;
	border-radius: 50% !important;
	text-decoration: none !important;
	font-size: 22px !important;
	font-weight: bold !important;
	line-height: 1 !important;
	transition: all 0.2s ease !important;
}

a.remove:hover {
	background: #ef4444 !important;
	color: #ffffff !important;
	transform: scale(1.1) !important;
}

.quantity input.qty {
	width: 70px !important;
	height: 42px !important;
	padding: 0 10px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 10px !important;
	background: #f8fafc !important;
	text-align: center !important;
	font-weight: 600 !important;
	color: #0f172a !important;
}

.quantity input.qty:focus {
	border-color: #6366f1 !important;
	outline: none !important;
}

.actions {
	padding-top: 20px !important;
}

button[name="update_cart"] {
	background: #f1f5f9 !important;
	color: #475569 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 12px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	transition: all 0.2s !important;
}

button[name="update_cart"]:not(:disabled):hover {
	background: #e2e8f0 !important;
	color: #1e293b !important;
}

.cart_totals h2 {
	font-size: 24px !important;
	font-weight: 800 !important;
	margin-bottom: 20px !important;
	color: #1e293b !important;
}

.cart_totals table th {
	color: #64748b !important;
	font-weight: 600 !important;
	padding: 15px 0 !important;
}

.cart_totals table .order-total th,
.cart_totals table .order-total td {
	font-size: 20px !important;
	border-top: 2px solid #e2e8f0 !important;
	color: #0f172a !important;
	padding-top: 20px !important;
}

.wc-proceed-to-checkout {
	padding-top: 25px !important;
}

.wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	padding: 18px !important;
	background: #10b981 !important;
	color: #ffffff !important;
	border-radius: 14px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	line-height: 1.2 !important;
}

.wc-proceed-to-checkout a.checkout-button:hover {
	background: #059669 !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3) !important;
}

@media (max-width: 768px) {

	.woocommerce-cart-form,
	.cart_totals {
		padding: 20px !important;
	}
}

/* ==========================================================
   5. BENTO GRID: ОФОРМЛЕННЯ (Checkout)
========================================================== */
form.woocommerce-checkout {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: start;
	margin-top: 20px;
}

@media (min-width: 992px) {
	form.woocommerce-checkout {
		grid-template-columns: 1.2fr 1fr;
	}
}

#customer_details,
#order_review {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.col2-set .col-1,
.col2-set .col-2 {
	float: none !important;
	width: 100% !important;
}

.woocommerce-checkout-review-order-table {
	margin: 0 !important;
	border: none !important;
}

h3#order_review_heading {
	display: none;
}

.woocommerce form .form-row {
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin-bottom: 24px;
}

.woocommerce form .form-row label {
	display: block !important;
	margin-bottom: 8px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	width: 100% !important;
	padding: 14px 16px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 12px !important;
	background: #f8fafc !important;
	font-size: 16px !important;
	color: #0f172a !important;
	transition: all 0.3s ease !important;
	box-shadow: none !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color: #6366f1 !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
	outline: none !important;
}

.woocommerce table.shop_table {
	border: none !important;
	border-radius: 0 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-top: 1px solid #f1f5f9 !important;
	padding: 16px 8px !important;
	background: transparent !important;
}

.woocommerce table.shop_table thead th {
	border-top: none !important;
	border-bottom: 2px solid #e2e8f0 !important;
	color: #64748b !important;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.woocommerce table.shop_table .order-total th,
.woocommerce table.shop_table .order-total td {
	border-top: 2px solid #e2e8f0 !important;
	font-size: 18px !important;
}

#wpo-order-bump-container {
	margin: 25px 0 !important;
	border-radius: 16px !important;
	box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1) !important;
}

#payment {
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

#payment ul.payment_methods {
	border-bottom: none !important;
	padding: 0 !important;
}

.woocommerce #payment #place_order {
	width: 100% !important;
	padding: 20px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	background: #10b981 !important;
	border-radius: 14px !important;
	color: #fff !important;
	transition: all 0.3s ease !important;
	margin-top: 10px !important;
}

.woocommerce #payment #place_order:hover {
	background: #059669 !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3) !important;
}

.woocommerce-additional-fields {
	display: none !important;
}