
/* General Styling */
body {
    background-color: var(--primary-background);
    margin: 0;
    padding: 0;
    color: var(--primary-text);
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--navbar-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--navbar-border);
}

.logo-image {
    height: 40px;
    width: auto;
}

/* Navbar Icons */
.navbar-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.icon-button:hover {
    transform: scale(1.1);
    background-color: var(--icon-hover-bg);
}

/* Banner Styling */
.banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 18rem;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
    padding: 0.75rem;
    background-color: var(--category-background);
    margin-bottom: 1rem;
    border-top: 1px solid var(--banner-border);
}

.category-bar::-webkit-scrollbar {
    display: none;
}

/* Category Button Styling */
.category-button {
    flex: 0 0 auto;
    background-color: var(--category-button-bg);
    border: 1px solid var(--category-button-border);
    border-radius: 1.25rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--category-button-text);
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-button:hover,
.category-button.active {
    background-color: var(--category-button-hover-bg);
    color: var(--category-button-hover-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Section Styling */
.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05rem;
}

/* Card Layout */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.card {
    background-color: var(--card-background);
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 1.4rem;
    color: var(--card-text);
    margin: 0.5rem 0;
}

.card-hashtag {
    font-size: 0.9rem;
    color: var(--card-hashtag);
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.875rem;
    color: var(--card-description);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.price {
    font-size: 1.2rem;
    color: var(--price-color);
    font-weight: bold;
    text-align: right;
    margin-top: 0.5rem;
}

/* Modal Styling */
.card-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.card-modal-content {
    background-color: var(--modal-background);
    border-radius: 1rem;
    padding: 0;
    width: 95%;
    max-width: 30rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    font-size: 1rem;
    color: var(--close-clor);
    background-color: var(--modal-close-bg);
    border: none;
    border-radius: 50%;
    width: 1.5625rem;
    height: 1.5625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--modal-close-hover-bg);
}

.modal-image img {
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.modal-details {
    padding: 1.5rem;
}

.modal-details h3 {
    font-size: 1.25rem;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

/* Scroll-to-Top Button Styling */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--scroll-to-top-bg-start), var(--scroll-to-top-bg-end));
    color:var(--scroll-icon-color);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

/* Search Container Styling */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.icon-button.search-icon {
    cursor: pointer;
    transition: transform 0.3s;
}

.icon-button.search-icon:hover {
    transform: scale(1.1);
}

.search-bar {
    width: 0;
    opacity: 0;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
    outline: none;
    transition: width 0.3s ease, opacity 0.3s ease;
    position: absolute;
    right: 50px; /* Adjusted to bring the search bar closer */
    top: 2px; /* Slightly adjusted to align better */
}

/* Info Modal Styling */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.info-modal-content {
    background-color: var(--modal-background);
    border-radius: 1rem;
    padding: 2rem;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    transform: translateY(-20px);
}

.info-modal.show {
    display: flex;
    transform: translateY(0);
}

.info-modal h2 {
    margin-top: 0;
}

.info-modal p {
    margin: 0.5rem 0;
}

.info-modal a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.info-modal a:hover {
    color: var(--footer-link-hover);
    text-decoration: underline;
}

/* Footer Styling */
.footer {
    background: linear-gradient(135deg, var(--footer-bg-start), var(--footer-bg-end));
    text-align: center;
    padding: 0.5rem; /* Further reduced padding */
    color: var(--footer-text);
    font-size: 0.7rem; /* Further reduced font size */
    border-top: 1px solid var(--footer-border);
}

.footer a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--footer-link-hover);
}


/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem;
    }

    .icon-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

    .navbar-icons {
        gap: 0.5rem;
    }

    .category-bar {
        gap: 0.75rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: none;
    }

    .card-modal-content {
        max-width: 90%;
    }
}
