/*
 * Surgemint - WooCommerce styles (shop, product, cart, checkout, thank-you).
 * Loaded after main.css. WooCommerce's own layout/smallscreen CSS is dequeued
 * (inc/performance.php), so every WC layout rule lives here.
 */

/* ==========================================================================
   1. Shop / archive
   ========================================================================== */

.pbd-woo .woocommerce-products-header {
	margin-bottom: 20px;
}

.pbd-woo .woocommerce-products-header__title,
.pbd-woo .page-title {
	margin: 0 0 6px;
}

.pbd-woo .term-description {
	max-width: 70ch;
	color: var(--pbd-muted);
}

.pbd-subcats {
	margin: 0 0 20px;
}

.pbd-per-page {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 20px 0 0;
	font-size: 0.875rem;
}

.pbd-per-page__label {
	margin-right: 4px;
	color: var(--pbd-muted);
}

.pbd-per-page__link {
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid var(--pbd-line-strong);
	border-radius: var(--pbd-radius-sm);
	background: var(--pbd-surface);
	color: var(--pbd-ink);
	text-align: center;
	text-decoration: none;
}

.pbd-per-page__link:hover {
	border-color: var(--pbd-brand);
	color: var(--pbd-brand);
}

.pbd-per-page__link[aria-current],
.pbd-per-page__link.is-active {
	border-color: var(--pbd-brand);
	background: var(--pbd-brand);
	color: var(--pbd-on-brand);
}

.pbd-no-results {
	max-width: 640px;
	margin: 32px auto;
	padding: 32px 20px;
	border: 1px dashed var(--pbd-line-strong);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-tint);
	text-align: center;
}

.pbd-no-results__title {
	margin: 0 0 8px;
	font-family: var(--pbd-font-display);
	font-size: 1.375rem;
}

.pbd-no-results__heading {
	margin: 20px 0 10px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pbd-muted);
}

.pbd-no-results .pbd-chips {
	justify-content: center;
}

/* Classic WC loop (fallback when the Surgemint shop widget is unavailable) */
ul.pbd-products,
.pbd-woo ul.products {
	display: grid;
	grid-template-columns: repeat(var(--pbd-cols-m, 2), minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

/* WooCommerce's clearfix pseudo-elements would become grid cells (an empty
   first slot). Grids need no clearfix. */
ul.pbd-products::before,
ul.pbd-products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.single-product ul.products::before,
.single-product ul.products::after {
	content: none;
	display: none;
}

ul.pbd-products > li,
.pbd-woo ul.products > li {
	margin: 0;
	list-style: none;
}

@media (min-width: 600px) {
	ul.pbd-products,
	.pbd-woo ul.products {
		grid-template-columns: repeat(var(--pbd-cols-t, 3), minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 1024px) {
	ul.pbd-products,
	.pbd-woo ul.products {
		grid-template-columns: repeat(var(--pbd-cols, 5), minmax(0, 1fr));
		gap: 20px;
	}
}

.woocommerce-result-count {
	margin: 0 0 12px;
	color: var(--pbd-muted);
	font-size: 0.875rem;
}

.woocommerce-ordering select {
	min-width: 200px;
}

/* ==========================================================================
   2. Prices, badges, ratings, quantity
   ========================================================================== */

.price,
.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}

.price {
	display: block;
	margin: 0 0 12px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--pbd-brand);
}

.price del {
	margin-right: 8px;
	font-size: 0.75em;
	font-weight: 400;
	color: var(--pbd-muted);
}

.price ins {
	text-decoration: none;
}

.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pbd-sale);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
}

.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1em;
	overflow: hidden;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.1em;
}

.star-rating::before {
	content: "\2605\2605\2605\2605\2605";
	color: var(--pbd-line-strong);
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--pbd-accent);
}

.quantity {
	display: inline-flex;
	align-items: stretch;
}

.quantity input.qty {
	width: 64px;
	min-height: 46px;
	padding: 0 8px;
	text-align: center;
	-moz-appearance: textfield;
}

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

/* Stepper buttons added by shop.js */
.pbd-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--pbd-field-border, var(--pbd-line-strong));
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
	overflow: hidden;
}

.pbd-qty input.qty {
	width: 52px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.pbd-qty__btn {
	width: 40px;
	padding: 0;
	border: 0;
	background: var(--pbd-tint);
	color: var(--pbd-ink);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.pbd-qty__btn:hover {
	background: var(--pbd-brand-soft);
	color: var(--pbd-brand);
}

.pbd-qty__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ==========================================================================
   3. Single product
   ========================================================================== */

.single-product div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary,
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .up-sells,
.single-product div.product .pbd-single-rail {
	min-width: 0;
}

.woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image {
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-surface);
	overflow: hidden;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--pbd-shadow-sm);
	font-size: 0;
	text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "\2922";
	font-size: 1.125rem;
	color: var(--pbd-ink);
}

.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li {
	margin: 0;
}

.flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	border: 2px solid transparent;
	border-radius: var(--pbd-radius-sm);
	opacity: 0.7;
	cursor: pointer;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
	border-color: var(--pbd-brand);
	opacity: 1;
}

.single-product .summary .product_title {
	margin: 0 0 6px;
	font-size: 1.625rem;
	line-height: 1.25;
}

.single-product .summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 0.875rem;
}

.pbd-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin: 0 0 12px;
	color: var(--pbd-muted);
	font-size: 0.9375rem;
}

.pbd-byline a {
	font-weight: 600;
	text-decoration: none;
}

.pbd-byline a:hover {
	text-decoration: underline;
}

.single-product .summary .woocommerce-product-details__short-description {
	margin: 0 0 16px;
	color: var(--pbd-ink-soft);
}

.single-product .summary .stock {
	margin: 0 0 12px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pbd-success);
}

.single-product .summary .stock.out-of-stock {
	color: var(--pbd-error);
}

.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 0 16px;
}

.single-product form.cart .quantity {
	flex: 0 0 auto;
}

.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .pbd-btn--buy-now {
	flex: 1 1 160px;
	min-height: 46px;
}

.single-product form.cart.variations_form,
.single-product form.cart .woocommerce-variation-add-to-cart {
	display: block;
}

.single-product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

table.variations {
	width: 100%;
	margin: 0 0 12px;
	border: 0;
}

table.variations th,
table.variations td {
	display: block;
	padding: 0 0 6px;
	border: 0;
	text-align: left;
}

table.variations label {
	margin: 0;
	font-weight: 600;
}

.reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.8125rem;
}

.woocommerce-variation-price .price {
	margin: 8px 0;
}

.pbd-single-wishlist {
	margin: 0 0 16px;
}

.pbd-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--pbd-ink-soft);
	font-weight: 600;
	cursor: pointer;
}

.pbd-wishlist-btn:hover,
.pbd-wishlist-btn.in-wishlist,
.pbd-wishlist-btn.is-active,
.pbd-wishlist-btn.active,
.pbd-wishlist-btn[aria-pressed="true"] {
	color: var(--pbd-brand);
}

.pbd-wishlist-btn.in-wishlist svg,
.pbd-wishlist-btn.is-active svg,
.pbd-wishlist-btn.active svg,
.pbd-wishlist-btn[aria-pressed="true"] svg {
	fill: currentColor;
}

/* Trust items */
.pbd-trust {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-tint);
	list-style: none;
}

@media (min-width: 600px) {
	.pbd-trust {
		grid-template-columns: 1fr 1fr;
	}
}

.pbd-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.pbd-trust__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--pbd-surface);
	color: var(--pbd-brand);
}

.pbd-trust__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.pbd-trust__title {
	font-size: 0.875rem;
	font-weight: 700;
}

.pbd-trust__text {
	font-size: 0.8125rem;
	color: var(--pbd-muted);
}

.single-product .product_meta {
	display: grid;
	gap: 4px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--pbd-line);
	color: var(--pbd-muted);
	font-size: 0.875rem;
}

.single-product .product_meta > span {
	display: block;
}

/* Tabs */
.woocommerce-tabs {
	margin-top: 8px;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid var(--pbd-line);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
	display: none;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	flex: 0 0 auto;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 16px;
	margin-bottom: -1px;
	border-bottom: 3px solid transparent;
	color: var(--pbd-muted);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	border-bottom-color: var(--pbd-brand);
	color: var(--pbd-brand);
}

.woocommerce-tabs .panel {
	max-width: 860px;
	margin: 0;
}

.woocommerce-tabs .panel > h2:first-child {
	margin-top: 0;
	font-size: 1.25rem;
}

/* Book details + attributes tables */
.pbd-book-details,
.woocommerce-product-attributes {
	width: 100%;
	max-width: 640px;
	border: 1px solid var(--pbd-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--pbd-radius);
	overflow: hidden;
}

.pbd-book-details th,
.pbd-book-details td,
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--pbd-line);
	text-align: left;
	vertical-align: top;
}

.pbd-book-details tr:last-child th,
.pbd-book-details tr:last-child td,
.woocommerce-product-attributes tr:last-child th,
.woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

.pbd-book-details th,
.woocommerce-product-attributes th {
	width: 38%;
	background: var(--pbd-tint);
	font-weight: 600;
	color: var(--pbd-ink-soft);
}

.woocommerce-product-attributes td p {
	margin: 0;
}

/* Reviews */
#reviews .commentlist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

#reviews .commentlist li {
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
}

#reviews .comment_container {
	display: flex;
	gap: 12px;
}

#reviews .comment_container img.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

#reviews .comment-text {
	flex: 1;
	min-width: 0;
}

#reviews .comment-text p {
	margin: 4px 0 0;
}

#reviews .woocommerce-review__author {
	font-weight: 700;
}

#reviews .woocommerce-review__published-date {
	color: var(--pbd-muted);
	font-size: 0.8125rem;
}

.comment-form-rating .stars a {
	display: inline-block;
	width: 1.2em;
	overflow: hidden;
	color: var(--pbd-accent);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
	text-indent: -999px;
	position: relative;
}

.comment-form-rating .stars a::before {
	content: "\2606";
	position: absolute;
	left: 0;
	text-indent: 0;
}

.comment-form-rating .stars.selected a::before,
.comment-form-rating .stars a:hover::before {
	content: "\2605";
}

.comment-form-rating .stars.selected a.active ~ a::before {
	content: "\2606";
}

.comment-form-rating select {
	display: none;
}

/* Related, up-sells, recently viewed */
.single-product .related,
.single-product .up-sells,
.pbd-recent {
	margin-top: 8px;
}

.single-product .related > h2,
.single-product .up-sells > h2 {
	margin: 0 0 16px;
	font-size: 1.375rem;
}

.pbd-recent {
	margin-bottom: 40px;
}

/* Sticky mobile buy bar */
.pbd-buybar {
	position: fixed;
	right: 0;
	bottom: var(--pbd-bottom-h);
	left: 0;
	z-index: calc(var(--pbd-z-header) + 5);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px var(--pbd-gutter);
	border-top: 1px solid var(--pbd-line);
	background: var(--pbd-surface);
	box-shadow: 0 -6px 18px rgba(31, 26, 23, 0.1);
	transform: translateY(100%);
	transition: transform 0.25s var(--pbd-ease);
}

.pbd-buybar[hidden] {
	display: none;
}

.pbd-buybar.is-visible {
	transform: none;
}

.pbd-buybar__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.pbd-buybar__title {
	overflow: hidden;
	font-size: 0.8125rem;
	color: var(--pbd-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbd-buybar__price {
	font-weight: 700;
	color: var(--pbd-brand);
}

.pbd-buybar__price del {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--pbd-muted);
}

.pbd-buybar__price ins {
	text-decoration: none;
}

.pbd-buybar__action {
	flex: 0 0 auto;
	min-height: 44px;
}

body.pbd-has-buybar {
	padding-bottom: calc(var(--pbd-bottom-h) + 72px);
}

@media (min-width: 1024px) {
	.pbd-buybar {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 40px;
		align-items: start;
	}

	.single-product div.product .woocommerce-tabs,
	.single-product div.product .related,
	.single-product div.product .up-sells,
	.single-product div.product .pbd-single-rail {
		grid-column: 1 / -1;
	}

	.single-product .summary .product_title {
		font-size: 2rem;
	}

	.single-product div.product .woocommerce-product-gallery {
		position: sticky;
		top: calc(var(--pbd-header-h) + 16px);
	}
}

/* ==========================================================================
   4. Cart
   ========================================================================== */

.pbd-free-ship {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-accent-soft);
}

.pbd-free-ship__text {
	margin: 0 0 8px;
	font-size: 0.9375rem;
}

.pbd-free-ship__track {
	height: 8px;
	border-radius: 999px;
	background: rgba(183, 121, 31, 0.2);
	overflow: hidden;
}

.pbd-free-ship__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--pbd-accent);
	transition: width 0.4s var(--pbd-ease);
}

.pbd-free-ship--done {
	background: var(--pbd-success-soft);
}

.pbd-free-ship--done .pbd-free-ship__fill {
	background: var(--pbd-success);
}

.pbd-free-ship--checkout {
	margin-bottom: 16px;
}

table.shop_table {
	width: 100%;
	margin: 0 0 24px;
	border: 1px solid var(--pbd-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
	overflow: hidden;
}

table.shop_table th,
table.shop_table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--pbd-line);
	text-align: left;
	vertical-align: middle;
}

table.shop_table thead th {
	background: var(--pbd-tint);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pbd-muted);
}

table.shop_table tr:last-child > th,
table.shop_table tr:last-child > td {
	border-bottom: 0;
}

.woocommerce-cart-form {
	margin: 0 0 24px;
}

.woocommerce-cart-form__cart-item .product-thumbnail {
	width: 84px;
}

.woocommerce-cart-form__cart-item .product-thumbnail img {
	display: block;
	width: 64px;
	height: auto;
	border-radius: var(--pbd-radius-sm);
}

.woocommerce-cart-form__cart-item .product-name a {
	font-weight: 600;
	color: var(--pbd-ink);
	text-decoration: none;
}

.woocommerce-cart-form__cart-item .product-name a:hover {
	color: var(--pbd-brand);
}

.woocommerce-cart-form__cart-item .product-remove a.remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pbd-tint);
	color: var(--pbd-muted);
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce-cart-form__cart-item .product-remove a.remove:hover {
	background: var(--pbd-error);
	color: #fff;
}

.woocommerce-cart-form .actions {
	background: var(--pbd-tint);
}

.woocommerce-cart-form .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	float: left;
}

.woocommerce-cart-form .coupon input.input-text {
	width: 180px;
	min-height: 42px;
}

.woocommerce-cart-form .actions > .button,
.woocommerce-cart-form .actions > button {
	float: right;
}

.woocommerce-cart-form .actions::after {
	content: "";
	display: table;
	clear: both;
}

.cart-collaterals {
	display: block;
}

.cart_totals {
	width: 100%;
	max-width: 480px;
	margin-left: auto;
}

.cart_totals > h2 {
	margin: 0 0 12px;
	font-size: 1.25rem;
}

.cart_totals table.shop_table th {
	width: 40%;
	font-weight: 600;
}

.cart_totals .order-total td,
.cart_totals .order-total th {
	font-size: 1.125rem;
	font-weight: 700;
}

.cart_totals .order-total .amount {
	color: var(--pbd-brand);
}

.wc-proceed-to-checkout {
	margin: 0;
}

.wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 50px;
	font-size: 1.0625rem;
}

.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-shipping-methods li {
	margin: 0 0 6px;
}

.woocommerce-shipping-destination {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: var(--pbd-muted);
}

.shipping-calculator-button {
	font-size: 0.8125rem;
}

.cart-empty,
.woocommerce-cart .return-to-shop {
	text-align: center;
}

.cart-empty {
	margin: 32px 0 16px;
	padding: 32px 16px;
	border: 1px dashed var(--pbd-line-strong);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-tint);
	font-size: 1.125rem;
}

.return-to-shop {
	margin-bottom: 32px;
}

/* Cart / order tables collapse into cards on small screens */
@media (max-width: 767px) {
	table.shop_table_responsive thead {
		display: none;
	}

	table.shop_table_responsive,
	table.shop_table_responsive tbody,
	table.shop_table_responsive tr,
	table.shop_table_responsive td {
		display: block;
		width: 100%;
	}

	table.shop_table_responsive tr {
		border-bottom: 1px solid var(--pbd-line);
	}

	table.shop_table_responsive tr:last-child {
		border-bottom: 0;
	}

	table.shop_table_responsive tr td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 14px;
		border-bottom: 0;
		text-align: right;
	}

	table.shop_table_responsive tr td::before {
		content: attr(data-title) ": ";
		flex: 0 0 auto;
		font-weight: 600;
		color: var(--pbd-muted);
		text-align: left;
	}

	table.shop_table_responsive tr td.product-remove::before,
	table.shop_table_responsive tr td.product-thumbnail::before,
	table.shop_table_responsive tr td.actions::before,
	table.shop_table_responsive tr td[data-title=""]::before {
		content: none;
	}

	table.shop_table_responsive tr td.product-remove {
		justify-content: flex-end;
		padding-bottom: 0;
	}

	table.shop_table_responsive tr td.product-thumbnail {
		justify-content: center;
	}

	table.shop_table_responsive tr td.actions {
		display: block;
		text-align: left;
	}

	.woocommerce-cart-form .coupon {
		float: none;
		margin-bottom: 10px;
	}

	.woocommerce-cart-form .coupon input.input-text {
		flex: 1;
		width: auto;
	}

	.woocommerce-cart-form .actions > .button,
	.woocommerce-cart-form .actions > button {
		float: none;
		width: 100%;
	}

	.cart_totals {
		max-width: none;
	}
}

@media (min-width: 1024px) {
	.woocommerce-cart .pbd-woo .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 0 32px;
		align-items: start;
	}

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
	.woocommerce-cart .woocommerce > .pbd-free-ship {
		grid-column: 1 / -1;
	}

	.woocommerce-cart .woocommerce > .cart-collaterals {
		position: sticky;
		top: calc(var(--pbd-header-h) + 16px);
	}

	.woocommerce-cart .woocommerce > .cart-empty,
	.woocommerce-cart .woocommerce > .return-to-shop {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   5. Checkout
   ========================================================================== */

.pbd-checkout-login {
	margin: 0 0 20px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-tint);
}

.pbd-checkout-login__summary {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	font-weight: 600;
	color: var(--pbd-brand);
	cursor: pointer;
	list-style: none;
}

.pbd-checkout-login__summary::-webkit-details-marker {
	display: none;
}

.pbd-checkout-login__summary::after {
	content: "+";
	margin-left: auto;
	font-size: 1.25rem;
	line-height: 1;
}

.pbd-checkout-login[open] .pbd-checkout-login__summary::after {
	content: "\2212";
}

.pbd-checkout-login__body {
	padding: 4px 16px 16px;
}

.pbd-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.pbd-checkout__main,
.pbd-checkout__summary {
	min-width: 0;
}

.pbd-checkout__section {
	margin: 0 0 20px;
	padding: 20px 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-surface);
}

.pbd-checkout__heading,
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
#order_review_heading {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

.pbd-checkout__summary {
	padding: 20px 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-surface);
}

.pbd-checkout__summary #order_review_heading {
	margin-top: 0;
}

.woocommerce-checkout .form-row {
	margin: 0 0 14px;
}

.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.woocommerce-checkout .form-row .required {
	color: var(--pbd-error);
	text-decoration: none;
}

.woocommerce-checkout .form-row .optional {
	font-weight: 400;
	color: var(--pbd-muted);
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: grid;
	gap: 0 16px;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-additional-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

@media (min-width: 600px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr 1fr;
	}

	.pbd-checkout__section,
	.pbd-checkout__summary {
		padding: 24px;
	}
}

.woocommerce-checkout .select2-container .select2-selection--single {
	height: 46px;
	border: 1.5px solid var(--pbd-field-border, var(--pbd-line-strong));
	border-radius: var(--pbd-radius);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 43px;
	padding-left: 14px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

#ship-to-different-address {
	margin: 0 0 16px;
	font-size: 1rem;
}

#ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
}

/* Saved-address picker */
.pbd-saved-addresses {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.pbd-saved-addresses__title {
	margin-bottom: 8px;
	padding: 0;
	font-weight: 700;
}

.pbd-saved-addresses__list {
	display: grid;
	gap: 10px;
}

@media (min-width: 600px) {
	.pbd-saved-addresses__list {
		grid-template-columns: 1fr 1fr;
	}
}

.pbd-saved-addresses__card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--pbd-line-strong);
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
	font-weight: 400;
	cursor: pointer;
}

.pbd-saved-addresses__card:hover {
	border-color: var(--pbd-muted);
}

.pbd-saved-addresses__card:has(input:checked) {
	border-color: var(--pbd-brand);
	background: var(--pbd-brand-soft);
}

.pbd-saved-addresses__card:has(input:focus-visible) {
	outline: 2px solid var(--pbd-focus);
	outline-offset: 2px;
}

.pbd-saved-addresses__card input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.pbd-saved-addresses__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.pbd-saved-addresses__body strong {
	font-size: 0.9375rem;
}

.pbd-saved-addresses__card--new {
	align-items: center;
	border-style: dashed;
}

/* Order review + payment */
#order_review table.shop_table {
	margin-bottom: 16px;
}

#order_review .product-name {
	font-weight: 500;
}

#order_review .product-quantity {
	font-weight: 700;
	color: var(--pbd-muted);
}

#order_review .product-total,
#order_review tfoot td {
	text-align: right;
}

#order_review .order-total .amount {
	color: var(--pbd-brand);
	font-size: 1.125rem;
}

#payment {
	border-radius: var(--pbd-radius);
}

#payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	list-style: none;
	overflow: hidden;
}

#payment ul.payment_methods > li {
	margin: 0;
	padding: 14px 16px;
	border-bottom: 1px solid var(--pbd-line);
}

#payment ul.payment_methods > li:last-child {
	border-bottom: 0;
}

#payment ul.payment_methods > li > label {
	display: inline;
	font-weight: 600;
	cursor: pointer;
}

#payment ul.payment_methods img {
	max-height: 24px;
	width: auto;
	margin-left: 8px;
	vertical-align: middle;
}

#payment .payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: var(--pbd-radius-sm);
	background: var(--pbd-tint);
	color: var(--pbd-ink-soft);
	font-size: 0.9375rem;
}

#payment .payment_box p:last-child {
	margin-bottom: 0;
}

#payment .payment_box::before {
	content: none;
}

.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	color: var(--pbd-muted);
}

#place_order {
	display: flex;
	width: 100%;
	min-height: 52px;
	font-size: 1.0625rem;
}

.woocommerce-checkout .blockUI.blockOverlay {
	background: rgba(255, 253, 249, 0.7) !important;
}

@media (min-width: 1024px) {
	.pbd-checkout__grid {
		grid-template-columns: minmax(0, 1fr) 420px;
		gap: 32px;
	}

	.pbd-checkout__summary {
		position: sticky;
		top: calc(var(--pbd-header-h) + 16px);
	}
}

/* ==========================================================================
   6. Thank-you / order received
   ========================================================================== */

.pbd-thankyou {
	max-width: 860px;
	margin: 0 auto;
}

.pbd-thankyou__hero {
	margin: 0 0 24px;
	padding: 32px 20px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius-lg);
	background: var(--pbd-success-soft);
	text-align: center;
}

.pbd-thankyou__hero--failed {
	background: var(--pbd-error-soft);
}

.pbd-thankyou__icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--pbd-success);
	color: #fff;
}

.pbd-thankyou__hero--failed .pbd-thankyou__icon {
	background: var(--pbd-error);
}

.pbd-thankyou__title {
	margin: 0 0 6px;
	font-size: 1.625rem;
}

.pbd-thankyou__hero p {
	margin: 0;
	color: var(--pbd-ink-soft);
}

.pbd-thankyou__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

ul.woocommerce-order-overview,
.pbd-thankyou__overview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
	list-style: none;
}

ul.woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.8125rem;
	color: var(--pbd-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pbd-ink);
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	ul.woocommerce-order-overview,
	.pbd-thankyou__overview {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}
}

.pbd-thankyou__next {
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-tint);
}

.pbd-thankyou__next-title {
	margin: 0 0 10px;
	font-size: 1.125rem;
}

.pbd-thankyou__steps {
	margin: 0;
	padding-left: 20px;
}

.pbd-thankyou__steps li {
	margin: 0 0 6px;
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin: 0 0 24px;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
}

.woocommerce-customer-details .woocommerce-columns {
	display: grid;
	gap: 16px;
}

@media (min-width: 600px) {
	.woocommerce-customer-details .woocommerce-columns--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.woocommerce-customer-details address {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--pbd-line);
	border-radius: var(--pbd-radius);
	background: var(--pbd-surface);
	font-style: normal;
	line-height: 1.6;
}

/* Order tracking form (shortcode) */
form.track_order {
	max-width: 520px;
}

/* ==========================================================================
   7. Elementor / print niceties
   ========================================================================== */

.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
	margin-bottom: 16px;
}

@media print {
	.pbd-buybar,
	.pbd-free-ship,
	.pbd-thankyou__actions {
		display: none !important;
	}
}

/* ==========================================================================
   8. Overrides for WooCommerce's general stylesheet (higher-specificity defaults)
   ========================================================================== */

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--pbd-brand);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--pbd-btn-radius);
	background: var(--pbd-btn-bg, var(--pbd-brand));
	color: var(--pbd-btn-ink, var(--pbd-on-brand));
	font-family: var(--pbd-btn-font, inherit);
	font-size: var(--pbd-btn-size, 1rem);
	font-weight: var(--pbd-btn-weight, 600);
	line-height: 1.2;
	text-decoration: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--pbd-btn-bg-hover, var(--pbd-brand-dark));
	color: var(--pbd-btn-ink-hover, var(--pbd-btn-ink, var(--pbd-on-brand)));
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button:disabled[disabled] {
	background: var(--pbd-line-strong);
	color: var(--pbd-muted);
	opacity: 1;
	cursor: not-allowed;
}

.woocommerce div.product form.cart .button.pbd-btn--buy-now,
.woocommerce div.product form.cart button.pbd-btn--buy-now {
	flex: 1 1 100%;
	background: var(--pbd-ink);
	color: #fff;
}

.woocommerce div.product form.cart .button.pbd-btn--buy-now:hover,
.woocommerce div.product form.cart button.pbd-btn--buy-now:hover {
	background: var(--pbd-ink);
}

.woocommerce div.product form.cart .button.pbd-btn--buy-now.disabled,
.woocommerce div.product form.cart button.pbd-btn--buy-now:disabled {
	background: var(--pbd-line-strong);
	color: var(--pbd-muted);
}

.woocommerce table.shop_table,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: var(--pbd-line);
}

.woocommerce-cart-form .coupon .button,
.woocommerce-cart-form .actions > .button {
	background: var(--pbd-surface);
	color: var(--pbd-brand);
	border: 1.5px solid var(--pbd-brand);
}

.woocommerce-cart-form .coupon .button:hover,
.woocommerce-cart-form .actions > .button:hover {
	background: var(--pbd-brand);
	color: var(--pbd-on-brand);
}
