/**
 * Style dla szablonu koszyka WooCommerce
 * Odpowiedniki klas Tailwind użytych w szablonie
 */

/* Font Montserrat - musi być na początku przed wszystkimi regułami */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Kolory brandowe */
:root {
	--brand-brown: #a88466;
	--brand-brown-light: #eee3d9;
	--brand-gray-100: #f7f7f7;
	--brand-gray-200: #ebebeb;
	--brand-gray-300: #e0e0e0;
	--brand-gray-400: #999897;
	--brand-gray-500: #403e3c;
	--brand-gray-600: #1d1c1a;
	--brand-green: #21975a;
	--brand-green-light: rgba(70, 186, 126, 0.2);
	--brand-black: #1d1c1a;
}

/* ============================================
   PANIER WOOCOMMERCE NATIF — habillage marque
   (cart.php/cart-empty.php custom retirés,
   on repart du template WooCommerce par défaut,
   uniquement du skin CSS ici, aucune logique)
   ============================================ */

.woocommerce {
	font-family: 'Montserrat', sans-serif;
	color: var(--brand-black);
	max-width: 1216px;
	margin: 0 auto;
	padding: 32px 16px;
}

.woocommerce::after {
	content: "";
	display: table;
	clear: both;
}

.woocommerce a {
	color: var(--brand-brown);
}

.woocommerce-cart-form .yokaba-qty__btn{
	padding: inherit;
}

/* Notices WooCommerce (erreurs, succès, info) */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	list-style: none;
	background: var(--brand-gray-100);
	border-left: 3px solid var(--brand-brown);
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 14px;
}

.woocommerce-error {
	border-left-color: #dc2626;
}

.woocommerce-message .button,
.woocommerce-error .button {
	float: right;
	background: var(--brand-brown);
	color: #fff;
	padding: 6px 14px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

/* Panier vide */
.woocommerce .cart-empty {
	background: var(--brand-gray-100);
	border-left: 3px solid var(--brand-brown);
	padding: 16px;
	font-size: 15px;
}

.woocommerce .return-to-shop .button {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 24px;
	background: var(--brand-brown);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.woocommerce .return-to-shop .button:hover {
	background: #926f50;
}

/* Table panier */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 32px;
}

.woocommerce table.shop_table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--brand-gray-400);
	font-weight: 600;
	padding: 12px 8px;
	border-bottom: 1px solid var(--brand-gray-200);
}

.woocommerce table.shop_table td {
	padding: 16px 8px;
	border-bottom: 1px solid var(--brand-gray-200);
	vertical-align: middle;
	font-size: 14px;
}

.woocommerce table.cart td.product-remove {
	width: 32px;
	text-align: center;
}

.woocommerce table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #ff2d57 !important;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	background: transparent;
	transition: background-color 0.2s ease;
}

.woocommerce table.cart td.product-remove a.remove:hover {
	background: rgba(255, 45, 87, 0.1);
}

.woocommerce table.cart td.product-thumbnail {
	width: 80px;
}

.woocommerce table.cart td.product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.woocommerce table.cart td.product-name a {
	color: var(--brand-black);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce table.cart td.product-name a:hover {
	color: var(--brand-brown);
}

.woocommerce table.cart td.product-name dl.variation {
	font-size: 12px;
	color: var(--brand-gray-400);
	margin: 6px 0 0;
}

.woocommerce table.cart td.product-price {
	color: var(--brand-gray-400);
	white-space: nowrap;
}

.woocommerce table.cart td.product-subtotal {
	font-weight: 600;
	white-space: nowrap;
}

/* Quantité */
.woocommerce table.cart td.product-quantity .quantity {
	display: inline-flex;
}

.woocommerce table.cart td.product-quantity .qty {
	width: 60px;
	padding: 8px;
	border: 1px solid var(--brand-gray-200);
	text-align: center;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce table.cart td.product-quantity .qty::-webkit-outer-spin-button,
.woocommerce table.cart td.product-quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce table.cart td.product-quantity .qty:focus {
	outline: none;
	border-color: var(--brand-brown);
}

/* Ligne actions : coupon + mise à jour panier */
.woocommerce table.cart .actions {
	padding-top: 20px;
}

.woocommerce table.cart .coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 16px;
}

.woocommerce table.cart .coupon label {
	display: none;
}

.woocommerce table.cart .coupon #coupon_code {
	padding: 10px 12px;
	border: 1px solid var(--brand-gray-200);
	font-size: 14px;
	min-width: 180px;
}

.woocommerce table.cart .button,
.woocommerce table.cart input.button {
	padding: 10px 18px;
	background: transparent;
	border: 1px solid var(--brand-gray-200);
	color: var(--brand-brown);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s ease;
}

.woocommerce table.cart .button:hover,
.woocommerce table.cart input.button:hover {
	background: var(--brand-gray-100);
}

.woocommerce table.cart .button[name="update_cart"] {
	float: right;
}

/* Colonnes / totaux + cross-sells */
.woocommerce .cart-collaterals {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-top: 40px;
}

.woocommerce .cart-collaterals .cross-sells h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.woocommerce .cart-collaterals .cross-sells ul.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce .cart-collaterals .cross-sells ul.products li.product {
	border: 1px solid var(--brand-gray-200);
	padding: 16px;
}

.woocommerce .cart-collaterals .cross-sells ul.products li.product img {
	width: 100%;
	height: auto;
	margin-bottom: 8px;
}

.woocommerce .cart-collaterals .cross-sells ul.products li.product a.button {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 14px;
	background: var(--brand-brown);
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
}

.woocommerce .cart-collaterals .cart_totals {
	width: 100%;
	background: var(--brand-gray-100);
	padding: 32px;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 24px;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
	margin: 0 0 28px;
	background: transparent;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	border-bottom: 1px solid var(--brand-gray-200);
	padding: 16px 20px;
	text-align: right;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th {
	text-align: left;
	text-transform: none;
	font-size: 14px;
	color: var(--brand-black);
}

.woocommerce .cart-collaterals .cart_totals tr.order-total th,
.woocommerce .cart-collaterals .cart_totals tr.order-total td {
	font-size: 18px;
	font-weight: 700;
	border-bottom: none;
}

.woocommerce .cart-collaterals .cart_totals .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
}

.woocommerce .cart-collaterals .cart_totals .woocommerce-remove-coupon {
	margin-left: 8px;
	color: #ff2d57 !important;
	font-size: 12px;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout {
	margin-top: 12px;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 16px;
	background: var(--brand-brown);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: background-color 0.2s ease;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
	background: #fff;
	color: #fff;
}

/* Responsive : la version mobile "shop_table_responsive" de WooCommerce
   empile déjà les cellules via data-title (CSS core WooCommerce). On ajuste
   juste l'espacement et les couleurs pour rester cohérent avec le reste. */
@media (max-width: 767px) {
	.woocommerce table.cart .coupon {
		display: flex;
		margin: 0 0 12px;
	}

	.woocommerce table.cart .button[name="update_cart"] {
		float: none;
		width: 100%;
	}
}

/* ============================================
   MODAL "DODANO DO KOSZYKA"
   ============================================ */

.yokaba-added-to-cart-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 999998 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.yokaba-added-to-cart-modal.yokaba-added-to-cart-modal-active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

/* Ukryj przyciski "Zobacz koszyk" gdy modal jest otwarty - JavaScript będzie dodawał klasę */
body.yokaba-modal-open .added_to_cart,
body.yokaba-modal-open .wc-forward,
body.yokaba-modal-open a.added_to_cart {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

.yokaba-added-to-cart-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

.yokaba-added-to-cart-modal-content {
	position: fixed !important;
	top: 0 !important;
	right: -500px !important;
	width: 500px !important;
	max-width: 90vw !important;
	height: 100vh !important;
	background-color: white !important;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
	overflow-y: auto !important;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: column !important;
}

.yokaba-added-to-cart-modal.yokaba-added-to-cart-modal-active .yokaba-added-to-cart-modal-content {
	right: 0 !important;
}

.yokaba-added-to-cart-modal-close {
	position: absolute;
	top: 30px;
	right: 24px;
	width: 32px;
	height: 32px;
	border: none !important;
	padding: 0 !important;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	color: var(--brand-gray-600);
	transition: color 0.2s ease;
}

.yokaba-added-to-cart-modal-close:hover {
	color: var(--brand-brown);
}

.yokaba-added-to-cart-header {
	padding: 24px;
}

.yokaba-added-to-cart-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 28px !important;
	color: #000000 !important;
	margin: 0;
}

.yokaba-added-to-cart-product {
	padding: 16px;
	display: flex;
	gap: 16px;
	background-color: rgba(250, 250, 250, 1);
	margin-inline: 24px;
}

.yokaba-added-to-cart-product-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
}

.yokaba-added-to-cart-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2px;
}

.yokaba-added-to-cart-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: flex-start;
}

.yokaba-added-to-cart-product-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--brand-gray-600);
	margin: 0;
}

.yokaba-added-to-cart-product-description {
	font-size: 12px;
	line-height: 18px;
	color: var(--brand-gray-400);
	margin: 0;
}

.yokaba-added-to-cart-product-volume {
	font-size: 12px;
	line-height: 18px;
	color: var(--brand-gray-400);
	margin: 0;
}

.yokaba-added-to-cart-product-price {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--e-global-color-accent);
	margin-top: 4px;
	margin-bottom: 0;
}

.yokaba-added-to-cart-actions {
	padding: 24px 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-bottom: 1px solid var(--brand-gray-200);
}

.yokaba-added-to-cart-btn {
	width: 100%;
	padding: 14px 24px;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid;
}

.yokaba-added-to-cart-btn-primary {
	background-color: var(--brand-brown);
	color: white;
	border-color: var(--brand-brown);
}

.yokaba-added-to-cart-btn-primary:hover {
	background-color: #926f50;
	color: white !important;
	border-color: #926f50;
}

.yokaba-added-to-cart-btn-secondary {
	background-color: transparent;
	color: var(--brand-brown);
	border-color: var(--brand-brown);
}

.yokaba-added-to-cart-btn-secondary:hover {
	background-color: var(--brand-gray-100);
}

.yokaba-added-to-cart-recommended {
	padding: 24px 32px;
}

.yokaba-added-to-cart-actions .yokaba-added-to-cart-btn {
	border: 1px solid #e0e0e0;
	color: #fff !important;

	font-weight: 700;
	transition: all 0.3s ease !important;
}

.yokaba-added-to-cart-btn.yokaba-added-to-cart-btn-secondary {
	color: #000 !important;
	background: none !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 2px !important;
}

.yokaba-added-to-cart-btn.yokaba-added-to-cart-btn-secondary:hover {
	background: var(--e-global-color-de6d297) !important;
}

.yokaba-added-to-cart-actions .yokaba-added-to-cart-btn:hover {
	color: #fff;
	background: #8d6d54;
	border-color: #8d6d54;
}

.yokaba-added-to-cart-recommended-title {
	font-size: 14px !important;
	font-weight: 600;
	line-height: 20px !important;
	color: #000000 !important;
	margin: 0 0 4px;
}

.yokaba-added-to-cart-recommended-subtitle {
	font-size: 12px !important;
	line-height: 18px;
	color: #999897 !important;
	margin: 0 0 16px !important;
}

.yokaba-added-to-cart-recommended-slider {
	position: relative;
}

.yokaba-added-to-cart-swiper {
	overflow: hidden;
	padding-bottom: 8px;
}

.yokaba-added-to-cart-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.yokaba-added-to-cart-swiper .swiper-slide {
	height: auto;
	display: flex;
	align-items: stretch;
	max-width: 230px !important;
	width: 100% !important;
}

.yokaba-added-to-cart-recommended .yokaba-product-card {
	width: 100% !important;
	max-height: max-content;
}

.yokaba-added-to-cart-swiper .swiper-slide .yokaba-product-card-content {
	display: flex;
	flex-direction: column;
	width: 100% !important;
}

/* Style dla obrazków produktów w modalu "Dodano do koszyka" */
.yokaba-added-to-cart-recommended .yokaba-product-card img {
	max-width: 150px;
	width: 100%;
	height: auto;
	display: block;
}

.yokaba-added-to-cart-nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 16px;
}

.yokaba-added-to-cart-nav-btn {
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	border-radius: 6px;
	border: 1px solid var(--brand-gray-200) !important;
	background-color: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.yokaba-added-to-cart-nav-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid var(--brand-gray-500);
	border-right: 2px solid var(--brand-gray-500);
	transform: translate(-50%, -50%) rotate(45deg);
}

.yokaba-added-to-cart-nav-btn--prev::after {
	transform: translate(-50%, -50%) rotate(-135deg);
}

.yokaba-added-to-cart-nav-btn--next::after {
	transform: translate(-50%, -50%) rotate(45deg);
}

.yokaba-added-to-cart-nav-btn:hover {
	background-color: var(--e-global-color-de6d297) !important;
}

.yokaba-added-to-cart-nav-btn:disabled,
.yokaba-added-to-cart-nav-btn.swiper-button-disabled {
	opacity: 0.4;
}

/* ============================================
   MODAL PUSTEGO KOSZYKA (POPUP)
   ============================================ */

/* Wrapper dla ikony koszyka */
.yokaba-cart-icon-wrapper {
	position: relative;
	display: inline-block;
}

/* CSS Hover - pokaż popup gdy mysz jest nad wrapperem (tylko desktop) */
@media (min-width: 769px) {
	.yokaba-cart-icon-wrapper:hover .yokaba-cart-popup {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.yokaba-empty-cart-popup {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 10px;
	z-index: 999997;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.yokaba-empty-cart-popup.yokaba-empty-cart-popup-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.yokaba-empty-cart-popup-content {
	background-color: white;
	border: 1px solid var(--brand-gray-200);
	border-radius: 8px;
	padding: 32px;
	width: 320px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.yokaba-empty-cart-popup-title {
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--brand-gray-600);
	margin: 0;
}

.yokaba-empty-cart-popup-illustration {
	width: 120px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 8px auto;
}

.yokaba-empty-cart-popup-illustration svg {
	width: 100%;
	height: 100%;
}

.yokaba-empty-cart-popup-message {
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-gray-600);
	margin: 0;
}

.yokaba-empty-cart-popup-button {
	width: 100%;
	padding: 14px 24px;
	background-color: var(--brand-brown);
	color: white;
	border-radius: 0;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.yokaba-empty-cart-popup-button:hover {
	background-color: #926f50;
	color: #fff !important;
}

/* ============================================
   POPUP KOSZYKA Z PRODUKTAMI
   ============================================ */

.yokaba-cart-popup {
	/* Dodaj padding-top aby stworzyć niewidoczny obszar łączący z ikoną */
	padding-top: 10px;
	margin-top: -10px;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-90%);
	z-index: 999997;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	display: none;
}

.yokaba-cart-popup.yokaba-cart-popup-active {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

/* Na urządzeniach mobilnych ukryj popup i użyj sidebar */
@media (max-width: 768px) {
	.yokaba-cart-popup {
		left: 0;
		position: fixed;
		top: 89px;
		bottom: 0;
		right: 0;
		transform: unset;
		height: 100dvh;
		background: white;
		display: none;
		padding: 0;
		width: 100dvw;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.yokaba-cart-popup.yokaba-cart-popup-active {
		display: flex;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}


.yokaba-cart-popup-content {
	background-color: white;
	border: 1px solid var(--brand-gray-200);
	border-radius: 0 !important;
	width: 426px;
}

.yokaba-cart-popup-content .yokaba-price-main {
	font-size: 16px !important;
}

.yokaba-cart-popup-content .yokaba-price-cents {
	font-size: 12px !important;
}

/* Gdy popup pokazuje pusty koszyk, zmień szerokość i wyśrodkuj zawartość */
.yokaba-cart-popup-content:has(.yokaba-empty-cart-popup-illustration) {
	max-width: 426px !important;
	width:max-content !important;
	display: flex;
	flex-direction: column;
	text-align: center;
	gap: 16px;
	padding: 16px;
}

.yokaba-cart-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid var(--brand-gray-200);
}

.yokaba-cart-popup-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 20px !important;
	text-align: left !important;
	letter-spacing: -0.3px;
	color: var(--brand-gray-600);
	margin: 0;
}

.yokaba-cart-popup-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--brand-brown);
	color: white;
	border-radius: 50%;
	font-size: 10px;
	line-height: 100%;
	width: 21px;
	height: 21px;
	font-weight: 600;
}

.yokaba-cart-popup-products {
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: 20px;
}

.yokaba-cart-popup-item {
	display: flex;
	gap: 12px;
	padding: 12px 15px;
	border-bottom: 1px solid var(--brand-gray-100);
}

.yokaba-cart-popup-item:last-child {
	border-bottom: none;
}

.yokaba-cart-popup-item-image {
	flex-shrink: 0;
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 4px;
}

.yokaba-cart-popup-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yokaba-cart-popup-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yokaba-cart-popup-item-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: -0.3px;
	color: var(--brand-gray-600);
	margin: 0;
}

.yokaba-cart-popup-item-name a {
	color: inherit;
	text-decoration: none;
}

.yokaba-cart-popup-item-name a:hover {
	color: var(--brand-brown);
}

.yokaba-cart-popup-item-meta {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.yokaba-cart-popup-item-price {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--e-global-color-accent);
}

.yokaba-cart-popup-summary {
	margin-top: 20px;
	border-top: 1px solid var(--brand-gray-200);
	border-bottom: 1px solid var(--brand-gray-200);
}

.yokaba-cart-popup-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 400;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: -0.3px;
	padding: 12px 16px;
	color: var(--brand-gray-600);
}

.yokaba-cart-popup-summary-row:not(:last-child) {
	padding-bottom: 0;
}

.yokaba-cart-popup-summary-row:not(:first-child) {
	padding-top: 6px;
}

/* Użyj tych samych klas co w normalnym koszyku */
.yokaba-cart-popup-summary .yokaba-order-summary-total-box {
	background: transparent;
	padding: 10px 16px;
	margin-top: 12px;
	font-weight: 600;
	font-size: 12px;
	line-height: 18px;
}

.yokaba-cart-popup-action {
	padding: 16px;
	background: #fafafa;
}

.yokaba-cart-popup-summary .yokaba-order-summary-total-label {
	font-size: 14px;
	font-weight: 600;
}

.yokaba-cart-popup-summary .yokaba-order-summary-total-price {
	font-weight: 600;
	text-align: right;
}

.yokaba-cart-popup-summary .yokaba-order-summary-total-price .price-xl {
	font-size: 20px;
}

.yokaba-cart-popup-summary .yokaba-order-summary-total-price .price-sm {
	font-size: 14px;
}

.yokaba-cart-popup-gift-progress {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--brand-gray-200);
}

.yokaba-cart-popup-gift-text {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	color: var(--brand-gray-600);
}

.yokaba-cart-popup-gift-icon {
	font-size: 18px;
	margin-left: 8px;
}

.yokaba-cart-popup-progress-bar {
	width: 100%;
	height: 4px;
	background-color: #f0f0f0;
	overflow: hidden;
}

.yokaba-cart-popup-progress-fill {
	height: 100%;
	background-color: #ff2d57;
	transition: width 0.3s ease;
}

.yokaba-cart-popup-button {
	width: 100%;
	padding: 14px 24px;
	background-color: var(--brand-brown);
	color: white;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease;
	margin-top: 20px;
	display: block;
}

.yokaba-cart-popup-button:hover {
	background-color: var(--e-global-color-907d747);
	color: white !important;
}

.yokaba-cart-popup-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--brand-gray-600);
	font-size: 14px;
}

/* ============================================
   BADGE Z LICZBĄ PRODUKTÓW W KOSZYKU
   ============================================ */

.yokaba-cart-count-badge {
	position: absolute !important;
	bottom: 2px !important;
	right: -5px !important;
	padding: 5px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #8b6f47 !important;
	background-color: var(--brand-brown, #8b6f47) !important;
	color: white !important;
	border-radius: 999px !important;
	font-size: 9px !important;
	font-weight: 600 !important;
	text-align: center !important;
	z-index: 10 !important;
	white-space: nowrap !important;
	min-width: 18px !important;
	height: 18px !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}

/* Badge automatycznie dostosowuje się do szerokości tekstu */
.yokaba-cart-count-badge[data-count] {
	min-width: auto !important;
	padding: 0 7px !important;
}

/* Cursor pointer dla ikony koszyka */
#menu-cart,
#menu-cart .elementor-icon-wrapper,
.elementor-widget-icon[data-id*='menu-cart'],
.elementor-widget-icon[data-id*='menu-cart'] .elementor-icon-wrapper,
.elementor-icon-wrapper[data-id*='menu-cart'] {
	cursor: pointer !important;
}

/* ============================================
   PASEK BOCZNY Z PRODUKTAMI Z KOSZYKA
   ============================================ */

.yokaba-cart-sidebar-modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 999998 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.yokaba-cart-sidebar-modal.yokaba-cart-sidebar-modal-active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.yokaba-cart-sidebar-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

.yokaba-cart-sidebar-modal-content {
	position: fixed !important;
	top: 0 !important;
	right: -500px !important;
	width: 500px !important;
	max-width: 90vw !important;
	height: 100vh !important;
	background-color: white !important;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
	overflow-y: auto !important;
	transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: column !important;
}

.yokaba-cart-sidebar-modal.yokaba-cart-sidebar-modal-active .yokaba-cart-sidebar-modal-content {
	right: 0 !important;
}

.yokaba-cart-sidebar-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	border: none !important;
	background: transparent;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-gray-600);
	transition: color 0.2s ease;
}

.yokaba-cart-sidebar-modal-close:hover {
	color: var(--brand-gray-900);
}

.yokaba-cart-sidebar-header {
	padding: 24px 24px 16px;
	border-bottom: 1px solid var(--brand-gray-200);
}

.yokaba-cart-sidebar-title {
	font-size: 20px !important;
	font-weight: 600;
	line-height: 28px !important;
	color: var(--brand-gray-900);
	margin: 0 0 4px 0;
}

.yokaba-cart-sidebar-count {
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-gray-500);
}

.yokaba-cart-sidebar-items {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px;
}

.yokaba-cart-sidebar-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--brand-gray-100);
}

.yokaba-cart-sidebar-item:last-child {
	border-bottom: none;
}

.yokaba-cart-sidebar-item-image {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.yokaba-cart-sidebar-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yokaba-cart-sidebar-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yokaba-cart-sidebar-item-name {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--brand-gray-900);
	margin: 0;
}

.yokaba-cart-sidebar-item-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.yokaba-cart-sidebar-item-name a:hover {
	color: var(--brand-brown);
}

.yokaba-cart-sidebar-item-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	line-height: 20px;
	color: var(--brand-gray-600);
}

.yokaba-cart-sidebar-item-price {
	font-weight: 600;
	color: var(--brand-gray-900);
}

.yokaba-cart-sidebar-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--brand-gray-500);
	font-size: 16px;
}

.yokaba-cart-sidebar-footer {
	padding: 24px;
	border-top: 1px solid var(--brand-gray-200);
	background-color: white;
}

.yokaba-cart-sidebar-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--brand-gray-200);
}

.yokaba-cart-sidebar-total-label {
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	color: var(--brand-gray-900);
}

.yokaba-cart-sidebar-total-price {
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	color: var(--brand-gray-900);
}

.yokaba-cart-sidebar-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.yokaba-cart-sidebar-button {
	width: 100%;
	padding: 14px 24px;
	background-color: var(--brand-brown);
	color: white;
	border-radius: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	display: block;
	transition: background-color 0.2s ease;
	border: none;
	cursor: pointer;
}

.yokaba-cart-sidebar-button:hover {
	background-color: #926f50;
	color: white;
}

.yokaba-cart-sidebar-button-primary {
	background-color: var(--brand-brown);
	color: white;
}

.yokaba-cart-sidebar-button-primary:hover {
	background-color: #926f50;
	color: white;
}

.yokaba-cart-sidebar-button-secondary {
	background-color: transparent;
	color: var(--brand-brown);
	border: 1px solid var(--brand-brown);
}

.yokaba-cart-sidebar-button-secondary:hover {
	background-color: var(--brand-brown);
	color: white;
}

/* Podsumowanie zamówienia w modalu koszyka */
.yokaba-cart-sidebar-summary {
	margin-top: 20px !important;
	padding-top: 20px !important;
	border-top: 1px solid #e5e5e5 !important;
}

.yokaba-cart-sidebar-summary-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 12px !important;
	font-size: 14px !important;
	color: #333 !important;
}

.yokaba-cart-sidebar-summary-total {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: 16px !important;
	padding-top: 16px !important;
	border-top: 1px solid #e5e5e5 !important;
	font-weight: 600 !important;
	font-size: 16px !important;
}

.yokaba-cart-sidebar-summary-total .yokaba-cart-sidebar-total-price {
	font-size: 18px !important;
	font-weight: 700 !important;
}

/* Kontrolki ilości produktów */
.yokaba-cart-sidebar-item-quantity-controls {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

/* Style dla przycisków ilości w popup - używają tych samych klas co na stronie koszyka */
.yokaba-cart-popup .yokaba-quantity-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.yokaba-cart-popup .yokaba-quantity-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	color: var(--brand-brown);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto !important; /* Upewnij się, że przyciski są klikalne */
	position: relative;
}

.yokaba-cart-popup .yokaba-quantity-btn svg {
	width: 23px;
	height: 23px;
	pointer-events: none !important; /* SVG nie przechwytuje kliknięć */
}

/* Efekt hover w popup - pokaż ikonę kosza po najechaniu na minus, gdy ilość = 1 */
.yokaba-cart-popup .yokaba-quantity-minus.quantity-one:hover svg {
	opacity: 0;
}

.yokaba-cart-popup .yokaba-quantity-minus.quantity-one:hover::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg width='23' height='26' viewBox='0 0 23 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6H22M19 6V21C19 22.1046 18.1046 23 17 23H6C4.89543 23 4 22.1046 4 21V6M7 6V4C7 2.89543 7.89543 2 9 2H14C15.1046 2 16 2.89543 16 4V6M10 11V18M13 11V18' stroke='%23FF2D57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.yokaba-cart-popup .yokaba-quantity-input {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px !important;
	padding: 0 !important;
	text-align: center;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 18px !important;
	border: none !important;
	background: transparent;
	pointer-events: none;
}

/* Pasek postępu do upominku */
.yokaba-cart-sidebar-gift-progress {
	margin-top: 20px !important;
	padding-top: 20px !important;
	border-top: 1px solid #e5e5e5 !important;
}

.yokaba-cart-sidebar-gift-text {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-bottom: 12px !important;
	font-size: 14px !important;
	color: #333 !important;
}

.yokaba-cart-sidebar-gift-icon {
	font-size: 18px !important;
	margin-left: 8px !important;
}

.yokaba-cart-sidebar-progress-bar {
	width: 100% !important;
	height: 8px !important;
	background-color: #f0f0f0 !important;
	border-radius: 4px !important;
	overflow: hidden !important;
}

.yokaba-cart-sidebar-progress-fill {
	height: 100% !important;
	background-color: #dc2626 !important;
	transition: width 0.3s ease !important;
}

/* Lista produktów w modalu */
.yokaba-cart-sidebar-products-list {
	max-height: 400px !important;
	overflow-y: auto !important;
	margin-bottom: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
	.yokaba-added-to-cart-modal-content {
		width: 100vw;
		right: -100vw;
	}

	.yokaba-empty-cart-popup-content {
		width: 280px;
		padding: 24px;
	}

	.yokaba-cart-sidebar-modal-content {
		width: 100vw;
		right: -100vw;
	}

	/* Upewnij się, że sidebar Elementor jest widoczny na mobile */
	.elementor-menu-cart__container.elementor-lightbox-active {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

/* ============================================
   STICKY ADD TO CART BUTTON NA MOBILE
   ============================================ */

/* Sticky przycisk "Dodaj do koszyka" na stronie produktu (mobile - poniżej 768px) */
@media (max-width: 768px) {
	body.single-product .yokaba-sticky-add-to-cart-desktop {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #ffffff;
		border-top: 1px solid var(--brand-gray-300, #e0e0e0);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
		z-index: 999;
		padding: 16px 16px;
		box-sizing: border-box;
		transform: translateY(100%);
		transition: transform 0.3s ease;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	body.single-product .yokaba-sticky-add-to-cart-desktop.is-visible {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}



	.yokaba-sticky-add-to-cart-desktop-info {
		display: flex;
		align-items: center;
		gap: 16px;
		flex: 1;
		min-width: 0;
	}

	.yokaba-sticky-add-to-cart-desktop-image {
		flex-shrink: 0;
		width: 60px;
		height: 60px;
	}

	.yokaba-sticky-add-to-cart-desktop-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 4px;
	}

	.yokaba-sticky-add-to-cart-desktop-details {
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.yokaba-sticky-add-to-cart-desktop-name {
		font-size: 16px;
		font-weight: 500;
		line-height: 20px;
		color: #1d1c1a;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		line-clamp: 1;
		-webkit-box-orient: vertical;
		margin: 0;
	}

	.yokaba-sticky-add-to-cart-desktop-price {
		font-size: 16px;
		font-weight: 600;
		line-height: 20px;
		color: #1d1c1a;
		margin: 0;
	}

	.yokaba-sticky-add-to-cart-desktop-form {
		flex-shrink: 0;
		display: flex;
		align-items: center;
		flex-direction: column;
		gap: 12px;
	}

	.yokaba-sticky-add-to-cart-desktop-quantity {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		gap:12px
	}

	.yokaba-sticky-add-to-cart-desktop-quantity-wrapper{
		display: flex;
	}

	.yokaba-sticky-add-to-cart-desktop-price .amount .yokaba-price-main,
	.yokaba-sticky-add-to-cart-desktop-price .amount .yokaba-price-cents{
		font-weight: 600;
		font-size: 18px !important;
		line-height: 28px;
		letter-spacing: -2%;
		text-align: center;
		color:rgba(168, 132, 102, 1) !important;
	}

	.yokaba-sticky-add-to-cart-desktop-price,
	.yokaba-sticky-add-to-cart-desktop-quantity-wrapper{
		background-color: rgba(250, 250, 250, 1) !important;
		padding: 8px 12px;
		height: 48px;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}


	.yokaba-sticky-add-to-cart-desktop-qty-btn {
		border: none !important;
		background-color: transparent;


		font-weight: 500;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 !important;
		margin: 0 !important;
	}

	.yokaba-sticky-add-to-cart-desktop-qty-btn:hover {
		background-color: #d4d4d4;
	}

	.yokaba-sticky-add-to-cart-desktop-qty-input {
		width: 50px;
		border: none !important;
		background-color: transparent;
		text-align: center;
		font-size: 14px;
		font-weight: 500;
		color: #1d1c1a;
		padding: 0;
		margin: 0;
	}

	.yokaba-sticky-add-to-cart-desktop-qty-input::-webkit-outer-spin-button,
	.yokaba-sticky-add-to-cart-desktop-qty-input::-webkit-inner-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}

	.yokaba-sticky-add-to-cart-desktop-button {

		padding: 12px 20px;
		background-color:  rgba(168, 132, 102, 1);
		color: #ffffff;
		border: none;
		font-size: 16px;
		font-weight: 600;
		line-height: 20px;
		cursor: pointer;
		white-space: nowrap;
		transition: background-color 0.2s ease, opacity 0.2s ease;
		width:100%;
	}

	.yokaba-sticky-add-to-cart-desktop-button:hover {
		background-color: rgba(168, 132, 102, 0.9);
		opacity: 0.9;
	}

	.yokaba-sticky-add-to-cart-desktop-button:disabled {
		opacity: 0.6;
		cursor: not-allowed;
	}

	/* Dodaj padding na dole body, aby zawartość nie była zasłonięta przez sticky bar */
	body.single-product.has-sticky-add-to-cart {
		padding-bottom: 80px;
	}
	.yokaba-empty-cart-popup-illustration {
		margin: 0 auto;
		flex: 1;
		align-items: start;
	}
	
	.yokaba-cart-popup-content:has(.yokaba-empty-cart-popup-illustration) {
		max-width: unset !important;
		width: 100% !important;
		height: calc(100dvh - 80px);
	}
	
	.yokaba-cart-popup-content {
		width: auto !important;
		height: calc(100dvh - 80px);
		display: flex;
		flex-direction: column;
	}
	.yokaba-cart-popup-products {
		max-height: unset;
		flex: 1;
	}
}



.wp-block-woocommerce-cart.alignwide {
	max-width: 1140px;
	margin: 0 auto;
  }