/* General Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    position: relative;
    color: #333;
    background-color: hsla(250,100%,70%,0.1); /* Soft background */
}
/*This represent the display of the products*/
.out:before{
    content: 'Out of stock';
    position: absolute;
    margin-top: 5px;
    width: 60px;
    padding: 3px;
    font-size: 10px;
    display: inline-block;
    background:red;
    text-align: center;
    color: white;
    border-radius: 20px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}
.marquee-container {
    margin-top: -20px;
    margin-bottom: 10px;
    background: black;
  width: 100%;
  overflow: hidden; /* Hides the text that is outside the container */
  white-space: nowrap; /* Keeps the text on a single line */
}

.marquee-content {
  display: inline-block; /* Allows the content to move as a block */
  animation: scroll 15s linear infinite; /* Applies the animation */
  animation-name: scroll;
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  font-size: 14px;
  color: white;
  font-style: italic;
}

/* Defines the animation's movement */
@keyframes scroll {
  from {
    transform: translateX(100%); /* Start completely off the right */
  }
  to {
    transform: translateX(-100%); /* End completely off the left */
  }
}
a {
    text-decoration: none;
    color: #007bff; /* Accent Blue */
}


ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    margin-bottom: 15px;
}

h2 {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: hsl(280,100%,50%); /* Accent line under headings */
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 8px; /* Slightly rounded corners */
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.crt{
    width: 140px;
    margin: 10px;
    height: 40px;
    border-radius: 4px;
    display: inline-block;
    font-style: normal;
    background-color: hsl(40,100%,50%); /* Primary action color */
    color: #fff;
}
.crt:hover{
    color: white!important;
   background: hsl(150,50%,50%)!important;
}
.btn-primary {
    background-color: hsl(40,100%,50%); /* Primary action color */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}


.btn-primary:hover {
    background-color: hsl(150,50%,50%);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-secondary {
    background-color:hsl(40,100%,50%); /* Muted grey for secondary actions */
    color: white;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background-color: hsl(150,50%,50%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

/* Header */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: 700;
    color: black;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header .main-nav ul {
    display: flex;
}

header .main-nav li {
    margin-left: 35px;
}

header .main-nav a {
    color: black;
    font-weight: normal!important;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

header .main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: hsl(150,50%,50%);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

header .main-nav a:hover::after {
    width: 100%;
}
header .main-nav a:hover {
    color: hsl(150,50%,50%);
}

 .menu-icon{
        visibility: hidden;
}

.header-icons a {
    color: black;
    font-size: 1.4em;
    margin-left: 25px;
    position: relative;
    transition: color 0.3s ease;
}
.header-icons a:hover {
    color: black;
}

.header-icons .cart-count {
    background-color: #dc3545; /* Alert/badge color */
    color: #fff;
    font-size: 0.75em;
    border-radius: 50%;
    padding: 4px 8px;
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 24px; /* Ensure circular shape for single/double digits */
    text-align: center;
    line-height: 1;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #343a40; /* Darker background for contrast */
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0; /* No margin at the very bottom */
}

.newsletter-section h2 {
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-section h2::after {
    background-color: #fff; /* White line for contrast */
}

.newsletter-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 1em;
    color: #333;
}

.newsletter-form .btn-primary {
    border-radius: 0 8px 8px 0;
    padding: 15px 30px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 25px 0;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.4em;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: hsl(280,100%,50%);
    border-radius: 1px;
}


.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #eee;
    font-size: 1.8em;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #bbb;
    font-size: 0.9em;
}

.payment-methods i {
    font-size: 2.2em;
    margin: 0 8px;
    color: #bbb;
    vertical-align: middle;
}


/
/*Links for showing more of the content of a category on the index.php eg BEST 
DEALS|more*/
.cate{
	text-decoration: none;
	color:black;
	background-color: hsl(0,0%,95%);
	font-size: 17px;
	font-weight: bold;
	padding: 10px;
	
	vertical-align: middle;
	text-align: left;
}


/* Responsive Design */
@media (max-width: 992px) {
    header .main-nav {
        white-space: nowrap;
        overflow: scroll;
        display: none; /* Hide nav, consider a hamburger menu via JS if needed */
    }
     .menu-icon{
        visibility: visible;
    }
          
    header .main-nav li {
    margin: 10px;
}
    header .container {
        flex-wrap: wrap;
        justify-content: center;

    }
    header .logo {
        margin-bottom: 15px;
        width: 80px;
        text-align: center;
    }


    .header-icons {
        width: 100%;
        text-align: center;
    }
    .header-icons a {
        margin: 0 15px; /* Adjust spacing */
    }

    .hero-section {
        height: 500px;
    }
    .hero-content {
        padding: 30px 40px;
    }
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }

    .about-snippet p {
        font-size: 1.1em;
    }

    .testimonial-carousel {
        width: 90%;
    }
    .testimonial-item p {
        font-size: 1.2em;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        max-width: 350px; /* Narrower for mobile input */
    }
    .newsletter-form input[type="email"] {
        border-radius: 8px;
        margin-bottom: 15px;
        width: 100%;
    }
    .newsletter-form .btn-primary {
        border-radius: 8px;
        width: 100%;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col ul {
        padding-left: 0; /* Remove default list padding */
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

}

@media (max-width: 480px) {
    header .logo a {
        font-size: 1.6em;
    }
   
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .footer-col {
        padding-top: 20px; /* Space between columns on mobile */
    }

    .cart-icon{
        float: right;
    }
    .account-icon{
        margin-left: 90%;
        display: inline-block;
    }
   .menu-icon{
        float: left;
    }
  .header-icons{
    background: hsl(0,0%,90%);
    width: 100%;
    display: block;
    margin: 0px;
    padding: 6px;
    border-radius: 4px;
  }
}



.products{
    position: relative;
    
    width: 47%;
    height: 330px;
    display: inline-block;
    padding: 4px;
    text-align: left;
    text-decoration: none;
    margin: 3px;
    vertical-align: top;
    margin-bottom: 6px;
    background: white;
    
    padding-bottom: 8px!important;
}
@media(min-width: 600px){
.products{
    width: 150px;
}
}
.products b{
    color:hsl(0,0%,15%);
    font-weight: normal;
    text-transform:capitalize;
    font-size: 14px;
    display: inline-block;
    overflow-wrap: break-word;
    white-space: normal;
}
.products small{
    color: hsl(0,0%,55%);
    font-size: 10px;
}
.product *{
    text-align: left!important;
}
.products em{
    font-style: normal;
    color: black;
    font-weight: bold;
    font-size: 17px;
    display: inline-block;
    padding-top: 10px!important;
}
.em2{
    color: grey!important;
}

.products h1 em{
    font-size: 10px;
}
.products span{
    color: white;
    background: gold;
    font-size: 13px;
    border-radius: 5px;
    margin-top: -1px;
    display: inline-block;
}
/*For fluidity of the images uploaded by the classiffied section, work more on the image sizes*/
.products img{
    width: 100%;
    max-height:160px;
    min-height: 160px;
    overflow: hidden;
    object-fit:cover;
    margin-bottom: 10px;
}
.products em.add_to_cart{
    background: hsl(0,0%,100%);
    color: black;
    padding: 4px;
    padding-right: 8px;
    padding-left: 8px;
    display: inline-block;
    margin-top: 3px;
    margin-bottom: 5px!important;
    border-radius: 5px;
    box-shadow: 4px 4px 7px hsl(0,0%,95%);
    font-size: 14px!important;
}


/*Larger screens*/
@media(min-width: 1200px){

.products{
    border: 2px solid hsl(0,0%,92%);
    border-radius: 8px;
    width: 16.3%!important;
    height: 380px!important;
}
.products img{
    
    max-height:250px!important;
    min-height: 250px!important;
    object-fit: cover;
}
.cate{
    width: 100%;
    margin: auto;
    margin-top: 5px;
    font-size: 20px;
}
}

/* --- Shopping Cart Container (nav4) --- */
.nav4 {
  position: fixed;
  top: 0;
 /* Initially hidden */
 right: -100%;
  width: 100%;
  max-width: 420px; /* Optimal width for desktop */
 min-height: 300px;
 max-height:600px;
  z-index: 10000;
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow:scroll;
}
.viewcart{
    right: 0%;
}

/* Active state for showing the cart */
.nav4.active {
  right: 0;
}

/* --- Cart Header and Closer Button --- */


/* --- Cart Items Table --- */
.nav4 table {
  width: 100%;
  border-collapse: collapse;
}

.nav4 table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}

.nav4 table tr:last-child {
  border-bottom: none;
}

.nav4 td {
  padding: 0;
  vertical-align: middle;
}

.nav4 td:nth-child(1) {
  flex: 0 0 auto;
}

.nav4 td:nth-child(2) {
  flex: 1 1 auto;
  padding: 0 15px;
}

.nav4 td:nth-child(3) {
  flex: 0 0 auto;
  text-align: right;
}

/* Product Image */
.nav4 img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

/* Product Title */
.nav4 h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #202124;
  line-height: 1.4;
}

/* Quantity Controls */
.nav4 .quantity-control {
  display: flex;
  align-items: center;
  text-align: center;
}

.nav4 * {
    font-style: normal;

}
.nav4 span.minus,
.nav4 span.add {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #f1f3f4;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  color: #5f6368;
  line-height: 1;
  margin:7px;
}

.nav4 span.minus:hover,
.nav4 span.add:hover {
  background-color: #e8eaed;
}

.nav4 .quantity-control em {
  font-style: normal;
  font-size: 1.1rem;
  margin: 0 12px;
  min-width: 25px; /* Ensures quantity doesn't shift layout */
  color: #333;
  font-style: normal;
}

/* Sub-total and Checkout Button */
.sub_total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #202124;
}

.sub_total:last-child {
  color: #1a73e8;
}

/* Empty Cart Message */
.nav4 .empty-cart-message {
  text-align: center;
  padding: 40px 0;
  color: #757575;
  font-style: italic;
}
.crt a{
    color: white;
    border-radius: 20%!important;
}

.crt a:hover{
color: white;
}
/* --- Responsiveness (Mobile First) --- */
@media (max-width: 480px) {
  .nav4 {
    max-width: 100%;
    padding: 16px;
  }

  .nav4 img {
    width: 60px;
    height: 60px;
  }

  .nav4 h3 {
    font-size: 0.9rem;
  }
}