/* ========================================
   PRODUCTS PAGE STYLES
   ======================================== */

html {
	scroll-behavior: smooth;
}

html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: url('https://png.pngtree.com/background/20231101/original/pngtree-intense-close-up-of-falling-coffee-beans-on-vibrant-yellow-background-picture-image_5836024.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

/* ========================================
   TOP NAVIGATION BAR
   ======================================== */

.top-navbar {
	position: relative;
	background: linear-gradient(135deg, #5c3d2e 0%, #4a2f1f 100%);
	box-shadow: 0 2px 20px rgba(0,0,0,0.3);
	z-index: 1000;
	padding: 15px 0;
}

.top-navbar__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.top-navbar__logo {
	display: flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
	color: #ffffff;
}

.top-navbar__logo img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 50%;
}

.top-navbar__logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 1px;
}

.top-navbar__menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 5px;
	align-items: center;
}

.top-navbar__menu > li {
	position: relative;
}

.top-navbar__menu a {
	display: block;
	padding: 10px 18px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: all 0.3s ease;
	border-radius: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.top-navbar__menu a:hover,
.top-navbar__menu a.active {
	background: #d4a017;
	color: #2c1810;
}

.top-navbar__menu .dropdown {
	position: relative;
}

.top-navbar__menu .dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #4a2f1f;
	box-shadow: 0 8px 24px rgba(0,0,0,0.3);
	border-radius: 8px;
	min-width: 200px;
	padding: 8px 0;
	margin-top: 5px;
	list-style: none;
	z-index: 100;
}

.top-navbar__menu .dropdown:hover .dropdown-content {
	display: block;
}

.top-navbar__menu .dropdown-content a {
	padding: 12px 20px;
	border-radius: 0;
}

.top-navbar__menu .dropdown-content a:hover {
	background: #d4a017;
	color: #2c1810;
}

.top-navbar__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.top-navbar__btn {
	padding: 10px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.top-navbar__btn--primary {
	background: linear-gradient(135deg, #f4a624 0%, #f39c12 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(244, 166, 36, 0.4);
	text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.top-navbar__btn--primary:hover {
	background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(244, 166, 36, 0.5);
}

.top-navbar__btn--secondary {
	background: transparent;
	color: #8b4513;
	border: 2px solid #8b4513;
}

.top-navbar__btn--secondary:hover {
	background: #8b4513;
	color: #fff;
}

/* ========================================
   PAGE HERO SECTION
   ======================================== */

.page-hero {
	position: relative;
	height: 60vh;
	min-height: 400px;
	max-height: 600px;
	overflow: hidden;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
}

.page-hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.page-hero__background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(44, 24, 16, 0.75) 0%, rgba(74, 44, 26, 0.65) 100%);
	z-index: 1;
}

.page-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
	padding: 0 20px;
}

.page-hero__title {
	font-size: 4rem;
	font-weight: 900;
	margin: 0 0 20px 0;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-shadow: 0 4px 20px rgba(0,0,0,0.5);
	animation: fadeInUp 0.8s ease;
}

.page-hero__subtitle {
	font-size: 1.3rem;
	font-weight: 300;
	margin: 0;
	letter-spacing: 1px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
	animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.8rem;
	cursor: pointer;
	padding: 8px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
	color: #ffd700;
	transform: scale(1.1);
}

/* ========================================
   PRODUCT MODAL
   ======================================== */

.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	animation: fadeIn 0.3s ease;
}

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

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	animation: fadeIn 0.3s ease;
}

.modal-content {
	position: relative;
	background: white;
	border-radius: 25px;
	max-width: 1100px;
	width: 95%;
	max-height: 95vh;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 10000;
	display: flex;
	flex-direction: column;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
	color: #ffd700;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	font-size: 2rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
	background: linear-gradient(135deg, #ffd700 0%, #f4a624 100%);
	color: #2c1810;
	transform: rotate(90deg) scale(1.1);
}

.modal-body {
	display: grid;
	grid-template-columns: 45% 55%;
	gap: 35px;
	padding: 35px 40px;
	flex: 1;
	overflow: hidden;
}

.modal-image {
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border-radius: 20px;
	padding: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	max-height: 450px;
	position: relative;
	overflow: hidden;
}

.modal-image::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
	animation: rotate 20s linear infinite;
}

.modal-image img {
	width: 100%;
	max-width: 320px;
	height: auto;
	max-height: 380px;
	object-fit: contain;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
	animation: float 3s ease-in-out infinite;
}

.modal-details {
	display: flex;
	flex-direction: column;
	gap: 15px;
	overflow: hidden;
}

.modal-category-badge {
	display: inline-block;
	background: linear-gradient(135deg, #8b7355 0%, #6b5644 100%);
	color: #fff;
	padding: 6px 18px;
	border-radius: 25px;
	font-size: 0.85rem;
	font-weight: 600;
	align-self: flex-start;
	box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

.modal-details h2 {
	font-size: 1.9rem;
	font-weight: 800;
	color: #2c1810;
	margin: 0;
	line-height: 1.2;
}

.modal-price {
	font-size: 1.8rem;
	font-weight: 900;
	color: #d4a017;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(212, 160, 23, 0.2);
}

.modal-description {
	background: rgba(244, 166, 36, 0.05);
	padding: 18px;
	border-radius: 15px;
	border-left: 4px solid #f4a624;
	flex: 1;
	overflow-y: auto;
	max-height: 280px;
}

.modal-description h3 {
	font-size: 1.1rem;
	color: #2c1810;
	margin: 0 0 10px 0;
	font-weight: 700;
}

.modal-description p {
	color: #6b3e26;
	line-height: 1.5;
	margin: 0;
	font-size: 0.95rem;
}

.modal-order-btn {
	background: linear-gradient(135deg, #6d8c3f 0%, #7a9b47 100%);
	color: #fff;
	border: none;
	border-radius: 15px;
	padding: 16px 30px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 6px 20px rgba(109, 140, 63, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-shrink: 0;
}

.modal-order-btn:hover {
	transform: translateY(-5px) scale(1.05);
	box-shadow: 0 12px 35px rgba(109, 140, 63, 0.6);
}

.modal-order-btn:active {
	transform: translateY(-2px) scale(1.02);
}

.modal-order-btn span {
	font-size: 1.5rem;
}

/* ========================================
   CATEGORY FILTER BUTTONS
   ======================================== */

.category-filter-btn {
	background: #fff;
	color: #2c1810;
	border: 2px solid #2c1810;
	padding: 12px 30px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-filter-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

.category-filter-btn.active {
	background: #2c1810 !important;
	color: #fff !important;
	border-color: #2c1810 !important;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.product-card {
	transition: all 0.3s ease;
}

.product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}
	
	.top-navbar__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: linear-gradient(135deg, #5c3d2e 0%, #4a2f1f 100%);
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 5px 20px rgba(0,0,0,0.3);
		border-radius: 0 0 15px 15px;
	}
	
	.top-navbar__menu.active {
		display: flex;
	}

	.top-navbar__menu-item {
		width: 100%;
		text-align: center;
		padding: 15px;
	}

	.top-navbar__dropdown {
		position: static;
	}
	
	.top-navbar__menu > li {
		width: 100%;
	}
	
	.top-navbar__menu a {
		width: 100%;
		padding: 15px;
	}
	
	.top-navbar__menu .dropdown-content {
		position: static;
		box-shadow: none;
		background: #4a2f1f;
		margin-top: 10px;
	}
	
	.page-hero__title {
		font-size: 2.5rem;
	}
	
	.page-hero__subtitle {
		font-size: 1.1rem;
	}
	
	.modal-body {
		grid-template-columns: 1fr;
		padding: 25px;
		gap: 20px;
		overflow-y: auto;
	}
	
	.modal-image {
		max-height: 280px;
	}
	
	.modal-image img {
		max-width: 250px;
		max-height: 250px;
	}
	
	.modal-details h2 {
		font-size: 1.5rem;
	}
	
	.modal-price {
		font-size: 1.5rem;
	}
	
	.modal-description {
		max-height: none;
	}
	
	.modal-content {
		width: 95%;
		border-radius: 20px;
		max-height: 90vh;
	}
}
