/**
 * WooCommerce Single Product Page — Custom Styles
 * Matches mall-product.html design mockup
 */

:root {
	--sp-primary: #1D4E89;
	--sp-accent: #EAA300;
	--sp-accent-hover: #D69500;
	--sp-bg: #f8fafc;
	--sp-card: #fff;
	--sp-text: #1e293b;
	--sp-muted: #64748b;
	--sp-border: #e2e8f0;
	--sp-success: #12b76a;
	--sp-radius: 14px;
	--sp-shadow-sm: 0 1px 3px rgba(0,0,0,.08);
	--sp-shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* Reset WC defaults on single product */
.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs,
.single-product .related.products,
.single-product .up-sells,
.single-product .woocommerce-Reviews,
.single-product .summary.entry-summary {
	display: none !important;
}

/* Page wrap */
.single-product .page-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.5rem;
	background: var(--sp-bg);
}

/* Breadcrumb */
.breadcrumb {
	font-size: .85rem;
	color: var(--sp-muted);
	margin-bottom: 1.5rem;
}
.breadcrumb a {
	color: var(--sp-primary);
	text-decoration: none;
}

/* Product Header */
.product-header {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1.25rem;
	overflow: hidden;
}

.product-gallery {
	border-radius: 12px;
	width: 200px;
	min-height: 200px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.product-gallery .badges {
	position: absolute;
	top: 12px;
	right: 12px;
}
.product-gallery .badges span {
	background: #ef4444;
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.product-info h1 {
	font-size: 1.7rem;
	font-weight: 800;
	margin-bottom: .6rem;
	color: var(--sp-primary);
	letter-spacing: -.02em;
}

/* Meta badges */
.product-meta {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1rem;
	font-size: .9rem;
	flex-wrap: wrap;
}
.product-meta .hot-tag {
	background: #fee2e2;
	color: #dc2626;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .8rem;
}
.product-meta .value-tag {
	background: #fef3c7;
	color: #d97706;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .8rem;
}
.product-meta .new-tag {
	background: #dcfce7;
	color: #16a34a;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .8rem;
}
.product-meta .sales {
	color: var(--sp-muted);
	font-size: .85rem;
}
.meta-right {
	margin-left: auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	align-self: center;
}
.meta-tags {
	display: flex;
	gap: .4rem;
	justify-content: flex-end;
}
.meta-tags span {
	background: #e8edf5;
	color: var(--sp-primary);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: .8rem;
}

/* Price display */
.price-display {
	background: #fdf6e3;
	border: 1px solid #e8d5a8;
	border-radius: var(--sp-radius);
	padding: 1.5rem 2rem;
	display: flex;
	align-items: flex-start;
}
.price-left {
	flex: 0 0 auto;
	min-width: 220px;
}
.price-display .current {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--sp-primary);
}
.price-display .note {
	font-size: .8rem;
	color: var(--sp-muted);
	margin-top: .25rem;
}
.price-right-benefits {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1px 1fr;
	gap: 1.25rem;
	padding-left: 1.5rem;
	margin-left: 1.5rem;
	border-left: 1px solid #eee;
}
.benefit-group {
	display: flex;
	flex-direction: column;
}
.group-title {
	font-size: .78rem;
	font-weight: 700;
	color: var(--sp-primary);
	margin-bottom: .6rem;
	letter-spacing: .3px;
}
.benefit-tags {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
}
.benefit-tags span {
	font-size: .7rem;
	background: #e8edf5;
	color: var(--sp-primary);
	padding: 3px 0;
	border-radius: 4px;
	text-align: center;
}
.promise-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.promise-list li {
	font-size: .73rem;
	color: #64748b;
	margin-bottom: 5px;
	position: relative;
	padding-left: 14px;
	line-height: 1.4;
}
.promise-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #10b981;
	font-weight: 800;
	font-size: .7rem;
}
.divider-line {
	background: #eee;
}

/* Government fees */
.gov-fee-section {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}
.gov-fee-section h4 {
	font-size: .9rem;
	font-weight: 700;
	color: var(--sp-primary);
	margin-bottom: 1rem;
}
.gov-fee-grid {
	display: grid;
	gap: .75rem;
	margin-bottom: .75rem;
}
.gov-fee-item {
	background: #f8fafc;
	border: 1px solid var(--sp-border);
	border-radius: 8px;
	padding: .75rem 1rem;
}
.gov-fee-item.total {
	border: 2px solid var(--sp-primary);
	background: #f0f4ff;
}
.gov-fee-item .gf-label {
	font-size: .78rem;
	color: var(--sp-muted);
	margin-bottom: .25rem;
}
.gov-fee-item .gf-amount {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sp-primary);
}
.gov-fee-item.total .gf-amount {
	font-size: 1.1rem;
}
.gov-fee-note {
	font-size: .75rem;
	color: #94a3b8;
	line-height: 1.5;
	font-style: italic;
}
.gov-fee-alert {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: .6rem 1rem;
	margin-bottom: .75rem;
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	color: #dc2626;
	font-weight: 600;
}

/* Purchase grid */
.product-body {
	margin-bottom: 2.5rem;
}
.purchase-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 1.25rem;
	align-items: start;
}

/* Package selection */
.pkg-section {
	margin-bottom: 1rem;
}
.pkg-section h3 {
	font-size: .95rem;
	margin-bottom: .6rem;
	color: var(--sp-primary);
}
.pkg-options {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.pkg-option {
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1rem 1.25rem;
	cursor: pointer;
	transition: all .25s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.pkg-option:hover {
	border-color: var(--sp-primary);
	transform: translateY(-2px);
	box-shadow: var(--sp-shadow-md);
}
.pkg-option.selected {
	border: 2px solid var(--sp-primary);
	background: #f0f4ff;
}
.pkg-option .pkg-left {
	display: flex;
	align-items: center;
	gap: .75rem;
}
.pkg-option .radio {
	width: 20px;
	height: 20px;
	border: 2px solid var(--sp-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.pkg-option.selected .radio {
	border-color: var(--sp-primary);
	background: var(--sp-primary);
}
.pkg-option.selected .radio::after {
	content: "";
	width: 10px;
	height: 10px;
	background: #fff;
	border-radius: 50%;
}
.pkg-option .pkg-name {
	font-weight: 600;
	font-size: .9rem;
}
.pkg-option .pkg-desc {
	font-size: .8rem;
	color: var(--sp-muted);
}
.pkg-option .pkg-price {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--sp-primary);
	white-space: nowrap;
}
.pkg-option .rec {
	background: var(--sp-accent);
	color: #fff;
	font-size: .65rem;
	padding: 2px 8px;
	border-radius: 3px;
	margin-left: .5rem;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	height: 1.2em;
	position: relative;
	top: -1px;
}

/* Addon options */
.addon-options {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.addon-item {
	border: 1px solid var(--sp-border);
	border-radius: 8px;
	padding: .75rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: .15s;
}
.addon-item:hover {
	border-color: var(--sp-primary);
}
.addon-item.checked {
	border-color: var(--sp-primary);
	background: #f0f4ff;
}
.addon-item label {
	display: flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
	font-size: .9rem;
}
.addon-item input[type="checkbox"] {
	accent-color: var(--sp-primary);
	width: 16px;
	height: 16px;
}
.addon-price {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--sp-primary);
}

/* Company name input */
.company-name-section {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1rem;
	margin-bottom: .75rem;
	box-shadow: var(--sp-shadow-sm);
}
.company-name-section .section-label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--sp-primary);
	margin-bottom: .5rem;
}
.company-name-section .section-label .req {
	color: #ef4444;
	font-size: .7rem;
	font-weight: 500;
}
.company-name-section input {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid var(--sp-border);
	border-radius: 6px;
	font-size: .85rem;
	outline: none;
	transition: .2s;
}
.company-name-section input:focus {
	border-color: var(--sp-primary);
	box-shadow: 0 0 0 3px rgba(13,43,85,.08);
}
.company-name-section .hint {
	font-size: .7rem;
	color: var(--sp-muted);
	margin-top: .3rem;
	line-height: 1.4;
}

/* Product action (right column) */
.product-action {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1.5rem;
	box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}
.total-label {
	font-size: 1rem;
	color: var(--sp-muted);
}
.total-amount {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--sp-primary);
}
.qty-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}
.qty-row label {
	font-size: .9rem;
	color: var(--sp-muted);
}
.qty-control {
	display: flex;
	align-items: center;
	border: 1px solid var(--sp-border);
	border-radius: 6px;
	overflow: hidden;
}
.qty-control button {
	width: 36px;
	height: 36px;
	border: none;
	background: #f9fafb;
	font-size: 1.1rem;
	cursor: pointer;
}
.qty-control button:hover {
	background: #eee;
}
.qty-control input {
	width: 48px;
	height: 36px;
	border: none;
	border-left: 1px solid var(--sp-border);
	border-right: 1px solid var(--sp-border);
	text-align: center;
	font-size: .95rem;
	outline: none;
}
.btn-add-cart {
	width: 100%;
	padding: .85rem;
	background: var(--sp-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: .5rem;
	transition: .2s;
}
.btn-add-cart:hover {
	background: var(--sp-accent-hover);
}
.btn-buy-now {
	width: 100%;
	padding: .85rem;
	background: var(--sp-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: .2s;
}
.btn-buy-now:hover {
	background: #153E6E;
}

/* Tabs */
.tabs-section {
	background: #fff;
	border-radius: var(--sp-radius);
	border: 1px solid var(--sp-border);
	overflow: hidden;
	margin-bottom: 3rem;
}
.tabs-nav {
	display: flex;
	border-bottom: 1px solid var(--sp-border);
}
.tabs-nav button {
	flex: 1;
	padding: 1rem;
	border: none;
	background: transparent;
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: .2s;
}
.tabs-nav button.active {
	color: var(--sp-primary);
	border-bottom-color: var(--sp-primary);
	background: #f8fafc;
	font-weight: 600;
}
.tabs-nav button:hover {
	background: #f5f7fa;
}
.tab-content {
	padding: 2rem;
	display: none;
}
.tab-content.active {
	display: block;
}
.tab-content h3 {
	margin-bottom: 1rem;
	font-size: 1.1rem;
	color: var(--sp-text);
}
.tab-content ul {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}
.tab-content li {
	margin-bottom: .4rem;
	font-size: .9rem;
}

/* Process steps */
.process-steps {
	display: flex;
	gap: 1rem;
	margin: 1.5rem 0;
}
.step {
	flex: 1;
	text-align: center;
	padding: 1.5rem 1rem;
	background: #f8fafc;
	border-radius: var(--sp-radius);
	border: 1px solid var(--sp-border);
}
.step .num {
	width: 36px;
	height: 36px;
	background: var(--sp-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto .5rem;
	font-weight: 700;
	font-size: .9rem;
}
.step h4 {
	font-size: .85rem;
	margin-bottom: .25rem;
}
.step p {
	font-size: .75rem;
	color: var(--sp-muted);
}

/* FAQ */
.faq-item {
	border-bottom: 1px solid var(--sp-border);
	padding: 1rem 0;
}
.faq-item:last-child {
	border: none;
}
.faq-item h4 {
	font-size: .95rem;
	margin-bottom: .5rem;
	color: var(--sp-primary);
}
.faq-item p {
	font-size: .85rem;
	color: var(--sp-muted);
}

/* Related products */
.related-section {
	margin-bottom: 3rem;
}
.related-section h2 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: var(--sp-text);
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.rel-card {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	padding: 1rem;
	text-align: center;
	cursor: pointer;
	transition: .2s;
	display: block;
	text-decoration: none;
	color: inherit;
}
.rel-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.rel-card .icon {
	font-size: 2rem;
	margin-bottom: .5rem;
}
.rel-card h4 {
	font-size: .85rem;
	margin-bottom: .25rem;
	color: var(--sp-text);
}
.rel-card .price {
	font-size: .95rem;
	font-weight: 700;
	color: var(--sp-primary);
}

/* Sticky buy bar */
.sticky-buy-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 2px solid var(--sp-border);
	padding: .7rem 0;
	z-index: 99;
	transform: translateY(100%);
	transition: transform .3s ease;
	box-shadow: 0 -4px 24px rgba(0,0,0,.1);
}
.sticky-buy-bar.show {
	transform: translateY(0);
}
.sticky-buy-bar .bar-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.sticky-buy-bar .bar-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.sticky-buy-bar .bar-name {
	font-weight: 700;
	font-size: .95rem;
	color: var(--sp-primary);
}
.sticky-buy-bar .bar-pkg {
	font-size: .8rem;
	color: var(--sp-muted);
	background: #f0f4ff;
	padding: 2px 8px;
	border-radius: 4px;
}
.sticky-buy-bar .bar-price {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--sp-primary);
}
.sticky-buy-bar .bar-actions {
	display: flex;
	gap: .5rem;
}
.sticky-buy-bar .bar-btn {
	padding: .6rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: .2s;
}
.sticky-buy-bar .bar-btn.cart {
	background: var(--sp-accent);
	color: #fff;
}
.sticky-buy-bar .bar-btn.cart:hover {
	background: var(--sp-accent-hover);
}
.sticky-buy-bar .bar-btn.buy {
	background: var(--sp-primary);
	color: #fff;
}
.sticky-buy-bar .bar-btn.buy:hover {
	background: #153E6E;
}

/* Responsive: Tablet */
@media (max-width: 900px) {
	.product-header {
		flex-direction: column;
	}
	.product-gallery {
		width: 100%;
		height: 180px;
	}
	.purchase-grid {
		grid-template-columns: 1fr;
	}
	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.process-steps {
		flex-direction: column;
	}
	.price-display {
		flex-direction: column;
		gap: 1rem;
	}
	.price-right-benefits {
		border-left: none;
		border-top: 1px solid #eee;
		margin-left: 0;
		padding-left: 0;
		padding-top: 1rem;
		grid-template-columns: 1fr 1px 1fr;
	}
	.sticky-buy-bar .bar-left {
		flex-direction: column;
		align-items: flex-start;
		gap: .25rem;
	}
}

/* Responsive: Mobile */
@media (max-width: 600px) {
	.related-grid {
		grid-template-columns: 1fr 1fr;
	}
	.tabs-nav button {
		font-size: .8rem;
		padding: .75rem .5rem;
	}
	.sticky-buy-bar .bar-wrap {
		flex-wrap: wrap;
		gap: .5rem;
	}
	.sticky-buy-bar .bar-actions {
		width: 100%;
	}
	.sticky-buy-bar .bar-btn {
		flex: 1;
		text-align: center;
	}
}
