/* =====================
   GENERAL RESET
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
}

/* =====================
   HEADER & NAVIGATION
===================== */
header {
    background-color: #f7f7f7;
    padding: 5px 0;
    color: #000000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
}


.nav-links-container {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    margin: 0px;
    border-radius: 25px;
}

#annouce-container {
    width: 95%;
    
    margin: 10px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    height: 500px;
}

.annouce-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.annouce-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 10px;
}
.logo-img {
    width: 150px;
    height: auto;
    margin-right: 20px;
}

/* Navigation dots for the slider */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
}

/* Arrow buttons for slider */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(43, 43, 43, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
   
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
   
}
.nav-links li {
    display: inline-block;
    
}

.nav-links li a:hover {
    background-color: #1e40af;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1e40af;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 100%;
}

nav.container {
    width: 90%;
    max-width: 1200px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

#nav-up {
    display: inline;
   width: 100%;
    
}
#nav-down {
    display: none;}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
}

.search-form {
    display: flex;
    flex: 1;
    margin: 0 20px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
}

.search-form button {
    padding: 8px 15px;
    border: none;
    background-color: #1e40af;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.search-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-form button:hover {
    background-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.search-form button:hover::before {
    width: 300px;
    height: 300px;
}

.search-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
    transition: all 0.1s ease;
}

.search-form button.loading {
    pointer-events: none;
    position: relative;
}

.search-form button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-form button.loading span {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cart-link {
    /* Remove background */
    padding: 12px 8px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    min-width: 50px;
    cursor: pointer;
    border: 2px solid transparent;
}

.cart-link:hover {
    /* Remove background hover, add subtle border */
    border-color: #1e40af;
    background-color: rgba(30, 64, 175, 0.05);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.cart-link:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.cart-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(0); /* Keep original color or make it dark */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-link:hover .cart-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(0) sepia(1) saturate(5) hue-rotate(220deg); /* Make it blue on hover */
}

.cart-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    transition: all 0.3s ease;
}

.cart-link:hover .cart-text {
    color: #1e40af;
    transform: translateY(-1px);
}

.cart-count {
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    border: 2px solid white;
    animation: pulse 2s infinite;
    z-index: 10;
}

.cart-count.empty {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
}

/* Bounce animation for when items are added to cart */
.cart-link.added .cart-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* =====================
   HERO SECTION
===================== */
.hero {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background-color: #16a34a;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #22c55e;
}
/* -------- Products Grid -------- */
.products-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
   
}
.products-grid2 {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 50px;
    margin-left: 60px;
    margin-right: 60px;
}
.container {
    max-width: 80%; 
    text-align: auto;
    margin: auto;
    padding: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    border-bottom: 1px solid #eee;
    object-fit: cover;
    height: 250px;
}
.products-page {
    display: flex;
    gap: 20px;
}
.product-info {
    padding: 15px;
}

.product-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.product-info .gender {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-weight: bold;
    color: #b58900;
    margin-bottom: 10px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* -------- Sidebar -------- */
.search-results-header {
    text-align: center;
    margin-bottom: 5px;
    padding: 5px;
    display: block;
    background-color: #f8f9fa; 

   right: 0%;
    border-radius: 10px;

    width: 25%;
}
.sidebar {
   flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
    display: block;
    left: 0%;
    width: 25%;
}

.sidebar h3 {
    margin-bottom: 10px;
    color: #1a202c;
}

.sidebar input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
}

.sidebar label {
    display: block;
    margin-bottom: 10px;
}

.sidebar input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.reset-filters {
    padding: 8px 15px;
    border: none;
    background-color: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* =====================
   CATEGORIES GRID
===================== */
.categories-grid {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 25px;
    text-align: center;
}

.category-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a202c;
    font-weight: 600;
}

.category-info p {
    color: #718096;
    font-size: 1rem;
    line-height: 1.5;
}
