/**
 * Public-facing styles for XXXX Plugin
 *
 * @package    XXXX
 */

/* General Public Styles */
.xxxx-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.xxxx-wrapper {
	background: #ffffff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Typography */
.xxxx-heading {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
}

.xxxx-subheading {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #555;
}

.xxxx-text {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 15px;
}

/* Buttons */
.xxxx-button {
	display: inline-block;
	padding: 12px 24px;
	background: #2271b1;
	color: #ffffff;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.xxxx-button:hover {
	background: #135e96;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.xxxx-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.xxxx-button-secondary {
	background: #f0f0f1;
	color: #2c3338;
}

.xxxx-button-secondary:hover {
	background: #dcdcde;
	color: #2c3338;
}

/* Forms */
.xxxx-form {
	margin: 20px 0;
}

.xxxx-form-group {
	margin-bottom: 20px;
}

.xxxx-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.xxxx-form-input,
.xxxx-form-textarea,
.xxxx-form-select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.xxxx-form-input:focus,
.xxxx-form-textarea:focus,
.xxxx-form-select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.xxxx-form-textarea {
	min-height: 120px;
	resize: vertical;
}

.xxxx-form-help {
	display: block;
	margin-top: 5px;
	font-size: 14px;
	color: #666;
	font-style: italic;
}

.xxxx-form-error {
	color: #d63638;
	font-size: 14px;
	margin-top: 5px;
}

/* Grid System */
.xxxx-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.xxxx-col {
	flex: 1;
	padding: 0 15px;
	min-width: 0;
}

.xxxx-col-2 {
	flex: 0 0 50%;
	max-width: 50%;
}

.xxxx-col-3 {
	flex: 0 0 33.333%;
	max-width: 33.333%;
}

.xxxx-col-4 {
	flex: 0 0 25%;
	max-width: 25%;
}

/* Cards */
.xxxx-card {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease;
}

.xxxx-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.xxxx-card-header {
	border-bottom: 1px solid #ddd;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.xxxx-card-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: #333;
}

.xxxx-card-content {
	color: #666;
	line-height: 1.6;
}

.xxxx-card-footer {
	border-top: 1px solid #ddd;
	padding-top: 15px;
	margin-top: 15px;
}

/* Alerts */
.xxxx-alert {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid;
}

.xxxx-alert-info {
	background: #e5f5ff;
	border-left-color: #2271b1;
	color: #135e96;
}

.xxxx-alert-success {
	background: #d5f4e6;
	border-left-color: #00a32a;
	color: #007017;
}

.xxxx-alert-warning {
	background: #fff8e5;
	border-left-color: #dba617;
	color: #94700b;
}

.xxxx-alert-error {
	background: #fce8e8;
	border-left-color: #d63638;
	color: #b32d2e;
}

/* Loading Spinner */
.xxxx-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.xxxx-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #f3f3f3;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: xxxx-spin 0.8s linear infinite;
}

@keyframes xxxx-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
	.xxxx-container {
		padding: 15px;
	}

	.xxxx-wrapper {
		padding: 20px;
	}

	.xxxx-row {
		margin: 0 -10px;
	}

	.xxxx-col {
		padding: 0 10px;
	}

	.xxxx-col-2,
	.xxxx-col-3,
	.xxxx-col-4 {
		flex: 0 0 100%;
		max-width: 100%;
		margin-bottom: 20px;
	}

	.xxxx-heading {
		font-size: 24px;
	}

	.xxxx-subheading {
		font-size: 18px;
	}
}

/* --- MajGold: inquiry CTA & product card (showcase mode) --- */
.majgold-inquiry-call__inner {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.majgold-inquiry-call__icon {
	flex-shrink: 0;
	display: block;
}

.majgold-inquiry-call--muted {
	opacity: 0.85;
	cursor: default;
}

.majgold-product-card .product-card__actions {
	margin-top: 0.65rem;
}

.majgold-product-card .product-card__actions .majgold-inquiry-loop,
.majgold-product-card .product-card__actions .majgold-inquiry-call {
	display: inline-flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	text-decoration: none;
}

.majgold-inquiry-block .majgold-inquiry-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.majgold-inquiry-block--single .majgold-inquiry-call {
	width: 100%;
	max-width: 22rem;
	margin-top: 0.5rem;
}

.majgold-product-card .product-card__actions .majgold-inquiry-loop.majgold-inquiry-loop--showcase.add_to_cart_button,
.majgold-product-card .product-card__actions .majgold-inquiry-loop.majgold-inquiry-loop--showcase {
	background: var(--ns-primary, #00bfd6);
	border-color: var(--ns-primary, #00bfd6);
	color: var(--ns-primary-compatible, #fff);
	border-radius: var(--ns-radius, 12px);
	font-weight: 600;
	min-height: 2.75rem;
}

.majgold-product-card .product-card__actions .majgold-inquiry-loop.majgold-inquiry-loop--showcase:hover {
	filter: brightness(0.95);
	color: var(--ns-primary-compatible, #fff);
}

.majgold-inquiry-block--single .add_to_cart_button.majgold-inquiry-call {
	background: var(--mgs-primary, var(--ns-primary, #103a3b));
	border-color: var(--mgs-primary, var(--ns-primary, #103a3b));
	color: var(--mgs-primary-compatible, var(--ns-primary-compatible, #fff));
	border-radius: var(--mgs-radius, var(--ns-radius, 12px));
}

.majgold-inquiry-block--variation .majgold-inquiry-call {
	background: var(--mgs-primary, #103a3b) !important;
	border-color: var(--mgs-primary, #103a3b) !important;
	color: var(--mgs-primary-compatible, #fff) !important;
	border-radius: var(--mgs-radius, 8px) !important;
	width: 100%;
	max-width: none;
	margin-top: 0;
}

/* ---- Showcase / Vitrin mode (body.majgold-showcase) ---- */
/* Hide cart icon, basket badge and cart count wherever themes render them */
body.majgold-showcase .header-cart-basket,
body.majgold-showcase .cart-basket-box,
body.majgold-showcase .shopping-cart-count--fragment,
body.majgold-showcase .cart-icon,
body.majgold-showcase .header-cart,
body.majgold-showcase .woocommerce-mini-cart,
body.majgold-showcase .widget_shopping_cart,
body.majgold-showcase .wc-block-mini-cart,
body.majgold-showcase .cart-contents,
body.majgold-showcase a.cart-icon,
body.majgold-showcase .rh-item .badge {
	display: none !important;
}

/* Showcase CTA page (replaces cart / checkout pages) */
.majgold-showcase-page {
	text-align: center;
	padding: 3rem 1rem;
}
.majgold-showcase-page .majgold-inquiry-call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	background: var(--ns-primary, #00bfd6);
	border-color: var(--ns-primary, #00bfd6);
	color: var(--ns-primary-compatible, #fff);
	border-radius: var(--ns-radius, 12px);
	text-decoration: none;
}
.majgold-showcase-page__intro {
	font-size: 1.05rem;
	margin-bottom: 1.25rem;
	color: #555;
}

/* ---- MajGold loop extras (non-negarshop themes) ---- */
.majgold-loop-weight {
	font-size: 0.82rem;
	color: #888;
	margin-top: 0.2rem;
}
.majgold-loop-weight__label {
	margin-left: 0.2rem;
}

/* ---- MajGold FAQ accordion ---- */
.majgold-faq-item {
	border-bottom: 1px solid #eee;
	padding: 0.5rem 0;
}
.majgold-faq-item__question {
	width: 100%;
	background: none;
	border: none;
	text-align: right;
	padding: 0.6rem 0;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}
.majgold-faq-item__icon {
	font-size: 1.2rem;
	line-height: 1;
	transition: transform 0.2s;
}
.majgold-faq-item__question[aria-expanded="true"] .majgold-faq-item__icon {
	transform: rotate(45deg);
}
.majgold-faq-item__answer {
	padding: 0.4rem 0 0.6rem;
	color: #555;
	line-height: 1.7;
}

