/* Reset and font setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    background: white;
    min-width: min-content;
    min-height: 100vh;
}

body {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #333333);
    background-attachment: local;
    min-width: min-content;
    min-height: 100vh;
	
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: min-content min-content min-content 1fr min-content;
}

header {
	grid-row: 1;

    background: #101010;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

header nav {
    padding: 0 20px;
	
    display: grid;
    grid-template-columns: 80px auto 1fr minmax(400px, 2fr) 1fr auto;
    grid-template-rows: 80px;
	column-gap: 20px;
}

header nav .logo {
	grid-column: 1;
	place-self: center start;
	max-height: 75%;
	max-width: 75%;
}

header nav .logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

header nav .site-name {
	grid-column: 2;
	place-self: center start;
	
	text-decoration: none;
}

header nav .site-name h1 {
    color: white;
    font-size: 30px;
    font-weight: 700;
}

header nav .search-bar {
	grid-column: 4;
	place-self: center stretch;
	
	height: 50px;
    display: grid;
    grid-template-columns: 1fr 50px;
    grid-template-rows: 100%;
	
	outline: 1.5px solid white;
	border-radius: 15px;
	overflow: hidden;
}

header nav .search-bar .search-input {
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 16px;
    text-align: left;
}

header nav .search-bar .search-button {
	background: #101010;
    border: none;
	width: 100%;
	height: 100%;
    cursor: pointer;
	
    display: grid;
}

header nav .search-bar .search-button img {
	place-self: center center;
	
	width: 75%;
	height: 75%;
}

header nav .search-bar .search-button img:hover {
	filter: invert(56%) sepia(68%) saturate(367%) hue-rotate(73deg) brightness(90%) contrast(97%); /* #4CAF50 */
}

header nav .nav-links {
	grid-column: 6;
	place-self: center end;
	
	display: flex;
	flex-wrap: nowrap;
}

header nav .nav-links img {
	margin: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

header nav .nav-links img:hover {
	filter: invert(56%) sepia(68%) saturate(367%) hue-rotate(73deg) brightness(90%) contrast(97%); /* #4CAF50 */
}

/* Running Banner Styles */
.running-banner {
	grid-row: 2;
    
    margin-bottom: 20px;
    width: 100%;
    background-color: #FFFFFF; /* Adjust background color as needed */
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
}
.running-banner p {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 10s linear infinite;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    margin: 0;
}
@keyframes scroll-text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Main Navigation */
.main-navigation {
	grid-row: 3;
	place-self: center center;
	
    background-color: black;
    margin-bottom: 20px;
    padding: 10px 60px;
    border-radius: 0px;
	max-width: min-content;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.main-navigation ul {
    list-style-type: none;
    display: flex;
    gap: 40px;
    justify-content: center;
	min-width: max-content;
}

.main-navigation ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.main-navigation ul li a:hover {
    color: #4CAF50;
}
/* Product Carousel Section */
.best-sellers {
	grid-row: 4;
	grid-column: 1;
	place-self: start stretch;
	
    margin-bottom: 20px;
    padding: 40px 20px;
    text-align: center;
	
	display: grid;
}

.best-sellers h1 {
    color: #000000;
    font-size: 48px;
    margin-bottom: 60px;
}

/* Product Carousel Section */
.best-sellers .carousel-container {
	place-self: start center;
	
    display: grid;
    grid-template-columns: 40px 40px min-content 40px 40px;
    grid-template-rows: auto;
}

.best-sellers .carousel-container .carousel-button {
	place-self: center center;
	
	width: 40px;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.best-sellers .carousel-container .carousel-button:hover {
    color: #4CAF50;
}

.best-sellers .carousel-container .carousel-button.left {
	grid-column: 1;
}

.best-sellers .carousel-container .product-list {
	grid-column: 3;
	place-self: stretch stretch;
	
    display: grid;
    grid-template-columns: 950px;
    grid-template-rows: auto;
}

.best-sellers .carousel-container .product-list .product-item {
	grid-column: 1;
	grid-row: 1;
	place-self: center center;
	
    width: 350px;
    background: white;
	color: black;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out;
}

.best-sellers .carousel-container .product-list .product-item p {
	margin: 10px;
}

.best-sellers .carousel-container .product-list .product-item.left {
    transform: scale(0.75) translateX(-450px);
	z-index: 0;
}

.best-sellers .carousel-container .product-list .product-item.center {
    transform: scale(1);
	z-index: 1;
}

.best-sellers .carousel-container .product-list .product-item.right {
    transform: scale(0.75) translateX(450px);
	z-index: 0;
}

.best-sellers .carousel-container .product-list .product-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}


.best-sellers .carousel-container .product-list .details-button {
    background: #4CAF50;
    margin-bottom: 10px;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.best-sellers .carousel-container .product-list .add-to-cart:hover {
    background: #45a049;
}

.best-sellers .carousel-container .carousel-button.right {
	grid-column: 5;
}

/* Footer */
footer {
	grid-row: 5;
    background: black;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    width: 100%;
    bottom: 0;
    left: 0;
}

/* Cart Items Section */
.cart-items {
	grid-row: 4;
	grid-column: 1;
	place-self: start stretch;
	
    padding: 40px 20px;
    text-align: center;
}

.cart-items h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cart-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.cart-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.cart-item-name {
    margin: 0 20px;
    flex: 1;
    color: #000000;
}

.cart-item-price {
    margin: 0 20px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.remove-from-cart {
    background-color: #FF5733;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total {
    margin-top: 20px;
    font-size: 24px;
}

.remove-from-cart:hover {
    background-color: #e14c2f;
}

/* Cart notification style */
.cart-notification {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;  /* Ensure it covers full width */
    bottom: 0;  /* Ensure it covers full height */
    background-color: rgba(0, 0, 0, 0.333); /* Slight transparency to allow background blur */
    color: white;
    padding: 20px;  /* Adjust padding around the box */
    border-radius: 10px;
    font-size: 30px; /* Font size for text */
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    backdrop-filter: blur(10px); /* Adds background blur effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-notification::before {
    content: '\2714'; /* Unicode for checkmark symbol */
    font-size: 50px; /* Size of the tick */
    font-weight: bold;
    margin-right: 0; /* No spacing between tick and text */
}

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