/**
 * WP Contact Form – Frontend styles
 */

.wpcf-form-wrapper {
	max-width: 640px;
	margin: 0 auto 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpcf-form-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a2e;
}

.wpcf-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wpcf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 560px) {
	.wpcf-row {
		grid-template-columns: 1fr;
	}
}

.wpcf-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wpcf-field label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
}

.wpcf-required {
	color: #e74c3c;
	margin-left: 2px;
}

.wpcf-field input[type="text"],
.wpcf-field input[type="email"],
.wpcf-field input[type="tel"],
.wpcf-field textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.4;
	color: #1a1a2e;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.wpcf-field input:focus,
.wpcf-field textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wpcf-field input.wpcf-invalid,
.wpcf-field textarea.wpcf-invalid {
	border-color: #e74c3c;
}

.wpcf-field textarea {
	resize: vertical;
	min-height: 120px;
}

.wpcf-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-weight: 400;
	cursor: pointer;
}

.wpcf-checkbox-label input[type="checkbox"] {
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.wpcf-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.wpcf-submit-btn:hover {
	background: #1d4ed8;
}

.wpcf-submit-btn:active {
	transform: scale(0.98);
}

.wpcf-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.wpcf-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wpcf-spin 0.6s linear infinite;
}

@keyframes wpcf-spin {
	to { transform: rotate(360deg); }
}

/* Messages */
.wpcf-message,
.wpcf-messages .wpcf-msg {
	padding: 0.85rem 1.1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.wpcf-success,
.wpcf-messages .wpcf-msg.success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.wpcf-error,
.wpcf-messages .wpcf-msg.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Honeypot already hidden via inline styles */
.wpcf-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

/* ========== Products Grid ========== */
.wpcf-shop-title,
.wpcf-products-title,
.wpcf-order-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a2e;
}

.wpcf-products-grid {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.wpcf-cols-1 { grid-template-columns: 1fr; }
.wpcf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wpcf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wpcf-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.wpcf-cols-3, .wpcf-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.wpcf-cols-2, .wpcf-cols-3, .wpcf-cols-4 { grid-template-columns: 1fr; }
}

.wpcf-product-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.15s;
	display: flex;
	flex-direction: column;
}

.wpcf-product-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.wpcf-product-image {
	position: relative;
	aspect-ratio: 4/3;
	background: #f3f4f6;
	overflow: hidden;
}

.wpcf-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpcf-badge-sale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #ef4444;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}

.wpcf-product-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.wpcf-product-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a2e;
}

.wpcf-product-desc {
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.4;
}

.wpcf-product-price {
	margin-top: auto;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a2e;
}

.wpcf-price-sale { color: #dc2626; margin-right: 0.4rem; }
.wpcf-price-regular { font-size: 0.9rem; font-weight: 400; color: #9ca3af; }

.wpcf-product-qty {
	margin-top: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.wpcf-product-qty label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 500;
}

.wpcf-qty-input {
	width: 70px !important;
	padding: 0.4rem 0.5rem !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 6px !important;
	text-align: center;
}

.wpcf-out-of-stock {
	font-size: 0.8rem;
	color: #dc2626;
	font-weight: 500;
}

/* ========== Order Form ========== */
.wpcf-order-form-wrapper {
	max-width: 640px;
	margin: 0 auto 2rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.wpcf-order-summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
}

.wpcf-order-summary h4 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.wpcf-summary-lines {
	font-size: 0.9rem;
}

.wpcf-summary-line {
	display: flex;
	justify-content: space-between;
	padding: 0.3rem 0;
	border-bottom: 1px dashed #e5e7eb;
}

.wpcf-summary-empty {
	color: #9ca3af;
	margin: 0;
	font-size: 0.9rem;
}

.wpcf-summary-total {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 2px solid #d1d5db;
	display: flex;
	justify-content: space-between;
	font-size: 1.1rem;
}

.wpcf-no-products {
	color: #6b7280;
	padding: 2rem;
	text-align: center;
	background: #f9fafb;
	border-radius: 8px;
}
