/* ==========================================================================
   Blocksy Child Interactive - Modern WooCommerce & UI Stylesheet
   ========================================================================== */

:root {
	--bc-primary: #6366f1;
	--bc-primary-hover: #4f46e5;
	--bc-accent-green: #10b981;
	--bc-accent-orange: #f59e0b;
	--bc-accent-red: #ef4444;
	--bc-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
	--bc-hover-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.18);
	--bc-glass-bg: rgba(255, 255, 255, 0.85);
	--bc-dark-glass-bg: rgba(15, 23, 42, 0.94);
	--bc-radius: 14px;
	--bc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Edge-to-Edge Full Width Shop & Single Product Title Hero Banner
   ========================================================================== */

.bc-shop-main-layout *,
.woocommerce-products-header,
.woocommerce-products-header * {
	background-image: none !important;
}

/* Apply background image EXCLUSIVELY to top shop hero header */
[data-hero],
.ct-hero-section,
.ct-page-title,
[data-id="hero"],
[data-id="page-title"],
header.entry-header:not(.bc-card-header),
.hero-section {
	position: relative !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	width: 100vw !important;
	max-width: 100vw !important;
	background-image: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.78)), url('https://gallecityonline.lk/wp-content/uploads/2026/07/dfgdf.webp') !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	color: #ffffff !important;
	padding: 42px 20px !important;
	min-height: 120px !important;
	text-align: center !important;
	border-radius: 0 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
	margin-top: 0 !important;
	margin-bottom: 24px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

/* Single Product Page Hero Banner: Sleek Compact Height & Product Name */
.single-product [data-hero],
.single-product .ct-hero-section,
.single-product .ct-page-title,
.single-product [data-id="hero"],
.single-product [data-id="page-title"],
.single-product header.entry-header:not(.bc-card-header) {
	padding: 24px 20px !important;
	min-height: 80px !important;
	margin-bottom: 20px !important;
}

.single-product [data-hero] h1,
.single-product .ct-hero-section h1,
.single-product .ct-page-title h1,
.single-product [data-id="hero"] h1,
.single-product [data-id="page-title"] h1,
.single-product header.entry-header h1 {
	font-size: 1.8rem !important;
	margin: 0 !important;
}

[data-hero] h1,
.ct-hero-section h1,
.ct-page-title h1,
[data-id="hero"] h1,
[data-id="page-title"] h1,
header.entry-header h1,
.page-title {
	color: #ffffff !important;
	font-size: 2.4rem !important;
	font-weight: 800 !important;
	text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
	margin: 0 0 6px 0 !important;
	letter-spacing: -0.5px !important;
}

.ct-page-title .ct-breadcrumbs,
[data-id="page-title"] .ct-breadcrumbs,
.ct-breadcrumbs {
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 0.88rem !important;
}

.ct-page-title .ct-breadcrumbs a,
[data-id="page-title"] .ct-breadcrumbs a,
.ct-breadcrumbs a {
	color: rgba(255, 255, 255, 0.95) !important;
	text-decoration: none !important;
}

/* Mobile View Hero Banner */
@media (max-width: 768px) {
	[data-hero],
	.ct-hero-section,
	.ct-page-title,
	[data-id="hero"],
	[data-id="page-title"],
	header.entry-header {
		left: 0 !important;
		right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 36px 16px !important;
		min-height: 130px !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		border-radius: 0 !important;
	}

	.single-product [data-hero],
	.single-product .ct-page-title,
	.single-product header.entry-header {
		padding: 20px 16px !important;
		min-height: 70px !important;
	}

	[data-hero] h1,
	.ct-page-title h1,
	header.entry-header h1 {
		font-size: 1.8rem !important;
	}
}

/* ==========================================================================
   2. Single Product Page: Large Uncropped Image & Preserved Hover Zoom
   ========================================================================== */

/* Large prominent product photo display */
.single-product .woocommerce-product-gallery__image:not(.zoomImg) img:not(.zoomImg),
.single-product .woocommerce-product-gallery figure img:not(.zoomImg),
.single-product .product .images img:not(.zoomImg),
.bc-quickview-main-image img {
	object-fit: contain !important;
	width: 100% !important;
	height: auto !important;
	max-height: 640px !important;
	display: block !important;
	margin: 0 auto !important;
	border-radius: 12px;
}

.single-product .woocommerce-product-gallery__image {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
}

/* WooCommerce Zoom JS overlay image (.zoomImg) */
.single-product .zoomImg {
	max-height: none !important;
	width: auto !important;
	height: auto !important;
	object-fit: unset !important;
	opacity: 0;
	transition: opacity 0.2s ease;
	cursor: crosshair !important;
}

.single-product .woocommerce-product-gallery__image:hover .zoomImg {
	opacity: 1;
}

.single-product .woocommerce-product-gallery__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
}

/* Thumbnails */
.single-product .flex-control-thumbs li img,
.single-product .woocommerce-product-gallery .thumbnails img {
	object-fit: contain !important;
	border-radius: 8px;
}

/* ==========================================================================
   3. Single Product Page: Hide "Add to cart" and show ONLY "View cart" once added
   ========================================================================== */

.product .cart:has(.added_to_cart) .single_add_to_cart_button,
.single-product .cart:has(.added_to_cart) .single_add_to_cart_button,
.single_add_to_cart_button.added,
.single_add_to_cart_button.is-added-cart {
	display: none !important;
}

a.added_to_cart.wc-forward,
.single-product a.added_to_cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--bc-primary) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	padding: 12px 28px !important;
	border-radius: 10px !important;
	text-decoration: none !important;
	box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
	transition: var(--bc-transition) !important;
	min-height: 44px !important;
	margin-left: 0 !important;
	cursor: pointer !important;
}

a.added_to_cart.wc-forward:hover,
.single-product a.added_to_cart:hover {
	background: var(--bc-primary-hover) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

/* ==========================================================================
   4. Desktop Left Sidebar Layout & Responsive Mobile Slide Bar
   ========================================================================== */

.bc-shop-main-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	width: 100%;
}

.bc-shop-content {
	flex: 1 1 0%;
	min-width: 0;
}

.bc-desktop-sidebar {
	width: 280px;
	flex-shrink: 0;
	position: sticky;
	top: 100px;
	z-index: 10;
}

.bc-persistent-filter-sidebar {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.bc-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid rgba(0, 0, 0, 0.05);
	padding-bottom: 12px;
	margin-bottom: 18px;
}

.bc-sidebar-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
}

.bc-sidebar-close-btn {
	display: none;
	background: rgba(0, 0, 0, 0.06);
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 1.3rem;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.bc-sidebar-widget {
	margin-bottom: 22px;
}

.bc-widget-title {
	font-size: 0.88rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin-bottom: 12px;
}

/* Price Range Slider Widget */
.bc-price-readout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bc-primary);
	margin-bottom: 10px;
	background: rgba(99, 102, 241, 0.06);
	padding: 8px 12px;
	border-radius: 8px;
}

.bc-range-inputs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.bc-range-inputs input[type="range"] {
	accent-color: var(--bc-primary);
	cursor: pointer;
	width: 100%;
}

.bc-price-filter-apply-btn {
	width: 100%;
	background: var(--bc-primary);
	color: #ffffff;
	border: none;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--bc-transition);
}

.bc-price-filter-apply-btn:hover {
	background: var(--bc-primary-hover);
}

/* Stock Options */
.bc-sidebar-stock-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bc-radio-opt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #1e293b;
	cursor: pointer;
}

.bc-radio-opt input {
	accent-color: var(--bc-primary);
}

/* Categories List */
.bc-sidebar-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bc-sidebar-cat-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-radius: 8px;
	color: #334155;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: var(--bc-transition);
}

.bc-sidebar-cat-list li:hover a,
.bc-sidebar-cat-list li.is-active a {
	background: rgba(99, 102, 241, 0.08);
	color: var(--bc-primary);
	font-weight: 600;
}

.bc-cat-count {
	background: rgba(0, 0, 0, 0.05);
	font-size: 0.78rem;
	padding: 2px 8px;
	border-radius: 12px;
	color: #64748b;
}

.bc-reset-btn {
	display: block;
	text-align: center;
	background: rgba(239, 68, 68, 0.08);
	color: var(--bc-accent-red);
	font-weight: 600;
	font-size: 0.88rem;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	transition: var(--bc-transition);
}

.bc-reset-btn:hover {
	background: var(--bc-accent-red);
	color: #ffffff;
}

/* ==========================================================================
   5. Shop Page Interactivity Bar & One-Line Mobile View
   ========================================================================== */

.bc-shop-interactive-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 10px 18px;
	border-radius: 14px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.bc-mobile-filter-icon-btn {
	display: none;
}

.bc-stock-pills-wrap {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.04);
	padding: 4px;
	border-radius: 24px;
	gap: 4px;
}

.bc-stock-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: var(--bc-transition);
}

.bc-stock-pill:hover {
	color: #0f172a;
}

.bc-stock-pill.is-active {
	background: var(--bc-primary);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.bc-view-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bc-view-btn {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 7px;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--bc-transition);
}

.bc-view-btn:hover,
.bc-view-btn.is-active {
	background: var(--bc-primary);
	color: #ffffff;
	border-color: var(--bc-primary);
}

@media (max-width: 768px) {
	.bc-shop-main-layout {
		display: block;
	}

	.bc-shop-interactive-bar {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding: 6px 10px !important;
		margin-bottom: 16px !important;
		height: 52px !important;
		gap: 6px !important;
		border-radius: 30px !important;
	}

	.bc-view-switcher {
		display: none !important;
	}

	.bc-mobile-filter-icon-btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		background: #0f172a !important;
		color: #ffffff !important;
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		border-radius: 50% !important;
		border: none !important;
		cursor: pointer !important;
		box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2) !important;
		flex-shrink: 0 !important;
	}

	.bc-stock-pills-wrap {
		display: inline-flex !important;
		flex-wrap: nowrap !important;
		background: transparent !important;
		padding: 0 !important;
		gap: 4px !important;
	}

	.bc-stock-pill {
		padding: 6px 12px !important;
		font-size: 0.78rem !important;
		white-space: nowrap !important;
	}

	.bc-desktop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 320px;
		height: 100vh;
		max-width: 85vw;
		background: #ffffff;
		z-index: 99999;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
	}

	.bc-desktop-sidebar.is-open {
		transform: translateX(0);
	}

	.bc-sidebar-close-btn {
		display: inline-flex;
	}

	.bc-persistent-filter-sidebar {
		border: none;
		box-shadow: none;
		border-radius: 0;
		padding: 20px;
	}
}

/* ==========================================================================
   6. WooCommerce Off-Canvas Side Cart Drawer
   ========================================================================== */

body.bc-side-cart-glassmorphic .ct-off-canvas,
body.bc-side-cart-glassmorphic #offcanvas-cart,
.ct-off-canvas.is-active {
	background: var(--bc-dark-glass-bg) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	color: #f8fafc !important;
	border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3) !important;
}

body.bc-side-cart-glassmorphic .ct-off-canvas a,
body.bc-side-cart-glassmorphic .ct-off-canvas .ct-cart-title {
	color: #ffffff !important;
}

.bc-shipping-bar-wrapper {
	background: rgba(99, 102, 241, 0.12);
	border: 1px solid rgba(99, 102, 241, 0.25);
	border-radius: 12px;
	padding: 12px 16px;
	margin: 12px 16px 16px 16px;
	transition: var(--bc-transition);
}

.bc-shipping-bar-message {
	font-size: 0.88rem;
	font-weight: 500;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.bc-shipping-success {
	color: var(--bc-accent-green);
	animation: bcPulseGreen 2s infinite;
}

.bc-shipping-progress-track {
	height: 8px;
	width: 100%;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

.bc-shipping-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
	border-radius: 10px;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.woocommerce-mini-cart-item {
	transition: transform 0.3s ease, opacity 0.3s ease;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12) !important;
	padding-bottom: 14px !important;
	margin-bottom: 14px !important;
}

.bc-mini-cart-qty-ctrls {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 2px 6px;
	margin-top: 6px;
}

.bc-qty-btn {
	background: transparent;
	border: none;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	color: #ffffff;
	transition: var(--bc-transition);
}

.bc-qty-btn:hover {
	background: var(--bc-primary);
	color: #fff;
}

.bc-qty-val {
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0 8px;
	color: #ffffff;
}

/* ==========================================================================
   7. Stock Badges & Product Card Overlay
   ========================================================================== */

.bc-product-card-overlay {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	pointer-events: none;
	z-index: 5;
}

.bc-product-card-overlay * {
	pointer-events: auto;
}

.bc-stock-badge {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bc-badge-instock {
	background: var(--bc-accent-green);
	color: #ffffff;
}

.bc-badge-lowstock {
	background: var(--bc-accent-orange);
	color: #ffffff;
	animation: bcPulse 1.5s infinite;
}

.bc-badge-outofstock {
	background: #64748b;
	color: #ffffff;
}

.bc-quick-view-btn {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #1e293b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	opacity: 0;
	transform: translateY(-8px);
	transition: var(--bc-transition);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product:hover .bc-quick-view-btn {
	opacity: 1;
	transform: translateY(0);
}

.bc-quick-view-btn:hover {
	background: var(--bc-primary);
	color: #ffffff;
	border-color: var(--bc-primary);
}

.product.outofstock figure img {
	filter: grayscale(80%) opacity(0.8);
}

/* ==========================================================================
   8. Quick View Modal Window
   ========================================================================== */

.bc-quickview-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: var(--bc-transition);
}

.bc-quickview-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.bc-quickview-dialog {
	background: #ffffff;
	border-radius: 20px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
	transform: scale(0.92);
	transition: var(--bc-transition);
}

.bc-quickview-backdrop.is-open .bc-quickview-dialog {
	transform: scale(1);
}

.bc-quickview-modal-content {
	padding: 30px;
	position: relative;
}

.bc-quickview-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: rgba(0, 0, 0, 0.05);
	border: none;
	font-size: 1.6rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--bc-transition);
	z-index: 10;
}

.bc-quickview-close:hover {
	background: var(--bc-accent-red);
	color: #fff;
	transform: rotate(90deg);
}

.bc-quickview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media (max-width: 768px) {
	.bc-quickview-grid {
		grid-template-columns: 1fr;
	}
}

.bc-quickview-main-image img {
	width: 100%;
	border-radius: 14px;
	object-fit: contain !important;
}

.bc-quickview-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.bc-qv-thumb {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: var(--bc-transition);
}

.bc-qv-thumb.is-active,
.bc-qv-thumb:hover {
	border-color: var(--bc-primary);
}

.bc-qv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
}

.bc-qv-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #0f172a;
}

.bc-qv-price {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--bc-primary);
	margin-bottom: 12px;
}

.bc-qv-description {
	font-size: 0.95rem;
	color: #475569;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Animations */
@keyframes bcPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.85; transform: scale(1.03); }
}

@keyframes bcPulseGreen {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.02); }
}
