@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image:
        linear-gradient(135deg, rgba(29, 37, 49, 0.9), rgba(44, 62, 100, 0.9)),
        url('Images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}


@media (max-width: 768px) {



    body {
        font-family: 'Poppins', sans-serif;
        background-image:
            linear-gradient(135deg, rgba(29, 37, 49, 0.9), rgba(44, 62, 100, 0.9)),
            url('Images/mobheader.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
    }



}


header {
    padding: 1.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80%;
    margin: auto;
    background-color: transparent;

}

.logo a {
    text-decoration: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    padding: 0.4rem 1rem;

}

nav a.active,
nav a:hover {
    color: #d69200;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}

#click {
    display: none;

}

.menu {
    display: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d69200;

}

section {
    margin: 2rem 8.5rem;
    box-shadow: 5px 0 8px rgba(0, 0, 0, 0.5);
}



.social {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: -0.1rem;
}

.social a {
    color: #d69200;
    font-size: 1rem;
    border: 1.6px solid #d69200;
    border-radius: 50%;
    padding: 0.4rem;
    text-align: center;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

}


/* Main Content Section */
.content-section {
    max-width: 1200px;
    
    width: 100%;
    margin: 2rem auto;
    margin-top: 2px;
    display: flex;
    gap: 2rem;
    background-color: #ececec;
    margin-bottom: 5px;
}

/* Categories Section */
.categories {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    height: fit-content;
}

.categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: #d69200;
    transform: translateX(5px);
}

/* Products Section */
.products {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.product-price {

    font-size: 1.1rem;
    color: #d69200;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}



.search-bar {
    display: flex;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-form {
    display: flex;
    width: 100%;
}

/* Base Search Styles (Desktop) */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -25px;
    padding: 1rem;
    background: linear-gradient(to bottom, #253552, #3a4a6a);


}
.search-input2 {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
    color: #333;
}

.search-input2::placeholder {
    color: #555;
}

.search-button {
    padding: 0 1.5rem;
    border: none;
    background: linear-gradient(135deg, #a8a8a8, #787878);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #787878, #585858);
}



@media (max-width: 992px) {

    header,
    .search-container,
    .content-section {
        max-width: 95%;

    }

    .content-section {
        flex-direction: column;
    }

    .categories {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .menu {
        z-index: 1000;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .product-card {
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-image {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;

    }

    .product-image img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
    }

    .product-info {
        width: 100%;
        padding: 0.8rem 0.5rem 0.5rem;
        text-align: center;
    }
     .search-container {
        max-width: 95%;
        margin-top: -7px;
        padding: 0.8rem;
    }


    .search-input2 {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .search-button {
        padding: 0 1.2rem;
    }
}

@media (max-width: 480px) {

    header,
    .search-container,
    .content-section {
        max-width: 95%;
    }

    .products {
        gap: 0.6rem;
        padding: 0.4rem;
    }

    .product-card {
        padding: 0.4rem;
    }

    .product-info {
        padding: 0.6rem 0.4rem 0.4rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.95rem;
    }
     .search-container {
        padding: 0.5rem;
    }

    .search-bar {
        border-radius: 20px;
    }

  
    .search-input2 {
        padding: 0.5rem 0.8rem;
    }

    .search-button {
        padding: 0 0.8rem;
        font-size: 0.85rem;
    }
}


.images:hover {
    background-position: 0 0;
}

@media (max-width: 768px) {
    header {
        padding: 0.7rem 1rem;
        max-width: 100%;
    }

    .menu {
        display: block;
    }

    nav {
        position: absolute;
        display: grid;
        top: 75px;
        text-align: center;
        background: linear-gradient(135deg, #1F252E, #2C3E50);
        left: -100%;
        z-index: 1;
        width: 100%;
    }

    #click:checked~nav {
        left: 0%;
        transition: all 0.3s ease;
    }


}


/* sliding images ======================================= */
.image-slider {
    width: 100%;
    max-width: 1200px;
    height: 120px;
    overflow: hidden;
    display: flex;
    margin: 0 auto;
    background: #fff;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-track img {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-slider {
        height: 80px;
        max-width: 100%;
    }

    .slider-track img {
        height: 80px;
        max-width: auto;
    }
}

@media (max-width: 480px) {
    .image-slider {
        height: 47px;
    }

    .slider-track img {
        height: 47px;
    }
}



.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.164);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    color: #fff;
    max-width: 1100px;
    width: 100%;
    gap: 2rem;
    margin-top: -40px;
}

.contact-info {
    flex: 1 1 40%;
    min-width: 280px;
}

.contact-form {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.568);
    color: #000000;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #d69200;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #c17d00;
}

@media (max-width: 768px) {
    .main {
        margin: 1rem auto 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        margin-top: 3px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 400px;
        margin-bottom: 1.5rem;
         font-size: 0.8rem;
    }

    .contact-form {
        align-items: center;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        width: 85%;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    section {
        margin: 1rem 1.5rem;
        text-align: center;
    }
}



.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-heading {
    font-size: 1.2rem;
    margin: 0;
}

/* Slide-in Menu */
.categories-slide {
    position: fixed;
    top: 0;
    left: -250px;
    /* Hidden by default */
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    z-index: 999;
}

.categories-slide.open {
    left: 0;
}

.categories-slide .category-list {
    padding: 0;
}

.categories-slide .category-item {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .categories {
        display: none;
    }
}


.pagination-buttons {
    margin-bottom: 20px;
    text-align: center;
}

.pagination-buttons button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
}

#pageIndicator {
    font-weight: lighter;
    color: #d69200;
}



.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    /* Red color for urgency */
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

/* Mobile-specific badge positioning */
@media (max-width: 768px) {
    .notification-badge {
        top: 0;
        right: 5px;
    }
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}


/* extra cards============================================================= */

/* Mobile-specific styles */
@media (max-width: 768px) {
    .search-container {
        position: relative;

    }

    .suggestions-list2 {
        width: 100%;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: absolute;
        left: 0;
        box-sizing: border-box;
    }

    .suggestions-list2 li {
        padding: 12px 15px;
        font-size: 16px;
    }

    .search-input2 {
        font-size: 16px;
        /* Prevent iOS zooming */
    }
}