/* Haldwani City Marketplace — front-end styles */

.hcm-seller-info {
	margin: 10px 0;
	font-size: 14px;
	color: #444;
}
.hcm-seller-info p { margin: 2px 0; }
.hcm-seller-social a { color: #2b6cb0; text-decoration: none; }
.hcm-seller-social a:hover { text-decoration: underline; }

.hcm-whatsapp-btn {
	display: inline-block;
	margin: 10px 0;
	padding: 12px 22px;
	background: #25D366;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s ease;
	white-space: nowrap;
	box-sizing: border-box;
}
.hcm-whatsapp-btn:hover {
	background: #1ebe5b;
	color: #fff !important;
}

/* Shop-loop product cards are often narrow on mobile (2-column grids), so
   the button needs a smaller footprint there to stay on one line. Uses
   !important because theme CSS (Astra) sometimes applies more specific
   button rules that would otherwise win and force a wrap. */
@media (max-width: 480px) {
	.hcm-whatsapp-btn {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		text-align: center !important;
		padding: 10px 4px !important;
		font-size: 12px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
}

.hcm-vendor-fields h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}
.hcm-terms-row label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.hcm-vendor-dashboard {
	max-width: 900px;
}
.hcm-vendor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}
.hcm-badge {
	display: inline-block;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 12px;
	margin-left: 10px;
	vertical-align: middle;
}
.hcm-badge-verified { background: #2e7d32; color: #fff; }
.hcm-badge-pending  { background: #b26a00; color: #fff; }

.hcm-btn-add-product {
	display: inline-block;
	background: #2b6cb0;
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
.hcm-btn-add-product:hover { background: #234e8a; }

.hcm-products-table {
	width: 100%;
	border-collapse: collapse;
}
.hcm-premium-badge {
	display: inline-block;
	background: #b8860b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 10px;
	margin-bottom: 6px;
}

.hcm-limit-reached {
	background: #fff4e0;
	color: #b26a00;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
}

.hcm-plan-widget {
	background: #f7f7f7;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}
.hcm-plan-widget p { margin: 0 0 8px; }
.hcm-plan-widget p:last-child { margin-bottom: 0; }

.hcm-add-product-form .form-row,
.hcm-edit-product-form .form-row { margin-bottom: 14px; }
.hcm-add-product-form .form-row-first,
.hcm-add-product-form .form-row-last,
.hcm-edit-product-form .form-row-first,
.hcm-edit-product-form .form-row-last {
	display: inline-block;
	width: 48%;
}
.hcm-add-product-form .form-row-last,
.hcm-edit-product-form .form-row-last { margin-left: 3%; }
.hcm-cat-checkboxes { margin-bottom: 14px; }
.hcm-cancel-link { margin-left: 10px; }

.hcm-gallery-current {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 8px 0 12px;
}
.hcm-gallery-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-weight: normal;
	font-size: 12px;
	gap: 4px;
}
.hcm-gallery-thumb img { border-radius: 4px; }

.hcm-login-terms-summary {
	margin-top: 20px;
	padding: 14px 16px;
	background: #f7f7f7;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	font-size: 13px;
	color: #444;
}
.hcm-login-terms-summary h4 { margin: 0 0 8px; font-size: 14px; }
.hcm-login-terms-summary ul { margin: 0 0 8px 18px; padding: 0; }
.hcm-login-terms-summary li { margin-bottom: 4px; }
.hcm-login-terms-summary li ul { margin: 4px 0 4px 18px; }
.hcm-login-terms-summary li ul li { margin-bottom: 3px; }
.hcm-login-terms-summary p { margin: 0; }

.hcm-notice {
	padding: 10px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-weight: 600;
}
.hcm-notice-success { background: #e6f4ea; color: #1e7e34; }
.hcm-notice-error   { background: #fde8e8; color: #b71c1c; }

.hcm-actions a { text-decoration: none; }
.hcm-actions a.hcm-delete-link { color: #b71c1c; }

.hcm-products-table th,
.hcm-products-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #e2e2e2;
}
.hcm-products-table img {
	border-radius: 4px;
}
.hcm-status-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}
.hcm-status-live    { background: #e6f4ea; color: #1e7e34; }
.hcm-status-pending { background: #fff4e0; color: #b26a00; }
.hcm-status-draft   { background: #eee; color: #666; }

/* ---- Install-app banner (PWA) -------------------------------------- */
.hcm-pwa-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
	color: #1b2a12;
	border: 1px solid #d9e4d2;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	font-size: 13px;
	line-height: 1.35;
}
.hcm-pwa-icon { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; }
.hcm-pwa-text { flex: 1 1 auto; min-width: 0; }
.hcm-pwa-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.hcm-pwa-text span { color: #44543b; }
.hcm-pwa-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.hcm-pwa-install,
.hcm-pwa-later {
	border: 0;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.hcm-pwa-install { background: #3a7d0a; color: #fff; }
.hcm-pwa-later { background: transparent; color: #44543b; padding: 4px 14px; font-weight: 500; }
