/* === Site Header Widget === */

.sh-wrapper {
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid #f0f0f0;
}

.sh-nav.sh-nav-sticky {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9990;
	max-width: none;
	background-color: #fff;
	border-bottom: 1px solid #f0f0f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sh-nav-placeholder {
	height: 0;
	overflow: hidden;
}

/* === Top Bar === */
.sh-top {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* === Logo === */
.sh-logo {
	flex: 1;
	display: flex;
	justify-content: flex-start;
}

.sh-logo a {
	font-family: 'Great Vibes', cursive;
	font-size: 42px;
	color: #4a4a4a;
	text-decoration: none;
	letter-spacing: 2px;
	line-height: 1;
}

.sh-logo img {
	display: block;
	height: auto;
}

/* === Search === */
.sh-search {
	flex: 2;
	display: flex;
	justify-content: center;
	padding: 0 40px;
}

.sh-search-form {
	position: relative;
	width: 100%;
	max-width: 550px;
}

.sh-search-input {
	width: 100%;
	height: 42px;
	padding: 0 45px 0 15px;
	font-size: 14px;
	font-family: 'Montserrat', sans-serif;
	color: #333;
	background-color: #fff;
	border: 2px solid #5A3F00;
	outline: none;
	border-radius: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.sh-search-input:focus {
	border-color: #5A3F00;
	box-shadow: none;
	outline: none;
}

.sh-search-input::placeholder {
	color: #888;
	font-weight: 400;
}

.sh-search-btn {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 45px;
	background: transparent;
	border: none;
	color: #555;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: none;
}

/* === Icons === */
.sh-icons {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
}

.sh-icon-link {
	color: #333;
	font-size: 20px;
	text-decoration: none;
	transition: color 0.2s;
	display: inline-flex;
	align-items: center;
}

.sh-icon-link:hover {
	color: #a89d87;
}

.sh-cart-link,
.sh-wishlist-link {
	position: relative;
}

.sh-cart-count,
.sh-wl-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background-color: #5A3F00;
	border-radius: 50%;
	padding: 0 3px;
}

.sh-icon-link i,
.sh-icon-link svg {
	display: block;
}

.sh-search-btn i,
.sh-search-btn svg {
	display: block;
}

/* === Language Selector === */
.sh-lang-selector {
	position: relative;
	margin-left: 10px;
}

.sh-lang-current {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	color: #333;
	font-weight: 600;
	padding: 5px 0;
	text-transform: uppercase;
	transition: color 0.2s;
}

.sh-lang-current:hover {
	color: #a89d87;
}

.sh-lang-flag {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #eee;
}

.sh-lang-current i {
	font-size: 10px;
	transition: transform 0.3s ease;
}

.sh-lang-selector:hover .sh-lang-current i {
	transform: rotate(180deg);
}

.sh-lang-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: #fff;
	min-width: 120px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 100;
}

.sh-lang-selector:hover .sh-lang-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sh-lang-dropdown a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	color: #555;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	border-bottom: 1px solid #f8f8f8;
	transition: background-color 0.2s, color 0.2s;
}

.sh-lang-dropdown a:last-child {
	border-bottom: none;
}

.sh-lang-dropdown a:hover {
	background-color: #fcfcfc;
	color: #a89d87;
}

/* === Navigation === */
.sh-nav {
	max-width: 1400px;
	margin: 0 auto;
	padding: 5px 40px 25px 40px;
}

.sh-nav > ul {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sh-nav li {
	list-style: none;
	position: relative;
}

.sh-nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: #333;
	transition: color 0.2s;
}

.sh-nav a {
	text-decoration: none;
	color: #333;
	transition: color 0.2s;
}

.sh-nav a:hover {
	color: #a89d87;
}

.sh-nav-arrow {
	transition: transform 0.2s;
	margin-top: 1px;
}

.sh-nav li:hover > a > .sh-nav-arrow {
	transform: rotate(180deg);
}

/* Dropdown */
.sh-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 15px);
	left: -18px;
	transform: none;
	min-width: 200px;
	background: #fff;
	border: 1px solid #f0f0f0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.sh-nav > ul > li::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 15px;
}

.sh-nav li:hover > .sub-menu {
	display: block;
	opacity: 1;
	visibility: visible;
}

.sh-nav .sub-menu li {
	position: relative;
}

.sh-nav .sub-menu a {
	display: block;
	padding: 9px 20px;
	color: #555;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}

.sh-nav .sub-menu a:hover {
	background-color: #f9f8f6;
	color: #5A3F00;
}

/* === Desktop: hide mobile-only elements === */
.sh-mobile-left {
	display: none;
}

.sh-sidebar-overlay {
	display: none;
}

.sh-sidebar {
	display: none;
}

.sh-mobile-search-panel {
	display: none;
}

/* === Responsive: Tablet === */
@media (max-width: 992px) {
	.sh-top {
		flex-direction: column;
		gap: 20px;
	}

	.sh-logo,
	.sh-search,
	.sh-icons {
		flex: none;
		width: 100%;
		justify-content: center;
	}

	.sh-search {
		padding: 0;
	}

	.sh-search-form {
		max-width: 100%;
	}

	.sh-nav ul {
		gap: 15px;
	}
}

/* === Responsive: Mobile === */
@media (max-width: 767px) {
	.sh-wrapper {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		padding: 12px 15px;
		position: relative;
	}

	/* Show mobile left (hamburger + search) */
	.sh-mobile-left {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 1;
		order: 1;
	}

	.sh-hamburger,
	.sh-mobile-search-btn {
		background: none;
		border: none;
		padding: 4px;
		cursor: pointer;
		color: #333;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.sh-mobile-search-btn {
		display: none !important;
	}

	.sh-icons .sh-icon-link[aria-label="Wishlist"] {
		display: none !important;
	}

	/* Top bar becomes inline, no padding */
	.sh-top {
		display: contents;
	}

	/* Logo center */
	.sh-logo {
		flex: none;
		width: auto;
		justify-content: center;
		order: 2;
	}

	.sh-logo a {
		font-size: 16px;
		letter-spacing: 3px;
		font-family: 'Montserrat', sans-serif;
		font-weight: 500;
	}

	/* Icons right — only cart + account */
	.sh-icons {
		flex: 1;
		width: auto;
		justify-content: flex-end;
		gap: 15px;
		order: 3;
	}

	/* Hide desktop search, nav, lang on mobile */
	.sh-search {
		display: none;
	}

	.sh-nav {
		display: none;
	}

	.sh-lang-selector {
		display: none;
	}

	/* === Mobile Sidebar Overlay === */
	.sh-sidebar-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 9998;
	}

	.sh-sidebar-overlay.sh-show {
		display: block;
	}

	/* === Mobile Sidebar === */
	.sh-sidebar {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 70%;
		max-width: 320px;
		height: 100%;
		background: #fff;
		z-index: 9999;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		padding: 20px;
	}

	.sh-sidebar.sh-show {
		transform: translateX(0);
	}

	.sh-sidebar-header {
		display: flex;
		justify-content: flex-end;
		margin-bottom: 20px;
	}

	.sh-sidebar-close {
		background: none;
		border: none;
		font-size: 28px;
		color: #333;
		cursor: pointer;
		padding: 0;
		line-height: 1;
	}

	.sh-sidebar-nav ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.sh-sidebar-nav li {
		border-bottom: 1px solid #f0f0f0;
	}

	.sh-sidebar-nav a {
		display: block;
		padding: 14px 0;
		color: #333;
		text-decoration: none;
		transition: color 0.2s;
	}

	.sh-sidebar-nav a:hover {
		color: #a89d87;
	}

	.sh-sidebar-nav .sub-menu {
		padding-left: 15px;
	}

	.sh-sidebar-nav .sub-menu li {
		border-bottom: none;
	}

	.sh-sidebar-nav .sub-menu a {
		padding: 10px 0;
		color: #666;
	}

	/* === Mobile Search Panel === */
	.sh-mobile-search-panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		padding: 10px 15px;
		border-bottom: 1px solid #eee;
		z-index: 100;
	}

	.sh-mobile-search-panel.sh-show {
		display: block;
	}

	.sh-mobile-search-form {
		display: flex;
		align-items: center;
		border: 1px solid #ddd;
	}

	.sh-mobile-search-input {
		flex: 1;
		border: none;
		outline: none;
		padding: 10px 12px;
		font-size: 14px;
		background: transparent;
		-webkit-appearance: none;
		appearance: none;
		box-shadow: none !important;
		border-radius: 0 !important;
	}

	.sh-mobile-search-submit {
		background: none;
		border: none;
		padding: 10px 12px;
		cursor: pointer;
		color: #555;
		display: flex;
		align-items: center;
	}
}

/* === Auth Modal === */
.sh-auth-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
}

.sh-auth-overlay.sh-show {
	display: block;
}

.sh-auth-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	max-width: 90vw;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	z-index: 99999;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	padding: 36px 32px 32px;
}

.sh-auth-modal.sh-show {
	display: block;
}

.sh-auth-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.2s;
}

.sh-auth-close:hover {
	color: #333;
}

/* Tabs */
.sh-auth-tabs {
	display: flex;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 24px;
}

.sh-auth-tab {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 10px 0;
	font-size: 15px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	letter-spacing: 0.3px;
	transition: color 0.2s, border-color 0.2s;
	outline: none;
}

.sh-auth-tab:hover {
	color: #666;
}

.sh-auth-tab.sh-auth-tab-active {
	color: #5A3F00;
	border-bottom-color: #5A3F00;
}

/* Forms */
.sh-auth-form {
	display: none;
}

.sh-auth-form.sh-auth-form-active {
	display: block;
}

.sh-auth-field {
	margin-bottom: 18px;
}

.sh-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	margin-bottom: 6px;
	letter-spacing: 0.2px;
}

.sh-auth-field input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.sh-auth-field input:focus {
	border-color: #5A3F00;
	box-shadow: none;
	background: #fff;
}

.sh-auth-submit {
	display: block;
	width: 100%;
	height: 46px;
	line-height: 46px;
	text-align: center;
	background-color: #5A3F00;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-top: 4px;
	outline: none;
	user-select: none;
	box-sizing: border-box;
}

.sh-auth-submit:hover {
	opacity: 0.85;
}

.sh-auth-submit.sh-auth-loading {
	opacity: 0.6;
	pointer-events: none;
}

.sh-auth-forgot {
	display: block;
	text-align: center;
	margin-top: 14px;
	font-size: 13px;
	color: #999;
	text-decoration: none;
	transition: color 0.2s;
}

.sh-auth-forgot:hover {
	color: #5A3F00;
}

.sh-auth-msg {
	display: none;
	padding: 10px 12px;
	margin-bottom: 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.sh-auth-msg.sh-msg-error {
	display: block;
	background-color: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.sh-auth-msg.sh-msg-success {
	display: block;
	background-color: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

@media (max-width: 480px) {
	.sh-auth-modal {
		padding: 28px 20px 24px;
	}
}

/* Hide WooCommerce "View cart" link after AJAX add-to-cart (cart sidebar replaces it) */
a.added_to_cart.wc-forward {
	display: none !important;
}

/* === Cart Sidebar === */
.sh-cart-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 99998;
	transition: opacity 0.3s;
}

.sh-cart-overlay.sh-show {
	display: block;
}

.sh-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 90vw;
	height: 100%;
	background: #fff;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.sh-cart-sidebar.sh-show {
	transform: translateX(0);
}

.sh-cart-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
}

.sh-cart-sidebar-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0;
}

.sh-cart-sidebar-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #999;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.2s;
}

.sh-cart-sidebar-close:hover {
	color: #333;
}

.sh-cart-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}

/* Empty state */
.sh-cart-sidebar-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	color: #ccc;
}

.sh-cart-sidebar-empty p {
	margin-top: 16px;
	font-size: 14px;
	color: #999;
}

/* Cart items */
.sh-cart-sidebar-items {
	padding: 0;
}

.sh-cart-item {
	display: flex;
	gap: 14px;
	padding: 18px 24px;
	border-bottom: 1px solid #f5f5f5;
	position: relative;
	transition: background-color 0.2s;
}

.sh-cart-item:hover {
	background-color: #fafafa;
}

.sh-cart-item-img {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #f8f8f8;
}

.sh-cart-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sh-cart-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.sh-cart-item-name {
	font-size: 13px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}

.sh-cart-item-name:hover {
	color: #a89d87;
}

.sh-cart-item-price {
	font-size: 13px;
	font-weight: 600;
	color: #5A3F00;
}

.sh-cart-item-qty {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 2px;
}

.sh-cart-qty-minus,
.sh-cart-qty-plus {
	width: 24px;
	height: 24px;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	color: #555;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, color 0.2s;
	line-height: 1;
	user-select: none;
}

.sh-cart-qty-minus:hover,
.sh-cart-qty-plus:hover {
	background: #e8e8e8;
	color: #333;
}

.sh-cart-item-qty-val {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 24px;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	color: #333;
	border-top: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
	border-left: none;
	border-right: none;
	background: #fff;
}

.sh-cart-item-remove {
	position: absolute;
	top: 14px;
	right: 20px;
	background: none;
	border: none;
	color: #ccc;
	cursor: pointer;
	padding: 4px;
	font-size: 16px;
	line-height: 1;
	transition: color 0.2s;
	user-select: none;
}

.sh-cart-item-remove:hover {
	color: #c0392b;
}

/* Footer */
.sh-cart-sidebar-footer {
	flex-shrink: 0;
	padding: 20px 24px;
	border-top: 1px solid #f0f0f0;
	background: #fff;
}

.sh-cart-sidebar-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
}

.sh-cart-sidebar-total-price {
	color: #5A3F00;
	font-size: 16px;
}

.sh-cart-sidebar-btn {
	display: block;
	width: 100%;
	height: 44px;
	line-height: 44px;
	text-align: center;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 4px;
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
	box-sizing: border-box;
}

.sh-cart-sidebar-btn-outline {
	background: #fff;
	color: #333;
	border: 1px solid #dcdcdc;
	margin-bottom: 10px;
}

.sh-cart-sidebar-btn-outline:hover {
	background: #f8f8f8;
	color: #333;
}

.sh-cart-sidebar-btn-primary {
	background: #5A3F00;
	color: #fff;
	border: none;
}

.sh-cart-sidebar-btn-primary:hover {
	opacity: 0.85;
	color: #fff;
}

/* Loading spinner for cart sidebar */
.sh-cart-sidebar-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 0;
}

.sh-cart-sidebar-loading::after {
	content: '';
	width: 28px;
	height: 28px;
	border: 3px solid #f0f0f0;
	border-top-color: #5A3F00;
	border-radius: 50%;
	animation: sh-cart-spin 0.6s linear infinite;
}

@keyframes sh-cart-spin {
	to { transform: rotate(360deg); }
}

.sh-cart-item.sh-cart-item-updating {
	opacity: 0.5;
	pointer-events: none;
}

@media (max-width: 480px) {
	.sh-cart-sidebar {
		width: 100vw;
		max-width: 100vw;
	}
}
