/* ==========================================================================
   PodVibe Woo - Main Public Stylesheet (High Specificity Theme Override)
   ========================================================================== */

:root {
	--pv-primary: #6366f1;
	--pv-primary-hover: #4f46e5;
	--pv-primary-light: #eef2ff;
	--pv-accent: #10b981;
	--pv-text-dark: #0f172a;
	--pv-text-muted: #64748b;
	--pv-bg-card: #ffffff;
	--pv-bg-subtle: #f8fafc;
	--pv-border: #e2e8f0;
	--pv-radius-sm: 8px;
	--pv-radius-md: 14px;
	--pv-radius-lg: 20px;
	--pv-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
	--pv-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
	--pv-shadow-lg: 0 20px 35px -10px rgba(99, 102, 241, 0.15);
	--pv-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--pv-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	--pv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Wrapper Specificity */
html body .podvibe-wrapper,
html body.woocommerce .podvibe-wrapper,
html body.podvibe-shop-enhanced .podvibe-wrapper {
	font-family: var(--pv-font-main) !important;
	color: var(--pv-text-dark) !important;
	margin: 20px 0 !important;
	position: relative !important;
	width: 100% !important;
}

html body .podvibe-wrapper *,
html body.woocommerce .podvibe-wrapper * {
	box-sizing: border-box !important;
}

/* ==========================================================================
   Shop Page Hero Banner & Breadcrumb
   ========================================================================== */

.podvibe-shop-hero-banner {
	position: relative;
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
	padding: 50px 20px;
	text-align: center;
	color: #ffffff;
	overflow: hidden;
}

.podvibe-shop-hero-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 450px;
	height: 450px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0,0,0,0) 70%);
	pointer-events: none;
}

.podvibe-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.podvibe-shop-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 500;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.podvibe-shop-breadcrumb a {
	color: #cbd5e1 !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.podvibe-shop-breadcrumb a:hover {
	color: #ffffff !important;
}

.podvibe-shop-breadcrumb .sep {
	color: #64748b;
}

.podvibe-shop-breadcrumb .current {
	color: #ffffff;
	font-weight: 600;
}

.podvibe-hero-title {
	font-family: var(--pv-font-heading) !important;
	font-size: 2.5rem !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 0 10px 0 !important;
	letter-spacing: -0.5px !important;
}

.podvibe-hero-subtitle {
	font-size: 1rem !important;
	color: #94a3b8 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* ==========================================================================
   Layout & Sidebar Structure
   ========================================================================== */

html body .podvibe-layout {
	display: flex !important;
	gap: 30px !important;
	align-items: flex-start !important;
	width: 100% !important;
}

html body .podvibe-sidebar-desktop {
	width: 280px !important;
	flex-shrink: 0 !important;
}

html body .podvibe-sidebar-box {
	background: var(--pv-bg-card) !important;
	border: 1px solid var(--pv-border) !important;
	border-radius: var(--pv-radius-md) !important;
	padding: 24px 20px !important;
	box-shadow: var(--pv-shadow-sm) !important;
}

html body .podvibe-sidebar-title {
	font-family: var(--pv-font-heading) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: var(--pv-text-dark) !important;
	margin: 0 0 18px 0 !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	border-bottom: 2px solid var(--pv-primary-light) !important;
	padding-bottom: 12px !important;
}

html body .podvibe-title-icon {
	color: var(--pv-primary) !important;
	display: flex !important;
	align-items: center !important;
}

/* Category List Override */
html body .podvibe-cat-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

html body .podvibe-cat-item {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .podvibe-cat-link {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 10px 14px !important;
	border-radius: var(--pv-radius-sm) !important;
	color: var(--pv-text-dark) !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	font-size: 0.95rem !important;
	transition: var(--pv-transition) !important;
	background: transparent !important;
	box-shadow: none !important;
}

html body .podvibe-cat-link:hover,
html body .podvibe-cat-item.active .podvibe-cat-link {
	background: var(--pv-primary-light) !important;
	color: var(--pv-primary) !important;
	transform: translateX(4px) !important;
}

html body .podvibe-cat-icon {
	width: 24px !important;
	height: 24px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--pv-primary) !important;
	flex-shrink: 0 !important;
}

html body .podvibe-cat-icon img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 4px !important;
}

html body .podvibe-cat-name {
	flex-grow: 1 !important;
}

html body .podvibe-cat-count {
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	background: #f1f5f9 !important;
	color: var(--pv-text-muted) !important;
	padding: 2px 8px !important;
	border-radius: 12px !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-cat-link:hover .podvibe-cat-count,
html body .podvibe-cat-item.active .podvibe-cat-count {
	background: var(--pv-primary) !important;
	color: #ffffff !important;
}

/* Main Grid Container Override */
html body .podvibe-grid-container {
	flex-grow: 1 !important;
	width: 100% !important;
}

/* ==========================================================================
   Product Grid Layout (Desktop 4 cols / Mobile 2 cols)
   ========================================================================== */

html body .podvibe-products-grid {
	display: grid !important;
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Desktop Columns */
html body .podvibe-products-grid.cols-desktop-4 {
	grid-template-columns: repeat(4, 1fr) !important;
}
html body .podvibe-products-grid.cols-desktop-3 {
	grid-template-columns: repeat(3, 1fr) !important;
}
html body .podvibe-products-grid.cols-desktop-2 {
	grid-template-columns: repeat(2, 1fr) !important;
}

/* Product Card Styling Override */
html body .podvibe-product-card {
	background: var(--pv-bg-card) !important;
	border: 1px solid var(--pv-border) !important;
	border-radius: var(--pv-radius-md) !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	transition: var(--pv-transition) !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .podvibe-product-card:hover {
	border-color: rgba(99, 102, 241, 0.4) !important;
	box-shadow: var(--pv-shadow-md) !important;
	transform: translateY(-5px) !important;
}

/* Thumbnail Wrap */
html body .podvibe-card-thumb-wrap {
	position: relative !important;
	width: 100% !important;
	padding-top: 100% !important; /* 1:1 Aspect Ratio */
	overflow: hidden !important;
	background: var(--pv-bg-subtle) !important;
}

html body .podvibe-card-thumb-link {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
}

html body .podvibe-product-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: transform 0.5s ease !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body .podvibe-product-card:hover .podvibe-product-img {
	transform: scale(1.08) !important;
}

/* Badges */
html body .podvibe-badge {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	z-index: 2 !important;
	padding: 4px 10px !important;
	border-radius: 20px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

html body .podvibe-badge.sale {
	background: linear-gradient(135deg, #ef4444, #f43f5e) !important;
}

html body .podvibe-badge.featured {
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

/* Hover Quick Actions */
html body .podvibe-card-actions {
	position: absolute !important;
	bottom: 12px !important;
	right: 12px !important;
	z-index: 2 !important;
	display: flex !important;
	gap: 6px !important;
	opacity: 0 !important;
	transform: translateY(10px) !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-product-card:hover .podvibe-card-actions {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

html body .podvibe-action-btn {
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.9) !important;
	backdrop-filter: blur(4px) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--pv-text-dark) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
	text-decoration: none !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-action-btn:hover {
	background: var(--pv-primary) !important;
	color: #ffffff !important;
}

/* Content Area Override */
html body .podvibe-card-content {
	padding: 16px !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
}

html body .podvibe-card-category {
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	color: var(--pv-primary) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	margin-bottom: 6px !important;
}

html body .podvibe-card-category a {
	color: inherit !important;
	text-decoration: none !important;
}

html body .podvibe-card-title {
	font-family: var(--pv-font-heading) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.3 !important;
}

html body .podvibe-card-title a {
	color: var(--pv-text-dark) !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

html body .podvibe-card-title a:hover {
	color: var(--pv-primary) !important;
}

/* Ratings */
html body .podvibe-card-rating {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-bottom: 12px !important;
	font-size: 0.82rem !important;
}

html body .podvibe-card-rating .star-rating {
	font-size: 0.85rem !important;
	color: #fbbf24 !important;
}

html body .podvibe-rating-num {
	color: var(--pv-text-muted) !important;
	font-weight: 500 !important;
}

/* Card Bottom: Vertical Stack (Price on Top, Add to Cart Below) requested by user */
html body .podvibe-card-bottom {
	margin-top: auto !important;
	padding-top: 12px !important;
	border-top: 1px dashed var(--pv-border) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 10px !important;
	width: 100% !important;
}

html body .podvibe-card-price {
	font-family: var(--pv-font-heading) !important;
	font-weight: 700 !important;
	font-size: 1.1rem !important;
	color: var(--pv-text-dark) !important;
}

html body .podvibe-card-price del {
	color: var(--pv-text-muted) !important;
	font-size: 0.85rem !important;
	font-weight: 400 !important;
	margin-right: 4px !important;
}

html body .podvibe-card-price ins {
	text-decoration: none !important;
	color: var(--pv-primary) !important;
}

/* Add to Cart Container & Button Full-Width */
html body .podvibe-card-addtocart {
	width: 100% !important;
}

html body .podvibe-card-addtocart .button,
html body.woocommerce .podvibe-card-addtocart a.button,
html body .podvibe-card-addtocart a.button {
	width: 100% !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	border-radius: var(--pv-radius-sm) !important;
	font-family: var(--pv-font-main) !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: var(--pv-primary) !important;
	color: #ffffff !important;
	border: none !important;
	cursor: pointer !important;
	transition: var(--pv-transition) !important;
	text-decoration: none !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: 1.4 !important;
}

html body .podvibe-card-addtocart .button:hover,
html body.woocommerce .podvibe-card-addtocart a.button:hover {
	background: var(--pv-primary-hover) !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

html body .podvibe-card-addtocart .button.loading {
	opacity: 0.7 !important;
	pointer-events: none !important;
}

/* Pagination Styling Override */
html body .podvibe-pagination {
	margin-top: 35px !important;
	display: flex !important;
	justify-content: center !important;
}

html body .podvibe-pagination ul.page-numbers {
	display: flex !important;
	gap: 8px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body .podvibe-pagination ul.page-numbers li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .podvibe-pagination .page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 12px !important;
	border-radius: var(--pv-radius-sm) !important;
	border: 1px solid var(--pv-border) !important;
	background: var(--pv-bg-card) !important;
	color: var(--pv-text-dark) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-pagination .page-numbers.current,
html body .podvibe-pagination .page-numbers:hover {
	background: var(--pv-primary) !important;
	color: #ffffff !important;
	border-color: var(--pv-primary) !important;
}

/* Mobile Filter Bar & Off-Canvas Drawer Override */
html body .podvibe-mobile-filter-bar {
	display: none;
	margin-bottom: 20px !important;
}

html body .podvibe-btn-offcanvas-open {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px 18px !important;
	background: var(--pv-bg-card) !important;
	border: 1px solid var(--pv-border) !important;
	border-radius: var(--pv-radius-sm) !important;
	color: var(--pv-text-dark) !important;
	font-family: var(--pv-font-heading) !important;
	font-weight: 600 !important;
	font-size: 0.92rem !important;
	cursor: pointer !important;
	box-shadow: var(--pv-shadow-sm) !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-btn-offcanvas-open:hover {
	border-color: var(--pv-primary) !important;
	color: var(--pv-primary) !important;
}

/* Offcanvas Overlay */
html body .podvibe-offcanvas-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.5) !important;
	backdrop-filter: blur(4px) !important;
	z-index: 99998 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: var(--pv-transition) !important;
}

html body .podvibe-offcanvas-overlay.active {
	opacity: 1 !important;
	visibility: visible !important;
}

/* Offcanvas Drawer */
html body .podvibe-offcanvas-drawer {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 320px !important;
	max-width: 85vw !important;
	height: 100vh !important;
	background: var(--pv-bg-card) !important;
	z-index: 99999 !important;
	transform: translateX(-100%) !important;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
	box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
	display: flex !important;
	flex-direction: column !important;
}

html body .podvibe-offcanvas-drawer.active {
	transform: translateX(0) !important;
}

html body .podvibe-offcanvas-header {
	padding: 20px !important;
	border-bottom: 1px solid var(--pv-border) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}

html body .podvibe-offcanvas-header h3 {
	font-family: var(--pv-font-heading) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	margin: 0 !important;
}

html body .podvibe-btn-offcanvas-close {
	background: transparent !important;
	border: none !important;
	font-size: 1.8rem !important;
	line-height: 1 !important;
	color: var(--pv-text-muted) !important;
	cursor: pointer !important;
	transition: color 0.2s ease !important;
}

html body .podvibe-btn-offcanvas-close:hover {
	color: #ef4444 !important;
}

html body .podvibe-offcanvas-body {
	padding: 20px !important;
	overflow-y: auto !important;
	flex-grow: 1 !important;
}

/* Toast Notification */
html body .podvibe-toast-notice {
	position: fixed !important;
	bottom: 30px !important;
	right: 30px !important;
	z-index: 999999 !important;
	background: #0f172a !important;
	color: #ffffff !important;
	padding: 14px 22px !important;
	border-radius: var(--pv-radius-md) !important;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important;
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	font-family: var(--pv-font-main) !important;
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	transform: translateY(100px) !important;
	opacity: 0 !important;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

html body .podvibe-toast-notice.show {
	transform: translateY(0) !important;
	opacity: 1 !important;
}

html body .podvibe-toast-btn {
	background: var(--pv-primary) !important;
	color: #ffffff !important;
	padding: 6px 12px !important;
	border-radius: var(--pv-radius-sm) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 0.82rem !important;
	transition: background 0.2s ease !important;
}

html body .podvibe-toast-btn:hover {
	background: var(--pv-primary-hover) !important;
}

/* Responsive Breakpoints Override */
@media (max-width: 992px) {
	html body .podvibe-sidebar-desktop {
		display: none !important;
	}
	html body .podvibe-mobile-filter-bar {
		display: block !important;
	}
	html body .podvibe-products-grid.cols-desktop-4,
	html body .podvibe-products-grid.cols-desktop-3 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 768px) {
	html body .podvibe-products-grid.cols-mobile-2,
	html body .podvibe-products-grid.cols-desktop-4,
	html body .podvibe-products-grid.cols-desktop-3,
	html body .podvibe-products-grid.cols-desktop-2 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}

	html body .podvibe-card-content {
		padding: 10px !important;
	}

	html body .podvibe-card-title {
		font-size: 0.88rem !important;
	}

	html body .podvibe-card-price {
		font-size: 0.95rem !important;
	}

	html body .podvibe-card-addtocart .button {
		padding: 6px 10px !important;
		font-size: 0.75rem !important;
	}
}

@media (max-width: 480px) {
	html body .podvibe-products-grid.cols-mobile-1 {
		grid-template-columns: 1fr !important;
	}
}
