/* =============================
   Goldstar Main Store Styles
   ============================= */

.goldstar-main-container {
	display: block;
	padding: 0;
	margin: 0;
	width: 100%;
}

/* =============================
   Hero Section
   ============================= */

.goldstar-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0;
	background-color: #272360;
	margin-bottom: 0;
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
}

.goldstar-hero-inner {
	display: flex;
	gap: 60px;
	align-items: center;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

.goldstar-hero-left {
	flex: 1 1 45%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.goldstar-hero-right {
	flex: 1 1 55%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.goldstar-hero-right img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
}

.goldstar-badge {
	display: inline-block;
	background-color: var(--solera-sun);
	color: var(--solera-jacarta);
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	width: fit-content;
	padding: 0.4rem 1rem;
	border-radius: 50px;
	margin-bottom: 8px;
	line-height: 1.5rem !important;
}

.goldstar-title {
	font-size: 4.5rem !important;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px 0;
	line-height: 4.25rem !important;
	letter-spacing: -0.02em;
}

.goldstar-subtitle {
	font-size: 2rem !important;
	font-weight: 700;
	color: var(--solera-sun);
	margin: 0 0 24px 0;
	line-height: 2.2rem !important;
}

.goldstar-description {
	font-size: 1.125rem !important;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* =============================
   Choose Plan Section
   ============================= */

.goldstar-choose-plan {
	text-align: center;
	margin: 16px 0 24px 0;
}

.goldstar-choose-plan-title {
	font-size: 1.8rem !important;
	font-weight: 700;
	color: #102c52;
	margin: 0 0 12px 0 !important;
	line-height: 1.2 !important;
}

.goldstar-choose-plan-description {
	font-size: 1rem !important;
	color: var(--solera-mako-base);
	margin: 0 !important;
	line-height: 1.6;
}

/* =============================
   Products Section
   ============================= */

.goldstar-products-section {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	padding: 20px 40px 60px 40px;
}

.goldstar-products-container {
	max-width: 1200px;
	margin: 0 auto;
}

.goldstar-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	row-gap: 30px;
	column-gap: 16px;
	padding: 1.25rem 0;
	width: 100%;
	animation: fadeIn 0.4s ease-in-out;
}

/* =============================
   Product Card
   ============================= */

.goldstar-product-card {
	display: flex;
	flex-direction: column;
	background: var(--solera-white);
	border: none;
	border-radius: 1rem;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	min-height: 550px;
}

.goldstar-product-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.goldstar-product-image {
	width: 100%;
	height: 140px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.goldstar-product-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.goldstar-product-content {
	flex: 1;
	padding: 1rem;
	display: grid;
	grid-template-rows: auto auto 1fr 5rem auto;
	gap: 0;
	align-items: start;
	text-align: center;
	height: 100%;
}

/* Card Containers */
.goldstar-card-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	row-gap: 0.5rem;
}

/* Badge container - fixed small height */
.goldstar-container-badge {
	min-height: 1.2rem;
	margin-bottom: 0.5rem;
}

/* Title container - flexible, shows complete title */
.goldstar-container-title {
	min-height: 12rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: start;
}

/* Description container - flexible, fills available space */
.goldstar-container-description {
	flex: 1;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: 1.5rem;
}

/* Pricing container - FIXED height */
.goldstar-container-pricing {
	height: 5rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.goldstar-heading-primary {
	font-size: 0.75rem;
	font-weight: 700;
	color: #999;
	margin: 0;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.goldstar-heading-secondary {
	font-size: 1.4rem;
	font-weight: 800;
	color: #102c52;
	margin: 0;
	line-height: 1.3;
}

/* Pricing */
.goldstar-pricing-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 100%;
	height: 100%;
}

.goldstar-regular-price {
	font-size: 0.95rem;
	color: #999;
	text-decoration: line-through;
	font-weight: 600;
	line-height: 1.2;
	height: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.goldstar-bundle-total {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 100%;
	height: 2rem;
}

.goldstar-product-sale-price {
	font-weight: 900;
	font-size: 1.6rem;
	color: var(--solera-blue);
	line-height: 1;
	display: flex;
	align-items: center;
}

.goldstar-price-period {
	font-size: 1rem;
	font-weight: 600;
	color: var(--solera-mako-base);
}

.goldstar-billing-note {
	font-size: 0.8rem;
	color: #666;
	margin: 0;
	font-weight: 500;
	line-height: 1.1;
	height: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Button Container */
.goldstar-container-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	margin-top: auto;
	align-self: flex-end;
}

/* Goldstar button — extends global .btn .btn-secondary */
.goldstar-button,
.goldstar-container-button .solera-add-bundle,
.goldstar-container-button button.solera-add-bundle,
.goldstar-container-button .solera-caa-wrap button {
	display: block;
	background-color: var(--solera-sun);
	color: var(--solera-jacarta) !important;
	padding: 12px 16px;
	border-radius: 8px;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 1rem;
	transition: opacity 0.2s ease;
	border: none;
	cursor: pointer;
	width: 100%;
	text-align: center;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-family: inherit;
}

.goldstar-button:hover:not(:disabled),
.goldstar-container-button .solera-add-bundle:hover:not(:disabled),
.goldstar-container-button button.solera-add-bundle:hover:not(:disabled),
.goldstar-container-button .solera-caa-wrap button:hover {
	opacity: 0.9;
}

.goldstar-button:disabled,
.goldstar-container-button .solera-add-bundle:disabled,
.goldstar-container-button button.solera-add-bundle:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.8;
}

.goldstar-button.loading,
.goldstar-container-button .solera-add-bundle.is-loading,
.goldstar-container-button button.solera-add-bundle.is-loading {
	opacity: 0.7;
}

.goldstar-container-button .solera-caa-wrap {
	width: 100%;
	display: flex;
}

/* More Details Button Container */
.goldstar-container-details {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
}

.goldstar-details-link {
	display: block;
	background-color: transparent;
	color: var(--solera-blue) !important;
	border: none;
	padding: 8px 0;
	border-radius: 0;
	text-decoration: underline !important;
	font-weight: 600;
	font-size: 0.85rem;
	transition: all 0.2s ease;
	cursor: pointer;
	width: 100%;
	text-align: center;
	letter-spacing: 0;
	text-transform: uppercase;
	font-family: inherit;
}

.goldstar-details-link:hover {
	background-color: transparent;
	color: #1a5f9e !important;
	text-decoration: none !important;
}

/* Description */
.goldstar-container-description {
	width: 100%;
	align-items: flex-start;
	text-align: left;
	flex: 1;
	margin-top: auto;
}

.goldstar-product-description {
	font-size: 0.875rem !important;
	color: var(--solera-mako-base);
	margin: 0 !important;
	line-height: 1.5;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* =============================
   Responsive
   ============================= */

/* Large Desktop: 4 columns */
@media (min-width: 1400px) {
	.goldstar-product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Desktop: 3 columns */
@media (max-width: 1399px) and (min-width: 1200px) {
	.goldstar-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Tablet: 2 columns */
@media (max-width: 1199px) and (min-width: 768px) {
	.goldstar-hero {
		padding: 40px 2rem;
	}

	.goldstar-hero-inner {
		gap: 40px;
	}

	.goldstar-title {
		font-size: 2.5rem !important;
		line-height: 2.2rem !important;
		margin-bottom: 12px;
	}

	.goldstar-subtitle {
		font-size: 1.25rem !important;
		line-height: 1.6rem !important;
		margin-bottom: 12px;
	}

	.goldstar-description {
		font-size: 0.95rem !important;
		line-height: 1.6;
	}

	.goldstar-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile */
@media (max-width: 768px) {
	.goldstar-hero {
		padding: 20px 1rem;
	}

	.goldstar-hero-inner {
		flex-direction: column;
		gap: 20px;
		padding: 0;
	}

	.goldstar-hero-left,
	.goldstar-hero-right {
		flex: 1 1 100%;
	}

	.goldstar-badge {
		font-size: 0.7rem !important;
		line-height: 1rem !important;
		margin-bottom: 8px;
		padding: 0.3rem 0.8rem;
	}

	.goldstar-title {
		font-size: 1.5rem !important;
		line-height: 1.25rem !important;
		margin-bottom: 4px;
	}

	.goldstar-subtitle {
		font-size: 0.875rem !important;
		line-height: 1.25rem !important;
		margin-bottom: 8px;
	}

	.goldstar-description {
		font-size: 0.75rem !important;
		line-height: 1.4;
	}

	.goldstar-product-grid {
		grid-template-columns: 1fr;
	}
}
