:root {
	--background: #0e0e10;
	--card: #1c1c1f;
	--text: #ffffff;
	--accent: #3fa7f0;
	--border: #2a2a2e;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Segoe UI', sans-serif;
	background: var(--background);
	color: var(--text);
}

header {
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--card);
	border-bottom: 1px solid var(--border);
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--accent);
}

.cart {
	background: var(--accent);
	color: black;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
}

main {
	padding: 40px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.title {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  justify-content: center;
  justify-items: center;
  min-height: 400px;
  width: 100%;
}


.product-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 280px;
	width: 100%;
	text-align: center;
}

.product-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
}

.product-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
}

.product-card .name {
	font-size: 1.1rem;
	font-weight: 600;
}

.product-card .price {
	font-size: 1rem;
	color: var(--accent);
}

.product-card {
	opacity: 0;
	transform: scale(0.98);
	animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content {
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	width: 90%;
	max-width: 400px;
	text-align: center;
	position: relative;
}

.modal-content {
	animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
	from {
		transform: scale(0.95);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.modal-content img {
	width: 100%;
	height: auto;
	max-height: 300px;
	object-fit: contain;
	border-radius: 8px;
	margin-bottom: 15px;
	transition: transform 0.3s ease;
}

.modal-content h3 {
	margin: 10px 0;
}

.quantity {
	margin: 15px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.quantity input {
  width: 100px;
  padding: 8px 10px;
  font-size: 1.05rem;
  text-align: center;
  background: #111;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
}
.modal-content button {
	margin-top: 10px;
	padding: 10px 20px;
	background: var(--accent);
	border: none;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	color: #000;
}

footer {
	text-align: center;
	padding: 30px 10px;
	font-size: 14px;
	color: #aaa;
	border-top: 1px solid var(--border);
	margin-top: 40px;
}

/* Mobile-first: Cart is fixed and centered at the top */
#cartDropdown {
	display: none;
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	z-index: 3000;
	width: 90%;
	max-width: 320px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

}

/* Desktop override */
@media (min-width: 769px) {
	#cartDropdown {
		position: absolute;
		top: 70px;
		right: 40px;
		left: auto;
		transform: none;
		width: 320px;
		z-index: 2000;
	}
}

#cartItemsContainer>div {
	background: #222;
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s;
}

#cartItemsContainer>div:hover {
	background: #2a2a2a;
}

#cartItemsContainer button {
	font-size: 1rem;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 4px;
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

header {
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--card);
	border-bottom: 1px solid var(--border);
}

/* --- Responsive Header --- */
@media (max-width: 768px) {
	header {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}


	.logo img {
		height: 60px;
		/* Slightly smaller logo for mobile */
	}
}


/* Hover effect for desktop */
@media (hover: hover) {
	nav a:hover {
		background: var(--accent);
		color: black;
	}
}

/* Responsive header layout for mobile */
@media (max-width: 768px) {
	header {
		flex-direction: column;
		align-items: center;
		padding: 20px 20px;
		text-align: center;
	}


	nav {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		margin-bottom: 15px;
	}

	.cart {
		align-self: center;
	}
}

header {
	background: var(--card);
	padding: 20px 20px;
	border-bottom: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.header-top {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}


.main-nav {
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
}

.main-nav a {
	padding: 8px 14px;
	border-radius: 6px;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s ease, color 0.3s ease;
}

@media (hover: hover) {
	.main-nav a:hover {
		background: var(--accent);
		color: black;
	}
}

@media (max-width: 768px) {
	.header-top {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.main-nav {
		gap: 16px;
		flex-wrap: nowrap;
		flex-direction: row;
		justify-content: center;
	}

	.cart {
		align-self: center;
	}
}

.cart-wrapper {
	position: relative;
}

/* Cart container scroll */
#cartItemsContainer {
	max-height: 300px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Total line */
.cart-total {
	margin-top: 16px;
	font-weight: bold;
	text-align: right;
	font-size: 1.1rem;
	color: var(--accent);
}

/* Buttons section */
.cart-actions {
	margin-top: 16px;
	display: flex;
}

.cart-actions button {
	flex: 1;
	padding: 10px;
	border: none;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
}

.cart-actions button:first-child {
	background: #333;
	color: white;
}

.cart-actions button:last-child {
	background: var(--accent);
	color: black;
	font-weight: bold;
}
#proceedBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 167, 240, 0.5);
}
.item-icon {
  width: 21px !important;
  height: 21px !important;
  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
    vertical-align: middle;
  display: inline-block;
}
.review-card .stars {
  font-size: 1.2rem; /* Default size for desktop */
}

.review-card .name {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .review-card .stars {
    font-size: 1rem; /* Smaller stars on mobile */
  }

  .review-card .name {
    font-size: 0.95rem; /* Slightly smaller text */
  }
}
body {
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  color: var(--text);
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .item-icon {
    width: 16px !important;
    height: 16px !important;
  }
}



