/* Модерна количка - CSS стилове */
:root {
	--primary-color: #fcb900;
	--primary-hover: #fcb900;
	--secondary-color: #4ecdc4;
	--success-color: #51cf66;
	--warning-color: #ffd43b;
	--danger-color: #dc3545;
	--dark-color: black;
	--light-color: #f8f9fa;
	--border-color: #e9ecef;
	--text-color: black;
	--text-muted: #6c757d;
	--bg-light: #f8f9fa;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
	--border-radius: 8px;
	--transition: all 0.3s ease;
}

/* Модерен hero банер */
.modern-cart-hero {
	background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
	color: black;
	padding: 2rem 0;
	margin-bottom: 2rem;
}

.hero-content {
	text-align: center;
}

.breadcrumbs-modern {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 14px;
	margin-bottom: 1.5rem;
}

.breadcrumb-home, .breadcrumb-link {
	color: black;
	text-decoration: none;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.25rem;
  }

.breadcrumb-home:hover,
.breadcrumb-link:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.breadcrumb-separator {
	color: black;
	margin: 0 0.5rem;
}

.breadcrumb-current {
	color: var(--primary-color);
	font-weight: 500;
}

.cart-title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.cart-title i {
	font-size: 32.64px;
}

.cart-stats {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	color: #666;
	align-items: center;
}

.cart-stats i {
	color: var(--primary-color);
}

.products-count,
.total-value {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.2);
	border-radius: var(--border-radius);
	backdrop-filter: blur(10px);
}

/* Основен контейнер */
.cart-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Празна количка */
.empty-cart {
	text-align: center;
	padding: 4rem 2rem;
	background: white;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

.empty-cart-icon {
	font-size: 65.28px;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
}

.empty-cart h2 {
	font-size: 32.64px;
	color: var(--dark-color);
	margin-bottom: 1rem;
}

.empty-cart p {
	font-size: 17.95px;
	color: var(--text-muted);
	margin-bottom: 2rem;
}

.empty-cart-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
}

.btn-primary:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

.btn-secondary {
	background: var(--light-color);
	color: var(--text-color);
	border: 2px solid var(--border-color);
}

.btn-secondary:hover {
	background: var(--border-color);
	transform: translateY(-2px);
}

/* Процес стъпки */
.checkout-process {
	margin-bottom: 3rem;
}

.process-steps {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	max-width: 600px;
	margin: 0 auto;
}

.step {
	display: flex;
	align-items: center;
	gap: 1rem;
	opacity: 0.5;
	transition: var(--transition);
}

.step.active {
	opacity: 1;
}

.step-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--light-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19.58px;
	color: var(--text-muted);
	transition: var(--transition);
}

.step.active .step-icon {
	background: var(--primary-color);
	color: white;
}

.step-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.step-number {
	font-size: 14.69px;
	font-weight: 600;
	color: var(--text-muted);
}

.step-title {
	font-size: 16.32px;
	font-weight: 500;
	color: var(--text-color);
}

.step.active .step-number,
.step.active .step-title {
	color: var(--primary-color);
}

/* Layout на количката */
.cart-layout {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 2rem;
	margin-bottom: 3rem;
}

/* Продукти в количката */
.cart-products {
	background: white;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-light);
}

.cart-header h2 {
	font-size: 24.48px;
	color: var(--dark-color);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.cart-actions {
	display: flex;
	gap: 1rem;
}

.btn-clear-cart {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--danger-color);
	color: white;
	border: none;
	border-radius: var(--border-radius);
	font-size: 14.69px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-clear-cart:hover {
	background: #e74c3c;
	transform: translateY(-1px);
}

/* Списък с продукти */
.products-list {
	padding: 1rem;
}

.cart-item {
	display: grid;
	grid-template-columns: 120px 1fr 150px 120px;
	gap: 1.5rem;
	align-items: center;
	padding: 1.5rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	margin-bottom: 1rem;
	background: white;
	transition: var(--transition);
}

.cart-item:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

/* Изображение на продукта */
.item-image {
	position: relative;
}

.item-image .image-link {
	display: block;
	border-radius: var(--border-radius);
	overflow: hidden;
	transition: var(--transition);
}

.item-image img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	transition: var(--transition);
}

.item-image:hover img {
	transform: scale(1.05);
}

.item-badges {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.badge {
	padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge.discount {
	background: var(--danger-color);
	color: white;
}

.badge.new {
	background: var(--success-color);
	color: white;
}

.badge.out-of-stock {
	background: var(--text-muted);
	color: white;
}

/* Информация за продукта */
.item-info {
	flex: 1;
}

.item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.item-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.item-title a {
	color: var(--dark-color);
	text-decoration: none;
	transition: var(--transition);
}

.item-title a:hover {
	color: var(--primary-color);
}

.item-remove {
	background: none;
	border: none;
	border-radius: 50%;
	color: var(--text-muted);
	font-size: 19.58px;
	cursor: pointer;
	padding: 0.5rem 0.25;
	border-radius: 4px;
	transition: var(--transition);
	position: absolute;
	right: 10px;
	top: 5px;
}

.item-remove:hover {
	color: var(--danger-color);
	background: rgba(255, 107, 107, 0.1);
}

.item-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.meta-item {
	display: flex;
	gap: 0.5rem;
	font-size: 14.69px;
}

.meta-label {
	color: var(--text-muted);
	font-weight: 500;
}

.meta-value {
	color: var(--text-color);
}

.brand-link {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
}

.brand-link:hover {
	text-decoration: underline;
}

.item-price {
	margin-bottom: 1rem;
}

.price-info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.old-price {
	font-size: 14.69px;
	color: var(--text-muted);
	text-decoration: line-through;
}

.current-price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.price-bgn {
	font-size: 19.58px;
	font-weight: 700;
	color: #dc3545;
}

.price-eur {
	font-size: 14.69px;
	color: var(--text-muted);
}

/* Количество */
.item-quantity {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}

.quantity-controls {
	display: flex;
	align-items: center;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	overflow: hidden;
}

.qty-btn {
	background: var(--light-color);
	border: none;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	color: var(--text-color);
}

.qty-btn:hover {
	background: var(--primary-color);
	color: black;
}

.qty-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.qty-btn:disabled:hover {
	background: var(--light-color);
	color: var(--text-color);
}

.quantity-input {
	width: 60px;
	height: 35px;
	border: none;
	text-align: center;
	font-weight: 600;
	outline: none;
}

.quantity-actions {
	display: flex;
	gap: 0.5rem;
}

.btn-save-quantity {
	background: var(--success-color);
	color: black;
	border: none;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 13.06px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-save-quantity:hover {
	background: #45b85a;
}

/* Обща цена */
.item-total {
	text-align: right;
}

.total-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
}

.total-amount {
	font-size: 21.22px;
	font-weight: 700;
	color: #dc3545;
	text-align: left;
}

.total-secondary {
	font-size: 14.69px;
	color: var(--text-muted);
}

.savings {
	font-size: 13.06px;
	color: var(--success-color);
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 500;
}

/* Промокод секция */
.promocode-section {
	padding: 1.5rem;
	border-top: 1px solid var(--border-color);
	background: var(--bg-light);
}

.promocode-header h3 {
	font-size: 19.58px;
	color: var(--dark-color);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.active-promocode {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: white;
	padding: 1rem;
	border-radius: var(--border-radius);
	border: 2px solid var(--success-color);
}

.promocode-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.promocode-name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--success-color);
}

.promocode-discount {
	font-size: 17.95px;
	font-weight: 700;
	color: var(--success-color);
}

.btn-remove-promocode {
	background: var(--danger-color);
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-remove-promocode:hover {
	background: #e74c3c;
}

.promocode-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.form-group {
	display: flex;
	gap: 0.5rem;
}

.form-control {
	flex: 1;
	padding: 0.75rem;
	border: 2px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: 16.32px;
	outline: none;
	transition: var(--transition);
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-apply-promocode {
	background: var(--primary-color);
	color: black;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
}

.btn-apply-promocode:hover {
	background: var(--primary-hover);
}

.promocode-help {
	font-size: 14.69px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Резюме на поръчката */
.cart-summary {
	background: white;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	height: fit-content;
	position: sticky;
	top: 2rem;
}

.summary-header {
	padding: 1.5rem;
	background: var(--bg-light);
	border-bottom: 1px solid var(--border-color);
}

.summary-header h3 {
	font-size: 21.22px;
	color: var(--dark-color);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.summary-content {
	padding: 1.5rem;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.summary-label {
	font-size: 16.32px;
	color: var(--text-color);
}

.summary-value {
	font-size: 16.32px;
	font-weight: 600;
	color: black;
}

.free-shipping {
	color: var(--success-color);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.discount-row {
	color: var(--success-color);
}

.discount-value {
	color: var(--success-color);
}

.summary-divider {
	height: 1px;
	background: var(--border-color);
	margin: 1.5rem 0;
}

.total-row {
	border-top: 2px solid var(--border-color);
	padding-top: 1rem;
	margin-top: 1rem;
}

.total-row .summary-label {
	font-size: 19.58px;
	font-weight: 700;
}

.total-row .summary-value {
	font-size: 24.48px;
	font-weight: 700;
	color: #dc3545;
}

.summary-secondary {
	text-align: right;
	margin-top: 0.5rem;
}

.secondary-price {
	font-size: 14.69px;
	color: var(--text-muted);
}

.summary-actions {
	padding: 1.5rem;
	border-top: 1px solid var(--border-color);
	background: var(--bg-light);
}

.btn-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 1rem;
	background: var(--primary-color);
	color: black;
	text-decoration: none;
	border-radius: var(--border-radius);
	font-size: 16px;
	font-weight: 600;
	transition: var(--transition);
	margin-bottom: 0.5rem;
}

.btn-checkout:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
	color: black;
}

.checkout-benefits {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.benefit-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 14.69px;
	color: var(--text-muted);
}

.benefit-item i {
	color: var(--success-color);
}

/* Препоръчани продукти */
.recommended-products {
	margin-top: 5rem;
	margin-bottom: 5rem;
}

.section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.section-header h2 {
	font-size: 32.64px;
	color: var(--dark-color);
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.section-header p {
	color: var(--text-muted);
	font-size: 17.95px;
}

.section-header i {
	color: #ff6b6b;
}

.products-slider {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.products-slider.single-product {
	grid-template-columns: 1fr;
	max-width: 300px;
	margin: 0 auto;
}

.products-slider.two-products {
	grid-template-columns: repeat(2, 1fr);
	max-width: 600px;
	margin: 0 auto;
}

.products-slider.three-products {
	grid-template-columns: repeat(3, 1fr);
	max-width: 900px;
	margin: 0 auto;
}

.products-slider .product-card {
	background: var(--bg-white, #fff);
	border-radius: var(--border-radius, 15px);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.products-slider .product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Изображение на продукта */
.products-slider .product-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--bg-light, #f8f9fa);
}

.products-slider .image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.products-slider .main-image,
.products-slider .hover-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.3s ease;
}

.products-slider .hover-image {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

/* Hover ефект само ако има втора снимка */
.products-slider .product-card:hover .hover-image {
	opacity: 1;
}

.products-slider .product-card:hover .main-image {
	opacity: 0;
}

/* Ако няма втора снимка, не правим hover ефект */
.products-slider .product-card:not(.has-hover-image):hover .main-image {
	opacity: 1;
}

/* Действия за продукта в мрежа - позиционирани в снимката */
.products-slider .product-actions.grid-only {
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 5;
}

.products-slider .grid-actions {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.3s ease;
	justify-content: center;
}

.products-slider .product-card:hover .grid-actions {
	opacity: 1;
	transform: translateY(0);
}

.products-slider .action-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.95);
	color: var(--text-color, #333);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.products-slider .action-btn:hover {
	background: var(--primary-color, #fcb900);
	color: white;
	transform: scale(1.1);
}

.products-slider .action-btn.active {
	background: var(--primary-color, #fcb900);
	color: white;
}

.products-slider .add-to-cart {
	background: var(--primary-color, #fcb900);
	color: white;
}

.products-slider .add-to-cart:hover {
	background: var(--primary-hover, #e6a600);
	transform: scale(1.1);
}

/* Информация за продукта */
.products-slider .product-info {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.products-slider .product-title {
	margin: 0 0 1rem;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	flex-grow: 1;
}

.products-slider .product-title a {
	color: var(--text-color, #333);
	text-decoration: none;
	transition: all 0.3s ease;
}

.products-slider .product-title a:hover {
	color: var(--primary-color, #fcb900);
	text-decoration: none;
}

.products-slider .product-price {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.products-slider .price-main {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.products-slider .old-price {
	color: var(--text-muted, #999);
	text-decoration: line-through;
	font-size: 14px;
	order: -1; /* Показваме я първа (отгоре) */
}

.products-slider .current-price, 
.products-slider .price-secondary {
	color: #dc3545;
	font-size: 18px;
	font-weight: 700;
}

/* Мобилен бутон за количка в grid view */
.products-slider .mobile-cart-button {
	display: none; /* Скрит по подразбиране */
	margin-top: 1rem;
}

.products-slider .mobile-add-to-cart {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--primary-color, #fcb900);
	color: black;
	border: none;
	border-radius: var(--border-radius-small, 8px);
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	cursor: pointer;
	min-height: 36px;
}

.products-slider .mobile-add-to-cart:hover:not(:disabled) {
	background: var(--primary-hover, #e6a600);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.products-slider .mobile-add-to-cart:disabled {
	background: var(--text-light, #6c757d);
	color: var(--text-muted, #999);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.products-slider.single-product {
	grid-template-columns: 1fr;
	max-width: 400px;
	margin: 0 auto;
}

.products-slider.two-products {
	grid-template-columns: repeat(2, 1fr);
	max-width: 800px;
	margin: 0 auto;
}

.products-slider.three-products {
	grid-template-columns: repeat(3, 1fr);
	max-width: 1200px;
	margin: 0 auto;
}

.products-slider.four-products {
	grid-template-columns: repeat(4, 1fr);
	max-width: 1400px;
	margin: 0 auto;
}

.cart-products input::-webkit-outer-spin-button,
.cart-products input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.cart-products input[type=number] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard */
}

/* Responsive дизайн */
@media (max-width: 992px) {
	.cart-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.cart-summary {
		position: static;
		order: -1;
	}
	
	.cart-item {
		grid-template-columns: 100px 1fr 120px 100px;
		gap: 1rem;
		padding: 1rem;
	}
	
	.item-image img {
		height: 100px;
	}
	
	.process-steps {
		gap: 1rem;
	}
	
	.step-icon {
		width: 40px;
		height: 40px;
		font-size: 16.32px;
	}
}

@media (max-width: 768px) {
	/* Разменяме тотала и продуктите - продуктите да са по-горе */
	.cart-layout {
		display: flex;
		flex-direction: column;
	}
	
	.cart-products {
		order: 1;
	}
	
	.cart-summary {
		order: 2;
		position: static;
	}
	
	.cart-title {
		font-size: 32.64px;
		flex-direction: column;
		gap: 0.5rem;
	}
	
	.cart-stats {
		flex-direction: column;
		gap: 1rem;
	}
	
	/* Новия layout за продуктите на мобилна */
	.cart-item {
		display: grid;
		grid-template-columns: 100px 1fr;
		grid-template-rows: auto auto;
		gap: 1rem;
		padding: 1rem;
		text-align: left;
		position: relative;
		align-items: start;
	}
	
	/* Снимката вляво - обхваща всички редове */
	.item-image {
		grid-row: 1 / 4;
		grid-column: 1;
		align-self: start;
	}
	
	.item-image img {
		width: 100%;
		height: 120px;
		object-fit: cover;
		border-radius: var(--border-radius);
	}
	
	/* Информацията вдясно */
	.item-info {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding-right: 2.5rem; /* Място за бутона за премахване */
	}
	
	.item-header {
		flex-direction: column;
		gap: 0.25rem;
		margin-bottom: 0;
	}
	
	.item-title {
		margin: 0;
		font-size: 16px;
		line-height: 1.3;
	}
	
	.item-meta {
		align-items: flex-start;
		margin-bottom: 0.5rem;
		gap: 0.25rem;
	}
	
	.meta-item {
		font-size: 13px;
	}
	
	.item-price {
		margin-bottom: 0;
		display: none;
	}
	
	.price-bgn {
		font-size: 17px;
	}
	
	.price-eur {
		font-size: 13px;
	}
	
	/* Долен ред с количество и тотал едно под друго */
	/* Използваме grid структура с две колони - снимката вляво и информацията вдясно */
	.cart-item {
		grid-template-columns: 100px 1fr;
		grid-template-areas: 
			"image info"
			"image quantity"
			"image total";
		position: relative;
		grid-template-rows: auto auto auto;
		gap: 1rem;
		padding: 1rem;
		text-align: left;
		align-items: start;
	}
	
	/* Количеството - втори ред, втора колона */
	.item-quantity {
		grid-area: quantity;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		position: relative;
		z-index: 2;
		width: fit-content;
		margin-top: 0.5rem;
	}
	
	.quantity-controls {
		justify-content: flex-start;
	}
	
	/* Тоталът - трети ред, втора колона */
	.item-total {
		grid-area: total;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		position: relative;
		z-index: 2;
		width: fit-content;
		text-align: left;
		margin-top: 0.5rem;
	}
	
	.total-amount {
		font-size: 19px;
	}
	
	.total-secondary {
		font-size: 13px;
	}
	
	/* Бутон за премахване в горния десен ъгъл */
	.item-remove {
		position: absolute;
		right: 10px;
		top: 10px;
		z-index: 10;
		background: rgba(255, 255, 255, 0.9);
		border-radius: 50%;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
		padding: 0;
	}
	
	.process-steps {
		flex-direction: column;
		gap: 1rem;
	}
	
	.step {
		flex-direction: column;
		text-align: center;
	}
	
	.products-slider {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 1rem;
	}
	
	.empty-cart-actions {
		flex-direction: column;
		align-items: center;
	}

	/* Продуктови слайдери */
	.products-slider .mobile-cart-button {
		display: block;
	}
	
	/* Скриваме hover бутоните (за сравнение и любими) в grid view на мобилни */
	.products-slider .product-actions.grid-only .grid-actions .compare-btn,
	.products-slider .product-actions.grid-only .grid-actions .wishlist-btn {
		display: none !important;
	}

	.products-slider {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	
	.products-slider.two-products,
	.products-slider.three-products,
	.products-slider.four-products {
		grid-template-columns: repeat(2, 1fr);
	}
	.products-slider .product-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.cart-container {
		padding: 0 10px;
	}
	
	.modern-cart-hero {
		padding: 1.5rem 0;
	}
	
	.cart-title {
		font-size: 29.38px;
	}
	
	.cart-header {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
	
	.cart-item {
		padding: 0.75rem;
	}
	
	.item-image img {
		height: 80px;
	}
	
	.summary-content {
		padding: 1rem;
	}
	
	.summary-actions {
		padding: 1rem;
	}
	
	.products-slider.two-products,
	.products-slider.three-products,
	.products-slider.four-products {
		grid-template-columns: 1fr;
	}
}

/* Анимации */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cart-item {
	animation: fadeIn 0.5s ease forwards;
}

.cart-summary {
	animation: slideInUp 0.6s ease forwards;
}

/* Скролбар стилове */
.products-slider::-webkit-scrollbar {
	height: 6px;
}

.products-slider::-webkit-scrollbar-track {
	background: var(--bg-light);
	border-radius: 3px;
}

.products-slider::-webkit-scrollbar-thumb {
	background: var(--text-muted);
	border-radius: 3px;
}

.products-slider::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

/* Фокус стилове за достъпност */
.btn-primary:focus,
.btn-secondary:focus,
.btn-checkout:focus,
.action-btn:focus,
.qty-btn:focus,
.form-control:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Responsive дизайн */
@media (max-width: 1024px) and (min-width: 769px) {
	/* Таблет - 3 колони за категории и продукти */
	.categories-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
	
	.products-slider {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
	
	.products-slider.two-products,
	.products-slider.three-products,
	.products-slider.four-products {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Print стилове */
@media print {
	.modern-cart-hero,
	.checkout-process,
	.cart-actions,
	.promocode-section,
	.summary-actions,
	.recommended-products {
		display: none;
	}
	
	.cart-layout {
		grid-template-columns: 1fr;
	}
	
	.cart-item {
		grid-template-columns: 80px 1fr 100px 80px;
		border: 1px solid #ccc;
		break-inside: avoid;
	}
}

.btn-cart-related {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.btn-cart-related:hover {
    border-color: #fcb900;
    color: #fcb900;
}
