/* Global container overrides for cyberpunk */
section.container,
section.recently-viewed {
  background: linear-gradient(135deg, #0a0f1a, #1a1f2a);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
  margin-bottom: 3rem;
}

/* Headings with cyberpunk glow */
section h2 {
  color: #00ffff;
  font-weight: 700;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

/* Section description text */
section p.text-secondary {
  color: #ccc;
  font-size: 1rem;
  margin-top: -10px;
}

/* "View More" Button Style */
.btn-outline-info.btn-sm {
  border: 1px solid #00f7ff;
  color: #00f7ff;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}
.btn-outline-info.btn-sm:hover {
  background-color: #00f7ff;
  color: #000;
  box-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff;
}

/* Product Card */
.product-card {
  background: linear-gradient(145deg, #0f111a, #1c1e29);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px #00ffff88;
}

/* Label */
.product-card .position-absolute {
  background-color: #00ffe1 !important;
  color: #000 !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  box-shadow: 0 0 5px #00ffe1;
}

/* Product Name */
.card-title {
  color: #00ffe0;
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 234, 0.3);
}

/* Price */
.card-text.text-success {
  color: #76ff9b !important;
  font-size: 0.95rem;
}

/* Live Demo Button */
.card-body .btn-info {
  background-color: #00ffe1;
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  box-shadow: 0 0 12px #00ffe1;
  transition: all 0.3s ease-in-out;
}
.card-body .btn-info:hover {
  background-color: #0ff;
  box-shadow: 0 0 20px #0ff;
}
.product-card .top-badge {
  font-size: 0.75rem;
  background: linear-gradient(45deg, #00f0ff, #ff00c8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 0 0 0 6px;
  box-shadow: 0 0 6px #0ff;
}

/* Recently Viewed */
/*-------------------- Recently Viewed - Futuristic Design -------------------------*/


.recently-viewed {
	background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
	display: none;
	/* Hidden until activated */
}

.recently-viewed-wrapper {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 255, 255, 0.5) transparent;
}

.recently-viewed-container {
	display: flex;
	gap: 20px;
	/* Space between products */
	/*overflow-x: auto; /* Ensure products align properly */
}

/* Scrollbar Customization for Webkit Browsers */
.recently-viewed-wrapper::-webkit-scrollbar {
	height: 6px;
}

.recently-viewed-wrapper::-webkit-scrollbar-thumb {
	background: rgba(0, 255, 255, 0.5);
	border-radius: 10px;
}

/* Remove unwanted background */
.products-of-the-day {
	background: white !important;
	/* Forces background to white */
}

/* Ensure equal spacing in both sections */
.recently-viewed .product .price-tag,
.recently-viewed .product .live-demo-btn {
	padding: 5px 10px;
	margin-top: 5px;
	/* Ensures buttons and price are aligned */
}

.labels-container {
	margin-bottom: 1px;
}

/* Label styling */
.recently-viewed .product .label {
	display: inline-block;
	background-color: rgba(255, 87, 34, 0.8);
	/* Semi-transparent for readability */
	color: white;
	font-size: 12px;
	/*padding: 3px 3px;
    border-radius: 5px;
    background-color: #ff4757;*/
	padding: 5px 10px;
	border-top-left-radius: 9px;
	border-bottom-right-radius: 10px;
	font-weight: bold;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Position labels on the right for "Products of the Day" */
.product-of-the-day .labels-overlay {
	right: 12px;
	left: auto;
	position: absolute;
	top: 10px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 8px;
	gap: 5px;
}

/* Adjust labels positioning for "Products of the Day" */
.recently-viewed .product-of-the-day .labels-overlay {
	top: 8px;
	right: 8px;
	/* Moves to the opposite side */
	left: auto;
}

.recently-viewed .product h3 {
	font-size: 16px;
	color: cyan;
	box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 255, 255, 0.3);
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.recently-viewed h2 {
	font-size: 22px;
	color: cyan;
	box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
	border-top-left-radius: 5px;
	border-bottom-right-radius: 5px;
}


.recently-viewed .product {
	background: rgba(255, 255, 255, 0.1);
	/* Glass effect */
	border-radius: 10px;
	padding: 15px;
	width: 280px;
	/* Fixed width */
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	justify-content: space-between;
	/* Distribute content evenly */
	text-align: center;
	min-height: 310px;
	/* Set a minimum height to make all products equal */
	position: relative;
	/* Needed for absolute positioning inside */
	box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 255, 255, 0.3);
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Ensure images maintain correct size */
.recently-viewed .product img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease-in-out;
}

/* Hover Zoom Effect */
.recently-viewed .product:hover img {
	transform: scale(1.05);
}


/* Ensure product titles do not break layout */
.recently-viewed .product p {
	flex-grow: 1;
	/* Ensures all product descriptions take equal space */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: 80%;
	/*margin: 0 auto;*/
}

/* Ensure all buttons and price tags are at the same height */
.recently-viewed .product .price-container {
	display: flex;
	justify-content: center;
	gap: 5px;
	width: 100%;
	margin-top: auto;
	/* Pushes the price and button to the bottom */
}

.recent-product {
	width: 225px;
	/* Slightly increased width */
	text-align: center;

}

.recent-product-img {
	width: 100%;
	/* Make images responsive within the container */
	height: 140px;
	/* Fixed height for uniformity */
	object-fit: cover;
	/* Ensure images don't get stretched */
	border-radius: 8px;
	/* Rounded corners for a modern look */
}

.recent-product-img-container {
	position: relative;
	width: 220px;
	height: 180px;
}

/* Labels positioned inside the image */
.labels-overlay {
	position: absolute;
	top: 10px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	/* Moves labels to opposite sides */
	padding: 10px;
	margin-left: 8px;


}

.label-left {
	background: linear-gradient(90deg, #ff4500, #ff6600);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 12px;
	margin-left: 8px;
	border-top-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.label-right {
	background: linear-gradient(90deg, #007bff, #00eaff);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 12px;
	margin-right: 5px;
	border-top-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

/* Recently Viewed Activation Animation */
#recently-viewed {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

#recently-viewed.show {
	display: block;
	opacity: 1;
}

.live-demo-btn {
	background: linear-gradient(90deg, #007bff, #00eaff);
	color: white;
	border: none;
	padding: 8px 10px;
	font-size: 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
	font-weight: bold;
	margin-left: 25px;
}

.live-demo-btn:hover {
	background: linear-gradient(90deg, #0056b3, #00cfff);
	transform: scale(1.05);
}

/* Price Tag */
.price-tag {
	font-size: 16px;
	font-weight: bold;
	color: #28a745;
	background: rgba(40, 167, 69, 0.2);
	padding: 8px 12px;
	margin-right: 30px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Price & Button Container */
.recently-viewed .product .price-container {
	display: flex;
	justify-content: center;
	gap: 5px;
	width: 100%;
	margin-top: auto;
}


/* Responsive Design */
@media (max-width: 768px) {
	.recently-viewed-wrapper {
		flex-wrap: wrap;
		justify-content: center;
	}

	.recently-viewed .product {
		width: 90%;
		max-width: 350px;
	}
}



@media (max-width: 768px) {
  section.container,
  section.recently-viewed {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .product-card {
    margin-bottom: 1rem;
  }

  .card-body .btn-info {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .recently-viewed-wrapper {
    padding: 0.75rem 0.5rem;
  }

  .recently-viewed-container .card {
    min-width: 160px;
    font-size: 0.875rem;
  }

  .recently-viewed-container .card-title {
    font-size: 0.85rem;
  }

  .recently-viewed-container .card-text {
    font-size: 0.75rem;
  }
}

