/* General Reset */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	color: black;
	text-align: center;

}

/* Header Section */
.header {
	display: flex;
	align-items: center;
	position: relative;
	background-color: black;
	padding: 10px 20px;
	height: 100px;
}

.background {
	background-image: url('../img/background.webp');
	background-size: cover;
	/* Ensure it covers the entire section */
	background-position: center;
	/* Center the image */
	background-repeat: no-repeat;
	/* Prevent tiling */
	position: relative;
	/* Allows other elements to be layered on top */
	width: 100%;
	/* Full-width section */
	height: 350px;
	/* Adjust height as needed */
}

.logo img {
	max-height: 80px;
	max-width: 100%;
}

.menu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 20px;
}

.menu a {
	color: white;
	text-decoration: none;
	font-size: 18px;
	font-weight: bold;
}

.menu a:hover {
	text-decoration: underline;
}

/* Title Section */
.title-section {
	padding: 20px;
}

.title-section h1 {
	font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Ensures long words break properly */
}

.title-section h2 {
	font-size: 24px;
	font-weight: normal;
	margin-bottom: 20px;
}

/* Product Slider */
.slider-container {
	position: relative;
	max-width: 1000px;
	margin: auto;
	overflow: hidden;
	background: url('https://www.toptal.com/designers/subtlepatterns/uploads/wood-pattern.png');
	background-size: cover;
	border-radius: 10px;
	padding: 20px;
}

.slider-wrapper {
	display: flex;
	transition: transform 0.5s ease-in-out;
	gap: 10px;
}

.container {
	width: 90%;
	margin: auto;
	overflow: hidden;
}

/* Product Grid */
.product-grid {
	display: grid;
	margin: auto;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	justify-content: center;
	overflow: hidden;

}

.product-item {
	display: block;
	flex-direction: column;
	justify-content: space-between;
	/* Ensures text stays visible */
	align-items: center;
	height: auto;
	min-height: 500px;
	/* Prevents items from collapsing */
	padding-bottom: 20px;
}

.product-item img {
	width: 100%;
	/* Ensures it resizes properly */
	height: auto;
	/* Maintains aspect ratio */
	max-height: 400px;
	/* Prevents excessive shrinking */
	object-fit: contain;
	/* Ensures full image is shown */
}

.product-item h3 {
	padding-top: 10px;
	margin: 0;
	font-size: 1.2em;
	color: black;
}

.product-item p {
	margin: 0;
	color: black;
}

/* Styles for the overlay background */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

/* Styles for the popup box */
.popup-box {
	background: black;
	padding: 20px;
	text-align: center;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	max-width: 400px;
}

.popup-box h2 {
	margin-bottom: 15px;
	color: white;
}

.popup-buttons {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
}

.popup-buttons button {
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	font-size: 16px;
	border-radius: 5px;
}

.popup-buttons .yes-btn {
	background-color: white;
	color: black;
}

.popup-buttons .no-btn {
	background-color: white;
	color: black;
}

/* Position the text at the bottom, centered horizontally */
.text-overlay {
	position: relative;
	bottom: 0;
	color: white;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
}

@media (max-width: 900px) {
 .header {
        flex-direction: column; /* Stack logo and menu on smaller screens */
        text-align: center;
        height: auto; /* Adjust height dynamically */
        padding-bottom: 10px;
    }

    .logo img {
        max-width: 80%; /* Make logo smaller on smaller screens */
        height: auto;
    }

    .menu {
        position: static; /* Prevents shifting */
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .title-section h1 {
        font-size: 26px; /* Reduce text size on medium screens */
    }
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.text-overlay {
		font-size: 14px;
		/* Makes text fit better */
		padding: 5px;
	}

	.product-item:nth-child(3) {
		display: none;
		/* Hides the 3rd product */
	}
}

@media (max-width: 600px) {
.title-section h1 {
        font-size: 22px; /* Further reduce for small screens */
    }

    .menu {
        flex-direction: column; /* Stack menu items */
        gap: 5px;
    }

    .logo img {
        max-width: 70%; /* Make logo even smaller */
    }
	.product-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.product-item {
		min-height: 400px;
	}

	.text-overlay {
		font-size: 12px;
		/* Prevents overlap */
		padding: 5px;
	}

	.product-item:nth-child(2),
	.product-item:nth-child(3) {
		display: none;
		/* Hides the 2nd and 3rd products */
	}
}

.white-bar {
	height: 25px;
	width: 100%;
	background-color: white;
}

.white-bar-big {
	height: 100px;
	width: 100%;
	background-color: white;
}

.product-nav {
	text-align: center;
	margin-top: 10px;
}

.product-nav button {
	background-color: black;
	color: white;
	border: 1px solid white;
	padding: 4px 6px;
	/* Reduced padding */
	font-size: 14px;
	/* Slightly smaller font */
	cursor: pointer;
	margin: 5px;
	border-radius: 5px;
	min-width: 100px;
	/* Ensures both buttons are the same size */
	text-align: center;
}

.product-nav button:hover {
	background-color: white;
	color: black;
	border: 1px solid black;
}

/* Product Grid */
.receiver-grid {
	display: grid;
	margin: auto;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	justify-content: center;
	overflow: hidden;

}

.receiver-item {
	display: block;
	flex-direction: column;
	justify-content: space-between;
	/* Ensures text stays visible */
	align-items: center;
	height: auto;
	min-height: 500px;
	/* Prevents items from collapsing */
	padding-bottom: 20px;
}

.receiver-item img {
	width: 100%;
	/* Ensures it resizes properly */
	height: auto;
	/* Maintains aspect ratio */
	max-height: 400px;
	/* Prevents excessive shrinking */
	object-fit: contain;
	/* Ensures full image is shown */
}

.receiver-item h3 {
	padding-top: 10px;
	margin: 0;
	font-size: 1.2em;
	color: black;
}

.receiver-item p {
	margin: 0;
	color: black;
}

/* Medium Screens: Show 2 products */
@media (max-width: 900px) {
    .receiver-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens: Show 1 product */
@media (max-width: 600px) {
    .receiver-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.receiver-grid {
    margin-top: 40px; /* Adds extra spacing above receivers */
}
