/* =========================================
   Theme 1 Base Styles - Premium Global System
   ========================================= */

:root {
    /* Brand Fonts - Neeman's Modern Aesthetic */
    --font-heading: 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors */
    --t1-color-black: #0f172a;
    --t1-color-dark: #1e293b;
    --t1-color-white: #ffffff;
    --t1-color-gold: #0ea5e9;
    --t1-color-accent: #2563eb;
    --t1-color-gray: #64748b;
    --t1-color-light-gray: #f8fafc;
    --t1-border-color: #e2e8f0;

    /* Layout */
    --t1-container-width: 1400px;
    --t1-header-height: 80px;

    /* Transitions */
    --t1-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Announcement Bar */
.t4-announcement-bar {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--t1-color-white);
    color: var(--t1-color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--t1-transition);
}

ul {
    list-style: none;
}

.t1-container, .container {
    max-width: var(--t1-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 991px) {
    .t1-container, .container {
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .t1-container, .container {
        padding: 0 12px;
    }
}

/* =========================================
   GLOBAL NAVBAR
   ========================================= */
.t1-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--t1-transition);
    background: transparent;
    color: var(--t1-color-black);
    /* Default usually on light hero, but if transparent on dark hero needs handling. Assuming generic white/light page bg for base or hero handling */
    padding: 20px 0;
    color: #f5f5f5;
}

/* Scrolled State */
.t1-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: #121212;
}

/* Dark Navbar (for non-home pages) */
.t1-navbar-dark {
    background-color: var(--t1-color-white);
    color: var(--t1-color-black);
    position: relative;
    /* Make it flow with content, or keep fixed but with bg */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.t1-navbar-dark .t1-menu-link,
.t1-navbar-dark .t1-icon-btn {
    color: var(--t1-color-black);
}

.t1-navbar-dark .t1-logo-text {
    color: var(--t1-color-black);
}

.t1-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.t1-logo {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.t1-logo img {
    max-height: 60px;
    width: auto;
    transform: scale(1);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.t1-logo:hover img {
    filter: brightness(1.1);

}

@media (max-width: 992px) {
    .t1-logo img {
        transform: scale(1);
        transform-origin: center center;
    }
}

.t1-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Desktop Menu */
.t1-menu-desktop {
    display: flex;
    gap: 35px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.t1-menu-link {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.t1-menu-link:hover {
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.t1-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--t1-color-gold);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.8;
}

.t1-menu-link:hover::after {
    width: 100%;
}

/* Icons */
.t1-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.t1-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: inherit;
    position: relative;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t1-icon-btn:hover {
    transform: scale(1.1);
    color: var(--t1-color-gold);
}

.t1-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--t1-color-black);
    color: white;
    font-size: 10px;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Mobile Toggle */
.t1-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 1002;
}

.t1-mobile-toggle:active,
.t1-mobile-toggle:hover {
    background: #f1f5f9;
}

.t1-bar {
    width: 20px;
    height: 2px;
    background-color: var(--t1-color-black);
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.t1-mobile-toggle .t1-bar:nth-child(2) {
    width: 14px;
    align-self: flex-start;
    margin-left: 8px;
}

/* Homepage Mobile Toggle (Non-scrolled) */
@media (max-width: 992px) {
    .t1-navbar:not(.t1-navbar-dark):not(.scrolled) .t1-mobile-toggle {
        background: transparent;
    }

    .t1-navbar:not(.t1-navbar-dark):not(.scrolled) .t1-bar {
        background-color: var(--t1-color-white);
    }
}

/* Mobile Overlay */
.t1-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(2px);
}

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

/* Theme 4 Mobile Side Drawer */
.t1-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.2);
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.t1-mobile-menu.active {
    transform: translateX(0);
}

/* Drawer Header & Logo Section */
.t1-drawer-profile {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.t1-drawer-full-logo {
    max-width: 140px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.t1-drawer-logo-text {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

/* Close Button Pill */
.t1-menu-close {
    position: relative;
    top: auto;
    right: auto;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.t1-menu-close:hover {
    background: #e2e8f0;
    color: #000000;
    transform: scale(1.05);
}

/* Drawer Search Bar */
.t1-drawer-search {
    padding: 14px 18px 6px;
}

.t1-drawer-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.t1-drawer-search-form:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.t1-drawer-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    padding: 6px 0;
}

.t1-drawer-search-form input::placeholder {
    color: #94a3b8;
}

.t1-drawer-search-form button {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t1-drawer-search-form button:hover {
    color: #0f172a;
}

/* Drawer Dividers & Section Titles */
.t1-drawer-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 10px 18px;
}

.t4-drawer-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 12px 14px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Drawer Navigation Items */
.t1-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 14px 24px;
}

.t1-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.t1-drawer-link i {
    font-size: 16px;
    width: 22px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.t1-drawer-link:hover,
.t1-drawer-link.active {
    background: #f1f5f9;
    color: #0f172a;
}

.t1-drawer-link:hover i,
.t1-drawer-link.active i {
    color: #0f172a;
}

.t1-drawer-link span {
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .t1-menu-desktop {
        display: none;
    }

    /* Reorder layout for Theme 1 navbar only */
    .t1-navbar .t1-logo {
        order: 1;
        margin-right: auto;
    }

    .t1-navbar .t1-icons {
        order: 2;
        margin-right: 15px;
    }

    .t1-navbar .t1-mobile-toggle {
        display: flex;
        order: 3;
    }

    /* When menu is open, change toggle to X */
    .t1-mobile-toggle.active .t1-bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
        width: 20px;
    }

    .t1-mobile-toggle.active .t1-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .t1-mobile-toggle.active .t1-bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
        width: 20px;
    }

    .t1-hide-mobile {
        display: none !important;
    }

    /* Mobile Search Active State */
    .t1-navbar-inner.search-active-mode .t1-logo {
        display: none;
    }

    .t1-navbar-inner.search-active-mode .t1-icons {
        flex-grow: 1;
        justify-content: flex-end;
    }

    .t1-navbar-inner.search-active-mode .t1-search-wrapper {
        flex-grow: 1;
    }

    /* Override width for active search form on mobile */
    .t1-navbar-inner.search-active-mode .t1-search-wrapper.active .t1-search-form {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   GLOBAL FOOTER
   ========================================= */
.t1-footer {
    background-color: var(--t1-color-dark);
    color: var(--t1-color-white);
    padding: 80px 0 30px;
    font-size: 15px;
}

.t1-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.t1-footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--t1-color-white);
    letter-spacing: 0.5px;
}

.t1-footer-desc {
    color: var(--t1-color-gray);
    margin-bottom: 20px;
    max-width: 300px;
}

.t1-footer-desc-sm {
    font-size: 14px;
}

.t1-footer-col .t1-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.t1-footer-col .t1-logo img {
    filter: brightness(0) invert(1);
}

.t1-footer-col .t1-logo-text {
    color: var(--t1-color-white);
}

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

.t1-footer-links a {
    color: #aeaeae;
    transition: 0.3s;
}

.t1-footer-links a:hover {
    color: var(--t1-color-white);
    padding-left: 5px;
}

/* Newsletter */
.t1-newsletter-input-group {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.t1-newsletter-input-group input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.t1-newsletter-input-group button {
    background: none;
    border: none;
    color: var(--t1-color-white);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: 600;
}

.t1-socials {
    display: flex;
    gap: 20px;
}

.t1-socials a {
    color: var(--t1-color-white);
    font-size: 18px;
    opacity: 0.7;
}

.t1-socials a:hover {
    opacity: 1;
    color: var(--t1-color-gold);
}

/* Bottom Bar */
.t1-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--t1-color-gray);
    font-size: 14px;
}

.t1-payment-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

@media (max-width: 992px) {
    .t1-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

    .t1-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   SEARCH BAR (Glassmorphism)
   ========================================= */
.t1-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.t1-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 10;
}

.t1-search-wrapper.active .t1-search-form {
    width: 250px;
    opacity: 1;
    visibility: visible;
}

/* Hide toggle button when active to prevent overlap */
.t1-search-wrapper.active .t1-search-toggle {
    opacity: 0;
    pointer-events: none;
}


.t1-search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    padding: 5px;
    height: auto;
}

/* Placeholder colors */
.t1-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Button inside search */
.t1-search-form button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: transform 0.3s ease;
}

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

/* Adjust context for scrolled/dark navbar */
.t1-navbar.scrolled .t1-search-form,
.t1-navbar-dark .t1-search-form {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--t1-color-black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.t1-navbar.scrolled .t1-search-form input,
.t1-navbar-dark .t1-search-form input {
    color: var(--t1-color-black);
}

.t1-navbar.scrolled .t1-search-form input::placeholder,
.t1-navbar-dark .t1-search-form input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Mobile Drawer Search */
.t1-drawer-search {
    padding: 15px 25px;
}

.t1-drawer-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--t1-color-light-gray);
    border-radius: 12px;
    padding: 10px 15px;
}

.t1-drawer-search-form input {
    border: none;
    background: none;
    flex-grow: 1;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--t1-color-black);
}

.t1-drawer-search-form button {
    background: none;
    border: none;
    color: var(--t1-color-gray);
    font-size: 18px;
}

/* =========================================
   NEEMAN'S EXACT HEADER & CATEGORY BAR STYLING
   ========================================= */
.t4-announcement-bar {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.t4-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.t4-top-bar {
    padding: 14px 0;
}

.t4-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.t4-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.t4-logo-txt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #111111;
}

.t4-brand-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.t4-main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.t4-nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #111111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.t4-nav-item i {
    font-size: 10px;
    opacity: 0.6;
}

.t4-nav-item:hover {
    color: #e11d48;
}

.t4-nav-highlight {
    color: #e11d48;
}

.t4-header-search {
    flex: 1;
    max-width: 360px;
}

.t4-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
}

.t4-search-box i {
    color: #6b7280;
    font-size: 14px;
}

.t4-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    color: #111111;
}

.t4-search-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    padding: 2px 4px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: auto;
}

.t4-search-clear-btn:hover {
    color: #111111;
}

.t4-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

button.t4-search-toggle-btn {
    display: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: #111111;
}

.t4-mobile-search-dropdown {
    display: none !important;
}

@media (max-width: 991px) {
    .t4-top-bar {
        padding: 12px 20px !important;
    }
    .t4-main-nav {
        display: none !important;
    }
    .t4-header-search {
        display: none !important;
    }
    .t4-top-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
    }
    .t1-mobile-toggle {
        display: flex !important;
        order: 1;
        z-index: 2;
    }
    .t4-brand-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 1;
    }
    .t4-brand-logo img {
        max-height: 46px;
        width: auto;
        object-fit: contain;
    }
    .t4-logo-txt {
        font-size: 32px;
    }
    .t4-header-actions {
        order: 3;
        display: flex;
        align-items: center;
        gap: 16px;
        z-index: 2;
    }
    button.t4-search-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .t4-header-actions .t4-account-btn {
        display: none !important;
    }
    .t4-header-actions .t4-action-btn span {
        display: none !important;
    }

    /* Mobile Search Dropdown */
    .t4-mobile-search-dropdown.active {
        display: block !important;
    }

    .t4-mobile-search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f3f4f6;
        border-radius: 50px;
        padding: 8px 16px;
        border: 1.5px solid #e5e7eb;
    }

    .t4-mobile-search-form i {
        color: #6b7280;
        font-size: 14px;
    }

    .t4-mobile-search-form input {
        border: none;
        background: transparent;
        outline: none;
        width: 100%;
        font-size: 14px;
        font-weight: 500;
        color: #111111;
    }

    .t4-mobile-search-close {
        background: none;
        border: none;
        cursor: pointer;
        color: #6b7280;
        font-size: 16px;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.t4-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #111111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.t4-action-btn i {
    font-size: 18px;
}

.t4-icon-rel {
    position: relative;
}

.t4-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #111111;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Quick Tiles Bar */
.t4-quick-cat-bar {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0 18px 0;
    margin-bottom: 24px;
}

.t4-quick-cat-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

.t4-quick-cat-scroll::-webkit-scrollbar {
    display: none;
}

.t4-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 86px;
    text-decoration: none;
    color: #111111;
    transition: transform 0.2s ease;
}

.t4-cat-tile:hover {
    transform: translateY(-3px);
}

.t4-tile-img {
    width: 76px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #111111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.t4-cat-tile span {
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    color: #334155;
}

/* Mobile Drawer Category Accordion Tree */
.t4-drawer-cat-section {
    padding: 10px 20px 15px 20px;
}

.t4-drawer-cat-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t4-drawer-tree, .t4-tree-sub, .t4-tree-subsub {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t4-tree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.t4-tree-row:hover {
    background-color: #f8fafc;
}

.t4-tree-link {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    flex: 1;
}

.t4-tree-sublink {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    flex: 1;
}

.t4-tree-subsublink {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
}

.t4-tree-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 10px;
    border-radius: 8px;
    transition: transform 0.25s ease, color 0.2s ease, background-color 0.2s ease;
}

.t4-tree-toggle:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.t4-tree-toggle.active {
    transform: rotate(90deg);
    color: #0f172a;
}

.t4-tree-sub {
    padding-left: 14px;
    border-left: 2px solid #f1f5f9;
    margin-left: 12px;
    margin-top: 4px;
    margin-bottom: 6px;
}

.t4-tree-subsub {
    padding-left: 14px;
    border-left: 2px solid #e2e8f0;
    margin-left: 12px;
    margin-top: 2px;
    margin-bottom: 4px;
}

/* Theme 4 Custom Logout Confirmation Modal */
.t4-logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: t4FadeIn 0.2s ease-out;
}

.t4-logout-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 28px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    animation: t4ScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes t4FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes t4ScaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.t4-logout-modal-icon {
    width: 56px;
    height: 56px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.t4-logout-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.t4-logout-modal-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.t4-logout-modal-actions {
    display: flex;
    gap: 12px;
}

.t4-logout-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.t4-logout-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.t4-logout-btn-cancel:hover {
    background: #e5e7eb;
    color: #111111;
}

.t4-logout-btn-confirm {
    background: #dc2626;
    color: #ffffff;
}

.t4-logout-btn-confirm:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* Theme 4 Mega Menu Dropdown */
.t4-top-bar-inner {
    position: relative;
}

.t4-nav-dropdown-wrap {
    position: static;
    display: inline-flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.t4-mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 840px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
    border: 1px solid #f1f5f9;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.t4-mega-menu::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
}

.t4-mega-menu-offers {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
}

.t4-mega-menu.active-show,
.t4-mega-menu.active-pinned {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.t4-mega-menu-inner {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
}

/* Sidebar Categories */
.t4-mega-sidebar {
    border-right: 1px solid #f1f5f9;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.t4-mega-sidebar-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
    display: block;
}

.t4-mega-cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t4-mega-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t4-mega-cat-item a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.t4-mega-cat-item i {
    font-size: 11px;
    color: #cbd5e1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.t4-mega-cat-item:hover,
.t4-mega-cat-item.active {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.t4-mega-cat-item:hover i,
.t4-mega-cat-item.active i {
    color: #000000;
    transform: translateX(3px);
}

.t4-mega-all-btn,
.t4-mega-view-all {
    font-size: 12.5px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.t4-mega-all-btn:hover,
.t4-mega-view-all:hover {
    gap: 10px;
}

/* Right Products Grid */
.t4-mega-products-wrap {
    min-width: 0;
}

.t4-mega-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.t4-mega-head-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #0f172a;
}

.t4-mega-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.t4-mega-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.t4-mega-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.t4-mega-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #ffffff;
    display: block;
}

.t4-mega-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.t4-mega-card:hover .t4-mega-card-img img {
    transform: scale(1.06);
}

.t4-mega-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t4-mega-card-brand {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #94a3b8;
    text-transform: uppercase;
}

.t4-mega-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t4-mega-card-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.t4-mega-price {
    font-size: 12.5px;
    font-weight: 800;
    color: #111111;
}

.t4-mega-reg-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.t4-mega-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    background: #dc2626;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

@media (max-width: 991px) {
    .t4-mega-menu {
        display: none !important;
    }
}

/* Theme 4 Drawer Accordion & Tree Styles */
.t4-drawer-accordion-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.t4-tree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.t4-tree-toggle {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.t4-tree-toggle.active {
    transform: rotate(90deg);
    color: #111111;
}

.t4-tree-sublink {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.t4-tree-sublink:hover {
    background: #f1f5f9;
    color: #111111;
}

/* Common Uniform Tile Size for Drawer Product Cards */
.t4-drawer-mini-card {
    flex: 0 0 125px !important;
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    height: 185px !important;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.t4-offer-mini-card {
    border-color: #cbd5e1 !important;
}

.t4-drawer-mini-img {
    width: 100%;
    height: 105px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    flex-shrink: 0;
}

.t4-drawer-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t4-drawer-mini-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #dc2626;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.t4-drawer-mini-title {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 6px;
    height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.t4-drawer-mini-price {
    font-size: 11.5px;
    font-weight: 800;
    color: #111111;
    margin-top: auto;
}