/* 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: 'Theseasons', 'Georgia', 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: #f03b0a;
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    height: 50px;
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.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;
}

/* Left Navigation Links */
.nav-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #283C1B;
    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: #f03b0a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f03b0a;
    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: #283C1B;
    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: #f03b0a;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #f03b0a;
    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: #283C1B;
    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;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-left {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .logo {
        max-height: 50px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .icon-btn {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .sliding-banner {
        height: 45px;
    }
    
    .slide span {
        font-size: 12px;
    }
    
    .main-navigation {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 25px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-left.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-center {
        position: static;
        transform: none;
        order: -1;
    }
    
    .logo {
        max-height: 45px;
    }
    
    .nav-right {
        gap: 12px;
    }
    
    .icon-btn {
        font-size: 18px;
        padding: 6px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .categories-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-categories-toggle {
        display: flex;
    }
    
    .categories-nav {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .categories-nav.active {
        display: block;
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .sliding-banner {
        height: 40px;
    }
    
    .slide span {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .main-navigation {
        padding: 12px 0;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .icon-btn {
        font-size: 16px;
        padding: 5px;
    }
    
    .categories-navigation {
        font-size: 14px;
    }
    
    .category-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 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;
}

.search-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    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: 100%;
    max-width: 1200px;
    display: flex;
    align-items: stretch;
    background-color: transparent;
    border-radius: 5px;
}

.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;
}

