:root {
    --pezm-red: #D21010;
    --pezm-blue: #2D176E;
    --pezm-white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pezm-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.hot-deal-timer {
    background-color: #e53935; /* Red background color */
    color: #fff; /* White text color */
    text-align: center;
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px 5px 0 0; /* Rounded top corners */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.hot-deal-timer .timer-label {
    margin-right: 5px;
}
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--pezm-blue);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 6px 6px;
    border-radius: 5px;
    background-color: #ffea15;
    text-decoration: none;
    font-weight: 600;
    color:#000;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--pezm-red);
    color: var(--pezm-white);
    border: 2px solid var(--pezm-red);
}

.btn-primary:hover {
    background-color: var(--pezm-blue);
    border-color: var(--pezm-blue);
}

/* Header & Navigation */
.main-header {
    background-color: #ffea15;
    box-shadow: 0 2px 10px rgba(0 0 0 / 60%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--pezm-red);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: #000;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--pezm-red);
    color: var(--pezm-white);
    font-size: 0.7rem;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pezm-white);
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(45, 23, 110, 0.5);
    border: none;
    color: var(--pezm-white);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.slider-nav .prev-slide { left: 20px; }
.slider-nav .next-slide { right: 20px; }
.slider-nav button:hover { background-color: var(--pezm-red); }

/* Product Categories */
.product-categories {
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card h3 {
    width: 100%;
    color: var(--pezm-white);
    background-color: rgba(45, 23, 110, 0.7);
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Our Brands Section */
.our-brands {
    background-color: var(--bg-light);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.brand-logo {
    padding: 10px;
    max-width: 150px;
}

.brand-logo img {
    width: 100%;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Hot Deals */
.hot-deals {
    background-color: var(--pezm-white);
    text-align: center;
}

.deal-content {
    display: flex;
    justify-content: center;
}

.deal-item {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.deal-item img {
    max-width: 400px;
    border-radius: 8px;
}

.deal-details {
    text-align: left;
}

.deal-details h3 {
    font-size: 2rem;
    color: var(--pezm-red);
}

.deal-details .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
}

.deal-details .new-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pezm-blue);
    margin-bottom: 10px;
}

.countdown-timer {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pezm-red);
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Top News */
.top-news {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--pezm-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card h4 {
    font-size: 1.2rem;
    padding: 15px;
    color: var(--pezm-blue);
}

.news-card p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-card .read-more {
    display: block;
    padding: 0 15px 15px;
    color: var(--pezm-red);
    text-decoration: none;
    font-weight: 600;
}

/* Chatbot */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatbot-toggle {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    background-color: var(--pezm-red);
}

#chatbot-window {
    width: 350px;
    height: 450px;
    background-color: var(--pezm-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

#chatbot-window.visible {
    transform: scale(1);
}

#chatbot-header {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.chatbot-message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    background-color: var(--pezm-red);
    color: var(--pezm-white);
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 0;
}

.bot-message {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    border-bottom-left-radius: 0;
}

#chatbot-input {
    display: flex;
    padding: 10px;
    background-color: var(--pezm-white);
}

#user-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 1rem;
}

#send-btn {
    background-color: var(--pezm-red);
    color: var(--pezm-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-btn:hover {
    background-color: var(--pezm-blue);
}

.close-btn {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--pezm-red);
    margin-top: 10px;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-section a {
    color: var(--pezm-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pezm-red);
}

.social-media a {
    font-size: 1.5rem;
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
}

/* ... (Existing styles from main.css) ... */

/* General Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* Header & Navigation */
@media (max-width: 992px) {
    .main-header {
        flex-wrap: wrap;
    }

    .header-logo {
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--pezm-blue);
        order: 2; /* Position the toggle button after logo */
    }

    .header-actions {
        order: 3;
        margin-left: 20px;
        margin-right: 0;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 4;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul li a {
        padding: 10px 0;
        width: 100%;
    }

    .main-nav.active {
        display: block;
    }
}

/* Hero Slider */
@media (max-width: 768px) {
    .hero-slide {
        text-align: center;
        padding-left: 0;
    }
    .hero-slide-content h1 {
        font-size: 2.5rem;
    }
    .hero-slide-content p {
        font-size: 1rem;
    }
    .slider-nav {
        display: none; /* Hide navigation buttons on mobile */
    }
}

/* Categories Section */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Products Section */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-card-content h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
@media (max-width: 768px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
}
/* ... (Existing styles) ... */

/* Header & Navigation */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .nav-toggle {
        display: block; /* Show the toggle button */
        order: 3;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--pezm-blue);
        background: none;
        border: none;
        margin-left: 15px;
    }
    
    .main-nav {
        display: none; /* Hide the navigation by default */
        width: 100%;
        order: 4;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul li {
        width: 100%;
        text-align: left;
    }

    .main-nav ul li a {
        padding: 10px 0;
        width: 100%;
        display: block;
    }

    .main-nav.active {
        display: block; /* Show the navigation when the 'active' class is added */
    }
}
/* ... (existing styles) ... */

/* Header & Navigation */
.nav-toggle {
    display: none; /* Hide the toggle button by default on all screen sizes */
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center; /* Add this to vertically align items */
    }
    
    .logo {
        order: 1;
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .nav-toggle {
        display: block; /* Override the default to show the button on mobile */
        order: 3;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--pezm-blue);
        background: none;
        border: none;
        margin-left: 15px;
    }
    
    .main-nav {
        display: none; /* Keep this rule to hide the navigation on mobile by default */
        width: 100%;
        order: 4;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul li {
        width: 100%;
        text-align: left;
    }

    .main-nav ul li a {
        padding: 10px 0;
        width: 100%;
        display: block;
    }

    .main-nav.active {
        display: block; /* This rule shows the menu when the button is clicked */
    }
}
@media (max-width: 992px) {
    .mobile-nav-bar {
        /* This rule makes the navigation bar stick to the bottom */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;

        /* The rest of the styling */
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 65px;
        color:#000 !important;
        background-color: #ffea15;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        padding-top: 5px;
    }
    /* ... other styles ... */
}

/* ... (all existing CSS code) ... */

/* Styles for the new sliding brands section */
.sliding-brands-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brand-logo-track {
    display: flex;
    gap: 30px;
    animation: slide-logos 50s linear infinite; /* Adjust time to change speed */
    width: fit-content;
}

.brand-logo {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--pezm-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    /* This rule ensures all images are scaled to fit within the container */
    object-fit: contain; 
}

/* Pause animation on hover */
.sliding-brands-container:hover .brand-logo-track {
    animation-play-state: paused;
}

/* Keyframes for the sliding animation */
@keyframes slide-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ... (all existing CSS media queries) ... */
/* ... (all existing CSS code) ... */

/* New CSS for the Hot Deals Section */
.hot-deals-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Hide the scrollbar for the hot deals section */
.hot-deals-carousel::-webkit-scrollbar {
    display: none;
}

.hot-deals-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hot-deals-carousel .product-card {
    flex-shrink: 0;
    width: 280px;
}

/* Make the product grid full width on the hot deals page */
.product-display.full-width {
    grid-column: 1 / -1;
}

/* ... (all existing CSS code) ... */

/* Main content styling */
.hero-banner {
    background-color: var(--pezm-blue);
    color: var(--pezm-white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
}

/* Category Sections */
.category-section {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
}

/* Horizontal Product Carousel */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for the carousel */
.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel {
    -ms-overflow-style: none; /* For Internet Explorer */
    scrollbar-width: none; /* For Firefox */
}

.product-carousel .product-card {
    flex-shrink: 0;
    width: 280px;
    background-color: var(--pezm-white);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-carousel .product-card:hover {
    box-shadow: var(--shadow-hover);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Loading spinners */
.loading-spinner-small {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--pezm-blue);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.no-products-found-small {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}
.marquee-container {
    width: 100%;
    overflow: hidden; /* Hides the part of the image that goes off-screen */
}

.marquee-content {
    display: flex; /* Aligns the images in a single row */
    animation: marquee-slide 30s linear infinite; /* 30s is the duration; adjust for speed */
}

.marquee-content img {
    flex-shrink: 0;
    width: 100%;
    height: 100px; /* Set the height as requested */
    object-fit: cover;
}

/* The animation keyframes */
@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%); /* Moves the content left by the width of one image */
    }
}
/* Style for all section titles */
.section-title {
    font-size: 2.5rem; /* Adjust the size as needed */
    font-weight: 700; /* Makes the title bold */
    text-transform: uppercase; /* Capitalizes all letters */
    color: #ffffff; /* Dark gray color for the text */
    position: relative; /* Needed for the pseudo-element underline */
    padding-bottom: 20px; /* Space for the underline */
    background-color: #2d176e;;
    margin-bottom: 30px; /* Space between the title and the content below */
    text-align: center; /* Centers the title */
}

/* The custom underline design */
.section-title::after {
    content: '';
    display: block;
    width: 60px; /* Width of the underline */
    height: 4px; /* Thickness of the underline */
    background-color: #e53935; /* Your desired red color */
    position: absolute;
    bottom: 0;
    left: 50%; /* Centers the underline */
    transform: translateX(-50%);
}
/* ... (all existing CSS media queries) ... */
.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative; /* Add this line */
    height: 100%;
}
.hot-deal-timer {
    background-color: #e53935; /* Red background color */
    color: #fff; /* White text color */
    text-align: center;
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px; /* Rounded corners on all sides */
    margin-top: 10px; /* Add some space below the price */
}
/* Search Results Page Styling */
#search-results-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.search-result-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 300px;
    text-align: center;
}

.search-result-card h3 {
    font-size: 1.25rem;
    margin-top: 10px;
    margin-bottom: 5px;
}

.search-result-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.search-result-card h3 a:hover {
    color: #e53935;
}

.search-result-card p {
    margin: 5px 0;
    color: #666;
}

.search-result-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 15px;
}
/* Container for the search bar at the top of the page */
.search-bar-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Style the search form itself */
.search-form {
    display: flex;
    max-width: 800px; /* Adjust the max-width as needed */
    margin: 0 auto;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 50px 0 0 50px;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    border-color: #e53935;
}

.search-form button {
    background-color: #e53935;
    color: #fff;
    border: 1px solid #e53935;
    border-left: none;
    border-radius: 0 50px 50px 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #c62828;
}
/* Product Detail Page Layout */
.product-detail-container {
    display: flex;
    gap: 40px;
}

@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
    }
}

.product-image-section {
    flex: 1;
    text-align: center;
}

.product-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-info-section {
    flex: 1;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-category {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.product-price .new-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: #e53935;
    margin-right: 10px;
}

.product-price .old-price-large {
    font-size: 1.5rem;
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-description h3,
.product-attributes h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e53935;
    display: inline-block;
    padding-bottom: 5px;
}

.product-attributes ul {
    list-style-type: none;
    padding: 0;
}

.product-attributes li {
    background-color: #f8f9fa;
    border-left: 3px solid #e53935;
    padding: 10px 15px;
    margin-bottom: 10px;
}

/* Image Zoom Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
/* Core styles for the slider animation */
.hero-slider .slider-container {
    position: relative;
    overflow: hidden; /* Hide slides that are out of view */
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* Main transition */
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* --- Fade In / Fade Out Animation --- */
/* This is the default behavior with the core styles above. */
/* No extra CSS is needed for this effect. */

/* --- Sliding Animation (from the right) --- */
/* Add these styles to create a slide-in effect */
.hero-slider .slide {
    transform: translateX(100%); /* Start off-screen to the right */
}

.hero-slider .slide.active {
    transform: translateX(0); /* Slide into view */
}

/* --- Cube Effect (pseudo-cube) --- */
/* This gives a rotating effect. Note: a true 3D cube is more complex. */
.hero-slider .slide {
    transform-origin: 50% 50%;
    transform: rotateY(90deg) scale(0.8);
    opacity: 0;
}

.hero-slider .slide.active {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
}
/* Button Hover Effect */
.btn-primary, .btn-secondary {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #d12c1e; /* Darker red on hover */
    transform: scale(1.05); /* Slightly bigger */
}

.btn-secondary:hover {
    background-color: #f8f9fa; /* Lighter background on hover */
    color: #000;
    transform: scale(1.05);
}
/* Card Lift and Shadow Effect */
.category-card, .product-card, .news-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category-card:hover, .product-card:hover, .news-card:hover {
    transform: translateY(-5px); /* Moves the card up slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Adds a bigger shadow */
}
/* Brands Marquee Animation */
.sliding-brands-container {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.brand-logo-track {
    display: flex;
    animation: marquee 20s linear infinite;
}

.brand-logo-track:hover {
    animation-play-state: paused; /* Pause animation on hover */
}

.brand-logo {
    flex-shrink: 0;
    margin-right: 2rem;
    width: 150px; /* Adjust as needed */
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.brand-logo:hover {
    filter: grayscale(0%); /* Colorize logo on hover */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Adjust based on the number of logos to create a seamless loop */
    }
}
/* Hero Slide Text Animation */
.hero-slider .slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out 0.5s, transform 1s ease-in-out 0.5s; /* Delay the animation slightly */
}

.hero-slider .slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}
/* Animation CSS */
/* Initial state: element is invisible and slightly zoomed out */
.fade-in-section {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease-out; /* The duration and type of animation */
    will-change: opacity, transform; /* Optimize for animation performance */
}

/* Final state: element becomes visible and scales back to 100% */
.fade-in-section.is-visible {
    opacity: 1;
    transform: scale(1);
}
@media (max-width: 768px) {
    /* Adjustments for the product list page */
    .filter-by-category {
        /* On mobile, the filter sidebar should take full width */
        width: 100%;
        margin-bottom: 20px;
    }

    /* Change the product grid from columns to a single column */
    .product-grid {
        display: block; /* Stacks the products vertically */
    }

    .product-card {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Adjustments for the product details page */
    .product-details-container {
        flex-direction: column; /* Stack the image and details vertically */
    }
}
.news-card .news-image-container {
    width: 100%;
    /* Use padding to create a 1:1 aspect ratio */
    padding-top: 100%; 
    position: relative;
    overflow: hidden;
}

.news-card .news-image-container img {
    /* Position the image to fill the 1:1 container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* This will prevent cropping and show the full image */
    background-color: #fff; /* Optional: A background color for padding */
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-card .news-image-container img.active {
    display: block;
    opacity: 1;
}
/* The Modal (Lightbox) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
}

/* The Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Added transition for smoother modal appearance */
/* Modal Content (The Image) */
.modal-content {
    margin: auto;
    display: block;
    /* Remove max-width and max-height to allow original size */
    /* max-width: 80%;
    max-height: 80vh; */
    object-fit: contain; /* Ensure the image fits within the modal without stretching */
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
.product-carousel .product-card {
    flex-shrink: 0;
    width: 280px;
    background-color: var(--pezm-white);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border-radius: 8px;
    overflow: hidden;
}
.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-card .news-image-container {
    width: 100%;
    padding-top: 100%; 
    position: relative;
    overflow: hidden;
}

.news-card .news-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

.news-card .news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card h4 {
    font-size: 1.25rem;
    color: #e30613;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}
.category-card {
    background: #f0f2f5; /* Fallback color */
    background: linear-gradient(135deg, #f0f2f5, #e6e8eb);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align title to the bottom */
    text-align: center;
    text-decoration: none;
    color: #333;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px; /* Space between text and bottom of card */
    color: #e30613; /* Pezm Furniture's brand color */
}

/* Optional: Add a subtle icon to each card if you don't want to use an image */
.category-card::before {
    content: ''; /* Replace with a different icon for each category */
    display: block;
    width: 60px;
    height: 60px;
    background-color: #e30613;
    border-radius: 50%;
    margin-bottom: 15px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.2;
}