/**
 * Pasika cart shortcode styles.
 * Uses Elementor global colors: --e-global-color-cbd2996 (button), --e-global-color-accent (hover),
 * --e-global-color-primary (text), --e-global-color-e39b908 (alt button), --e-global-color-6be1d5f (alt text / bubbles).
 */

.pasika-cart {
	--pc-btn: var(--e-global-color-cbd2996, #c97400);
	--pc-btn-hover: var(--e-global-color-accent, #b36600);
	--pc-text: var(--e-global-color-primary, #1a1a1a);
	--pc-alt-bg: var(--e-global-color-e39b908, #fff6e6);
	--pc-alt-text: var(--e-global-color-6be1d5f, #964100);
	max-width: 100%;
	font-family: inherit;
	color: var(--pc-text);
}

.pasika-cart--empty {
	padding: 2rem;
	text-align: center;
}

.pasika-cart__empty-msg {
	margin: 0 0 1rem;
	color: var(--pc-text);
}

/* Body – no headings row, no row separators */
.pasika-cart__body {
	display: flex;
	flex-direction: column;
}

/* Product column (thumb + details) takes remaining width; only details stretches. Qty, price, remove: content width only */
.pasika-cart__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem 0;
	border-bottom: none;
	min-height: 147px;
}

/* Desktop: q/p/t grouped in a row */
.pasika-cart__qpt {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	width: max-content;
	justify-self: end;
}

.pasika-cart__cell--qty,
.pasika-cart__cell--price,
.pasika-cart__cell--remove {
	width: max-content;
}

.pasika-cart__cell--price,
.pasika-cart__cell--remove {
	justify-self: end;
}

.pasika-cart__qpt .pasika-cart__cell--price,
.pasika-cart__qpt .pasika-cart__cell--remove {
	justify-self: unset;
}

/* No vertical separator lines between columns */
.pasika-cart__row .pasika-cart__cell {
	border-left: none !important;
	border-right: none !important;
}

.pasika-cart__cell--product {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}

/* Only title/details section grows; image column does not stretch */
.pasika-cart__thumb-wrap {
	flex-shrink: 0;
}

.pasika-cart__cell--remove {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.pasika-cart__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0 !important;
	border: none;
	background: transparent !important;
	cursor: pointer;
	color: var(--pc-alt-text);
	transition: opacity 0.2s;
	flex-shrink: 0;
}

.pasika-cart__remove:hover {
	opacity: 0.8;
}

.pasika-cart__icon-trash {
	display: block;
}

/* Thumb wrapper: category bubble on top of image */
.pasika-cart__thumb-wrap {
	position: relative;
}

/* Category bubble on top of image (like product card design) */
.pasika-cart__category-bubble {
	position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 1;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 16px !important;
    font-family: 'Comfortaa' !important;
    color: var(--pc-alt-text) !important;
    background: var(--pc-alt-bg);
    line-height: 1.4 !important;
    white-space: nowrap;
}

/* Hide bubble when product has no category (empty placeholder still in DOM) */
.pasika-cart__category-bubble--empty {
	display: none;
}

.pasika-cart__thumb {
	display: block;
	flex-shrink: 0;
	width: 217px;
	height: 147px;
	border-radius: 24px;
	overflow: hidden;
	background: #f5f5f5;
}

.pasika-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.pasika-cart__thumb:hover img {
	transform: scale(1.08);
}

.pasika-cart__details {
	flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pasika-cart__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	color: var(--pc-alt-text);
	margin-bottom: 4px;
}
.pasika-cart__stock span {
	margin-left: 8px;
	color: var(--e-global-color-accent) !important;
}

.pasika-cart__icon-available {
	flex-shrink: 0;
}

.pasika-cart__name {
	font-family: Comfortaa !important;
	font-weight: 600 !important;
	font-size: 24px !important;
	color: var(--pc-text);
	line-height: 1.3 !important;
	text-decoration: none;
	transition: color 0.2s;
}

.pasika-cart__name:hover {
	color: var(--pc-btn-hover);
}

.pasika-cart__variation {
    display: block;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 16px;
    color: var(--e-global-color-57fded7);
    background: #f8f8f8;
}

.pasika-cart__cell--qty {
	display: flex;
	justify-content: flex-start;
}

/* Quantity: qib-style (border pill, narrow input, icon-ready buttons) */
.pasika-cart__qty-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #af5a00;
	border-radius: 120px;
	height: 40px;
	margin: 0 0 0 1px;
	padding: 0 2px;
	width: 80px;
	background: #fff;
	overflow: hidden;
}

/* Remove border/outline on the input only when focused (keep container border) */
.pasika-cart__qty-input:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.pasika-cart__qty-btn {
	border: 0;
	background-color: transparent !important;
	padding: 0 !important;
	width: 20px;
	height: 24px;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--pc-alt-text);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s;
}

.pasika-cart__qty-btn:hover {
	color: var(--pc-btn);
}

/* Optional: use arrow icons instead of − / + (set correct path to your uploads) */
.pasika-cart__qty-minus,
.pasika-cart__qty-plus {
	color: transparent !important;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px;
}

.pasika-cart__qty-minus {
	background-image: url("/wp-content/uploads/2026/03/slider-previous-arrow.svg");
	margin-right: -2px !important;
}

.pasika-cart__qty-plus {
	background-image: url("/wp-content/uploads/2026/03/slider-next-arrow.svg");
	margin-left: -2px !important;
}

.pasika-cart__qty-input {
	border: none !important;
	height: 40px;
	line-height: 40px !important;
	width: 26px !important;
	font-family: 'Comfortaa' !important;
	padding: 0 !important;
	font-size: 16px !important;
	text-align: center;
	background-color: transparent !important;
	color: var(--e-global-color-5e8264f) !important;
}

.pasika-cart__qty-input::-webkit-outer-spin-button,
.pasika-cart__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pasika-cart__cell--price {
	text-align: right;
	font-weight: 600;
	font-size: 1rem;
	padding-top: 6px;
	color: var(--pc-text);
}

.pasika-cart__price {
	font-family: Comfortaa !important;
	font-weight: 600 !important;
	font-size: 24px !important;
	padding: 0 8px 0 14px;
	color: var(--pc-text);
	white-space: nowrap;
}

/* Footer – no separator between product list and total/buttons */
.pasika-cart__footer {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: none;
}

.pasika-cart__total-wrap {
	display: flex;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.pasika-cart__total-label {
	font-size: 1rem;
	color: var(--pc-text);
}

.pasika-cart__total-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--pc-text);
}

.pasika-cart__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.pasika-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: calc(50% - 6px);
	padding: 14px 24px;
	border-radius: 999px;
	font-size: 16px !important;
    font-family: 'Comfortaa' !important;
	font-weight: 400;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	cursor: pointer;
}

.pasika-cart__btn--alt {
	background: #fee5b5;
	color: var(--e-global-color-5e8264f) !important;
	border: none;
	font-size: 16px !important;
    font-family: 'Comfortaa' !important;
}

.pasika-cart__btn--alt:hover {
	background: #f1d7a9;
	color: var(--e-global-color-5e8264f) !important;
}
.pasika-cart__btn--alt:active,
 .pasika-cart__btn--alt:focus {
	background: #ba9978;
}

/* Return to shopping: same left-arrow icon as quantity minus */
.pasika-cart__btn--alt .pasika-cart__btn-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background: url("/wp-content/uploads/2026/03/slider-previous-arrow.svg") no-repeat center;
	background-size: 8px;
	text-indent: -9999px;
	overflow: hidden;
}

.pasika-cart__btn--primary {
	background: var(--pc-btn);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.pasika-cart__btn--primary:hover {
	background: var(--pc-btn-hover);
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

.pasika-cart__btn--primary:active,
.pasika-cart__btn--primary:focus {
	background: #b97a21;
}
.pasika-cart__btn-icon {
	font-size: 1rem;
}

/* Loading state */
.pasika-cart__row.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

/* Mobile */
@media (max-width: 767px) {
	.pasika-cart__head {
		display: none;
	}

	/* Hide category bubble on mobile */
	.pasika-cart__category-bubble {
		display: none !important;
	}

	/* Row: product area (85px image + details) | 80px q/p/t container */
	.pasika-cart__row {
		grid-template-columns: 1fr 80px;
		grid-template-rows: 1fr;
		gap: 10px;
		padding: 0;
		margin-bottom: -20px;
	}

	.pasika-cart__cell--product {
		order: 1;
		display: grid;
		grid-template-columns: 85px 1fr;
		grid-template-rows: 1fr;
		gap: 0 8px;
		min-width: 0;
		align-items: flex-start;
	}

	.pasika-cart__thumb-wrap {
		grid-column: 1;
		grid-row: 1;
	}

	.pasika-cart__thumb {
		width: 85px;
		height: 85px;
		border-radius: 16px;
	}

	.pasika-cart__thumb img {
		object-fit: cover;
	}

	.pasika-cart__details {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}
	.pasika-cart__stock span {
		margin-left: 0;
	}

	/* Q/P/T container: 80px wide, flex column, order: trash, price, qty */
	.pasika-cart__qpt {
		order: 2;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-start;
		gap: 12px;
		width: 80px;
		min-width: 80px;
	}

	.pasika-cart__qpt .pasika-cart__cell--remove {
		order: 1;
		padding-left: 0;
		padding-right: 0;
		margin-top: -12px;
	}

	.pasika-cart__qpt .pasika-cart__cell--price {
		order: 2;
		padding-left: 0;
		padding-right: 0;
		text-align: right;
		padding-top: 0;
	}

	.pasika-cart__qpt .pasika-cart__cell--qty {
		order: 3;
		padding-left: 0;
		padding-right: 0;
		justify-content: flex-end;
	}

	.pasika-cart__remove {
		margin: 0;
	}

	/* Typography and sizes */
	.pasika-cart__stock {
		font-size: 14px !important;
	}

	.pasika-cart__name {
		font-size: 14px !important;
	}

	.pasika-cart__price {
		font-size: 18px !important;
	}

	.pasika-cart__qty-wrap {
		height: 28px;
		padding: 0 2px;
	}

	.pasika-cart__qty-wrap .pasika-cart__qty-btn {
		width: 20px;
		height: 28px;
	}

	.pasika-cart__qty-input {
		height: 28px;
		line-height: 28px;
		font-size: 14px;
	}

	.pasika-cart__actions {
		flex-direction: column;
		gap: 12px;
	}

	.pasika-cart__btn {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box;
	}
}

/*
 * Hide Elementor divider on cart page (often from Theme Builder → Single Page template, not in page editor).
 * Body class has-pasika-cart is added when the page contains [pasika_cart].
 * If you need to keep other dividers on this page, use a more specific selector or remove this rule.
 */
body.has-pasika-cart .elementor-widget-divider {
	display: none !important;
}
.elementor-2399 .elementor-element.elementor-element-e8cc396 .elementor-menu-cart__product-price .product-quantity {
	color: #7B6C65 !important; 
}
.elementor-menu-cart__wrapper .elementor-menu-cart__subtotal,
.elementor-menu-cart__wrapper .elementor-menu-cart__product {
	border: 0 !important;
}

.pasika-cart__total-value .woocommerce-Price-amount {
	color: var(--e-global-color-accent) !important;
}

/* WooCommerce “View cart” link after AJAX add — not needed */
a.added_to_cart.wc-forward {
	display: none !important;
}

/* Product loop: out-of-stock “Read more” / button (global, matches .psk-disabled) */
.e-loop-item.outofstock a.button {
	background: #c5c0bd !important;
	color: #2e2826 !important;
	border-color: #c5c0bd !important;
}
.e-loop-item.outofstock a.button:hover,
.e-loop-item.outofstock a.button:focus {
	background: #c5c0bd !important;
	color: #2e2826 !important;
	border-color: #c5c0bd !important;
}
.e-loop-item.outofstock a.button::before,
.e-loop-item.outofstock a.button::after {
	display: none !important;
	content: none !important;
}