/* ============================================
	SHOPPAGE CSS - DETAIL VIEW & FORM STYLING
	Scoped to .shoppage-container or .voicepage-container[data-shoppage="1"]
	Matches voicepage.css styling for consistency
	============================================ */

/* Detail View Layout */
.shoppage-container .shoppage-detail-header,
.voicepage-container[data-shoppage="1"] .shoppage-detail-header {
	margin-bottom: 20px;
}

.shoppage-container .shoppage-back-button,
.voicepage-container[data-shoppage="1"] .shoppage-back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	font-family: "Raleway", Arial, sans-serif;
	width: 100%;
	justify-content: center;
}

.shoppage-container .shoppage-back-button:hover,
.voicepage-container[data-shoppage="1"] .shoppage-back-button:hover {
	border-color: #eb3683;
	color: #fff;
	background: #eb3683;
}

.shoppage-container .shoppage-back-button i,
.voicepage-container[data-shoppage="1"] .shoppage-back-button i {
	font-size: 16px;
}

/* Detail View: Voice Card Container (left column) */
.shoppage-container .shoppage-detail-voicard-container,
.voicepage-container[data-shoppage="1"] .shoppage-detail-voicard-container {
	/* Voice card styling is already handled by voicepage.css */
	/* This container just ensures proper spacing */
}

/* Detail View: Form Container (right column) */
.shoppage-container .shoppage-detail-form-container,
.voicepage-container[data-shoppage="1"] .shoppage-detail-form-container,
.shoppage-container #shoppage-detail-form-container,
.voicepage-container[data-shoppage="1"] #shoppage-detail-form-container {
	/* Form takes full width of results column */
	width: 100%;
}

/* Ensure results column shows form correctly */
.shoppage-container .voicepage-results,
.voicepage-container[data-shoppage="1"] .voicepage-results {
	flex: 1;
	min-width: 0;
}

/* Detail view active state - adjust layout */
.shoppage-container.shoppage-detail-view-active .voicepage-filters,
.voicepage-container[data-shoppage="1"].shoppage-detail-view-active .voicepage-filters {
	flex: 0 0 25%;
	max-width: 300px;
}

.shoppage-container.shoppage-detail-view-active .voicepage-results,
.voicepage-container[data-shoppage="1"].shoppage-detail-view-active .voicepage-results {
	flex: 1;
	min-width: 0;
}

/* Form Styling - Matches voicepage filter section styling */
.shoppage-container .shoppage-voice-form,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form,
.shoppage-container #shoppage-voice-form,
.voicepage-container[data-shoppage="1"] #shoppage-voice-form {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 20px;
	font-family: "Raleway", Arial, sans-serif;
}

.shoppage-container .shoppage-form-section,
.voicepage-container[data-shoppage="1"] .shoppage-form-section {
	margin-bottom: 24px;
}

.shoppage-container .shoppage-form-section:last-child,
.voicepage-container[data-shoppage="1"] .shoppage-form-section:last-child {
	margin-bottom: 0;
}

.shoppage-container .shoppage-form-field,
.voicepage-container[data-shoppage="1"] .shoppage-form-field {
	margin-bottom: 20px;
}

.shoppage-container .shoppage-form-field:last-child,
.voicepage-container[data-shoppage="1"] .shoppage-form-field:last-child {
	margin-bottom: 0;
}

/* Form Labels */
.shoppage-container .shoppage-form-label,
.voicepage-container[data-shoppage="1"] .shoppage-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
	font-family: "Raleway", Arial, sans-serif;
}

.shoppage-container .shoppage-form-label .required,
.voicepage-container[data-shoppage="1"] .shoppage-form-label .required {
	color: #eb3683;
	margin-left: 4px;
}

/* Input Fields - Match voicepage select styling */
.shoppage-container .shoppage-voice-form input[type="text"],
.shoppage-container .shoppage-voice-form input[type="email"],
.shoppage-container .shoppage-voice-form input[type="date"],
.shoppage-container .shoppage-voice-form input[type="time"],
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="text"],
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="email"],
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="date"],
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="time"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: #333;
	font-family: "Raleway", Arial, sans-serif;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.shoppage-container .shoppage-voice-form input[type="text"]:focus,
.shoppage-container .shoppage-voice-form input[type="email"]:focus,
.shoppage-container .shoppage-voice-form input[type="date"]:focus,
.shoppage-container .shoppage-voice-form input[type="time"]:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="text"]:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="email"]:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="date"]:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form input[type="time"]:focus {
	outline: none;
	border-color: #eb3683;
	box-shadow: 0 0 0 2px rgba(235, 54, 131, 0.1);
}

/* Textareas */
.shoppage-container .shoppage-voice-form textarea,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: #333;
	font-family: "Raleway", Arial, sans-serif;
	transition: all 0.2s ease;
	box-sizing: border-box;
	min-height: 100px;
	resize: vertical;
	line-height: 1.5;
}

.shoppage-container .shoppage-voice-form textarea:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form textarea:focus {
	outline: none;
	border-color: #eb3683;
	box-shadow: 0 0 0 2px rgba(235, 54, 131, 0.1);
}

.shoppage-container .shoppage-voice-form textarea::placeholder,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form textarea::placeholder {
	color: #6c757d;
}

/* Select Dropdowns - Match voicepage select-with-icon styling */
.shoppage-container .shoppage-voice-form select,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form select {
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: #333;
	font-family: "Raleway", Arial, sans-serif;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.shoppage-container .shoppage-voice-form select:focus,
.voicepage-container[data-shoppage="1"] .shoppage-voice-form select:focus {
	outline: none;
	border-color: #eb3683;
	box-shadow: 0 0 0 2px rgba(235, 54, 131, 0.1);
}

/* Radio Button Group */
.shoppage-container .shoppage-radio-group,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.shoppage-container .shoppage-radio-group label,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: normal;
	margin-bottom: 0;
}

.shoppage-container .shoppage-radio-group label:hover,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group label:hover {
	border-color: #eb3683;
	background: #fff5f9;
}

.shoppage-container .shoppage-radio-group input[type="radio"],
.voicepage-container[data-shoppage="1"] .shoppage-radio-group input[type="radio"] {
	margin: 0;
	flex-shrink: 0;
	margin-top: 2px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #eb3683;
}

.shoppage-container .shoppage-radio-group label > div,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group label > div {
	flex: 1;
}

.shoppage-container .shoppage-radio-group label strong,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group label strong {
	display: block;
	font-weight: 600;
	color: #333;
	font-size: 14px;
	margin-bottom: 4px;
}

.shoppage-container .shoppage-radio-description,
.voicepage-container[data-shoppage="1"] .shoppage-radio-description {
	font-size: 12px;
	color: #6c757d;
	line-height: 1.4;
}

.shoppage-container .shoppage-radio-group input[type="radio"]:checked + div strong,
.voicepage-container[data-shoppage="1"] .shoppage-radio-group input[type="radio"]:checked + div strong {
	color: #eb3683;
}

.shoppage-container .shoppage-radio-group label:has(input[type="radio"]:checked),
.voicepage-container[data-shoppage="1"] .shoppage-radio-group label:has(input[type="radio"]:checked) {
	border-color: #eb3683;
	background: #fff5f9;
}

/* Checkbox Group */
.shoppage-container .shoppage-checkbox-group,
.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}

.shoppage-container .shoppage-checkbox-group label,
.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: normal;
	margin-bottom: 0;
	font-size: 14px;
	color: #333;
}

.shoppage-container .shoppage-checkbox-group label:hover,
.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group label:hover {
	border-color: #eb3683;
	background: #fff5f9;
}

.shoppage-container .shoppage-checkbox-group input[type="checkbox"],
.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group input[type="checkbox"] {
	margin: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #eb3683;
	flex-shrink: 0;
}

.shoppage-container .shoppage-checkbox-group label:has(input[type="checkbox"]:checked),
.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group label:has(input[type="checkbox"]:checked) {
	border-color: #eb3683;
	background: #fff5f9;
}

/* Price Overview */
.shoppage-container .shoppage-price-display,
.voicepage-container[data-shoppage="1"] .shoppage-price-display {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 12px;
}

.shoppage-container .shoppage-price-label,
.voicepage-container[data-shoppage="1"] .shoppage-price-label {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	font-family: "Raleway", Arial, sans-serif;
}

.shoppage-container .shoppage-price-value,
.voicepage-container[data-shoppage="1"] .shoppage-price-value {
	font-size: 24px;
	font-weight: 700;
	color: #eb3683;
	font-family: "Raleway", Arial, sans-serif;
}

.shoppage-container .shoppage-price-breakdown,
.voicepage-container[data-shoppage="1"] .shoppage-price-breakdown {
	padding: 12px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 13px;
	color: #6c757d;
	line-height: 1.6;
	font-family: "Raleway", Arial, sans-serif;
}

.shoppage-container .shoppage-price-breakdown strong,
.voicepage-container[data-shoppage="1"] .shoppage-price-breakdown strong {
	color: #333;
	font-weight: 600;
}

/* Add to Cart Button - Match voicepage CTA button styling */
.shoppage-container .shoppage-add-to-cart-button,
.voicepage-container[data-shoppage="1"] .shoppage-add-to-cart-button {
	width: 100%;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: #eb3683;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	font-family: "Raleway", Arial, sans-serif;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.shoppage-container .shoppage-add-to-cart-button:hover,
.voicepage-container[data-shoppage="1"] .shoppage-add-to-cart-button:hover {
	background: #d6306b;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(235, 54, 131, 0.3);
}

.shoppage-container .shoppage-add-to-cart-button:active,
.voicepage-container[data-shoppage="1"] .shoppage-add-to-cart-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(235, 54, 131, 0.2);
}

.shoppage-container .shoppage-add-to-cart-button:disabled,
.voicepage-container[data-shoppage="1"] .shoppage-add-to-cart-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Error Messages */
.shoppage-container .shoppage-error,
.voicepage-container[data-shoppage="1"] .shoppage-error {
	color: #dc3545;
	font-size: 14px;
	margin-top: 8px;
	padding: 10px;
	background: #fff5f5;
	border: 1px solid #fecaca;
	border-radius: 6px;
	font-family: "Raleway", Arial, sans-serif;
}

/* Loading Spinner */
.shoppage-container .shoppage-loading-spinner,
.voicepage-container[data-shoppage="1"] .shoppage-loading-spinner,
.shoppage-container .shoppage-loading,
.voicepage-container[data-shoppage="1"] .shoppage-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	min-height: 200px;
	font-family: "Raleway", Arial, sans-serif;
	color: #666;
	font-size: 14px;
}

.shoppage-container .shoppage-loading-spinner::before,
.voicepage-container[data-shoppage="1"] .shoppage-loading-spinner::before {
	content: "";
	width: 40px;
	height: 40px;
	border: 4px solid #f3f4f6;
	border-top-color: #eb3683;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
	/* Detail view: stack voicard and form vertically on mobile */
	.shoppage-container.shoppage-detail-view-active,
	.voicepage-container[data-shoppage="1"].shoppage-detail-view-active {
		flex-direction: column;
	}

	.shoppage-container .voicepage-filters,
	.voicepage-container[data-shoppage="1"] .voicepage-filters {
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
	}

	.shoppage-container .voicepage-results,
	.voicepage-container[data-shoppage="1"] .voicepage-results {
		flex: 1 1 100%;
		width: 100%;
	}

	/* Form fields full width on mobile */
	.shoppage-container .shoppage-voice-form,
	.voicepage-container[data-shoppage="1"] .shoppage-voice-form {
		padding: 16px;
	}

	.shoppage-container .shoppage-form-section,
	.voicepage-container[data-shoppage="1"] .shoppage-form-section {
		margin-bottom: 20px;
	}

	/* Radio and checkbox groups stack better on mobile */
	.shoppage-container .shoppage-radio-group,
	.voicepage-container[data-shoppage="1"] .shoppage-radio-group {
		gap: 10px;
	}

	.shoppage-container .shoppage-checkbox-group,
	.voicepage-container[data-shoppage="1"] .shoppage-checkbox-group {
		gap: 8px;
	}

	/* Buttons full width on mobile */
	.shoppage-container .shoppage-add-to-cart-button,
	.voicepage-container[data-shoppage="1"] .shoppage-add-to-cart-button {
		padding: 14px 24px;
		font-size: 15px;
	}
}

