/**
 * GenerateSales WP Themes — Global Theme Aesthetic Overhaul
 * 
 * Completely eliminates the flat GeneratePress default look across all elements,
 * providing a rich, vibrant, high-converting digital product & publication aesthetic.
 * 
 * @author Rifan Muazin <muazin.asro@gmail.com>
 * @link https://ebot.my.id
 */

/* ==========================================================================
   1. GLOBAL RESET & BASE SURFACE
   ========================================================================== */
body {
	background-color: var(--gs-background, #f8fafc);
	color: var(--gs-text, #0f172a);
	font-family: var(--gs-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--gs-primary, #6366f1);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
	color: var(--gs-primary-hover, #4f46e5);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--gs-secondary, #0f172a);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

/* ==========================================================================
   2. SITE HEADER & NAVIGATION (MODERN BLUR GLASSMORPHISM)
   ========================================================================== */
.site-header {
	background: rgba(255, 255, 255, 0.92) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--gs-border, #e2e8f0) !important;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04) !important;
	position: relative;
	z-index: 100;
	transition: all 0.3s ease;
}

.inside-header {
	padding: 16px 24px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--gs-container, 1200px);
}

.main-title a {
	font-size: 1.5rem !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em !important;
	background: var(--gs-gradient-dark, linear-gradient(135deg, #0f172a 0%, #334155 100%));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none !important;
}

.site-description {
	font-size: 0.8125rem !important;
	color: var(--gs-muted, #64748b) !important;
	margin: 2px 0 0 0 !important;
	font-weight: 500;
}

/* Primary Navigation Overhaul */
.main-navigation {
	background: transparent !important;
	box-shadow: none !important;
}

.main-navigation .main-nav ul li a {
	color: var(--gs-secondary, #0f172a) !important;
	font-weight: 600 !important;
	font-size: 0.9375rem !important;
	padding: 8px 16px !important;
	border-radius: 9999px !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
	background: rgba(99, 102, 241, 0.08) !important;
	color: var(--gs-primary, #6366f1) !important;
}

/* Dropdown Navigation Submenu */
.main-navigation ul ul {
	background: #ffffff !important;
	border: 1px solid var(--gs-border, #e2e8f0) !important;
	border-radius: var(--gs-radius-card, 12px) !important;
	box-shadow: var(--gs-shadow-lg, 0 12px 24px -4px rgba(15, 23, 42, 0.08)) !important;
	padding: 8px !important;
	top: 100% !important;
}

.main-navigation ul ul li a {
	padding: 10px 14px !important;
	border-radius: 6px !important;
	font-size: 0.875rem !important;
}

.main-navigation ul ul li:hover > a {
	background: #f8fafc !important;
	color: var(--gs-primary, #6366f1) !important;
}

/* Header Actions & Cart */
.gs-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-left: 16px;
}

.gs-header-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(99, 102, 241, 0.08);
	color: var(--gs-primary, #6366f1) !important;
	transition: all 0.2s ease;
}

.gs-header-cart-btn:hover {
	background: var(--gs-primary, #6366f1);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.gs-cart-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #ef4444;
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Header Buttons / Custom Nav CTA */
.gs-header-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--gs-gradient-primary, linear-gradient(135deg, #6366f1 0%, #4338ca 100%)) !important;
	color: #ffffff !important;
	padding: 9px 20px !important;
	border-radius: var(--gs-radius-btn, 8px) !important;
	font-weight: 700 !important;
	font-size: 0.875rem !important;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.gs-header-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35) !important;
}

/* ==========================================================================
   3. CONTENT WRAPPERS & CONTAINERS (MODERN CARD ELEVATION)
   ========================================================================== */
.separate-containers .inside-article,
.separate-containers .sidebar .widget,
.separate-containers .page-header,
.separate-containers .comments-area {
	background-color: var(--gs-card-bg, #ffffff) !important;
	border: 1px solid var(--gs-border, #e2e8f0) !important;
	border-radius: var(--gs-radius-card, 12px) !important;
	box-shadow: var(--gs-shadow-sm, 0 1px 3px 0 rgba(15, 23, 42, 0.06)) !important;
	padding: 36px 40px !important;
	margin-bottom: 30px !important;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.separate-containers .inside-article:hover {
	box-shadow: var(--gs-shadow-md, 0 4px 12px -2px rgba(15, 23, 42, 0.08)) !important;
	border-color: #cbd5e1 !important;
}

/* Archive / Blog Post Titles & Excerpts */
.entry-title {
	font-size: 1.75rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	margin-bottom: 12px !important;
}

.entry-title a {
	color: var(--gs-secondary, #0f172a) !important;
	text-decoration: none !important;
}

.entry-title a:hover {
	color: var(--gs-primary, #6366f1) !important;
}

.entry-meta {
	font-size: 0.8125rem !important;
	color: var(--gs-muted, #64748b) !important;
	margin-bottom: 18px !important;
}

.entry-meta a {
	color: var(--gs-muted, #64748b) !important;
	font-weight: 600;
}

.entry-meta a:hover {
	color: var(--gs-primary, #6366f1) !important;
}

/* Post Featured Images */
.post-image {
	margin-top: 0 !important;
	margin-bottom: 24px !important;
	border-radius: calc(var(--gs-radius-card, 12px) - 2px) !important;
	overflow: hidden !important;
}

.post-image img {
	width: 100% !important;
	height: auto !important;
	display: block !important;
	transition: transform 0.3s ease !important;
}

.inside-article:hover .post-image img {
	transform: scale(1.02);
}

/* Buttons / Read More */
.read-more-button,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	background: var(--gs-primary, #6366f1) !important;
	color: #ffffff !important;
	border: 1px solid transparent !important;
	padding: 10px 22px !important;
	border-radius: var(--gs-radius-btn, 8px) !important;
	font-weight: 700 !important;
	font-size: 0.9375rem !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
	box-shadow: var(--gs-shadow-sm) !important;
}

.read-more-button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--gs-primary-hover, #4f46e5) !important;
	transform: translateY(-1px) !important;
	box-shadow: var(--gs-shadow-md) !important;
}

/* ==========================================================================
   4. SIDEBARS & WIDGETS
   ========================================================================== */
.sidebar .widget {
	padding: 28px !important;
}

.widget-title {
	font-size: 1.1rem !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: var(--gs-secondary, #0f172a) !important;
	padding-bottom: 12px !important;
	border-bottom: 2px solid var(--gs-border, #e2e8f0) !important;
	margin-bottom: 20px !important;
	position: relative;
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--gs-primary, #6366f1);
}

.sidebar .widget ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.sidebar .widget ul li {
	padding: 8px 0 !important;
	border-bottom: 1px solid #f1f5f9 !important;
	font-size: 0.9375rem !important;
}

.sidebar .widget ul li:last-child {
	border-bottom: none !important;
}

.sidebar .widget ul li a {
	color: var(--gs-secondary, #0f172a) !important;
	font-weight: 500 !important;
}

.sidebar .widget ul li a:hover {
	color: var(--gs-primary, #6366f1) !important;
	padding-left: 4px;
}

/* ==========================================================================
   5. SEARCH FORM & INPUTS
   ========================================================================== */
.search-form {
	display: flex !important;
	gap: 8px !important;
	position: relative !important;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	background: #ffffff !important;
	border: 1px solid var(--gs-border, #e2e8f0) !important;
	border-radius: var(--gs-radius-btn, 8px) !important;
	padding: 10px 14px !important;
	font-size: 0.9375rem !important;
	color: var(--gs-text, #0f172a) !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--gs-primary, #6366f1) !important;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ==========================================================================
   6. WOOCOMMERCE SHOP & ARCHIVE OVERHAUL
   ========================================================================== */
.woocommerce ul.products li.product {
	background: #ffffff !important;
	border: 1px solid var(--gs-border, #e2e8f0) !important;
	border-radius: var(--gs-radius-card, 12px) !important;
	padding: 18px !important;
	box-shadow: var(--gs-shadow-sm) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	text-align: left !important;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-4px) !important;
	box-shadow: var(--gs-shadow-lg) !important;
	border-color: var(--gs-primary, #6366f1) !important;
}

.woocommerce ul.products li.product img {
	border-radius: calc(var(--gs-radius-card, 12px) - 4px) !important;
	margin-bottom: 14px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	color: var(--gs-secondary, #0f172a) !important;
	padding: 0 !important;
	margin: 0 0 8px 0 !important;
}

.woocommerce ul.products li.product .price {
	color: var(--gs-primary, #6366f1) !important;
	font-size: 1.2rem !important;
	font-weight: 800 !important;
	margin-bottom: 14px !important;
	display: block !important;
}

.woocommerce span.onsale {
	background: #ef4444 !important;
	color: #ffffff !important;
	font-size: 0.6875rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	border-radius: 9999px !important;
	min-height: auto !important;
	min-width: auto !important;
	line-height: 1 !important;
	padding: 4px 10px !important;
	top: 10px !important;
	left: 10px !important;
	right: auto !important;
}

/* ==========================================================================
   7. GLOBAL FOOTER (MODERN 4-COLUMN DIGITAL THEME FOOTER)
   ========================================================================== */
.site-footer {
	background: var(--gs-secondary, #0f172a) !important;
	color: #94a3b8 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	font-size: 0.9375rem !important;
}

.site-footer a {
	color: #cbd5e1 !important;
	text-decoration: none !important;
}

.site-footer a:hover {
	color: var(--gs-primary, #6366f1) !important;
}

.site-info {
	background: transparent !important;
	padding: 28px 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
	color: #64748b !important;
	font-size: 0.85rem !important;
	text-align: center !important;
}

.site-info a {
	color: #94a3b8 !important;
	font-weight: 600 !important;
}

.site-info a:hover {
	color: #ffffff !important;
}

/* Rich Global Footer Grid Component */
.gs-global-footer-wrap {
	max-width: var(--gs-container, 1200px);
	margin: 0 auto;
	padding: 60px 24px 40px 24px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
}

.gs-footer-brand-title {
	font-size: 1.35rem;
	font-weight: 900;
	color: #ffffff;
	margin: 0 0 12px 0;
	letter-spacing: -0.02em;
}

.gs-footer-brand-desc {
	font-size: 0.9rem;
	color: #94a3b8;
	line-height: 1.6;
	margin-bottom: 20px;
}

.gs-footer-col-title {
	font-size: 0.95rem;
	font-weight: 800;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 18px 0;
}

.gs-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gs-footer-links li {
	margin-bottom: 10px;
}

.gs-footer-links a {
	color: #94a3b8 !important;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.gs-footer-links a:hover {
	color: #ffffff !important;
	padding-left: 4px;
}

@media (max-width: 900px) {
	.gs-global-footer-wrap {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.gs-global-footer-wrap {
		grid-template-columns: 1fr;
	}
	.inside-article {
		padding: 24px 20px !important;
	}
}
