/**
 * NNF Commerce — Shopping Cart Component (Header Cart, Off-Canvas Drawer & Cart Page)
 * @package NNF_Commerce
 */

.nnf-quote-request {
	display: grid;
	gap: 12px;
}

.nnf-quote-request p {
	margin: 0;
}

.nnf-quote-request label {
	display: grid;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
}

.nnf-quote-request input:not([type="hidden"]),
.nnf-quote-request textarea {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--wd-border, #dce4d6);
	border-radius: 8px;
	font: inherit;
}

.nnf-quote-request .nnf-quote-honeypot {
	display: none;
}

.nnf-quote-request .nnf-quote-submit {
	min-height: 44px;
	padding: 10px 16px;
	border: none;
	border-radius: 24px;
	background: var(--wd-primary, #8CBC67);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.nnf-quote-request .nnf-quote-submit:hover {
	background: var(--wd-primary-hover, #7ca85a);
}

/* ==========================================================================
   RIGHT SIDE: WISHLIST & CART UNIFIED
   ========================================================================== */
.nnf-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.nnf-header-right a.nnf-cart-opener,
.nnf-header-right button.nnf-cart-opener,
.nnf-header-right .nnf-cart-opener {
	background: transparent;
	border: none;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.nnf-cart-circle-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--nnf-mint-white, #F4FBEF);
	border: 1.5px solid var(--nnf-border, #DDE8D8);
	color: var(--nnf-primary-dark, #39841F);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nnf-cart-opener:hover .nnf-cart-circle-icon {
	background-color: var(--nnf-primary, #4F9E28);
	border-color: var(--nnf-primary, #4F9E28);
	color: #ffffff;
	transform: translateY(-1.5px) scale(1.03);
	box-shadow: 0 4px 12px rgba(79, 158, 40, 0.28);
}

.nnf-cart-circle-icon .nnf-cart-counter,
.nnf-combined-circle-icon .nnf-cart-counter {
	position: absolute;
	top: -3px;
	right: -3px;
	background: var(--nnf-orange-accent, #F5A623);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
	line-height: 1;
}

.nnf-cart-meta {
	text-align: left;
	display: flex;
	flex-direction: column;
}

.nnf-cart-meta-sub {
	font-size: 11px;
	font-weight: 700;
	color: var(--nnf-text-muted, #667264);
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.2;
}

.nnf-cart-meta-total {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--nnf-text-main, #1E2B1F);
	line-height: 1.2;
	margin-top: 2px;
}


/* ==========================================================================
   OFF-CANVAS CART DRAWER & STICKY CART BAR
   ========================================================================= */
.nnf-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0.35s ease;
}

.nnf-cart-drawer.active {
	visibility: visible;
	pointer-events: auto;
}

.nnf-drawer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.nnf-cart-drawer.active .nnf-drawer-overlay {
	opacity: 1;
}

.nnf-drawer-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 400px;
	background: #fff;
	box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	flex-direction: column;
}

.nnf-cart-drawer.active .nnf-drawer-content {
	transform: translateX(0);
}

.nnf-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--wd-border);
}

.nnf-drawer-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wd-primary);
}

.nnf-drawer-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var(--wd-dark);
}

.nnf-drawer-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #999;
}

.nnf-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 22px;
}

.nnf-drawer-body .woocommerce-mini-cart__buttons a.checkout,
.woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--wd-primary);
	color: #fff;
	border-radius: var(--wd-radius-pill);
}


/* ==========================================================================
   WoodMart Vegetables Shopping Cart & Wishlist Sidebar (Off-Canvas Drawer)
   ========================================================================== */
.cart-widget-side.wd-side-hidden {
	--wd-side-hidden-w: 380px;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1000001;
	display: flex;
	flex-direction: column;
	width: min(var(--wd-side-hidden-w), 100vw);
	background-color: #ffffff;
	box-shadow: -5px 0 35px rgba(0, 0, 0, 0.15);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
	outline: none;
	user-select: none;
}

.cart-widget-side.wd-side-hidden:is(.wd-opened, .active) {
	transform: translate3d(0, 0, 0);
}

.cart-widget-side.loading {
	pointer-events: none;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

/* Backdrop Overlay */
.wd-close-side,
.nnf-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(2px);
	z-index: 1000000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wd-close-side:is(.active, .wd-opened),
.nnf-drawer-overlay:is(.active, .wd-opened) {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* 2-Tab Drawer Navigation Header */
.nnf-side-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 12px 0 16px;
	background: #ffffff;
	border-bottom: 1.5px solid #f0f0f0;
	min-height: 52px;
	flex-shrink: 0;
	gap: 10px;
}

.nnf-side-tabs-nav {
	display: flex;
	flex: 1 1 auto;
	gap: 0;
	align-items: stretch;
	height: 100%;
}

.nnf-side-tab-btn {
	flex: 1 1 50%;
	width: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 6px;
	background: transparent;
	border: none;
	border-bottom: 2.5px solid transparent;
	font-size: 13.5px;
	font-weight: 700;
	color: #666666;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
	text-align: center;
}

.nnf-side-tab-btn svg {
	stroke: currentColor;
	flex-shrink: 0;
}

.nnf-side-tab-btn.active {
	color: var(--wd-primary, #8CBC67);
	border-bottom-color: var(--wd-primary, #8CBC67);
}

.nnf-side-tab-btn .nnf-tab-badge,
.nnf-side-tab-btn .nnf-cart-counter,
.nnf-side-tab-btn .nnf-wishlist-counter {
	position: static;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 19px;
	height: 18px;
	padding: 0 6px;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	margin: 0 0 0 6px;
	border: none;
	box-shadow: none;
	flex-shrink: 0;
	background: #edf5e6;
	color: #689f38;
	visibility: visible;
	opacity: 1;
}

.nnf-side-tab-btn.active .nnf-tab-badge,
.nnf-side-tab-btn.active .nnf-cart-counter,
.nnf-side-tab-btn.active .nnf-wishlist-counter {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
}

.nnf-side-drawer-close {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f5f5f5;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444444;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.15s ease;
	flex-shrink: 0;
	margin-left: 4px;
}

.nnf-side-drawer-close:hover {
	background: #eaeaea;
	color: #111111;
	transform: translateX(2px);
}

/* Tab Panels */
.nnf-side-tab-panel {
	display: none;
	flex: 1;
	flex-direction: column;
	overflow-y: auto;
	min-height: 0;
}

.nnf-side-tab-panel.active {
	display: flex;
}

/* ==========================================================================
   Unified Drawer Products Layout (Shared across Cart & Wishlist tabs)
   Ensures 100% identical dimensions, zero layout shifts / jerking
   ========================================================================== */
.cart-widget-side .shopping-cart-widget-body,
.cart-widget-side .nnf-side-wishlist-body {
	padding: 14px 16px;
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cart-widget-side .nnf-side-wishlist-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	transition: opacity 0.2s ease;
}

.cart-widget-side ul.cart_list.product_list_widget,
.cart-widget-side .nnf-side-wishlist-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Unified Card Item */
.cart-widget-side .nnf-unified-drawer-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 12px;
	background: #fafafa;
	border: 1px solid #ebebeb;
	border-radius: 8px;
	box-sizing: border-box;
	min-height: 94px;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-widget-side .nnf-unified-drawer-item:hover {
	background: #ffffff;
	border-color: #dce7d3;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

/* Left Column: Thumbnail + Unit Price */
.cart-widget-side .nnf-item-thumb-col {
	width: 65px;
	min-width: 65px;
	max-width: 65px;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	gap: 4px;
}

.cart-widget-side .nnf-item-thumb-col .cart-item-image,
.cart-widget-side .nnf-item-thumb-col .nnf-side-wishlist-thumb {
	width: 65px;
	height: 65px;
	aspect-ratio: 1/1;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e8e8e8;
	flex-shrink: 0;
}

.cart-widget-side .nnf-item-thumb-col img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-widget-side .nnf-unit-price-below {
	font-size: 11px;
	font-weight: 700;
	color: var(--wd-primary, #8CBC67);
	text-align: center;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 65px;
}

.cart-widget-side .nnf-unit-price-below del {
	color: #999999;
	font-size: 10px;
	font-weight: 400;
	display: block;
}

.cart-widget-side .nnf-unit-price-below ins {
	text-decoration: none;
}

/* Right Column: Title + Bottom Row */
.cart-widget-side .nnf-item-info-col {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 65px;
	padding-right: 22px;
}

.cart-widget-side .wd-entities-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #242424;
	line-height: 1.35;
	margin: 0 0 6px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.cart-widget-side .wd-entities-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cart-widget-side .wd-entities-title a:hover {
	color: var(--wd-primary, #8CBC67);
}

/* Bottom Row inside Item */
.cart-widget-side .nnf-item-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	width: 100%;
}

/* Quantity Box */
.cart-widget-side div.quantity.nnf-qty-box,
.cart-widget-side .quantity.nnf-qty-box {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dce4d6;
	border-radius: 14px;
	background: #ffffff;
	height: 26px;
	width: 78px;
	min-width: 78px;
	max-width: 78px;
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
}

.cart-widget-side .quantity.nnf-qty-box button.btn,
.cart-widget-side .quantity.nnf-qty-box .btn {
	background: transparent;
	border: none;
	width: 22px;
	height: 26px;
	font-size: 13px;
	font-weight: 700;
	color: #555555;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.cart-widget-side .quantity.nnf-qty-box button.btn:hover,
.cart-widget-side .quantity.nnf-qty-box .btn:hover {
	background: #f0f6ec;
	color: var(--wd-primary, #8CBC67);
}

.cart-widget-side .quantity.nnf-qty-box input.qty,
.cart-widget-side .quantity.nnf-qty-box .qty {
	width: 34px;
	height: 26px;
	text-align: center;
	border: none;
	font-size: 12px;
	font-weight: 700;
	color: #222222;
	padding: 0;
	background: transparent;
	outline: none;
	margin: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.cart-widget-side .quantity.nnf-qty-box .qty::-webkit-inner-spin-button,
.cart-widget-side .quantity.nnf-qty-box .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Cart Subtotal in Bottom Row */
.cart-widget-side .nnf-item-subtotal {
	font-size: 13px;
	font-weight: 700;
	color: #e53935;
	text-align: right;
	white-space: nowrap;
	line-height: 1;
}

/* Wishlist actions share the drawer's primary button style. */
.cart-widget-side a.nnf-side-add-cart-btn,
.cart-widget-side button.nnf-side-add-cart-btn,
.cart-widget-side .nnf-side-add-cart-btn,
.cart-widget-side a.nnf-side-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 26px;
	line-height: 26px;
	padding: 0 10px;
	border-radius: 13px;
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	border: none;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.cart-widget-side a.nnf-side-add-cart-btn:hover,
.cart-widget-side button.nnf-side-add-cart-btn:hover,
.cart-widget-side .nnf-side-add-cart-btn:hover,
.cart-widget-side a.nnf-side-quote-btn:hover {
	background: #7ca85a;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
}

.cart-widget-side a.nnf-side-quote-btn {
	min-height: 32px;
	height: auto;
	padding: 6px 10px;
	line-height: 1.3;
	white-space: normal;
	text-align: center;
	box-sizing: border-box;
}

.cart-widget-side a.nnf-side-quote-btn:focus-visible {
	outline: 2px solid var(--wd-primary, #8CBC67);
	outline-offset: 2px;
}

.cart-widget-side .nnf-side-out-stock {
	font-size: 11px;
	color: #999999;
	font-weight: 600;
	background: #f0f0f0;
	padding: 3px 8px;
	border-radius: 10px;
}

/* Top-Right Red Remove Button on Each Card (Cart & Wishlist) */
.cart-widget-side a.nnf-item-remove-btn,
.cart-widget-side .nnf-item-remove-btn,
.cart-widget-side a.remove.remove_from_cart_button,
.cart-widget-side .remove.remove_from_cart_button,
.cart-widget-side a.remove.nnf-side-wishlist-remove,
.cart-widget-side .remove.nnf-side-wishlist-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff0f0;
	color: #e53935;
	border: 1px solid #ffd8d8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	z-index: 2;
	transition: all 0.2s ease;
	padding: 0;
}

.cart-widget-side a.nnf-item-remove-btn:hover,
.cart-widget-side .nnf-item-remove-btn:hover,
.cart-widget-side a.remove.remove_from_cart_button:hover,
.cart-widget-side .remove.remove_from_cart_button:hover,
.cart-widget-side a.remove.nnf-side-wishlist-remove:hover,
.cart-widget-side .remove.nnf-side-wishlist-remove:hover {
	background: #e53935;
	color: #ffffff;
	border-color: #e53935;
	text-decoration: none;
	transform: scale(1.08);
}

.nnf-side-wishlist-footer {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #e8e8e8;
	text-align: center;
}

a.nnf-btn-view-wishlist,
.nnf-btn-view-wishlist {
	width: 100%;
	text-align: center;
	background: #f4f8f2;
	color: var(--wd-primary, #8CBC67);
	border: 1.5px solid var(--wd-primary, #8CBC67);
	font-weight: 700;
	border-radius: 25px;
	padding: 10px 20px;
	font-size: 13px;
	display: block;
	text-decoration: none;
	transition: all 0.2s ease;
}

a.nnf-btn-view-wishlist:hover,
.nnf-btn-view-wishlist:hover {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	text-decoration: none;
}

.nnf-side-wishlist-empty {
	text-align: center;
	padding: 40px 16px;
	margin: auto 0;
}

.nnf-side-wishlist-empty .nnf-empty-icon {
	font-size: 42px;
	margin-bottom: 12px;
	line-height: 1;
}

.nnf-side-wishlist-empty h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--wd-dark, #242424);
	margin: 0 0 6px 0;
}

.nnf-side-wishlist-empty p {
	font-size: 13px;
	color: var(--wd-dark-muted, #777777);
	margin: 0 0 18px 0;
	line-height: 1.4;
}

a.nnf-empty-shop-btn,
.nnf-empty-shop-btn {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	font-weight: 700;
	border-radius: 25px;
	padding: 10px 24px;
	font-size: 13px;
	display: inline-block;
	text-decoration: none;
	border: none;
}

a.nnf-empty-shop-btn:hover,
.nnf-empty-shop-btn:hover {
	background: var(--wd-primary-hover, #80AB5E);
	color: #ffffff;
	text-decoration: none;
}

/* Mobile Combined Cart & Wishlist Button */
.nnf-mobile-combined-btn {
	display: none;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.nnf-combined-circle-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 2px 8px rgba(140, 188, 103, 0.3);
	transition: transform 0.2s ease;
}

.nnf-combined-circle-icon:hover {
	transform: scale(1.05);
}

.nnf-combined-cart-svg {
	stroke: #ffffff;
}

.nnf-combined-badge-heart {
	position: absolute;
	bottom: 0px;
	left: -1px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nnf-combined-counter {
	position: absolute;
	top: -3px;
	right: -3px;
	background: #ff4d4f;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 1.5px solid #ffffff;
	line-height: 1;
}

/* Header Heading */
.cart-widget-side .wd-heading {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #f0f0f0;
	background: #ffffff;
}

.cart-widget-side .wd-heading .title {
	font-size: 18px;
	font-weight: 700;
	color: var(--wd-dark, #242424);
	margin: 0;
	letter-spacing: -0.2px;
}

.cart-widget-side .close-side-widget a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #888888;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.cart-widget-side .close-side-widget a:hover {
	color: var(--wd-primary, #8CBC67);
}

.cart-widget-side .close-side-widget .wd-action-icon {
	font-size: 20px;
	line-height: 1;
}

/* Cart Body & Scroll */
.cart-widget-side .widget_shopping_cart {
	position: relative;
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.cart-widget-side .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.cart-widget-side .shopping-cart-widget-body {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}

.cart-widget-side .shopping-cart-widget-body::-webkit-scrollbar {
	width: 5px;
}

.cart-widget-side .shopping-cart-widget-body::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}

/* Product Items List - Handled by Unified Drawer Layout above */


/* Cart Footer */
.cart-widget-side .shopping-cart-widget-footer {
	flex: 0 0 auto;
	padding: 16px 20px 22px;
	border-top: 1px solid #eeeeee;
	background: #ffffff;
}

.cart-widget-side .woocommerce-mini-cart__total.total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	margin: 0 0 12px 0;
}

.cart-widget-side .woocommerce-mini-cart__total.total strong {
	font-weight: 700;
	color: #444444;
}

.cart-widget-side .woocommerce-mini-cart__total.total .amount {
	font-size: 18px;
	font-weight: 800;
	color: var(--wd-primary, #8CBC67);
}

/* Free Shipping Progress Bar */
.cart-widget-side .wd-free-progress-bar {
	background: #f7faf5;
	border: 1px dashed #d6e8cb;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.cart-widget-side .wd-free-progress-bar .progress-msg {
	font-size: 11.5px;
	color: #4c5a3c;
	font-weight: 600;
	margin-bottom: 6px;
	text-align: center;
	line-height: 1.4;
}

.cart-widget-side .wd-free-progress-bar .progress-msg .amount {
	color: #e53935;
	font-weight: 700;
}

.cart-widget-side .wd-free-progress-bar .progress-area {
	height: 7px;
	background: #e6ede1;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.cart-widget-side .wd-free-progress-bar .progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #8cbc67, #5c9b3a);
	border-radius: 4px;
	transition: width 0.4s ease;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 75%, transparent 75%, transparent);
	background-size: 14px 14px;
}

/* Action Buttons */
.cart-widget-side .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
}

.cart-widget-side .woocommerce-mini-cart__buttons a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border-radius: 21px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	text-transform: none;
	transition: all 0.2s ease;
}

.cart-widget-side .woocommerce-mini-cart__buttons a.button.btn-cart {
	background: #f4f8f2;
	color: #4c5a3c;
	border: 1px solid #d6e8cb;
}

.cart-widget-side .woocommerce-mini-cart__buttons a.button.btn-cart:hover {
	background: #e6f0e2;
	border-color: var(--wd-primary, #8CBC67);
	color: var(--wd-dark, #242424);
}

.cart-widget-side .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	border: 1px solid #8cbc67;
	box-shadow: 0 4px 12px rgba(140, 188, 103, 0.35);
}

.cart-widget-side .woocommerce-mini-cart__buttons a.button.checkout:hover {
	background: var(--wd-primary-hover, #80AB5E);
	border-color: #7ca859;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(140, 188, 103, 0.45);
}

/* Empty Mini Cart */
.cart-widget-side .wd-empty-mini-cart {
	padding: 40px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.cart-widget-side .wd-empty-cart-icon {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.7;
}

.cart-widget-side .woocommerce-mini-cart__empty-message {
	font-size: 14px;
	color: var(--wd-dark-muted, #777777);
	margin-bottom: 16px;
}

.cart-widget-side .wd-empty-mini-cart a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 20px;
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.cart-widget-side .wd-empty-mini-cart a.button:hover {
	background: var(--wd-primary-hover, #80AB5E);
}


/* ==========================================================================
   WOODMART VEGETABLES CART PAGE RECREATION
   ========================================================================== */
body.woocommerce-cart .entry-header,
body.woocommerce-cart .ct-page-title,
.woocommerce-cart .entry-header,
.woocommerce-cart .ct-page-title {
	display: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper .button,
body.woocommerce-cart .woocommerce-message .button,
.woocommerce-cart .woocommerce-notices-wrapper .button,
.woocommerce-cart .woocommerce-message .button {
	background-color: #7eb343;
	color: #ffffff;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.2s ease;
}

body.woocommerce-cart .woocommerce-notices-wrapper .button:hover,
body.woocommerce-cart .woocommerce-message .button:hover,
.woocommerce-cart .woocommerce-notices-wrapper .button:hover,
.woocommerce-cart .woocommerce-message .button:hover {
	background-color: #6ca036;
	color: #ffffff;
}

.wd-page-title {
	background-color: #faf8f5;
	padding: 22px 24px;
	margin-bottom: 28px;
	border-radius: 8px;
	border: 1px solid #f1ece4;
}

.wd-checkout-steps {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wd-checkout-steps li {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	color: #1e293b;
}

.wd-checkout-steps li:not(:last-child)::after {
	content: "→";
	font-size: 16px;
	font-weight: 400;
	opacity: 0.35;
	color: #64748b;
}

.wd-checkout-steps li a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.wd-checkout-steps .step-inactive {
	opacity: 0.45;
}

.wd-checkout-steps .step-inactive a:hover {
	opacity: 0.85;
	color: #7eb343;
}

.wd-checkout-steps .step-active {
	opacity: 1;
}

.wd-checkout-steps .step-active span {
	text-decoration: underline 3px solid #7eb343;
	text-underline-offset: 8px;
	color: #0f172a;
}

/* Free Shipping Progress Bar */
.wd-shipping-progress-bar {
	padding: 18px 22px;
	border: 1.5px dashed #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wd-shipping-progress-bar .stock-info .free-shipping-msg {
	font-size: 14.5px;
	color: #334155;
	margin: 0 0 10px 0;
	font-weight: 500;
}

.wd-shipping-progress-bar .stock-info .free-shipping-msg strong {
	color: #7eb343;
	font-weight: 700;
}

.wd-shipping-progress-bar .stock-info .free-shipping-msg.success {
	color: #16a34a;
	font-weight: 700;
}

.wd-shipping-progress-bar .progress-area {
	height: 8px;
	width: 100%;
	background-color: #e2e8f0;
	border-radius: 99px;
	overflow: hidden;
}

.wd-shipping-progress-bar .progress-bar {
	height: 100%;
	border-radius: 99px;
	background-color: #7eb343;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25) 75%, transparent 75%, transparent);
	background-size: 18px 18px;
	transition: width 0.4s ease;
}

.nnf-shipping-progress {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--wd-primary, #8cbc67);
	appearance: none;
}

.nnf-shipping-progress::-webkit-progress-bar {
	background: transparent;
}

.nnf-shipping-progress::-webkit-progress-value {
	background: var(--wd-primary, #8cbc67);
	border-radius: 99px;
}

.nnf-shipping-progress::-moz-progress-bar {
	background: var(--wd-primary, #8cbc67);
	border-radius: 99px;
}

/* Cart Page Main Layout */
.nnf-cart-page-container {
	padding-top: 10px;
	padding-bottom: 60px;
}

.cart-content-wrapper {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	margin-bottom: 40px;
}

.cart-content-left {
	flex: 1 1 65%;
	min-width: 0;
}

.cart-content-right {
	flex: 0 0 35%;
	min-width: 320px;
	position: sticky;
	top: 90px;
}

@media (max-width: 1024px) {
	.cart-content-wrapper {
		flex-direction: column;
	}
	.cart-content-left,
	.cart-content-right {
		flex: 1 1 100%;
		width: 100%;
		position: static;
	}
}

/* Cart Table */
.woocommerce-cart-form {
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.woocommerce-cart-form table.shop_table.cart {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0;
	border: none;
}

.woocommerce-cart-form table.shop_table.cart thead th {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 14px 18px;
	font-size: 13px;
	text-transform: uppercase;
	font-weight: 700;
	color: #475569;
	letter-spacing: 0.5px;
	text-align: left;
}

.woocommerce-cart-form table.shop_table.cart tbody td {
	padding: 8px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	background: #ffffff;
}

.woocommerce-cart-form table.shop_table.cart tbody tr:hover td {
	background: #fafcfb;
}

.woocommerce-cart-form table.shop_table.cart td.product-remove {
	width: 28px;
	padding-right: 0;
	text-align: center;
}

.woocommerce-cart-form table.shop_table.cart td.product-remove .wd-remove-item {
	font-size: 20px;
	line-height: 1;
	color: #94a3b8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.2s ease;
}

.woocommerce-cart-form table.shop_table.cart td.product-remove .wd-remove-item:hover {
	color: #ef4444;
	background: #fee2e2;
}

.woocommerce-cart-form table.shop_table.cart td.product-thumbnail {
	width: 62px;
	padding-right: 8px;
}

.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #eef2f6;
	display: block;
}

.woocommerce-cart-form table.shop_table.cart td.product-name a.product-title-link {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-block;
	margin-bottom: 2px;
	line-height: 1.35;
}

.woocommerce-cart-form table.shop_table.cart td.product-name a.product-title-link:hover {
	color: #7eb343;
}

.woocommerce-cart-form table.shop_table.cart td.product-price {
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
	white-space: nowrap;
}

.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
	font-size: 15px;
	font-weight: 700;
	color: #7eb343;
	white-space: nowrap;
}

/* WoodMart Quantity Control (Cart Table) */
.wd-quantity.nnf-cart-qty-box {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #dcdfe4;
	border-radius: 4px;
	background: #ffffff;
	height: 32px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.wd-quantity.nnf-cart-qty-box:focus-within {
	border-color: var(--wd-primary, #8CBC67);
	box-shadow: 0 0 0 2px rgba(140, 188, 103, 0.15);
}

.wd-quantity.nnf-cart-qty-box .nnf-cart-qty-btn {
	width: 28px;
	height: 100%;
	border: none;
	background: #f8fafc;
	color: #475569;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
	user-select: none;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.wd-quantity.nnf-cart-qty-box .nnf-cart-qty-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.wd-quantity.nnf-cart-qty-box input.nnf-cart-qty-input,
.wd-quantity.nnf-cart-qty-box .nnf-cart-qty-input {
	width: 38px;
	height: 100%;
	border: none;
	text-align: center;
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	background: #ffffff;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
}

.wd-quantity.nnf-cart-qty-box .nnf-cart-qty-input::-webkit-outer-spin-button,
.wd-quantity.nnf-cart-qty-box .nnf-cart-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wd-quantity.nnf-cart-qty-box .ct-increase,
.wd-quantity.nnf-cart-qty-box .ct-decrease {
	display: none;
}

/* Cart Table Actions Row */
.wd-cart-actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 20px;
	background: #fafafa;
	border-top: 1px solid #eef2f6;
}

.wd-coupon-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wd-coupon-form .input-text {
	height: 42px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 0 14px;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.2s ease;
	background: #ffffff;
	width: 180px;
}

.wd-coupon-form .input-text:focus {
	border-color: #7eb343;
}

body.woocommerce-cart .wd-cart-actions-row button.btn-apply-coupon,
body.woocommerce-cart .woocommerce-cart-form button[name="apply_coupon"],
.woocommerce-cart .wd-cart-actions-row button.btn-apply-coupon,
.woocommerce-cart .woocommerce-cart-form button[name="apply_coupon"] {
	height: 42px;
	background-color: #7eb343;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 0 20px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

body.woocommerce-cart .wd-cart-actions-row button.btn-apply-coupon:hover,
body.woocommerce-cart .woocommerce-cart-form button[name="apply_coupon"]:hover,
.woocommerce-cart .wd-cart-actions-row button.btn-apply-coupon:hover,
.woocommerce-cart .woocommerce-cart-form button[name="apply_coupon"]:hover {
	background-color: #6ca036;
	color: #ffffff;
}

body.woocommerce-cart .wd-cart-actions-row button.btn-update-cart,
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"],
.woocommerce-cart .wd-cart-actions-row button.btn-update-cart,
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
	height: 42px;
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 0 20px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

body.woocommerce-cart .wd-cart-actions-row button.btn-update-cart:hover,
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover,
.woocommerce-cart .wd-cart-actions-row button.btn-update-cart:hover,
.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:hover {
	background-color: #e2e8f0;
	color: #0f172a;
}

/* Cart Totals Box */
.cart_totals .cart-totals-inner {
	padding: 26px 28px;
	border: 3px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.cart_totals .wd-cart-totals-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 18px 0;
	padding-bottom: 14px;
	border-bottom: 2px solid #f1f5f9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wd-cart-totals-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.wd-cart-totals-table th {
	padding: 12px 0;
	font-weight: 600;
	color: #64748b;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #f1f5f9;
}

.wd-cart-totals-table td {
	padding: 12px 0;
	text-align: right;
	font-weight: 600;
	color: #1e293b;
	font-size: 14.5px;
	vertical-align: top;
	border-bottom: 1px solid #f1f5f9;
}

.wd-cart-totals-table .order-total th {
	font-size: 16px;
	color: #0f172a;
	padding: 16px 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.wd-cart-totals-table .order-total td {
	font-size: 22px;
	font-weight: 700;
	color: #7eb343;
	padding: 16px 0;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.wd-shipping-delivery-note {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 22px;
	padding: 12px 14px;
	background: #f8fafc;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	line-height: 1.4;
}

.wd-shipping-delivery-note svg {
	flex-shrink: 0;
	stroke: #7eb343;
}

.cart_totals .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	height: 50px;
	line-height: 50px;
	background: #7eb343;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(126, 179, 67, 0.35);
}

.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
	background: #6ca036;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(126, 179, 67, 0.45);
}

/* Empty Cart State */
.wd-empty-cart-page {
	padding: 60px 20px;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.wd-empty-cart-icon {
	margin: 0 auto 24px;
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0fdf4;
	border-radius: 50%;
	color: #7eb343;
}

.wd-empty-block-title {
	font-size: 26px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 14px 0;
}

.wd-empty-block-text {
	font-size: 15px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 28px 0;
}

.wd-return-shop-btn {
	display: inline-block;
	padding: 14px 36px;
	background: #7eb343;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: 0 3px 12px rgba(126, 179, 67, 0.3);
}

.wd-return-shop-btn:hover {
	background: #6ca036;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(126, 179, 67, 0.4);
}

/* Cross-sells Carousel / Grid */
.cross-sells {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #f1f5f9;
}

.cross-sells h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}



/* Wishlist cart state: one editable quantity per exact WooCommerce cart line. */
.cart-widget-side .nnf-wishlist-cart-status{margin:6px 0;color:#32651e;font-size:12px;font-weight:700;line-height:1.5}
.cart-widget-side .nnf-wishlist-cart-line{display:flex;flex-direction:column;gap:6px;margin-top:8px;min-width:0}
.cart-widget-side .nnf-wishlist-cart-variant{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.cart-widget-side .nnf-wishlist-cart-variant dl{margin:0}
.cart-widget-side .nnf-wishlist-feedback{padding:10px 16px;margin:0;color:#294720;font-size:13px;line-height:1.5}


/* Quantity drafts never block the drawer or replace another active product. */
.cart-widget-side .nnf-item-bottom-row{flex-wrap:wrap}
.cart-widget-side .nnf-quantity-note{order:3;flex-basis:100%;font-size:11px;line-height:1.3;color:#52634a}
.nnf-quantity-feedback{font-size:12px;line-height:1.4;padding:8px 16px;margin:0;color:#294720}
.nnf-quantity-feedback:empty,.nnf-quantity-note:empty{display:none}
.nnf-quantity-feedback .nnf-quantity-retry{margin-left:8px;padding:4px 8px;font-size:12px}
