/*!
 * AGH Theme WooCommerce - Main Stylesheet
 * Version: 1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@500;600;700;800&family=Overpass:wght@300;400;500;600;700&display=swap');

/*--------------------------------------------------------------
1.0 CSS Variables & Reset
--------------------------------------------------------------*/
:root {
	/* Color System */
	--color-primary: #0b0b0b;      /* Deep charcoal */
	--color-secondary: #ffffff;    /* Pure white */
	--color-white: #ffffff;
	--color-accent: #f7f7f7;       /* Soft off-white */
	--color-dark: #0f0f0f;
	--color-light-gray: #f2f2f2;
	--color-border: #dcdcdc;
	
	/* Typography */
	--font-primary: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
	--font-heading: 'Bodoni Moda', 'Times New Roman', serif;
	
	/* Spacing */
	--spacing-unit: 8px;
	--container-width: min(1600px, calc(100vw - 32px));
	--container-padding: calc(var(--spacing-unit) * 2.5);
	
	/* Transitions */
	--transition-fast: 150ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 500ms ease;
	
	/* Shadows */
	--shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
	--shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	color: var(--color-dark);
	line-height: 1.6;
	overflow-x: hidden;
}

html,
body,
#page,
.site {
	width: 100%;
	max-width: 100%;
}

.container {
	max-width: var(--container-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* Home layout: stretch to full width and align cards like shop */
body.home .site-main,
body.home .site-main .container,
body.home .site-main .elementor-container,
body.home .site-main .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 100% !important;
	width: 100%;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

body.home .woocommerce ul.products,
body.home ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: calc(var(--spacing-unit) * 2.5);
	width: 100%;
}

body.home ul.products li.product {
	margin: 0;
	width: 100% !important;
}

body.home ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Always show add-to-cart on home product grid */
body.home ul.products li.product .button,
body.home ul.products li.product .add_to_cart_button,
body.home ul.products li.product a.added_to_cart {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
	margin-top: calc(var(--spacing-unit) * 1.5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-fast);
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/*--------------------------------------------------------------
2.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	margin-bottom: calc(var(--spacing-unit) * 2);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

@media (min-width: 768px) {
	h1 { font-size: 3rem; }
	h2 { font-size: 2.5rem; }
	h3 { font-size: 2rem; }
	h4 { font-size: 1.5rem; }
}

p {
	margin-bottom: calc(var(--spacing-unit) * 2);
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }

/*--------------------------------------------------------------
3.0 Header & Navigation
--------------------------------------------------------------*/
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: var(--color-white);
	z-index: 1000;
	transition: all var(--transition-base);
	box-shadow: var(--shadow-light);
}

.site-header.header-transparent {
	background: transparent;
	box-shadow: none;
}

.site-header.header-transparent .header-inner {
	color: var(--color-white);
}

.site-header.scrolled {
	background: var(--color-white);
	box-shadow: var(--shadow-light);
}

.site-header.scrolled .header-inner {
	color: var(--color-dark);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	position: relative;
}

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

.site-branding .custom-logo {
	height: 40px;
	width: auto;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: var(--color-primary);
}

.header-transparent .site-title a {
	color: var(--color-white);
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

#primary-menu {
	display: flex;
	list-style: none;
	gap: calc(var(--spacing-unit) * 3);
}

#primary-menu a {
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: calc(var(--spacing-unit) * 0.5) 0;
	position: relative;
}

#primary-menu a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: currentColor;
	transition: width var(--transition-base);
}

#primary-menu a:hover::after {
	width: 100%;
}

.header-icons {
	display: flex;
	align-items: center;
	gap: calc(var(--spacing-unit) * 2);
}

.header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	transition: all var(--transition-fast);
}

.header-icon:hover {
	background: var(--color-accent);
}

.cart-icon {
	position: relative;
}

.cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 0.75rem;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 20px;
	padding: 0;
}

.hamburger {
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
	position: fixed;
	top: 0;
	left: -100%;
	width: 300px;
	height: 100%;
	background: var(--color-white);
	z-index: 1001;
	transition: left var(--transition-base);
	box-shadow: var(--shadow-heavy);
}

.mobile-menu-drawer.active {
	left: 0;
}

.drawer-header {
	padding: calc(var(--spacing-unit) * 3);
	border-bottom: 1px solid var(--color-border);
	display: flex;
	justify-content: flex-end;
}

.drawer-close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drawer-content {
	padding: calc(var(--spacing-unit) * 3);
}

#mobile-menu {
	list-style: none;
}

#mobile-menu li {
	margin-bottom: calc(var(--spacing-unit) * 2);
}

#mobile-menu a {
	font-size: 1.125rem;
	font-weight: 600;
	text-transform: uppercase;
}

/* Search Overlay */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1002;
	display: none;
	align-items: center;
	justify-content: center;
}

.search-overlay.active {
	display: flex;
}

.search-container {
	width: 90%;
	max-width: 600px;
	position: relative;
}

.search-close {
	position: absolute;
	top: -60px;
	right: 0;
	color: var(--color-white);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-form {
	position: relative;
}

.search-field {
	width: 100%;
	padding: calc(var(--spacing-unit) * 3);
	font-size: 1.5rem;
	background: transparent;
	border: 2px solid var(--color-white);
	color: var(--color-white);
	border-radius: 4px;
}

.search-submit {
	position: absolute;
	right: calc(var(--spacing-unit) * 3);
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-white);
}

/*--------------------------------------------------------------
4.0 Hero Section
--------------------------------------------------------------*/
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: var(--color-primary);
	overflow: hidden;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.hero-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.7;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	color: var(--color-white);
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: calc(var(--spacing-unit) * 8) var(--container-padding);
}

.hero-title {
	font-size: 3.5rem;
	margin-bottom: calc(var(--spacing-unit) * 2);
	letter-spacing: 2px;
}

.hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: calc(var(--spacing-unit) * 4);
	opacity: 0.9;
}

.hero-button {
	display: inline-block;
	background: var(--color-primary);
	color: var(--color-white);
	padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 6);
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all var(--transition-base);
	border: 1px solid transparent;
}

.hero-button:hover {
	background: var(--color-secondary);
	color: var(--color-primary);
	border-color: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-medium);
}

/*--------------------------------------------------------------
5.0 Promo Bar
--------------------------------------------------------------*/
.promo-bar {
	background: var(--color-primary);
	color: var(--color-white);
	padding: calc(var(--spacing-unit) * 2) 0;
	position: sticky;
	top: 80px;
	z-index: 999;
}

.promo-content {
	text-align: center;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	white-space: nowrap;
	overflow: hidden;
}

.promo-text {
	display: inline-block;
	animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
	0% { transform: translateX(100%); }
	100% { transform: translateX(-100%); }
}

/*--------------------------------------------------------------
6.0 Category Blocks
--------------------------------------------------------------*/
.category-section {
	padding: calc(var(--spacing-unit) * 8) 0;
	background: var(--color-white);
}

.section-title {
	text-align: center;
	margin-bottom: calc(var(--spacing-unit) * 6);
	color: var(--color-primary);
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: calc(var(--spacing-unit) * 4);
}

.category-card {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 4/5;
}

.category-image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.category-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
	transform: scale(1.05);
}

.category-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	padding: calc(var(--spacing-unit) * 4);
}

.category-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: calc(var(--spacing-unit) * 2);
	text-align: center;
}

.category-button {
	background: var(--color-primary);
	color: var(--color-white);
	padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all var(--transition-base);
	border: 1px solid transparent;
}

.category-button:hover {
	background: var(--color-secondary);
	color: var(--color-primary);
	border-color: var(--color-primary);
	transform: translateY(-2px);
}

/*--------------------------------------------------------------
7.0 Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--color-primary);
	color: var(--color-white);
	padding: calc(var(--spacing-unit) * 8) 0;
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(var(--spacing-unit) * 4);
}

.social-icons {
	display: flex;
	gap: calc(var(--spacing-unit) * 3);
}

.social-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	transition: all var(--transition-fast);
}

.social-icon:hover {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	color: var(--color-primary);
}

.legal-links {
	display: flex;
	gap: calc(var(--spacing-unit) * 4);
	font-size: 0.875rem;
}

.legal-links a {
	opacity: 0.8;
	transition: opacity var(--transition-fast);
}

.legal-links a:hover {
	opacity: 1;
}

.copyright {
	font-size: 0.75rem;
	opacity: 0.6;
	text-align: center;
}

/*--------------------------------------------------------------
8.0 Buttons & Forms
--------------------------------------------------------------*/
.btn {
	display: inline-block;
	padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
	text-align: center;
	transition: all var(--transition-base);
	cursor: pointer;
	border: none;
}

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

.btn-primary:hover {
	background: var(--color-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-medium);
}

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

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

.btn-outline {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

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

input,
textarea,
select {
	width: 100%;
	padding: calc(var(--spacing-unit) * 2);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-primary);
}

/*--------------------------------------------------------------
9.0 Utility Classes
--------------------------------------------------------------*/
.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.grid { display: grid; }

.mt-1 { margin-top: calc(var(--spacing-unit) * 1); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 2); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 3); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 4); }
.mt-5 { margin-top: calc(var(--spacing-unit) * 5); }

.mb-1 { margin-bottom: calc(var(--spacing-unit) * 1); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 2); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 3); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 4); }
.mb-5 { margin-bottom: calc(var(--spacing-unit) * 5); }

.p-1 { padding: calc(var(--spacing-unit) * 1); }
.p-2 { padding: calc(var(--spacing-unit) * 2); }
.p-3 { padding: calc(var(--spacing-unit) * 3); }
.p-4 { padding: calc(var(--spacing-unit) * 4); }
.p-5 { padding: calc(var(--spacing-unit) * 5); }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }

.bg-primary { background: var(--color-primary); }
.bg-secondary { background: var(--color-secondary); }
.bg-white { background: var(--color-white); }
.bg-accent { background: var(--color-accent); }
