/* ==========================================================================
   Shopping Cart — ShopKart mockup (exact)
   ========================================================================== */

.pb-main--cart {
	padding-block: 1.25rem 2.75rem !important;
	background: #f5f7fb !important;
}

.pb-cart {
	display: block;
	max-width: 1180px;
	margin-inline: auto;
}

/* —— Top: breadcrumb | continue —— */
.pb-cart__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.pb-cart .pb-breadcrumb {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
}
.pb-cart .pb-breadcrumb a {
	color: var(--pb-action-blue, #2563eb);
	text-decoration: none;
}
.pb-cart .pb-breadcrumb a:hover { text-decoration: underline; }
.pb-cart .pb-breadcrumb__sep {
	margin: 0 0.35rem;
	color: #94a3b8;
}

.pb-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--pb-action-blue, #2563eb);
	text-decoration: none;
	white-space: nowrap;
}
.pb-cart__continue-arrow {
	font-size: 1rem;
	line-height: 1;
}
.pb-cart__continue:hover { text-decoration: underline; }

/* —— 2-col layout —— */
.pb-cart__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
	gap: 1.35rem;
	align-items: start;
}

.pb-cart__title {
	margin: 0 0 1rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

/* —— Item cards (each row = own card) —— */
.pb-cart__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.pb-cart__item {
	display: grid;
	grid-template-columns: 1.15rem 92px minmax(0, 1.5fr) minmax(120px, 0.75fr) auto auto;
	gap: 0.9rem 1.05rem;
	align-items: center;
	padding: 1.15rem 1.2rem;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Guard against leftover wpautop junk */
.pb-cart__item > p,
.pb-cart__item > br,
.pb-cart__check br,
.pb-cart__qty br,
.pb-cart__pricing br,
.pb-cart__info > br {
	display: none !important;
}

.pb-cart__check {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	user-select: none;
	font-size: 0.875rem;
	font-weight: 650;
	color: #374151;
}
.pb-cart__check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pb-cart__check-ui {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 4px;
	border: 2px solid #cbd5e1;
	background: #fff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.pb-cart__check input:checked + .pb-cart__check-ui {
	border-color: var(--pb-action-blue, #2563eb);
	background: var(--pb-action-blue, #2563eb);
}
.pb-cart__check input:checked + .pb-cart__check-ui::after {
	content: '';
	width: 0.32rem;
	height: 0.55rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-0.5px, -1px);
}

.pb-cart__thumb {
	width: 92px;
	height: 92px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #eef2f7;
	background: #f8fafc;
	flex-shrink: 0;
}
.pb-cart__thumb a { display: block; height: 100%; }
.pb-cart__thumb img,
.pb-cart__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pb-cart__info { min-width: 0; }
.pb-cart__name {
	display: block;
	font-size: 0.98rem;
	font-weight: 800;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.35;
	margin: 0 0 0.2rem;
}
.pb-cart__name:hover { color: var(--pb-action-blue, #2563eb); }
.pb-cart__meta {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	color: #94a3b8;
	font-weight: 600;
	line-height: 1.4;
}
.pb-cart__info .variation {
	display: none;
}
.pb-cart__stock {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	font-size: 0.78rem;
	font-weight: 750;
}
.pb-cart__stock.is-in { color: #16a34a; }
.pb-cart__stock.is-out { color: #dc2626; }
.pb-cart__stock .pb-icon {
	width: 0.85rem;
	height: 0.85rem;
}

.pb-cart__pricing {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.12rem;
	min-width: 0;
}
.pb-cart__price {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}
.pb-cart__price .amount { color: inherit; font-weight: inherit; }
.pb-cart__regular {
	font-size: 0.8rem;
	color: #94a3b8;
	text-decoration: line-through;
	font-weight: 600;
}
.pb-cart__save {
	font-size: 0.78rem;
	font-weight: 750;
	color: #ef4444;
}

/* Qty — horizontal ShopKart stepper */
.pb-cart__qty .pb-qty,
.pb-cart__qty .quantity {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	height: 40px !important;
	width: auto !important;
	border-radius: 8px;
	border: 1.5px solid #d1d5db;
	overflow: hidden;
	background: #fff;
	margin: 0 !important;
	float: none !important;
}
.pb-cart__qty .pb-qty__btn {
	width: 34px;
	height: 100%;
	flex-shrink: 0;
	border: 0;
	background: #fff;
	color: #374151;
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
}
.pb-cart__qty .pb-qty__btn:hover {
	background: #f3f4f6;
	color: var(--pb-action-blue, #2563eb);
}
.pb-cart__qty .qty {
	width: 40px !important;
	min-height: 40px !important;
	font-size: 0.9rem !important;
	font-weight: 750 !important;
	flex-shrink: 0;
	border: 0 !important;
	border-inline: 1px solid #e5e7eb !important;
	border-radius: 0 !important;
	text-align: center;
	background: #fff !important;
	-moz-appearance: textfield;
}
.pb-cart__qty .qty::-webkit-outer-spin-button,
.pb-cart__qty .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.pb-cart__qty-solo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	font-weight: 750;
}

.pb-cart__actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.pb-cart__action {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #64748b;
	display: grid;
	place-items: center;
	cursor: pointer;
	text-decoration: none !important;
	padding: 0;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pb-cart__action .pb-icon {
	width: 1.1rem;
	height: 1.1rem;
}
.pb-cart__action:hover {
	color: var(--pb-action-blue, #2563eb);
	border-color: #bfdbfe;
	background: #eff6ff;
}
.pb-cart__wish.is-active,
.pb-cart__wish[aria-pressed="true"] {
	color: #ef4444;
	border-color: #fecaca;
	background: #fef2f2;
}
.pb-cart__remove {
	color: #ef4444;
	border-color: #fecaca;
}
.pb-cart__remove:hover {
	color: #dc2626;
	border-color: #fca5a5;
	background: #fef2f2;
}

/* Bulk bar under item cards */
.pb-cart__bulk {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.85rem;
	padding: 0.95rem 1.15rem;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.pb-cart__remove-selected {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0.35rem 0.15rem;
}
.pb-cart__remove-selected .pb-icon {
	width: 1rem;
	height: 1rem;
}
.pb-cart__remove-selected:hover { color: #dc2626; }

/* —— Order summary —— */
.pb-cart__aside {
	position: sticky;
	top: 1rem;
}
.pb-cart-sum {
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 12px;
	padding: 1.25rem 1.25rem 1.35rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.pb-cart-sum__title {
	margin: 0 0 1.1rem;
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
}
.pb-cart-sum__rows {
	display: grid;
	gap: 0.8rem;
}
.pb-cart-sum__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: #64748b;
}
.pb-cart-sum__row strong {
	color: #0f172a;
	font-weight: 750;
	text-align: right;
}
.pb-cart-sum__row--discount strong { color: #ef4444; }
.pb-cart-sum__row--ship { align-items: flex-start; }
.pb-cart-sum__ship-note {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.25rem;
	font-size: 0.72rem;
	color: #94a3b8;
	font-weight: 600;
}
.pb-cart-sum__ship-note .pb-icon {
	width: 0.8rem;
	height: 0.8rem;
	color: var(--pb-action-blue, #2563eb);
}
.pb-cart-sum__free { color: #16a34a; font-weight: 750; }

.pb-cart-sum__coupon-row {
	display: flex;
	gap: 0.5rem;
	margin: 0.1rem 0 0.15rem;
}
.pb-cart-sum__coupon-row input {
	flex: 1;
	min-width: 0;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font: inherit;
	font-size: 0.85rem;
	background: #fff;
}
.pb-cart-sum__coupon-row input:focus {
	outline: none;
	border-color: var(--pb-action-blue, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pb-cart-sum__apply {
	flex-shrink: 0;
	border: 0 !important;
	border-radius: 8px !important;
	padding: 0 1.1rem !important;
	background: var(--pb-action-blue, #2563eb) !important;
	color: #fff !important;
	font-weight: 750 !important;
	font-size: 0.85rem !important;
	cursor: pointer;
	min-height: 42px;
}
.pb-cart-sum__apply:hover {
	background: var(--pb-action-hover, #1d4ed8) !important;
}

.pb-cart-sum__row--total {
	padding-top: 0.9rem;
	margin-top: 0.2rem;
	border-top: 1px solid #e5e7eb;
	font-size: 1rem;
	align-items: center;
}
.pb-cart-sum__row--total span {
	font-weight: 800;
	color: #0f172a;
}
.pb-cart-sum__row--total strong {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}
.pb-cart-sum__row--total .includes_tax,
.pb-cart-sum__row--total small {
	display: none;
}

.pb-cart-sum__checkout { margin-top: 1.15rem; }
.pb-cart-sum__btn {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	min-height: 52px;
	border: 0 !important;
	border-radius: 10px !important;
	background: var(--pb-action-blue, #2563eb) !important;
	color: #fff !important;
	font-weight: 800 !important;
	font-size: 0.95rem !important;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3) !important;
	padding: 0.9rem 1.2rem !important;
}
.pb-cart-sum__btn:hover {
	background: var(--pb-action-hover, #1d4ed8) !important;
}
.pb-cart-sum__btn span {
	flex: 1;
	text-align: center;
}
.pb-cart-sum__btn .pb-icon {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
}

.pb-cart-sum__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0.9rem 0 0;
	font-size: 0.75rem;
	font-weight: 650;
	color: #64748b;
}
.pb-cart-sum__secure .pb-icon {
	width: 0.9rem;
	height: 0.9rem;
	color: #16a34a;
}

.pb-cart-sum__trust {
	list-style: none;
	margin: 1.05rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid #eef2f7;
	display: grid;
	gap: 0.7rem;
}
.pb-cart-sum__trust li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.8rem;
	font-weight: 650;
	color: #475569;
	line-height: 1.35;
}
.pb-cart-sum__trust-ico {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 8px;
	background: #eff6ff;
	color: var(--pb-action-blue, #2563eb);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.pb-cart-sum__trust-ico .pb-icon {
	width: 0.95rem;
	height: 0.95rem;
}

.pb-cart .shop_table,
.pb-cart .woocommerce-cart-form > .shop_table,
.pb-cart__update {
	display: none !important;
}

.pb-cart .woocommerce-Price-currencySymbol {
	margin-right: 0.12em;
}

/* —— You May Also Like —— */
.pb-cart-related {
	margin-top: 1.75rem;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 12px;
	padding: 1.35rem 1.25rem 1.4rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.pb-cart-related .pb-section__head {
	margin-bottom: 1.1rem;
}
.pb-cart-related .pb-section__title {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0;
	color: #0f172a;
}
.pb-cart-related ul.products {
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 1rem !important;
	margin: 0 !important;
}
.pb-cart-related ul.products li.product {
	border: 1px solid #eef2f7;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pb-cart-related ul.products li.product:hover {
	box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
	transform: translateY(-2px);
}

/* —— Empty —— */
.pb-cart-empty {
	text-align: center;
	padding: 3.5rem 1.5rem;
	background: #fff;
	border: 1px solid #e5eaf2;
	border-radius: 12px;
}
.pb-cart-empty__icon {
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1rem;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--pb-action-blue, #2563eb);
	display: grid;
	place-items: center;
}
.pb-cart-empty__icon .pb-icon {
	width: 2rem;
	height: 2rem;
}
.pb-cart-empty__title {
	margin: 0 0 0.45rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
}
.pb-cart-empty__text {
	margin: 0 auto 1.35rem;
	max-width: 28rem;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.55;
}
.pb-cart-empty .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 1.4rem !important;
	border-radius: 10px !important;
	background: var(--pb-action-blue, #2563eb) !important;
	color: #fff !important;
	font-weight: 750 !important;
	border: 0 !important;
}

.woocommerce-cart .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}
.woocommerce-cart .woocommerce-message {
	border-radius: 12px !important;
	border: 1px solid #86efac !important;
	background: #f0fdf4 !important;
}

/* ==========================================================================
   Tablet / Mobile (ShopKart phone layout)
   ========================================================================== */

@media (max-width: 1024px) {
	.pb-cart__layout {
		grid-template-columns: 1fr;
	}
	.pb-cart__aside { position: static; }
	.pb-cart-related ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 720px) {
	.pb-cart__top {
		flex-wrap: wrap;
		margin-bottom: 0.85rem;
	}
	.pb-cart__title { font-size: 1.2rem; margin-bottom: 0.85rem; }

	.pb-cart__item {
		grid-template-columns: auto 76px minmax(0, 1fr) auto;
		grid-template-areas:
			"check thumb info actions"
			"check thumb pricing pricing"
			". . qty qty";
		gap: 0.65rem 0.75rem;
		padding: 1rem;
	}
	.pb-cart__check { grid-area: check; align-self: start; margin-top: 0.4rem; }
	.pb-cart__thumb { grid-area: thumb; width: 76px; height: 76px; }
	.pb-cart__info { grid-area: info; }
	.pb-cart__actions { grid-area: actions; align-self: start; }
	.pb-cart__pricing { grid-area: pricing; }
	.pb-cart__qty {
		grid-area: qty;
		justify-self: start;
	}

	.pb-cart__bulk {
		flex-wrap: wrap;
		padding: 0.85rem 1rem;
	}

	.pb-cart-sum { padding: 1.1rem; }

	.pb-cart-related {
		padding: 1rem 0.75rem;
		margin-top: 1.25rem;
	}
	.pb-cart-related ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.75rem !important;
	}
}

@media (max-width: 400px) {
	.pb-cart__item {
		grid-template-columns: auto 64px minmax(0, 1fr);
		grid-template-areas:
			"check thumb info"
			"check thumb actions"
			"pricing pricing pricing"
			"qty qty qty";
	}
	.pb-cart__actions { justify-self: start; }
}
