/* Font Face Declarations */
@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/Italics.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/BoldItalics.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Theseasons';
    src: url('../Fonts/LightItalics.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
 font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header Container */
.site-header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* First Section: Sliding Banner */
.sliding-banner {
    background-color: #df7c60;
    color: #fff;
    padding: 16px 0;
    overflow: hidden;
    position: relative;
    height: auto;
}

.slide-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 6px 0;
    min-height: 50px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

/* Second Section: Main Navigation */
.main-navigation {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-container--brand-first {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000000;
    font-family: 'Raleway', sans-serif;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #df7c60;
    font-family: 'Raleway', sans-serif;
}

.nav-center--links {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Left Navigation Links */
.nav-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #df7c60;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #df7c60;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Center Logo */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-link {
    display: block;
}

.logo {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Right Icons */
.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.icon-btn:hover {
    color: #df7c60;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
}

.site-alert {
    max-width: 900px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

.site-alert-dynamic {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-alert-success {
    background: #e6f4ea;
    color: #1f7a3b;
    border: 1px solid #b3e2c3;
}

.site-alert-error {
    background: #fdecea;
    color: #d93025;
    border: 1px solid #f5c6c0;
}

/* Third Section: Categories Navigation */
.categories-navigation {
    background-color: #000000;
    padding: 0;
}

.categories-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-categories-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
  font-family: 'Theseasons', 'Times New Roman', serif;
}

.mobile-categories-toggle i {
    transition: transform 0.3s ease;
}

.mobile-categories-toggle.active i {
    transform: rotate(180deg);
}

.categories-nav {
    display: block;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.categories-list li {
    flex: 0 0 auto;
}

.category-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.7px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
}
.last-category {
    padding-right:65px;
    padding-left:6px;
}


.search-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover the entire header area */
    background-color: rgba(255, 255, 255, 0.98); /* Slightly transparent white background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's above other header elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-bar-container.active {
    opacity: 1;
    visibility: visible;
}

.search-bar-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-form {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1.2em;
    outline: none;
    border-radius: 5px 0 0 5px;
}

.search-submit-btn,
.search-close-btn {
    background-color: #f03b0a;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit-btn:hover,
.search-close-btn:hover {
    background-color: #d02a00;
}

.search-submit-btn {
    border-radius: 0;
}

.search-close-btn {
    border-radius: 0 5px 5px 0;
    background-color: #283C1B; /* Darker color for close button */
}

.search-close-btn:hover {
    background-color: #1a2814;
}


/* Overlay for mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile layout */
@media (max-width: 768px) {
    .main-navigation {
        padding: 12px 0;
       
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-container--brand-first {
        gap: 12px;
    }

    .nav-brand {
        flex: 1;
        min-width: 0;
    }

    .logo {
        max-height: 52px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.75rem;
        line-height: 1.3;
        white-space: normal;
    }

    .nav-center--links {
        display: none;
    }

    .nav-center--links.active {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #ffffff;
        padding: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        z-index: 3000;
    }

    .nav-right {
        gap: 12px;
        margin-left: auto;
    }

    .nav-right .search-btn,
    .nav-right .wishlist-btn,
    .nav-right .account-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cart-trigger {
        display: flex;
    }

    /* Sliding banner text should wrap nicely */
    .sliding-banner {
        height: auto;
        padding: 10px 0;
    }

    .slide span {
        white-space: normal;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.4;
        font-size: 13px;
        letter-spacing: 0.6px;
    }

    /* Categories navigation */
    .categories-container {
        padding: 0 16px;
    }

    .mobile-categories-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .categories-nav {
        display: none;
        width: 100%;
    }

    .categories-nav.active {
        display: block;
    }

    .categories-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .categories-list li {
        width: 100%;
    }

    .category-link {
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .last-category {
        padding-right: 0;
        padding-left: 0;
    }
}