#ycart-button:hover {
	filter: brightness(0.85);
}

#ycart-button {
	position: fixed;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	color: #fff;
	z-index: 999998 !important;
}

#ycart-button svg {
	pointer-events: none;
}

.ycart-badge {
	position: absolute;
	background: #222;
	color: #fff;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 12px;
	line-height: 1;
	user-select: none;
	pointer-events: none;
	font-weight: 600;
}

#ycart-badge-count {
	top: 6px;
	right: 6px;
}

/* Панель */
.ycart-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 420px; /* увеличено на ~20% */
	max-width: 95vw;
	background: #fff;
	box-shadow: -3px 0 15px rgba(0,0,0,0.2);
	overflow-y: auto;
	transition: transform 0.3s ease;
	z-index: 999999;
	right: 0;
	transform: translateX(100%);
	display: flex;
	flex-direction: column;
	font-family: Arial, sans-serif;
}

.ycart-panel.open {
	transform: translateX(0);
}

.ycart-theme-dark {
	background: #222;
	color: #eee;
}

.ycart-theme-dark .ycart-header,
.ycart-theme-dark .ycart-footer {
	border-color: #444;
}

.ycart-header {
	padding: 15px 20px;
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ycart-theme-dark .ycart-header {
	border-color: #444;
}

.ycart-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

#ycart-close {
	font-size: 24px;
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
	padding: 0;
	transition: color 0.2s ease;
}

#ycart-close:hover {
	color: #ff6600;
}

#ycart-items {
	flex: 1;
	padding: 10px 20px;
	overflow-y: auto;
}

.ycart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
	position: relative;
}

.ycart-theme-dark .ycart-item {
	border-color: #444;
}

.ycart-item-name {
	flex: 2;
	margin-right: 10px;
}

.ycart-item-price,
.ycart-item-subtotal {
	width: 70px;
	text-align: right;
}

/* Количество товара */
.ycart-item-qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-left: 10px;
	width: 70px; /* немного компактнее */
}

/* Поле количества */
.ycart-item-qty input[type=number] {
	width: 32px;
	height: 26px;
	text-align: center;
	border: 1px solid #666;
	border-radius: 4px;
	background: #2a2a2a;
	color: #fff;
	font-size: 13px;
	-moz-appearance: textfield;
}

.ycart-item-qty input::-webkit-outer-spin-button,
.ycart-item-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Кнопки + и − */
.ycart-qty-minus,
.ycart-qty-plus {
	width: 18px;
	height: 22px;
	border: none;
	border-radius: 4px;
	background: #cc0000;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.2s ease;
}

.ycart-qty-minus:hover,
.ycart-qty-plus:hover {
	background: #ff1a1a;
}


/* Футер */
.ycart-footer {
	padding: 15px 20px;
	border-top: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ycart-theme-dark .ycart-footer {
	border-color: #444;
}

.ycart-total span {
	font-weight: 700;
	font-size: 16px;
}

#ycart-total-amount {
	min-width: 100px;
	text-align: right;
}

.ycart-checkout-button {
	background: #ff6600;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.3s ease;
}

.ycart-checkout-button:hover {
	background: #e65500;
}




/* === Жёсткое переопределение размеров кнопок количества (вставить в конец CSS) === */

/* точечные селекторы с высокой специфичностью + !important */
#ycart-panel .ycart-item .ycart-item-qty .ycart-qty-minus,
#ycart-panel .ycart-item .ycart-item-qty .ycart-qty-plus {
    width: 30px !important; 
    height: 30px !important; 
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

/* уменьшаем инпут, чтобы пропорции были аккуратными */
#ycart-panel .ycart-item .ycart-item-qty input[type=number] {
    width: 40px !important;    /* чуть уже */
    height: 40px !important;
    font-size: 13px !important;
    padding: 2px !important;
}

/* контейнер подстраиваем ширину (если нужно) */
#ycart-panel .ycart-item .ycart-item-qty {
    width: auto !important;
    gap: 6px !important;
}

/* hover — сохраняем вид при наведении */
#ycart-panel .ycart-item .ycart-item-qty .ycart-qty-minus:hover,
#ycart-panel .ycart-item .ycart-item-qty .ycart-qty-plus:hover {
    background: #ff1a1a !important;
    transform: none !important;
}






/* Минимизируем кнопку удаления товара (×) */
#ycart-panel .ycart-item button.ycart-remove-item {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    font-size: 10px !important;
    border-radius: 50% !important;
    background: #cc0000 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 6px !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: background 0.2s ease;
    box-shadow: none !important;
}

/* Наведение — лёгкий оттенок */
#ycart-panel .ycart-item button.ycart-remove-item:hover {
    background: #ff1a1a !important;
}