
/*
Theme Name: AMRA.Design
Theme URI: https://amradesign.ro/
Author: AMRA
Author URI: https://amradesign.ro/
Description: Tema custom modernă pentru AMRA.Design, optimizată pentru performanță și securitate.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amra-design-theme
Tags: custom, modern, performant, secure
*/

/* Bootstrap palette override for custom theme */
:root {
	--primary: #a4243b;
	--accent: #f2f2f2;
	--dark: #1a1a1a;
	--bs-primary: #a4243b;
	--bs-secondary: #E3D8F1;
	--bs-dark: #1a1a1a;
}

body {
	background: #FFFFFF;
	color: var(--primary);
	font-family: 'Source Serif 4', 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
}

/* Header with Logo */
header {
	position: sticky;
	top: 0;
	z-index: 1300;
	background: #FFFFFF;
	border-bottom: 1px solid #e3d8f1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	padding: 1rem 0;
}

/* Main Navigation */
.main-nav {
	position: sticky;
	top: 72px;
	z-index: 1250;
	background: #FFFFFF;
	border-bottom: 1px solid #e3d8f1;
	padding: 0.75rem 0;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: center;
	position: sticky;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.site-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: 1.8rem;
	font-weight: bold;
}

.site-logo a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.3s;
}
a {
    text-decoration: none;
}

.site-logo a:hover {
	color: var(--bs-secondary);
}

.auth-buttons {
	margin-left: auto;
	display: flex;
	gap: 1rem;
	align-items: center;
}

.auth-buttons a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--primary);
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: all 0.3s;
	font-weight: 500;
}

.auth-buttons a:hover {
	background: rgba(227,216,241,0.5);
	color: var(--primary);
}

.auth-buttons svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}


/* Main Navigation */
.main-nav {
	background: #FFFFFF;
	border-bottom: 1px solid #e3d8f1;
	padding: 0.75rem 0;
}

.main-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.main-menu > li {
	position: relative;
}

.main-menu > li > a {
	color: var(--primary);
	text-decoration: none;
	padding: 0.5rem 1rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	transition: color 0.3s;
}

.main-menu > li > a:hover {
	color: var(--bs-secondary);
}

.main-menu .menu-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.2rem;
	width: 1em;
	font-size: 0.85em;
	transition: color 0.2s ease;
}

.main-menu .menu-arrow::before {
	content: '◀';
	line-height: 1;
}

.main-menu li.has-dropdown:hover > a .menu-arrow::before,
.main-menu li.has-dropdown.open > a .menu-arrow::before {
	content: '▼';
}

/* Desktop Dropdown - Full Width */
.main-menu .sub-menu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	width: 100vw;
	max-width: 1200px;
	background: #FFFFFF;
	border-top: 2px solid var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	list-style: none;
	margin: 0;
	padding: 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	z-index: 1000;
}

.main-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.main-menu .sub-menu li {
	margin: 0;
}

.main-menu .sub-menu a {
	color: var(--primary);
	text-decoration: none;
	padding: 0.5rem 1rem;
	display: block;
	transition: background 0.3s;
	font-weight: normal;
}

.main-menu .sub-menu a:hover {
	background: rgba(227,216,241,0.3);
}

/* =========================
   Modal Cere Ofertă
   ========================= */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 2000;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.modal-dialog {
	background: #fff;
	border-radius: 12px;
	padding: 2rem;
	max-width: 640px;
	width: 92%;
	box-shadow: 0 12px 38px rgba(0,0,0,0.18);
	position: relative;
	pointer-events: auto;
}

body.modal-open {
	overflow: hidden;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #f5f2fa;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.2rem;
	color: var(--primary);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
	background: #ede7f5;
}

.modal-dialog h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--primary);
}

.modal-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.modal-form label span {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: #444;
}

.modal-form input,
.modal-form textarea {
	width: 100%;
	border: 1px solid #e3d8f1;
	border-radius: 8px;
	padding: 0.75rem 0.85rem;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(164,36,59,0.15);
}

.modal-form .form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.modal-submit {
	width: fit-content;
	padding-inline: 1.75rem;
	margin-top: 0.25rem;
}

.error-title {
	color: #d32f2f;
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
}

.error-message {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin: 0.25rem 0 1rem;
	font-size: 0.95rem;
}

/* Hamburger styles */

/* Hamburger styles */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	width: 32px;
	height: 32px;
	cursor: pointer;
	z-index: 1001;
	transition: transform 0.4s cubic-bezier(.4,0,.2,1);
	background: transparent;
	border: none;
	outline: none;
}
.hamburger span {
	display: block;
	height: 4px;
	width: 100%;
	background: var(--primary);
	margin: 5px 0;
	border-radius: 2px;
	transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.hamburger.active {
	transform: rotate(90deg);
}
.hamburger.active span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}


/* Mobile Styles */
@media (max-width: 768px) {
	.site-logo {
		position: static;
		transform: none;
		font-size: 1.4rem;
	}

	.header-container {
		justify-content: space-between;
	}

	.auth-buttons {
		display: none;
	}

	.hamburger {
		display: flex;
		position: relative;
		z-index: 2001;
	}

	.main-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: #FFFFFF;
		z-index: 2000;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		overflow-y: auto;
		padding-top: 4rem;
	}

	.main-nav.open {
		opacity: 1;
		visibility: visible;
	}

	.main-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem;
	}

	.main-menu > li > a {
		padding: 1rem;
		font-size: 1.1rem;
		border-bottom: 1px solid #e3d8f1;
	}

	.main-menu .menu-arrow {
		margin-left: auto;
	}

	.main-menu .sub-menu {
		position: static;
		transform: none;
		width: 100%;
		max-width: none;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		border: none;
		padding: 0 0 0 1.5rem;
		display: none;
		grid-template-columns: 1fr;
	}

	.main-menu li.has-dropdown.open .sub-menu {
		display: block;
	}

	.main-menu .sub-menu a {
		padding: 0.75rem 1rem;
		border-bottom: 1px solid rgba(227,216,241,0.3);
	}
}

footer {
	background: var(--dark);
	color: #fff;
	text-align: center;
	padding: 1rem 0;
	margin-top: 2rem;
}

/* ============================================
   HERO SECTION - FULL WIDTH
   ============================================ */
.hero-fullwidth {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: #FFFFFF;
}

.hero-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 60vh;
	max-width: 100vw;
	margin: 0;
}

.hero-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 3rem 5rem;
	background: #FFFFFF;
}

.hero-title {
	font-size: 3rem;
	font-weight: bold;
	color: var(--primary);
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: #555;
	margin-bottom: 2rem;
	line-height: 1.6;
	max-width: 500px;
}

.hero-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: var(--primary);
	color: #FFFFFF;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1rem;
	border-radius: 4px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(164, 36, 59, 0.2);
}

.hero-btn:hover {
	background: #8a1f32;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(164, 36, 59, 0.3);
	color: #FFFFFF;
}

.hero-right {
	position: relative;
	overflow: hidden;
}

.hero-image {
	width: 100%;
	height: 60vh;
	position: relative;
	overflow: hidden;
}

.hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ============================================
   PROIECTE CAROUSEL
   ============================================ */
.proiecte-carousel-section {
	padding: 4rem 0;
	background: #FAFAFA;
	position: relative;
	overflow: hidden;
}

.carousel-container {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 4rem;
}

.carousel-wrapper {
	overflow: hidden;
	position: relative;
}

.carousel-track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.proiect-card {
	flex: 0 0 calc(33.333% - 1rem);
	max-width: calc(33.333% - 1rem);
	background: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	max-height: 30vh;
	display: flex;
	flex-direction: column;
}

.proiect-card:hover {
	transform: translateY(-12px) scale(1.02);
	box-shadow: 0 8px 20px rgba(164, 36, 59, 0.2);
}

.proiect-image {
	width: 100%;
	height: 22vh;
	overflow: hidden;
	background: #f5f5f5;
}

.proiect-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.proiect-card:hover .proiect-image img {
	transform: scale(1.05);
}

.proiect-content {
	padding: 1rem 1.5rem;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.proiect-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary);
	margin: 0;
	text-align: center;
	line-height: 1.4;
}

/* Carousel Navigation Buttons */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(164, 36, 59, 0.9);
	color: #FFFFFF;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
	background: var(--primary);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 12px rgba(164, 36, 59, 0.4);
}

.carousel-nav.prev {
	left: 0.5rem;
}

.carousel-nav.next {
	right: 0.5rem;
}

.carousel-nav svg {
	width: 24px;
	height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 0;
}

.carousel-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.carousel-indicator.active {
	background: var(--primary);
	transform: scale(1.3);
}

.carousel-indicator:hover {
	background: var(--bs-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
	.proiect-card {
		flex: 0 0 calc(50% - 0.75rem);
		max-width: calc(50% - 0.75rem);
	}
}

@media (max-width: 768px) {
	.hero-container {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	
	.hero-left {
		padding: 2rem 1.5rem;
		order: 1;
	}
	
	.hero-title {
		font-size: 2rem;
	}
	
	.hero-subtitle {
		font-size: 1rem;
	}
	
	.hero-right {
		order: 2;
	}
	
	.hero-image {
		height: 40vh;
	}
	
	.carousel-container {
		padding: 0 3rem;
	}
	
	.proiect-card {
		flex: 0 0 100%;
		max-width: 100%;
		max-height: 35vh;
	}
	
	.proiect-image {
		height: 25vh;
	}
	
	.carousel-nav {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 480px) {
	.hero-left {
		padding: 1.5rem 1rem;
	}
	
	.hero-title {
		font-size: 1.75rem;
	}
	
	.hero-subtitle {
		font-size: 0.95rem;
	}
	
	.hero-btn {
		padding: 0.8rem 2rem;
		font-size: 1rem;
	}
	
	.carousel-container {
		padding: 0 2.5rem;
	}
	
	.carousel-nav {
		width: 36px;
		height: 36px;
	}
	
	.carousel-nav svg {
		width: 20px;
		height: 20px;
	}
}

/* ============================================
   WOOCOMMERCE SHOP - FILTERS & PRODUCTS
   ============================================ */

.shop-wrapper {
	width: 100%;
	max-width: none;
	overflow-x: hidden;
	padding: 0 0 3rem 0;
	margin: 0 auto;
}

.mobile-shop-controls {
	display: none;
	gap: 1rem;
	padding: 1rem;
	background: #FFFFFF;
	border-bottom: 1px solid #e3d8f1;
	position: sticky;
	top: 0;
	z-index: 100;
}

.mobile-filter-btn,
.mobile-sort-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--primary);
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mobile-filter-btn:hover,
.mobile-sort-btn:hover {
	background: #8a1f32;
	transform: translateY(-2px);
}

.shop-container {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2rem;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 2.5rem 2.5rem 0 2.5rem;
}

/* ============================================
   FILTERS SIDEBAR (25%)
   ============================================ */

.shop-filters {
	background: #FFFFFF;
	border: 1px solid #e3d8f1;
	border-radius: 8px;
	padding: 1.5rem;
	height: fit-content;
	position: sticky;
	top: 1rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--primary);
}

.filters-header h3 {
	margin: 0;
	color: var(--primary);
	font-size: 1.5rem;
	font-weight: bold;
}

.close-filters {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--primary);
}

.close-filters svg {
	width: 24px;
	height: 24px;
}

.filters-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.filter-group {
	border-bottom: 1px solid #e3d8f1;
	padding-bottom: 1rem;
}

.filter-group:last-of-type {
	border-bottom: none;
}

.filter-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 0.75rem;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.filter-checkbox,
.filter-radio {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	padding: 0.25rem 0;
	transition: color 0.2s ease;
}

.filter-checkbox:hover,
.filter-radio:hover {
	color: var(--primary);
}

.filter-input {
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: var(--primary);
}

/* Price Range Slider */
.price-filter {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.price-slider {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(to right, var(--primary) 0%, var(--primary) 100%);
}

.price-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--primary);
	cursor: pointer;
	border: 2px solid #FFFFFF;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--primary);
	cursor: pointer;
	border: 2px solid #FFFFFF;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-values {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #555;
	font-weight: 600;
}

/* Filter Actions */
.filter-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.btn-apply-filters,
.btn-reset-filters {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.btn-apply-filters {
	background: var(--primary);
	color: #FFFFFF;
}

.btn-apply-filters:hover {
	background: #8a1f32;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(164, 36, 59, 0.3);
}

.btn-reset-filters {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn-reset-filters:hover {
	background: rgba(164, 36, 59, 0.1);
}

/* ============================================
   PRODUCTS AREA (75%)
   ============================================ */

.shop-products {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

.shop-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #FFFFFF;
	border: 1px solid #e3d8f1;
	border-radius: 8px;
}

.shop-count {
	font-size: 0.95rem;
	color: #555;
}

.shop-ordering select {
	padding: 0.5rem 2rem 0.5rem 1rem;
	border: 1px solid #e3d8f1;
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--primary);
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.3s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a4243b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 12px;
}

.shop-ordering select:focus {
	outline: none;
	border-color: var(--primary);
}

/* Products Grid */
.products-grid,
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.products-grid .product {
	background: #FFFFFF;
	border: 1px solid #e3d8f1;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
}

.products-grid .product:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 20px rgba(164, 36, 59, 0.15);
	border-color: var(--primary);
}

/* WooCommerce Product Card Styling */
.products-grid .product .woocommerce-loop-product__link,
ul.products li.product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.products-grid .product .woocommerce-loop-product__link:hover,
ul.products li.product .woocommerce-loop-product__link:hover {
	color: inherit;
}

.products-grid .product img,
ul.products li.product img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}

.products-grid .product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary);
	margin: 1rem;
	line-height: 1.4;
}

.products-grid .product .price,
ul.products li.product .price {
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--primary);
	margin: 0 1rem 1rem 1rem;
}

.products-grid .product .price del,
ul.products li.product .price del {
	color: #999;
	font-size: 0.9rem;
	margin-right: 0.5rem;
}

.products-grid .product .price ins,
ul.products li.product .price ins {
	text-decoration: none;
}

.products-grid .product .button,
ul.products li.product .button {
	display: block;
	width: calc(100% - 2rem);
	margin: 0 1rem 1rem 1rem;
	padding: 0.75rem;
	background: var(--primary);
	color: #FFFFFF;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
}

.products-grid .product .button:hover,
ul.products li.product .button:hover {
	background: #8a1f32;
	transform: translateY(-2px);
	color: #FFFFFF;
	text-decoration: none;
}

.no-products {
	text-align: center;
	padding: 3rem;
	color: #555;
	font-size: 1.1rem;
}

/* Pagination */
.shop-pagination,
nav.woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.shop-pagination .page-numbers,
nav.woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.shop-pagination a,
.shop-pagination span,
nav.woocommerce-pagination a,
nav.woocommerce-pagination span {
	padding: 0.5rem 1rem;
	border: 1px solid #e3d8f1;
	border-radius: 4px;
	color: var(--primary);
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-block;
}

.shop-pagination a:hover,
.shop-pagination .current,
nav.woocommerce-pagination a:hover,
nav.woocommerce-pagination span.current {
	background: var(--primary);
	color: #FFFFFF;
	border-color: var(--primary);
}

/* Overlay */
.shop-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.shop-overlay.active {
	display: block;
	opacity: 1;
}

/* Loading State */
.products-grid.loading {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

.products-grid.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid #e3d8f1;
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

@media (max-width: 1200px) {
	.products-grid,
	ul.products,
	.shop-products .products {
		grid-template-columns: repeat(3, 1fr);
	}
}
	/* Normalize Woo list wrapper to avoid pagination issues */
	.products-grid > .products,
	.products-grid > ul.products,
	.shop-products .products {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 1.25rem;
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.shop-products .products .product,
	.products-grid .products .product,
	.products-grid ul.products .product,
	.shop-products ul.products .product {
		float: none;
		width: 100%;
		margin: 0;
		list-style: none;
		display: flex;
		flex-direction: column;
	}

	.products .product a img {
		width: 100%;
		height: auto;
		display: block;
	}

	.products.columns-4 {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

	.products.columns-3 {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

@media (max-width: 992px) {
	.shop-container {
		grid-template-columns: 260px minmax(0, 1fr);
		padding: 2rem 1.5rem 0 1.5rem;
	}

	.products-grid,
	ul.products,
	.shop-products .products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.mobile-shop-controls {
		display: flex;
	}
	
	.shop-container {
		grid-template-columns: 1fr;
		padding: 0;
	}
	
	.shop-filters {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 350px;
		height: 100vh;
		z-index: 999;
		border-radius: 0;
		border: none;
		border-right: 1px solid #e3d8f1;
		transition: left 0.3s ease;
		max-height: 100vh;
	}
	
	.shop-filters.active {
		left: 0;
	}
	
	.close-filters {
		display: block;
	}
	
	.shop-products {
		padding: 0 1rem;
	}
	
	.shop-header {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.products-grid,
	ul.products,
	.shop-products .products {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.products-grid,
	ul.products,
	.shop-products .products {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.mobile-filter-btn,
	.mobile-sort-btn {
		font-size: 0.9rem;
		padding: 0.6rem 0.8rem;
	}
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

.single-product-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.single-product-wrapper .woocommerce-breadcrumb {
	margin-bottom: 2rem;
	font-size: 0.9rem;
}

.single-product-wrapper .woocommerce-breadcrumb a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.single-product-wrapper .woocommerce-breadcrumb a:hover {
	color: #8a1f32;
}

.product-layout {
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 3rem;
	margin-bottom: 3rem;
}

/* Product Images */
.product-images {
	position: sticky;
	top: 90px;
	height: fit-content;
	align-self: flex-start;
}

.product-images img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Summary */
.product-summary,
.single-product-wrapper .summary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.product-sale-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	background: var(--primary);
	color: #fff;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
	width: fit-content;
}

.product-title,
.single-product-wrapper .product_title {
	font-size: 2rem;
	font-weight: bold;
	color: var(--primary);
	margin: 0;
	line-height: 1.3;
}

.product-price,
.single-product-wrapper .price {
	font-size: 1.75rem;
	font-weight: bold;
	color: var(--primary);
}

.product-price del,
.single-product-wrapper .price del {
	color: #999;
	font-size: 1.25rem;
	margin-right: 0.5rem;
}

.product-price ins,
.single-product-wrapper .price ins {
	text-decoration: none;
}

.product-excerpt,
.single-product-wrapper .woocommerce-product-details__short-description {
	font-size: 1rem;
	color: #555;
	line-height: 1.6;
}

.product-meta,
.single-product-wrapper .product_meta {
	padding: 1rem 0;
	border-top: 1px solid #e3d8f1;
	border-bottom: 1px solid #e3d8f1;
	font-size: 0.95rem;
}

.product-meta-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	color: #555;
	font-size: 0.95rem;
}

.product-add-to-cart,
.single-product-wrapper .cart {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.product-add-to-cart .quantity,
.single-product-wrapper .quantity {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid #e3d8f1;
	border-radius: 4px;
}

.qty-btn {
	background: #f7f5fb;
	color: var(--primary);
	border: none;
	width: 42px;
	height: 44px;
	font-size: 1.2rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
	background: #ede7f5;
}

.product-add-to-cart input[type="number"],
.single-product-wrapper input[type="number"] {
	width: 70px;
	padding: 0.75rem;
	border: none;
	font-size: 1rem;
	text-align: center;
}

.product-add-to-cart button.single_add_to_cart_button,
.single-product-wrapper button.single_add_to_cart_button {
	padding: 1rem 2rem;
	background: var(--primary);
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

.single-product-wrapper .single_add_to_cart_button,
.product-summary .single_add_to_cart_button,
.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .button,
.woocommerce a.button.single_add_to_cart_button {
	background: var(--primary) !important;
	color: #fff !important;
	border: none !important;
}

.product-add-to-cart button.single_add_to_cart_button:hover,
.single-product-wrapper button.single_add_to_cart_button:hover {
	background: #8a1f32;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(164, 36, 59, 0.3);
}

.product-taxonomies {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 0;
	border-top: 1px solid #e3d8f1;
	font-size: 0.95rem;
	color: #555;
}

.product-taxonomies a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.product-taxonomies a:hover {
	color: #8a1f32;
	text-decoration: underline;
}

/* Product Tabs */
.product-tabs-section {
	margin: 3rem 0;
}

.minimal-tabs .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid #e3d8f1;
}

.minimal-tabs .woocommerce-tabs ul.tabs li a {
	border: none;
	border-radius: 6px 6px 0 0;
	background: #faf8fc;
}

.minimal-tabs .woocommerce-tabs ul.tabs li.active a,
.minimal-tabs .woocommerce-tabs ul.tabs li a:hover {
	background: #f2ecf8;
	border-bottom-color: transparent;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid #e3d8f1;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 1rem 1.5rem;
	color: #555;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.woocommerce-tabs .panel {
	padding: 2rem 0;
}

/* Related Products */
.related-products-section {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid #e3d8f1;
}

.related-products-section h2 {
	color: var(--primary);
	font-size: 1.75rem;
	margin-bottom: 2rem;
}

/* My Account */
.my-account-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem 3rem;
}

.my-account-header h1 {
	margin: 0 0 0.35rem;
	color: var(--primary);
}

.my-account-header p {
	margin: 0 0 1.5rem;
	color: #555;
}

.my-account-grid {
	display: grid;
	grid-template-columns: minmax(260px, 320px) 1fr;
	gap: 2rem;
	align-items: start;
}

.my-account-nav {
	display: flex;
}

.my-account-nav .woocommerce-MyAccount-navigation {
	width: 100%;
	height: 100%;
	background: #faf8fc;
	border: 1px solid #e3d8f1;
	border-radius: 10px;
	padding: 1rem;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.woocommerce-MyAccount-navigation li {
	width: 100%;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	color: var(--primary);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: #f2ecf8;
}

.my-account-content {
	background: #fff;
	border: 1px solid #e3d8f1;
	border-radius: 10px;
	padding: 1.5rem;
	box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.woocommerce-MyAccount-content h2 {
	margin-top: 0;
}

.woocommerce-cart .product-name .variation,
.woocommerce-checkout .product-name .variation {
	display: none !important;
}

.woocommerce-cart .product-name .wc-item-meta,
.woocommerce-checkout .product-name .wc-item-meta,
.woocommerce-checkout-review-order-table .product-name .wc-item-meta {
	display: none !important;
}

.woocommerce-MyAccount-content a.button,
.woocommerce-Button,
.woocommerce-button {
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0.65rem 1.2rem;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.woocommerce-MyAccount-content a.button:hover,
.woocommerce-Button:hover,
.woocommerce-button:hover {
	background: #8a1f32;
	transform: translateY(-1px);
}

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword,
.edit-account,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	gap: 0.9rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	border: 1px solid #e3d8f1;
	border-radius: 8px;
	padding: 0.7rem 0.85rem;
	font-family: inherit;
}

@media (max-width: 960px) {
	.my-account-grid {
		grid-template-columns: 1fr;
	}

	.my-account-nav {
		order: 1;
	}

	.my-account-content {
		order: 2;
	}
}

.woocommerce-account .page-title,
.woocommerce-account .entry-title {
	display: none;
}

/* Responsive Single Product */
@media (max-width: 992px) {
	.product-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.product-images {
		position: relative;
		top: auto;
	}
}

@media (max-width: 768px) {
	.single-product-wrapper {
		padding: 1rem;
	}
	
	.product-title {
		font-size: 1.5rem;
	}
	
	.product-price {
		font-size: 1.5rem;
	}
	
	.woocommerce-tabs ul.tabs {
		flex-direction: column;
	}
	
	.woocommerce-tabs ul.tabs li a {
		padding: 0.75rem 1rem;
	}
}
