/* ==========================================
   SUBCATEGORY ACCORDION STYLES (FIXED)
   ========================================== */

.offcanvas-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-category-list li.cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.cat-parent-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.cat-parent-wrapper .cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

/* Arrow Button Styling - Default State (Always Facing Down) */
.toggle-sub-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: #666;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: rotate(0deg) !important; /* পেজ লোডে অ্যারো অবশ্যই নিচের দিকে থাকবে */
}

/* When Clicked / Active - Arrow Rotates Upwards */
.cat-item.open .toggle-sub-btn,
.cat-item.active .toggle-sub-btn {
    transform: rotate(180deg) !important; /* ক্লিকে ১৮০ ডিগ্রি ঘুরে উপরে যাবে */
    color: #8c3f23;
}

/* Subcategory List Default Hidden State */
.subcategory-list {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    display: none; /* ডিফল্টভাবে হিডেন থাকবে */
    background-color: #f9f9f9;
    border-radius: 6px;
}

/* Subcategory List Item Link Styling */
.subcategory-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subcategory-list li a:hover {
    color: #8c3f23;
}

.subcat-icon-img,
.sub-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
    object-fit: contain;
    color: #666;
}


/* ==========================================
   FULLSCREEN SEARCH OVERLAY STYLES
   ========================================== */

.search-overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.search-overlay.open {
    display: block;
}

.close-search-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 45px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-search-btn:hover {
    color: #8c3f23;
}

.search-overlay-content {
    position: relative;
    top: 35%;
    width: 85%;
    max-width: 700px;
    margin: 0 auto;
}

.search-overlay-content form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #8c3f23;
    padding-bottom: 8px;
}

.search-overlay-content input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #ffffff;
    padding: 10px 15px;
    outline: none;
}

.search-overlay-content input[type="search"]::placeholder {
    color: #bbbbbb;
}

.search-overlay-content .search-submit {
    background: #8c3f23;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.search-overlay-content .search-submit:hover {
    background: #70311a;
}

/* ==========================================
   HEADER & OFF-CANVAS SIDEBAR STYLING
   ========================================== */

/* Header Main Base */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
}

/* Updated Width: 1400px */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Left: Hamburger Button */
.header-left {
    display: flex;
    align-items: center;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #000000;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.hamburger-btn:hover {
    color: #000000;
    opacity: 0.7;
}

/* Center: Site Name / Logo */
.header-center {
    text-align: center;
}

.site-title-logo {
    font-size: 20px;
    font-weight: 800;
    color: #93690d;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-center img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* Right: Icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    font-size: 19px;
    color: #000000;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.header-icon i {
    color: #000000;
}

.header-icon:hover {
    color: #000000;
    opacity: 0.7;
}

/* Cart Badge Count */
.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   OFF-CANVAS SIDEBAR (LEFT CATEGORIES)
   ========================================== */

.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* ডিফল্টভাবে আড়ালে থাকবে */
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.offcanvas-sidebar.active {
    left: 0; /* ক্লিক করলে বাম থেকে বের হয়ে আসবে */
}

.offcanvas-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
}

.offcanvas-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-offcanvas {
    background: none;
    border: none;
    font-size: 26px;
    color: #000000;
    cursor: pointer;
    line-height: 1;
}

.close-offcanvas:hover {
    opacity: 0.7;
}

/* Category List */
.offcanvas-body {
    padding: 10px 0;
    overflow-y: auto;
    flex: 1;
}

.offcanvas-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas-category-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.offcanvas-category-list li a:hover {
    background-color: #f9f9f9;
    opacity: 0.7;
}

.cat-icon {
    font-size: 22px;
    color: #000000;
    width: 20px;
    text-align: center;
}

.cat-icon-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 3px;
}

/* Responsive adjust for mobile */
@media (max-width: 576px) {
    .header-container {
        padding: 10px 15px;
    }
    .header-right {
        gap: 12px;
    }
    .site-title-logo {
        font-size: 17px;
    }
    .header-icon {
        font-size: 17px;
    }
}





/* ==========================================
   FOOTER SECTION STYLING
   ========================================== */

.site-footer {
    background-color: #111111;
    color: #cccccc;
    padding-top: 50px;
    margin-top: 40px;
    font-family: inherit;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    box-sizing: border-box;
}

/* Titles */
.footer-title {
    color: #f4b62e;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #ffffff;
}

/* Column 1: About & Logo */
.footer-logo a {
    color: #f4b62e;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 20px 0;
    color: #aaaaaa;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Links List */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Contact List */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #aaaaaa;
}

.footer-contact li i {
    color: #ffffff;
    width: 16px;
}

.footer-contact li a {
    color: #aaaaaa;
    text-decoration: none;
}

.footer-contact li a:hover {
    color: #ffffff;
}

/* Bottom Bar */
.footer-bottom {
    background-color: #080808;
    border-top: 1px solid #222222;
    padding: 18px 0;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    margin: 0;
    font-size: 13px;
    color: #888888;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 22px;
    color: #888888;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding-bottom: 20px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}


