﻿body {
	background-color: #faf9f7;
}

/* Navbar with white background and light shadow (same as About page) */
#navbar {
	background: #ffffff !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	border-bottom: none !important;
}

#navbar .nav-initial {
	background: #ffffff !important;
	backdrop-filter: none !important;
}

#navbar .nav-scrolled {
	background: #ffffff !important;
	backdrop-filter: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#navbar .logo {
	color: #1c1917 !important;
}

#navbar .nav-links a {
	color: #1c1917 !important;
}

#navbar .nav-links a.active {
	color: #1c1917 !important;
}

#navbar .icon-btn {
	color: #1c1917 !important;
}

.offering-header {
	background-color: rgba(28, 25, 23, 0.03);
	padding: 160px 24px 64px;
	text-align: center;
}

.offering-header h1 {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 600;
	color: #1c1917;
	margin-bottom: 16px;
}

.offering-header p {
	color: #78716c;
	font-size: 1.125rem;
	margin-top: 16px;
	font-weight: 300;
}

/* Offering Header Search Container */
.offering-search-container {
	position: relative;
	max-width: 600px;
	margin: 32px auto 0;
	width: 100%;
}

.offering-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #78716c;
	width: 20px;
	height: 20px;
	z-index: 2;
	pointer-events: none;
}

.offering-search-input {
	width: 100%;
	padding: 16px 24px 16px 52px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 16px;
	outline: none;
	transition: all 0.3s;
	background: white;
	font-family: "Montserrat", sans-serif;
	box-sizing: border-box;
}

.offering-search-input:focus {
	box-shadow: 0 0 0 3px rgba(218, 131, 10, 0.1);
	border-color: #da830a;
	transition: all 0.3s ease;
}

/* Navbar Search Container - Hidden by default */
#search-container {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 8px;
	min-width: 300px;
	z-index: 1000;
}

#search-container.active {
	display: block;
}

#search-container .search-input {
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid #e7e5e4;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.search-close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #78716c;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toolbar {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 32px 0;
	border-bottom: 1px solid #e7e5e4;
	margin-bottom: 48px;
	gap: 24px;
}

@media (min-width: 768px) {
	.toolbar {
		flex-direction: row;
	}
}

.toolbar-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.filter-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: transparent;
	border: 1px solid #e7e5e4;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	color: #1c1917;
	cursor: pointer;
	transition: all 0.3s;
	font-family: "Montserrat", sans-serif;
}

.filter-btn:hover {
	border-color: #da830a;
	color: #da830a;
	transition: all 0.3s ease;
}

.result-count {
	font-size: 14px;
	color: #78716c;
}

.result-count span {
	color: #1c1917;
	font-weight: 600;
}

.sort-container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sort-label {
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #78716c;
}

/* Custom Dropdown Styles */
.custom-dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 20px 10px 16px;
	border-radius: 999px;
	border: 1px solid #e7e5e4;
	background: white;
	font-size: 14px;
	color: #1c1917;
	cursor: pointer;
	outline: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: "Montserrat", sans-serif;
	min-width: 140px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dropdown-button:hover {
	border-color: #da830a;
	box-shadow: 0 2px 6px rgba(218, 131, 10, 0.15);
	transition: all 0.3s ease;
}

.dropdown-button.active {
	border-color: #da830a;
	box-shadow: 0 2px 8px rgba(218, 131, 10, 0.2);
	transition: all 0.3s ease;
}

.dropdown-button-text {
	flex: 1;
	text-align: left;
}

.dropdown-arrow {
	width: 16px;
	height: 16px;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: #78716c;
}

.dropdown-button.active .dropdown-arrow {
	transform: rotate(180deg);
	color: #da830a;
	transition: all 0.3s ease;
}

.dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: white;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	min-width: 180px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px) scale(0.95);
	transition:
		opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0.3s;
	z-index: 1000;
	overflow: hidden;
}

.dropdown-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	transition:
		opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
}

.dropdown-item {
	padding: 12px 20px;
	font-size: 14px;
	color: #1c1917;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: "Montserrat", sans-serif;
	border-bottom: 1px solid #f5f5f4;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover {
	background: #faf9f7;
	color: #da830a;
	padding-left: 24px;
	transition: all 0.3s ease;
}

.dropdown-item.selected {
	background: rgba(218, 131, 10, 0.08);
	color: #da830a;
	font-weight: 500;
	transition: all 0.3s ease;
}

.dropdown-item.selected::before {
	content: "✓";
	color: #da830a;
	font-weight: bold;
	margin-right: 4px;
}

/* Dropdown overlay for click outside */
.dropdown-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
	display: none;
}

.dropdown-overlay.active {
	display: block;
}

.products-section {
	padding: 0 24px 80px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 48px 32px;
}

@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 32px 24px;
	}
}

.offering-product-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
}

.offering-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	border-color: rgba(218, 131, 10, 0.2);
}

.offering-card-img-wrapper {
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5f5f4;
	position: relative;
	width: 100%;
}

.offering-card-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
}

.offering-product-card:hover .offering-card-img-wrapper img {
	transform: scale(1.08);
}

.offering-image-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		to top,
		rgba(28, 25, 23, 0.45),
		rgba(28, 25, 23, 0.2)
	);
	opacity: 0;
	visibility: hidden;
	transition: all 0.28s ease;
	pointer-events: none;
}

.offering-product-card:hover .offering-image-overlay {
	opacity: 1;
	visibility: visible;
}

.offering-card-info {
	padding: 20px;
	background: white;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.offering-card-category-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.offering-card-category {
	font-size: 10px;
	font-weight: 700;
	color: #da830a;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	display: block;
	transition: color 0.3s ease;
	font-family: "Montserrat", sans-serif;
}

.offering-card-price {
	font-weight: 400;
	font-size: 1.125rem;
	color: #1c1917;
	white-space: nowrap;
	font-family: "Montserrat", sans-serif;
}

.offering-card-name {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.375rem;
	font-weight: 600;
	color: #1c1917;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.view-product-link {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #44403c;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(218, 131, 10, 0.25);
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
	padding: 8px 12px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
	pointer-events: auto;
}

.view-product-link:hover {
	color: #da830a;
	border-color: rgba(218, 131, 10, 0.55);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(218, 131, 10, 0.2);
	background: linear-gradient(180deg, #fffdf8 0%, #fff6e7 100%);
}

.view-product-link i {
	width: 13px;
	height: 13px;
	transition: transform 0.25s ease;
	padding: 4px;
	border-radius: 999px;
	background: rgba(218, 131, 10, 0.12);
}

.view-product-link:hover i {
	transform: translateX(2px);
}

@media (hover: none) and (pointer: coarse) {
	.offering-image-overlay {
		opacity: 1;
		visibility: visible;
		background: linear-gradient(
			to top,
			rgba(28, 25, 23, 0.35),
			rgba(28, 25, 23, 0.05)
		);
	}
}

.offering-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	margin-top: 0;
}

.rating-dots {
	display: flex;
	gap: 5px;
	align-items: center;
}

.rating-dots span {
	width: 6px;
	height: 6px;
	background: #da830a;
	border-radius: 1px;
	transition: all 0.3s ease;
	display: block;
}

.add-to-bag-btn {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	display: flex;
	align-items: center;
	justify-content: end;
	gap: 6px;
	border: none;
	background: none;
	cursor: pointer;
	color: #78716c;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: "Montserrat", sans-serif;
	padding: 0;
	white-space: nowrap;
}

.add-to-bag-btn:hover {
	color: #da830a;
	gap: 8px;
}

.add-to-bag-btn i {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.add-to-bag-btn:hover i {
	transform: translateX(2px);
}

.empty-state {
	padding: 80px 0;
	text-align: center;
	display: none;
}

.empty-state.active {
	display: block;
}

.icon-bg {
	width: 80px;
	height: 80px;
	background: #f5f5f4;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	color: #a8a29e;
}

.empty-state h3 {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.5rem;
	color: #1c1917;
	margin-bottom: 8px;
}

.empty-state p {
	color: #78716c;
	margin-bottom: 16px;
}

#clear-search {
	background: none;
	border: none;
	color: #da830a;
	font-weight: bold;
	cursor: pointer;
	text-decoration: underline;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	transition: all 0.3s ease;
}

@media (max-width: 768px) {
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 32px 24px;
	}

	.offering-header {
		padding: 140px 24px 48px;
	}
}
