@import url('root.css');

/* Header Styles */
#header {
height: 70px;
width: 100%;
}
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 10px 20px;
    z-index: 5;
    transition: top 0.3s; /* Smooth transition for hiding/showing */
}

.logo img{
    height: 60px;
	width: auto;
}
.header .action-icons {
	display: flex;
	gap: 20px;
}
.header .action-icons a {
	position: relative;
    color: var(--text-dark);
    font-size: 1.3rem;
    text-decoration: none;
}
.cart-items-count{
	position: absolute;
	top: -10px;
	right: -10px;
	background-color: rgb(187, 0, 0);
	font-size: x-small;
	color: white;
	font-weight: bold;
	padding: 0 5px;
	border-radius: 10px;
}
.cart-item.emptycart {
    display: flex;
    justify-content: center;
    background: #dddddd;
}
.toggle-search{
	cursor: pointer;
}
.searchbar-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--background-light);
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s, visibility 0.3s, transform 0.3s;
	transform: translateY(100px);
}
.searchbar-container-inner {
    max-width: 500px;
    margin: auto;
	padding: 10px;
}
.searchbar-container.hidden{
	opacity: 1;
	visibility: visible;
	transform: translateY(0px);
}
.searchbar-container .search-bar{
	position: relative;
	background-color: var(--neutral-dark);
	width: 100%;
	border-radius: 10px;
	padding: 10px;
	align-items: center;
}
.searchbar-container .search-bar input[type="search"]{
	width: 100%;
	border: 1px solid var(--border-light);
	border-radius: 5px;
	box-sizing: border-box;
	outline: var(--border-dark);
	background-color: var(--background-darkest);
}
button.btn.search-btn {
    position: absolute;
    right: 0;
    transform: translateX(-50px);
	background-color: var(--background-darkest);
}
.searchbar-container-inner .close-search{
	color: var(--text-muted);
	padding: 10px;
}
#sugestions{
	height: 80dvh;
	overflow-y: scroll;
}
#sugestions .sugestions-item{
	text-align: left;
	border: 1px solid #d2cccc70;
	padding: 10px 20px;
	margin: 5px;
	transition: all 0.2s;
}
#sugestions .sugestions-item:hover{
	background-color: whitesmoke;
	border-color: #656363de;
	transform: scale(0.99);
}

/* Buttons */
.nav-link {
    font-size: 1.1rem;
    padding: 10px 15px;
    color: var(--neutral-light);
}
.nav-link:hover {
    background-color: var(--neutral-darkest);
    color: var(--secondary-color);
}

.offcanvas-header {
    background-color: var(--neutral-darkest);
    color: var(--text-dark);
}
.offcanvas-title a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}
.offcanvas-body {
    background-color: var(--neutral-darkest);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.offcanvas-body a {
    color: var(--text-light);
    text-decoration: none;
}

.offcanvas-body a:hover {
    color: var(--accent-color);
}

.dropdown-item {
    padding: 8px 30px;
    background-color: var(--neutral-dark);
    color: var(--text-muted);
}

.dropdown-item:hover {
    background-color: var(--neutral-darkest);
    color: #343a40;
}
label#dropdownButtonLabel{
    width: 30px;
    height: 30px;
    color: white;
    align-content: center;
    text-align: center;
	font-size: small;
	font-weight: bold;
    border-radius: 50%;
	cursor: pointer;
}
#dropdownContent{
	position: absolute;
}
/* When the checkbox is checked, display the dropdown */
#showProfileDropdown:checked + #dropdownContent {
    display: block;
}

/* Styling for dropdown content */
#dropdownContent {
    background-color: #fff;
    border: 1px solid #ddd;
    position: absolute;
    right: 20px;
    top: 50px;
    width: 150px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: none;
}

#dropdownContent a {
    display: block;
	font-size: small;
	font-weight: bold;
    padding: 8px;
    color: black;
    text-decoration: none;
}

#dropdownContent a:hover {
    background-color: #f1f1f1;
}
/* Responsive Layout */
@media (max-width: 768px) {
    .header .logo {
        font-size: 1.5rem;
    }

    .header .action-icons a {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px;
    }
	.header .action-icons {
		gap: 20px;
	}
	.searchbar-container .search-bar input[type="search"]{
		min-width: auto;
	}
	.logo img{
		height: 50px;
		width: auto;
	}	
}
@media (max-width: 480px) {
	.logo img{
		height: 40px;
		width: auto;
	}	
}
.hero-section {
    background-image:  url(../images/hero_bg.jpg);
    background-attachment: fixed;
	background-size: cover;
	background-position: center; /* Or any other position you prefer */
    aspect-ratio: 17/8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    text-align: left;
    border-radius: 20px;
    padding: 20px;
}

.hero-section .hero-content {
    max-width: 400px;

}

.hero-section h1 {
    font-size: 3rem;
	color: var(--accent-color);
}

.hero-section p {
    font-size: 1.5rem;
}

.hero-section a {
	background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.hero-section a:hover {
    background-color: var(--primary-light);
}

.hero-section .hero-image img {
    aspect-ratio: 1/1;
    max-width: 400px;
    width: 100%;
    flex: 1 1 300px;
	filter: drop-shadow(2px 10px 6px black);
}


@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section a {
        padding: 8px 16px;
    }
}

/* device collection style */
.collections {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    gap: 30px; /* space between grid items */
    padding: 20px;
}
 
 .collection {
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
 }
 
 .collection:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 12px var(--hover-shadow);
 }
 
 .collection .collection-inner {
	position: relative;
	overflow: hidden;
	background-color: var(--background-darkest);
	color: var(--text-light);
	border-radius: 15px;
	box-shadow: 0 4px 6px var(--shadow-light);
	transition: transform 0.3s ease-in-out;
 }
 
 .collection .collection-inner img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	object-fit: cover;
	transition: transform 0.3s ease-in-out;
 }
 
 .collection:hover .collection-inner img {
	transform: scale(1.1);
	background-color: rgb(255, 255, 255);
	mix-blend-mode: color-burn;
 }
 
 .collection-inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3); /* Slight dark overlay */
	border-radius: 15px;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
 }
 
 .collection:hover .collection-inner::before {
	opacity: 1;
 }
 
 .collection .collection-inner:hover {
	box-shadow: 0 8px 12px var(--hover-shadow);
 }
 
 .collection img:hover {
	transform: scale(1.1); /* Image zoom effect on hover */
 }
 
.carousel {
	border-radius: 20px;
	overflow: hidden;
}
.carousel-item img {
	aspect-ratio: 17/8;
}

@media (max-width: 768px) {
	.carousel-item img {
		aspect-ratio: 5/3;
	}
	.collections {
		gap: 10px; 
	}
	
}

/* products style */
.product-slider {
	display: flex;
	border-radius: 30px;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	padding: 10px 0;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	padding: 10px 0;
}
.product-slider::-webkit-scrollbar {
	display: none;
}

.product-card {
	max-width: 300px;
	min-width: 170px;
	text-align: center;
	overflow: hidden;
	border-radius: 15px;
	border: 1px solid var(--neutral-medium);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

.product-card .product-offer {
    position: absolute;
    z-index: 1;
    background: #303030;
    top: 0;
    left: 0;
    padding: 5px;
    color: white;
    border-radius: 0 0 20px 0;
    font-size: small;
}
  #noproduct img{
	max-width: 500px;
  }
/* Tab mode */
@media (min-width: 768px) and (max-width: 1024px) {
	.product-card {
		min-width: 200px;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
}
@media (max-width: 500px) {
	#noproduct img{
		max-width: 300px;
	  }
	
}

/* Desktop mode */
@media (min-width: 1025px) {
	.product-card {
		min-width: 250px;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
	
}

.product-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 20px;
	clip-path: inset(5px);
}
.product-card img:not([src]) {
	background-image: url(../images/hero_bg.jpg);
}
.product-card .card-body {
	padding: 10px;
}
.product-card .card-body .card-title {
	color: var(--text-description-dark);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.products-header {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
	color: var(--text-dark);
}
.product-card a{
	color: var(--text-dark);
}
.product-details-inner .buttons{
	display: flex;
	gap: 20px;
	align-items: center;
}


/* skin collection style */
.collection-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 2/1;
	border-radius: 15px;
}
.collection-card img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(1);
	transition: filter 0.3s ease;
}
.collection-card img:hover {
	filter: brightness(0.7);
}
.gradient-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 1));
	z-index: 1;
}
.card-content {
	position: absolute;
	z-index: 2;
	color: var(--logo-text);
	right: 0;
	padding: 20px;
	bottom: 0;
	text-align: right;
}
.card-content h5 {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--background-light);
}
.card-content p {
	font-size: 1rem;
	margin-top: 10px;
}
@media (max-width: 768px) { 
	.collection-card {
		aspect-ratio: 4/3;
	}
}
/* product details style */
.product-details .carousel{
	max-width: 450px;
	margin: auto;
	box-shadow: 2px 2px 5px var(--border-dark);
}
.product-details-inner{
	max-width: 550px;
}
.product-details #cameraCarousel img {
	aspect-ratio: 1/1;
	clip-path: inset(5px);
}
.product-details .product-price .offer {
	color: green;
	font-size: large;
}

.product-details .product-price span {
	font-weight: bold;
}

.product-details .product-price del {
	color: lightgray;
}
#quantity-updown{
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}
#quantity-updown input{
	border: none;
	text-align: center;
	font-weight: bold;
	color: var(--neutral-dark);
}
#quantity-updown button{
	border: 1px solid var(--border-light);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--background-light);
	color: var(--text-dark);
	cursor: pointer;
}
@media (max-width: 768px) {
	.product-details .action-buttons{
		position: sticky;
		bottom: 0;
		background-color: var(--background-light);
		padding-block: 20px;

	}
}
/* Hide the default radio button */
.form-check-input {
    display: none;
}

/* Style for the radio button label */
.form-check-label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

/* Default label style */
.form-check-label img {
    transition: transform 0.3s ease;
    width: 50px;
    height: auto;
	aspect-ratio: none;
}

/* Hover effect on label */
.form-check-label:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Focus effect when radio button is selected */
.form-check-input:checked + .form-check-label {
    border-color: #33b301;
    background-color: #e9f5ff;
}

/* Add animation to image when selected */
.form-check-input:checked + .form-check-label img {
    transform: scale(1.1);
}

/* Active state when label is clicked */
.form-check-input:checked + .form-check-label:after {
    content: '✔';
    color: #33b301;
    font-size: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}


/* cart details */
.cart-container .cart-item {
	background-color: var(--background-light);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.cart-container .cart-item img {
	border-radius: 8px;
}

.cart-container .cart-item .item-details {
	font-size: smaller;
	color: #495057;
}

.cart-container .cart-item .item-title {
	font-size: small;
	font-weight: 600;
	color: #343a40;
}

.cart-container .cart-item .item-brand,
.cart-container .cart-item .item-model {
	font-weight: 500;
}

.cart-container .cart-item .item-quantity button {
	background-color: var(--background-dark);
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.cart-container .cart-item .item-quantity button:hover {
	background-color: #007bff;
	color: #fff;
}

.cart-container .cart-item .item-total {
	font-size: medium;
	font-weight: 600;
	color: #28a745;
}

.cart-container .cart-item .remove-item {
	background: transparent;
	border: none;
	cursor: pointer;
	color: #dc3545;
	transition: color 0.3s ease;
}

.cart-container .cart-item .remove-item:hover {
	color: #ff073a;
}

.cart-container .cart-item .item-quantity input {
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 5px;
	width: 50px;
	padding: 5px;
	font-size: 16px;
	margin: 0 5px;
}

.cart-container .cart-item .item-quantity {
	display: flex;
	align-items: center;
}

.checkout-paymetn{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Initially hide all the info divs */
.radio-group .info {
    display: none;
}

/* Display the info div when the corresponding radio button is checked */
.radio-input:checked + .radio-label + .info {
    display: block;
}
@media (max-width: 768px) {
	.checkout-paymetn{
		display: flex;
		flex-direction: row;
		justify-content: end;
	}	
}
/* footer */
.footer {
	background-color: var(--background-dark);
	color: var(--text-muted);
	padding: 40px 20px;
	position: relative;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
}

.footer h5 {
	color: var(--text-dark);
	margin-bottom: 20px;
	font-weight: bold;
	font-size: 1.4rem;
}

.footer a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer a:hover {
	color: var(--accent-color);
}

.footer .social-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.footer .social-icons a {
	display: inline-block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--background-light);
	color: var(--text-dark);
	text-align: center;
	align-content: center;
	line-height: 50px;
	font-size: 1.5rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
	background-color: var(--neutral-dark);
	color: var(--neutral-medium);
	transform: scale(1.1);
}

.footer .card {
	background-color: var(--background-darkest);
	border: none;
	padding: 20px;
	border-radius: 10px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer .policy-links,
.footer .quick-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer .policy-links li,
.footer .quick-links li {
	margin-bottom: 10px;
}

.footer .policy-links li a,
.footer .quick-links li a {
	font-size: 0.95rem;
}

.footer .contact-details {
	justify-content: center;
	color: var(--text-muted);
	text-align: center;
}

.footer .copyright {
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-secondary);
	border-top: 1px solid var(--secondary-bg);
}

@media (max-width: 768px) {
	.footer h5 {
		font-size: 1.2rem;
	}
}

.popup-overlay {
	position: fixed;
	top: 0; 
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	z-index: 10;
	transition: all 0.3s ease-in-out;
}
.popup-overlay.active {
	display: block;
	opacity: 1;
}

/* Popup Content */
.popup-overlay .popup-content {
	background: #fff;
	border-radius: 12px;
	max-width: 400px;
	width: 100%;
	margin: auto;
	padding-block: 25px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.3);
	transition: all 0.6s ease-in-out;
	position: fixed;
	z-index: 10000;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	overflow: hidden; /* Hide overflowing sliding forms */
}

/* Close Button */
.popup-overlay .close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	position: absolute;
	z-index: 3;
	top: 10px;
	right: 10px;
	transition: transform 0.2s ease-in-out;
}
.popup-overlay .close-btn:hover {
	color: red;
}

/* Form Container for sliding effect */
.popup-overlay .form-container {
	display: flex;
	align-items: end;
	width: 200%;
	transition: transform 0.5s ease-in-out;
}
/* Each form takes up half the container's width */
.popup-overlay .form-section {
	width: 50%;
	padding: 0 15px;
	text-align: center;
}

/* Input Styles */
.popup-overlay .form-section input {
	width: 100%;
	padding: 12px;
	margin-top: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
}

/* Flex container for first and last name inputs */
.popup-overlay .name-container {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.popup-overlay .name-container input {
flex: 1;
}

/* Link Styles */
.popup-overlay .form-link {
	display: block;
	margin-top: 15px;
	color: #007BFF;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease-in-out;
}
.popup-overlay .form-link:hover {
	color: #0056b3;
}

/* Mobile Styles */
@media (max-width: 486px) {
	.popup-overlay .popup-content {
		top: auto;
		bottom: 0;
		left: 0;
		margin: 0;
		border-radius: 12px 12px 0 0;
		transform: translateY(0);
	}
}

  .voucher-popup-trigger {
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
  }
  
  .voucher-popup-overlay {
	display: none;
	position: fixed;
	z-index: 10;
	left: 0;
	top: 0;
	width: 100%;
	height: 100dvh;
	background-color: rgba(0, 0, 0, 0.4);
	overflow: auto;
  }
  
  .voucher-popup-content {
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	border-radius: 8px;
	width: 50%;
	text-align: center;
  }
  
  .voucher-close-btn {
	font-size: 30px;
	color: #aaa;
	float: right;
	cursor: pointer;
  }
  
  .voucher-close-btn:hover,
  .voucher-close-btn:focus {
	color: black;
  }
  
  .voucher-redeem-btn {
	padding: 10px 15px;
	font-size: 16px;
	cursor: pointer;
	border: none;
	background-color: #4CAF50;
	color: white;
	border-radius: 5px;
	margin-top: 10px;
  }
  
  .voucher-redeem-btn:hover {
	background-color: #45a049;
  }
  

#loaderPopup {
	display: none; /* Hidden by default */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
	justify-content: center;
	align-items: center;
	z-index: 10;
}

/* Popup content box */
#loaderPopup .popup-content {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	width: 300px;
}


/* Popup Styles */
.offer-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.offer-popup-container.show {
  visibility: visible;
  opacity: 1;
}

.offer-popup-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.offer-popup-content h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.offer-popup-content p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.offer-popup-content {
  background-image: url('https://wrapmaster.in/assets/images/popup-banner.png'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  max-width: 700px;
  aspect-ratio: 3/2; /* 3:2 aspect ratio */
  border: none;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.offer-popup-content .offer-btn:hover {
  background-color: #218838;
}

/* Close Button */
.offer-close-btn {
  font-size: 30px;
  color: #333;
  position: absolute;
  top: 0px;
  right: 10px;
  cursor: pointer;
  z-index: 12;
}


span.select2-selection.select2-selection--single {
  min-height: 40px;
  align-content: center;
  margin-bottom: 20px;
}