/* ==========================================================================
   Afoomart Custom Theme Stylesheet (Jumia-inspired E-Commerce Layout)
   Primary Colors: Navy Blue (#0B3C66) and Vibrant Red (#E31C25)
   ========================================================================== */

:root {
	--primary-color: #0b3c66;
	--primary-hover: #072947;
	--primary-rgb: 11, 60, 102;
	--secondary-color: #e31c25;
	--secondary-hover: #be131a;
	--secondary-rgb: 227, 28, 37;
	
	--bg-light: #f5f5f5;
	--white: #ffffff;
	--border-color: #e0e0e0;
	--text-dark: #282828;
	--text-muted: #757575;
	
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--radius: 8px;
	--radius-sm: 4px;
	--radius-lg: 12px;
	
	--font-primary: 'Inter', sans-serif;
	--font-display: 'Outfit', sans-serif;
}

/* Global Styles */
body {
	font-family: var(--font-primary);
	background-color: var(--bg-light);
	color: var(--text-dark);
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
}

.afoomart-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
	box-sizing: border-box;
}

/* Helper Buttons */
.btn-primary-theme {
	background-color: var(--secondary-color);
	color: var(--white);
	border: none;
	padding: 10px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.2s ease, transform 0.1s ease;
	display: inline-block;
}

.btn-primary-theme:hover {
	background-color: var(--secondary-hover);
}

.btn-primary-theme:active {
	transform: scale(0.98);
}

/* ==========================================================================
   Header & Topbar
   ========================================================================== */

.afoomart-topbar {
	background-color: var(--primary-color);
	color: var(--white);
	font-size: 12px;
	padding: 8px 0;
	font-family: var(--font-primary);
}

.topbar-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.topbar-left, .topbar-right {
	display: flex;
	gap: 20px;
	align-items: center;
}

.topbar-link {
	color: rgba(255, 255, 255, 0.85);
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.topbar-link:hover {
	color: var(--white);
}

.topbar-middle {
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* Main Header */
.site-header {
	background-color: var(--white);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 15px 0;
	box-shadow: var(--shadow-sm);
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-branding {
	flex-shrink: 0;
}

.site-logo {
	max-height: 48px;
	width: auto;
	display: block;
}

.site-title-fallback {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
}

/* Search Bar */
.header-search {
	flex-grow: 1;
	max-width: 650px;
}

.search-input-group {
	display: flex;
	align-items: center;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding-left: 12px;
	background-color: #fcfcfc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.search-input-group:focus-within {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(11, 60, 102, 0.15);
}

.search-icon-inside {
	color: var(--text-muted);
	font-size: 15px;
	margin-right: 8px;
}

.search-field {
	border: none;
	background: none;
	width: 100%;
	padding: 12px 10px 12px 0;
	font-size: 14px;
	font-family: var(--font-primary);
	color: var(--text-dark);
}

.search-field:focus {
	outline: none;
}

.search-submit {
	background-color: var(--secondary-color);
	color: var(--white);
	border: none;
	padding: 12px 24px;
	font-weight: 600;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.search-submit:hover {
	background-color: var(--secondary-hover);
}

/* Actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Dropdown styling */
.header-dropdown {
	position: relative;
}

.dropdown-trigger {
	background: none;
	border: none;
	font-family: var(--font-primary);
	font-size: 15px;
	font-weight: 600;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 8px 4px;
	transition: color 0.2s ease;
}

.dropdown-trigger i {
	font-size: 18px;
	color: var(--text-dark);
}

.dropdown-trigger .chevron-icon {
	font-size: 10px;
	color: var(--text-muted);
	margin-top: 2px;
}

.header-dropdown:hover .dropdown-trigger,
.header-dropdown:hover .dropdown-trigger i {
	color: var(--secondary-color);
}

.dropdown-content {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: var(--white);
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius);
	width: 240px;
	padding: 15px 0;
	display: none;
	flex-direction: column;
	border: 1px solid var(--border-color);
	margin-top: 10px;
	animation: fadeInDropdown 0.2s ease-out;
}

.header-dropdown:hover .dropdown-content {
	display: flex;
}

@keyframes fadeInDropdown {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dropdown-content::before {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 30px;
	border-width: 8px;
	border-style: solid;
	border-color: transparent transparent var(--white) transparent;
}

.dropdown-content a {
	padding: 10px 20px;
	font-size: 14px;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
	background-color: #f8f9fa;
	color: var(--secondary-color);
}

.dropdown-content hr {
	border: 0;
	border-top: 1px solid var(--border-color);
	margin: 10px 0;
}

.user-greeting {
	padding: 0 20px 5px;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color);
}

.auth-buttons {
	padding: 5px 20px;
}

.btn-signin {
	width: 100%;
	box-sizing: border-box;
}

.btn-logout {
	margin: 5px 20px 0;
	text-align: center;
	border: 1px solid var(--border-color) !important;
	border-radius: var(--radius-sm);
	padding: 8px !important;
	font-size: 13px !important;
	justify-content: center !important;
	color: var(--text-muted) !important;
}

.btn-logout:hover {
	background-color: #fff5f5 !important;
	color: var(--secondary-color) !important;
	border-color: #ffcccc !important;
}

.chat-btn {
	margin: 5px 20px 0;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	text-align: center;
	color: white !important;
	justify-content: center !important;
}

/* Header Cart Button */
.header-cart-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text-dark);
	font-weight: 600;
	font-size: 15px;
	transition: color 0.2s ease;
}

.header-cart-btn:hover {
	color: var(--secondary-color);
}

.cart-icon-container {
	position: relative;
	display: flex;
	align-items: center;
}

.cart-icon-container i {
	font-size: 22px;
}

.cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: var(--secondary-color);
	color: var(--white);
	font-size: 10px;
	font-weight: 800;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	box-sizing: border-box;
}

.cart-label-container {
	display: flex;
	flex-direction: column;
}

/* Breadcrumbs */
.afoomart-breadcrumbs-bar {
	background-color: var(--white);
	border-bottom: 1px solid var(--border-color);
	padding: 12px 0;
	font-size: 13px;
	color: var(--text-muted);
}

.woocommerce-breadcrumb a {
	color: var(--text-muted);
	transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
	color: var(--secondary-color);
}

.breadcrumb-separator {
	font-size: 9px;
	margin: 0 5px;
}

/* ==========================================================================
   Front Page Grid Layout (Jumia Layout)
   ========================================================================== */

.home-grid {
	display: grid;
	grid-template-columns: 240px 1fr 240px;
	gap: 15px;
	margin-top: 15px;
	margin-bottom: 30px;
}

@media (max-width: 1024px) {
	.home-grid {
		grid-template-columns: 200px 1fr;
	}
	.home-promo-sidebar {
		display: none;
	}
}

@media (max-width: 768px) {
	.home-grid {
		grid-template-columns: 1fr;
	}
	.home-menu-sidebar {
		display: none;
	}
}

/* Category Sidebar Menu */
.home-menu-sidebar {
	background-color: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 10px 0;
	border: 1px solid var(--border-color);
	position: relative;
	height: fit-content;
}

.category-vertical-menu {
	display: flex;
	flex-direction: column;
}

.cat-item-has-children {
	position: relative;
}

.cat-menu-link {
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cat-menu-link:hover {
	background-color: var(--bg-light);
	color: var(--secondary-color);
}

.cat-link-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cat-link-left i {
	width: 16px;
	text-align: center;
	color: var(--text-muted);
}

.cat-menu-link:hover .cat-link-left i {
	color: var(--secondary-color);
}

.chevron-right-icon {
	font-size: 9px;
	color: var(--text-muted);
}

/* Flyout Submenu styling */
.cat-item-has-children .cat-submenu {
	position: absolute;
	left: 100%;
	top: -10px;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-lg);
	border-radius: 0 var(--radius) var(--radius) 0;
	width: 260px;
	min-height: calc(100% + 20px);
	padding: 15px 0;
	display: none;
	z-index: 100;
	animation: slideInSubmenu 0.2s ease;
}

.cat-item-has-children:hover .cat-submenu {
	display: block;
}

@keyframes slideInSubmenu {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.cat-submenu-title {
	padding: 0 20px 10px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--primary-color);
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 10px;
	text-transform: uppercase;
}

.cat-submenu a {
	padding: 8px 20px;
	font-size: 13px;
	color: var(--text-dark);
	display: block;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cat-submenu a:hover {
	background-color: #f8f9fa;
	color: var(--secondary-color);
}

/* Center Carousel Banner Slider */
.home-slider-container {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	height: 380px;
	position: relative;
	background-color: #eaeaea;
	border: 1px solid var(--border-color);
}

.banner-slides {
	width: 100%;
	height: 100%;
	position: relative;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	padding: 0 50px;
	box-sizing: border-box;
}

.slide.active {
	opacity: 1;
	visibility: visible;
}

.slide-content-overlay {
	max-width: 450px;
	background-color: rgba(255, 255, 255, 0.95);
	padding: 25px 30px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border-left: 5px solid var(--secondary-color);
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
	transition-delay: 0.1s;
}

.slide.active .slide-content-overlay {
	transform: translateY(0);
	opacity: 1;
}

.slide-tag {
	background-color: var(--primary-color);
	color: white;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 12px;
	letter-spacing: 0.5px;
}

.slide-title {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-color);
	margin-bottom: 10px;
	line-height: 1.2;
}

.slide-desc {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 18px;
	line-height: 1.4;
}

.btn-slide {
	font-size: 13px;
	padding: 10px 18px;
}

/* Slider Controls */
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.7);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	font-size: 16px;
	transition: background-color 0.2s, color 0.2s;
	z-index: 10;
}

.slider-btn:hover {
	background-color: var(--primary-color);
	color: white;
}

.slider-btn.prev {
	left: 15px;
}

.slider-btn.next {
	right: 15px;
}

.slider-dots {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.2s, width 0.2s;
}

.dot.active {
	background-color: var(--secondary-color);
	width: 20px;
	border-radius: 4px;
}

/* Right Side Promo Widgets Panel */
.home-promo-sidebar {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.promo-card {
	background-color: var(--white);
	border-radius: var(--radius);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.promo-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.promo-icon-box {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: rgba(11, 60, 102, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	font-size: 18px;
	flex-shrink: 0;
}

.promo-card.red-theme .promo-icon-box {
	background-color: rgba(227, 28, 37, 0.08);
	color: var(--secondary-color);
}

.promo-info h5 {
	margin: 0 0 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-dark);
}

.promo-info p {
	margin: 0;
	font-size: 11px;
	color: var(--text-muted);
}

.promo-banner-widget {
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
	flex-grow: 1;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 15px;
	box-sizing: border-box;
}

.promo-banner-widget::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
	z-index: 1;
}

.promo-banner-widget-content {
	position: relative;
	z-index: 2;
	color: white;
}

.promo-banner-widget-content h6 {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--secondary-color);
	text-transform: uppercase;
}

.promo-banner-widget-content h4 {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
}

.promo-banner-link {
	font-size: 11px;
	color: white;
	font-weight: 700;
	text-decoration: underline;
}

/* ==========================================================================
   Homepage Blocks: Flash Sales & Products
   ========================================================================== */

/* Block Header */
.section-block {
	background-color: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	margin-bottom: 25px;
	overflow: hidden;
}

.block-header {
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}

.block-header-left {
	display: flex;
	align-items: center;
	gap: 15px;
}

.block-header-title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 800;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.flash-sales-block .block-header {
	background-color: var(--secondary-color);
	color: var(--white);
	border-bottom: none;
}

.flash-sales-block .block-header-title {
	color: var(--white);
}

.flash-sales-block .block-header-title i {
	animation: pulseSpeed 1s infinite alternate;
}

@keyframes pulseSpeed {
	from { transform: scale(1); }
	to { transform: scale(1.15); }
}

/* Countdown Timer */
.countdown-box {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--white);
}

.countdown-label {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
	opacity: 0.9;
}

.countdown-digits {
	display: flex;
	gap: 4px;
}

.countdown-num {
	background-color: var(--white);
	color: var(--secondary-color);
	padding: 4px 6px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 800;
	min-width: 22px;
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.countdown-sep {
	font-size: 14px;
	color: var(--white);
	animation: blink 1s infinite;
	margin: 0 1px;
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.2; }
}

.see-all-link {
	color: var(--primary-color);
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.2s ease;
}

.see-all-link:hover {
	color: var(--secondary-color);
}

.flash-sales-block .see-all-link {
	color: var(--white);
}

.flash-sales-block .see-all-link:hover {
	text-decoration: underline;
}

/* Product Loop Grid */
.products-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	padding: 15px;
}

@media (max-width: 1200px) {
	.products-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 800px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 500px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Custom Product Card */
.theme-product-card {
	background-color: var(--white);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid transparent;
	padding: 10px;
	box-sizing: border-box;
}

.theme-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(11, 60, 102, 0.1);
}

.product-image-container {
	position: relative;
	width: 100%;
	padding-bottom: 100%; /* square ratio */
	overflow: hidden;
	background-color: #fafafa;
	border-radius: var(--radius-sm);
}

.product-image-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.theme-product-card:hover .product-image-container img {
	transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background-color: rgba(227, 28, 37, 0.1);
	color: var(--secondary-color);
	font-size: 11px;
	font-weight: 800;
	padding: 3px 6px;
	border-radius: 3px;
	z-index: 2;
}

.product-details {
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-brand {
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
	font-weight: 600;
}

.product-title {
	font-size: 13px;
	color: var(--text-dark);
	margin: 0 0 6px;
	font-weight: 500;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 36px;
}

.product-price-row {
	display: flex;
	flex-direction: column;
	margin-bottom: 8px;
}

.current-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-dark);
	font-family: var(--font-display);
}

.old-price {
	font-size: 12px;
	color: var(--text-muted);
	text-decoration: line-through;
	margin-top: 2px;
}

/* Ratings */
.product-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #ffc107;
	margin-bottom: 8px;
}

.rating-count {
	color: var(--text-muted);
}

/* Stock Progress Bar for Flash Sales */
.product-stock-status {
	margin-top: auto;
}

.stock-text {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	font-weight: 700;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.stock-progressbar {
	height: 5px;
	background-color: #e9ecef;
	border-radius: 10px;
	overflow: hidden;
}

.stock-progress {
	height: 100%;
	background-color: var(--secondary-color);
	border-radius: 10px;
	transition: width 0.3s ease;
}

/* Quick Add to Cart button */
.add-to-cart-overlay {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	margin-top: 8px;
}

.theme-product-card:hover .add-to-cart-overlay {
	opacity: 1;
	transform: translateY(0);
}

.btn-add-to-cart {
	width: 100%;
	padding: 8px 10px;
	font-size: 12px;
	background-color: var(--primary-color);
	border-radius: var(--radius-sm);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.btn-add-to-cart:hover {
	background-color: var(--primary-hover);
}

@media (max-width: 768px) {
	.add-to-cart-overlay {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */

.site-footer {
	background-color: #282828;
	color: #e0e0e0;
	margin-top: 40px;
}

/* Newsletter section */
.footer-newsletter {
	background-color: var(--primary-color);
	padding: 30px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.footer-newsletter-container {
		flex-direction: column;
		text-align: center;
	}
}

.newsletter-brand {
	flex-shrink: 0;
}

.newsletter-logo {
	max-height: 36px;
	filter: brightness(0) invert(1); /* make logo white in footer */
}

.newsletter-title-fallback {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 800;
	color: white;
}

.newsletter-text h3 {
	margin: 0 0 5px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: white;
}

.newsletter-text p {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.newsletter-form-container {
	flex-grow: 1;
	max-width: 550px;
}

.form-group-inline {
	display: flex;
	gap: 8px;
	width: 100%;
}

@media (max-width: 480px) {
	.form-group-inline {
		flex-direction: column;
	}
}

.input-wrapper {
	position: relative;
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 12px;
	color: var(--text-muted);
}

.newsletter-input {
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 12px 12px 12px 36px;
	width: 100%;
	box-sizing: border-box;
	font-family: var(--font-primary);
	font-size: 13px;
}

.newsletter-input:focus {
	outline: none;
	border-color: var(--white);
}

.newsletter-submit {
	border: none;
	border-radius: var(--radius-sm);
	color: white;
	font-weight: 700;
	padding: 0 16px;
	height: 42px;
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.5px;
	transition: background-color 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.male-btn {
	background-color: var(--secondary-color);
}

.male-btn:hover {
	background-color: var(--secondary-hover);
}

.female-btn {
	background-color: transparent;
	border: 1.5px solid white;
}

.female-btn:hover {
	background-color: rgba(255,255,255,0.1);
}

/* Footer columns */
.footer-main {
	padding: 40px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	box-sizing: border-box;
}

@media (max-width: 800px) {
	.footer-main-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.footer-main-container {
		grid-template-columns: 1fr;
	}
}

.footer-title {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	color: white;
	margin: 0 0 15px;
	letter-spacing: 0.5px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	font-size: 12px;
	color: #a8a8a8;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--secondary-color);
}

/* Socials & Payments */
.footer-socials {
	display: flex;
	gap: 10px;
}

.social-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: rgba(255,255,255,0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: background-color 0.2s, transform 0.2s;
}

.social-icon:hover {
	transform: scale(1.1);
}

.facebook:hover { background-color: #1877f2; }
.twitter:hover { background-color: #000000; }
.instagram:hover { background-color: #e1306c; }
.youtube:hover { background-color: #ff0000; }

.mt-4 {
	margin-top: 20px;
}

.footer-payments {
	display: flex;
	gap: 12px;
	font-size: 24px;
	color: #7c7c7c;
}

.footer-payments i {
	transition: color 0.2s;
	cursor: pointer;
}

.footer-payments i:hover {
	color: white;
}

/* Footer Bottom */
.footer-bottom {
	background-color: #1a1a1a;
	padding: 20px 0;
	font-size: 12px;
	color: #6c6c6c;
}

.footer-bottom-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.footer-bottom-container {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}

.site-credit i {
	animation: heartbeat 1.2s infinite;
}

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

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* ==========================================================================
   WooCommerce Base Overrides & Wrappers
   ========================================================================== */

.woocommerce-container {
	padding-top: 30px;
	padding-bottom: 50px;
}

.woocommerce-container main {
	background-color: var(--white);
	border-radius: var(--radius);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	padding: 25px;
	box-sizing: border-box;
}

/* WooCommerce Button adjustments */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
	background-color: var(--primary-color);
	color: white;
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: var(--radius-sm);
	padding: 10px 20px;
	transition: background-color 0.2s;
	border: none;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
	background-color: var(--primary-hover);
	color: white;
}

.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
	background-color: var(--secondary-color);
}

.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
	background-color: var(--secondary-hover);
}

.woocommerce span.onsale {
	background-color: var(--secondary-color);
	color: white;
	font-weight: 700;
	border-radius: var(--radius-sm);
	padding: 4px 8px;
}
