/**
 * SelvaMart Woo – Frontend layout styles.
 * BEM: .selvamart-woo__*
 */

.selvamart-woo {
	--selvamart-woo-gap: 1.25rem;
	--selvamart-woo-card-bg: #fff;
	--selvamart-woo-border: var(--selvamart-border, #e5e7eb);
	--selvamart-woo-radius: 14px;
	--selvamart-woo-primary: #ff6546;
	--selvamart-woo-accent: #ffc327;
}

.selvamart-woo__notice {
	margin: 1rem 0;
	color: #666;
}

/* Sorter / ordering */
.selvamart-woo__sorter {
	margin-bottom: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.selvamart-woo__result-count {
	font-size: 0.9rem;
	color: #555;
}

.selvamart-woo__ordering {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.selvamart-woo__orderby,
.selvamart-woo__perpage {
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--selvamart-woo-border);
	border-radius: 6px;
}

.selvamart-woo__sorter-clr {
	clear: both;
}

/* Grid */
.selvamart-woo__grid {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: var(--selvamart-woo-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (max-width: 767px) {
	.selvamart-woo__grid {
		display: flex;
		grid-template-columns: none !important;
		gap: 1rem;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1rem;
		-webkit-overflow-scrolling: touch;
		padding: 0.25rem 1rem 1.25rem;
		margin-left: -1rem;
		margin-right: -1rem;
	}
	.selvamart-woo__grid::-webkit-scrollbar {
		height: 8px;
	}
	.selvamart-woo__grid::-webkit-scrollbar-thumb {
		background: rgba(255, 101, 70, 0.55);
		border-radius: 999px;
	}
}

/* Mobile first: mb columns */
.selvamart-woo__grid--mb-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.selvamart-woo__grid--mb-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Tablet */
@media (min-width: 768px) {
	.selvamart-woo__grid--tb-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.selvamart-woo__grid--tb-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.selvamart-woo__grid--tb-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.selvamart-woo__grid--tb-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.selvamart-woo__grid--tb-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Desktop: main columns */
@media (min-width: 1024px) {
	.selvamart-woo__grid--col-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.selvamart-woo__grid--col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.selvamart-woo__grid--col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.selvamart-woo__grid--col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.selvamart-woo__grid--col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.selvamart-woo__grid--col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.selvamart-woo__item {
	position: relative;
	background: var(--selvamart-woo-card-bg);
	border: 1px solid var(--selvamart-woo-border);
	border-radius: var(--selvamart-woo-radius);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
	animation: selvamartWooFadeUp 0.38s ease both;
	list-style: none;
	margin: 0;
}

.selvamart-woo__item:nth-child(2),
.selvamart-woo__vendor-card:nth-child(2) { animation-delay: 0.04s; }
.selvamart-woo__item:nth-child(3),
.selvamart-woo__vendor-card:nth-child(3) { animation-delay: 0.08s; }
.selvamart-woo__item:nth-child(4),
.selvamart-woo__vendor-card:nth-child(4) { animation-delay: 0.12s; }
.selvamart-woo__item:nth-child(5),
.selvamart-woo__vendor-card:nth-child(5) { animation-delay: 0.16s; }
@media (max-width: 767px) {
	.selvamart-woo__item {
		flex: 0 0 min(76vw, 280px);
		scroll-snap-align: start;
	}
}

.selvamart-woo__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
	border-color: rgba(13, 110, 253, 0.35);
}

.selvamart-woo__image {
	position: relative;
	overflow: hidden;
	background: #f8f9fa;
	margin: -1rem -1rem 0.75rem;
}

.selvamart-woo__image a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.selvamart-woo__image img {
	width: 100%;
	height: clamp(260px, 32vw, 390px);
	aspect-ratio: 2 / 3;
	object-fit: contain;
	object-position: center;
	display: block;
	padding: 1rem;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	transition: transform 0.35s ease;
}
@media (max-width: 767px) {
	.selvamart-woo__image img {
		height: 310px;
	}
}

.selvamart-woo__item:hover .selvamart-woo__image img {
	transform: scale(1.04);
}

.selvamart-woo__title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	line-height: 1.3;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.selvamart-woo__title a {
	text-decoration: none;
	color: inherit;
}

.selvamart-woo__title a:hover {
	text-decoration: underline;
}

.selvamart-woo__price {
	margin: 0.5rem 0;
	font-weight: 800;
	font-size: 1.12rem;
	color: #111827;
}

.selvamart-woo__rating {
	margin: 0.25rem 0;
}

.selvamart-woo__excerpt {
	font-size: 0.9rem;
	color: #555;
	margin: 0.5rem 0;
	line-height: 1.4;
}

.selvamart-woo__add-to-cart {
	margin-top: auto;
	padding-top: 0.75rem;
}
.selvamart-woo__add-to-cart .button,
.selvamart-woo__add-to-cart a.button,
.selvamart-woo__add-to-cart button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 1rem;
	border-radius: 4px;
	border: 1px solid var(--selvamart-woo-primary);
	background: var(--selvamart-woo-primary);
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 16px rgba(255, 101, 70, 0.18);
	transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.selvamart-woo__add-to-cart .button:hover,
.selvamart-woo__add-to-cart a.button:hover,
.selvamart-woo__add-to-cart button.button:hover {
	transform: translateY(-1px);
	background: var(--selvamart-woo-accent);
	border-color: var(--selvamart-woo-accent);
	color: #111111 !important;
	box-shadow: 0 10px 20px rgba(255, 195, 39, 0.22);
}

.selvamart-woo__categories,
.selvamart-woo__sku,
.selvamart-woo__vendor-name {
	font-size: 0.85rem;
	color: #666;
	margin: 0.25rem 0;
}

.selvamart-woo__vendor-name span {
	color: #6b7280;
}

.selvamart-woo__vendor-name a {
	color: #1f2937;
	font-weight: 700;
	text-decoration: none;
}

.selvamart-woo__vendor-name a:hover {
	color: var(--selvamart-woo-primary);
}

/* List layout */
.selvamart-woo__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.selvamart-woo__list-item {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--selvamart-woo-border);
	list-style: none;
	margin: 0;
}

.selvamart-woo__list-item:last-child {
	border-bottom: none;
}

.selvamart-woo__list-item__media {
	flex: 0 0 180px;
	max-width: 180px;
}

.selvamart-woo__list-item__media .selvamart-woo__image {
	margin: 0;
}

.selvamart-woo__list-item__media .selvamart-woo__image img {
	width: 100%;
	height: 270px;
	aspect-ratio: 2 / 3;
	object-fit: contain;
}

.selvamart-woo__list-item__body {
	flex: 1;
	min-width: 0;
}

.selvamart-woo__list-item__body--full {
	flex: 1 1 100%;
}

.selvamart-woo__list-item__clr {
	clear: both;
	height: 0;
}

@media (max-width: 600px) {
	.selvamart-woo__list-item__media {
		flex: 0 0 120px;
		max-width: 120px;
	}
}

@media (max-width: 767px) {
	.selvamart-woo__sorter {
		align-items: stretch;
	}

	.selvamart-woo__ordering,
	.selvamart-woo__orderby,
	.selvamart-woo__perpage {
		width: 100%;
		min-height: 44px;
	}

	.selvamart-woo__list-item {
		gap: 1rem;
	}

	.selvamart-woo__list-item__media {
		flex: 0 0 130px;
		max-width: 130px;
	}

	.selvamart-woo__list-item__media .selvamart-woo__image img {
		height: 195px;
	}
}

/* Table layout */
.selvamart-woo__table-wrap {
	overflow-x: auto;
	margin-bottom: 2rem;
}

.selvamart-woo__table {
	width: 100%;
	border-collapse: collapse;
}

.selvamart-woo__table th,
.selvamart-woo__table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border: 1px solid var(--selvamart-woo-border);
}

.selvamart-woo__table thead th {
	background: #f8f9fa;
	font-weight: 600;
}

.selvamart-woo__table tbody tr:hover {
	background: #fafafa;
}

@media (max-width: 768px) {
	.selvamart-woo__table .selvamart-woo__table-td::before {
		content: attr(data-title);
		font-weight: 600;
		display: inline-block;
		margin-right: 0.5rem;
	}
}

/* Pagination */
.selvamart-woo__pagination {
	margin: 2rem 0;
}

.selvamart-woo__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.selvamart-woo__pagination a,
.selvamart-woo__pagination span {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--selvamart-woo-border);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
}

.selvamart-woo__pagination .current {
	background: #0d6efd;
	color: #fff;
	border-color: #0d6efd;
}

.selvamart-woo__pagination a:hover {
	background: #f0f0f0;
}

/* Theme compatibility: use theme product styles when inside theme */
.selvamart-woo .product .selvamart-woo__image a {
	border: none;
}

/* Dokan vendor cards */
.selvamart-woo__vendor-grid {
	display: grid;
	gap: var(--selvamart-woo-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.selvamart-woo__vendor-grid.selvamart-woo__grid--col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.selvamart-woo__vendor-grid.selvamart-woo__grid--col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.selvamart-woo__vendor-grid.selvamart-woo__grid--col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.selvamart-woo__vendor-grid.selvamart-woo__grid--col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.selvamart-woo__vendor-grid.selvamart-woo__grid--col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.selvamart-woo__vendor-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--selvamart-woo-border);
	border-radius: var(--selvamart-woo-radius);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
	animation: selvamartWooFadeUp 0.38s ease both;
}

.selvamart-woo__vendor-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 101, 70, 0.38);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.selvamart-woo__vendor-banner {
	display: block;
	height: 132px;
	background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
	overflow: hidden;
}

.selvamart-woo__vendor-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.selvamart-woo__vendor-card:hover .selvamart-woo__vendor-banner img {
	transform: scale(1.05);
}

.selvamart-woo__vendor-body {
	position: relative;
	padding: 2.5rem 1rem 1rem;
	text-align: center;
}

.selvamart-woo__vendor-avatar {
	position: absolute;
	top: -30px;
	left: 50%;
	width: 64px;
	height: 64px;
	border: 3px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	background: #f3f4f6;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	transform: translateX(-50%);
}

.selvamart-woo__vendor-title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	line-height: 1.25;
}

.selvamart-woo__vendor-title a {
	color: #111827;
	text-decoration: none;
}

.selvamart-woo__vendor-title a:hover {
	color: var(--selvamart-woo-primary);
}

.selvamart-woo__vendor-rating,
.selvamart-woo__vendor-count {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0.2rem 0;
}

.selvamart-woo__vendor-rating {
	color: #b45309;
	font-weight: 700;
}

.selvamart-woo__vendor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-top: 0.85rem;
	padding: 0.55rem 1rem;
	border-radius: 4px;
	background: #111827;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.2s ease;
}

.selvamart-woo__vendor-button:hover {
	transform: translateY(-1px);
	background: var(--selvamart-woo-primary);
	color: #fff;
}

@keyframes selvamartWooFadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.selvamart-woo *,
	.selvamart-woo *::before,
	.selvamart-woo *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}

	.selvamart-woo__item:hover,
	.selvamart-woo__vendor-card:hover,
	.selvamart-woo__vendor-button:hover,
	.selvamart-woo__add-to-cart .button:hover,
	.selvamart-woo__add-to-cart a.button:hover,
	.selvamart-woo__add-to-cart button.button:hover {
		transform: none;
	}
}

/* ==========================================================================
   Modern Elements: Quick View, Buy Now, Dokan Status & Badges
   ========================================================================== */

/* Quick View & Buy Now Buttons */
.selvamart-woo__quick-view,
.selvamart-woo__buy-now {
	margin-top: 6px;
}

.selvamart-quick-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.selvamart-quick-view-btn:hover {
	background: #e5e7eb;
	color: #111827;
	border-color: #d1d5db;
}

.selvamart-buy-now-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff !important;
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
	border: none !important;
	border-radius: 6px;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
	cursor: pointer;
	transition: all 0.2s ease;
}

.selvamart-buy-now-btn:hover {
	background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%) !important;
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
	transform: translateY(-1px);
}

/* Dokan Vendor Status & Badges */
.selvamart-woo__vendor-badges {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin: 4px 0;
}

.selvamart-vendor-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
}

.selvamart-vendor-badge--verified {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.selvamart-vendor-badge--top_rated {
	background: #fefce8;
	color: #a16207;
	border: 1px solid #fef08a;
}

.selvamart-woo__vendor-status {
	margin: 4px 0;
}

.selvamart-store-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
}

.selvamart-store-status .status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
}

.selvamart-store-status--open {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.selvamart-store-status--open .status-dot {
	background: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
	animation: smPulse 1.8s infinite;
}

.selvamart-store-status--closed {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.selvamart-store-status--closed .status-dot {
	background: #ef4444;
}

@keyframes smPulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
	70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Quick View Modal */
body.selvamart-modal-open {
	overflow: hidden;
}

.selvamart-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.selvamart-modal.is-open {
	display: flex;
}

.selvamart-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
}

.selvamart-modal__dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 820px;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.3);
	overflow-y: auto;
	animation: selvamartModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes selvamartModalPop {
	from { opacity: 0; transform: scale(0.94) translateY(12px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.selvamart-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	width: 34px;
	height: 34px;
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #475569;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.selvamart-modal__close:hover {
	background: #e2e8f0;
	color: #0f172a;
	transform: rotate(90deg);
}

.selvamart-modal__spinner {
	padding: 60px 20px;
	text-align: center;
	color: #64748b;
}

.selvamart-modal__spinner .spinner-dot {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid #e2e8f0;
	border-top-color: var(--selvamart-woo-primary, #059669);
	border-radius: 50%;
	animation: smSpin 0.7s linear infinite;
	margin-bottom: 12px;
}

@keyframes smSpin {
	to { transform: rotate(360deg); }
}

/* Quick View Card Content */
.selvamart-quick-view-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 28px;
	padding: 28px;
}

@media (max-width: 768px) {
	.selvamart-quick-view-wrapper {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 20px 16px;
	}
}

.smqv-main-image {
	border-radius: 12px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
}

.smqv-main-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.smqv-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.smqv-thumb {
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #f1f5f9;
	flex-shrink: 0;
	transition: border-color 0.2s ease;
}

.smqv-thumb.active,
.smqv-thumb:hover {
	border-color: var(--selvamart-woo-primary, #059669);
}

.smqv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.smqv-vendor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 13px;
	color: #64748b;
}

.smqv-vendor-name a {
	font-weight: 700;
	color: #1e293b;
	text-decoration: none;
}

.smqv-title {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.smqv-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--selvamart-woo-primary, #059669);
	margin-bottom: 12px;
}

.smqv-excerpt {
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
	margin-bottom: 16px;
}

.smqv-stock-status {
	margin-bottom: 18px;
}

.smqv-badge.in-stock {
	font-size: 12px;
	font-weight: 600;
	color: #15803d;
	background: #f0fdf4;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid #bbf7d0;
}

.smqv-badge.out-of-stock {
	font-size: 12px;
	font-weight: 600;
	color: #b91c1c;
	background: #fef2f2;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid #fecaca;
}

.smqv-actions .selvamart-quick-add-form {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.smqv-qty-wrap input.qty {
	width: 60px;
	height: 42px;
	text-align: center;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-weight: 600;
}

.smqv-actions .selvamart-ajax-add-cart-btn {
	flex: 1;
	height: 42px;
	background: var(--selvamart-woo-primary, #059669) !important;
	color: #fff !important;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.smqv-actions .selvamart-buy-now-btn {
	width: auto;
	height: 42px;
	padding: 0 18px;
}

.smqv-footer-links {
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.smqv-permalink {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.smqv-permalink:hover {
	color: var(--selvamart-woo-primary, #059669);
}

