/* General Reset */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* --- Header Styling --- */

.headerstyle {
    text-align: center;
    margin: 20px 0;
    font-size: 2.5rem;
    color: #333;
}

.main-header {
    display: flex; /* Aligns Logo and Cart side-by-side */
    justify-content: space-between; /* Pushes them to edges */
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    
}

#user-info {
  margin-right: 15px;
}

#login-link{
  margin-right: 15px; 
  text-decoration: none; 
  color: #333; 
  font-weight: bold;
}

.cart-container {
    position: relative; /* Necessary for positioning the dropdown */
}

#cart-btn {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
}



/* --- Category Bar Styling --- */
.category-bar {
    background-color: #333;
    color: white;
    padding: 15px 30px;
}

.category-bar ul {
    list-style: none;
    display: flex; /* Makes list horizontal */
    justify-content: left; /* Centers the items */
    gap: 50px; /* Space between categories */
}

.category-bar a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.category-bar a:hover {
    color: #ff9800; /* Orange highlight on hover */
}

/* --- Huge Slider Styling --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 50vh; /* 50% of the Viewport Height */
    overflow: hidden; /* Hides images that slide out */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
}

.slide2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
}
.slide.active-slide {
    opacity: 1; /* Only the active slide is visible */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 5%;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
}
.New-Arrivals{
  padding: 10px;
}
.NA-Banner {
  position: relative;
    width: 100%;
    height: 30vh; /* 50% of the Viewport Height */
    overflow: hidden; /* Hides images that slide out */
}

/*new slide here*/

/**/
/**/
/**/
/**/
/**/

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  height: 50vh;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* --- Product Grid Styling (Tableless) --- */
.product-grid {
    display: flex;       /* Enables Flexbox */
    flex-wrap: wrap;     /* Allows items to move to next row if screen is small */
    gap: 20px;           /* Space between grid items */
    padding: 20px 40px;
    justify-content: center; /* Centers items horizontally */
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 250px;       /* Fixed width for each card */
    transition: box-shadow 0.3s ease;
    background: white;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Hover effect */
}

.product-card img {
    /*width: 100%;
    height: auto;*/

    width: 200px;  /* Set a fixed width */
    height: 200px; /* Set a fixed height */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.price {
    color: #e63946;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.add-to-cart {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.add-to-cart:hover {
    background-color: #0056b3;
}

.logo{
    text-decoration: none; 
    color: inherit;
}

#icon{
    width: 75px;
    height: 60px;
    /*border-radius: 50%;*/
}

/*PRODUCT PAGE DETAILS*/
/* Container for the whole product detail section */
.product-detail-container {
    display: flex;          /* Places image and info side-by-side */
    max-width: 1000px;      /* Prevents it from getting too wide */
    margin: 50px auto;      /* Centers the section on the page */
    gap: 40px;              /* Space between image and text */
    padding: 20px;
    align-items: flex-start; /* Aligns content to the top */
}

/* Style the image container */
.product-image {
    flex: 1;                /* Takes up 50% of the space */
    max-width: 500px;
}

.product-image img {
    width: 100%;            /* Responsive image */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Style the text info container */
.product-info {
    flex: 1;                /* Takes up the other 50% */
    display: flex;
    flex-direction: column; /* Stacks text vertically */
    gap: 15px;              /* Space between text elements */
}

.product-info h2 {
    font-size: 2rem;
    color: #333;
}

.product-info .price {
    font-size: 1.5rem;
    color: #e63946;         /* Match your existing red price color */
    font-weight: bold;
}

.product-info .description {
    line-height: 1.6;       /* Improves readability */
    color: #555;
    font-size: 1.1rem;
}

/* Adjust the Add to Cart button for the product page */
.product-info .add-to-cart {
    width: 200px;           /* Makes button smaller than the grid version */
    font-size: 1.1rem;
    padding: 15px;
}


/* --- Breadcrumb Styling --- 
For the nav menu */
.breadcrumbs {
    padding: 10px 40px;
    background-color: #f1f1f1;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #999;
}

/*CART CSS*/

/* Show cart when hovering over container */
.cart-container:hover .cart-dropdown {
    display: block !important;
}

.cart-dropdown {
    display: none; 
    position: absolute;
    top: 100%; 
    right: 0;
    width: 320px; /* Wider for details */
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.cart-total {
    font-weight: bold;
    text-align: right;
    padding: 10px 0;
    border-top: 2px solid #333;
}

.cart-controls button {
    padding: 2px 8px;
    margin: 0 2px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.cart-controls button:hover {
    background: #ddd;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between items */
}

#user-info {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap; /* Prevents email from wrapping */
}

#login-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Ensure the cart container stays in line */
.cart-container {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

#login-form input[type="email"],
#login-form input[type="password"] {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#login-form button:hover {
    background: #555;
}

#error-message {
    color: #d32f2f;
    min-height: 20px;
    margin: 8px 0;
    text-align: center;
}

.auth-container p {
    margin-top: 20px;
    text-align: center;
    color: #555;
}

.auth-container a {
    color: #1976d2;
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#register-form input {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#register-form input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.15);
}

#register-form button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#register-form button:hover {
    background: #555;
}

#register-form button:active {
    background: #222;
}

#change-password-form input {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#change-password-form input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.15);
}

#change-password-form hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #eee;
}

#change-password-form button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#change-password-form button:hover {
    background: #555;
}

#change-password-form button:active {
    background: #222;
}

#message {
    color: #d32f2f;
    font-size: 0.9em;
    margin: 8px 0 12px;
    min-height: 1.2em;
    text-align: center;
}
