/* Left Sidebar Styles */
.gt-left-sidebar-wrapper {
    position: relative;
}

.gt-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gt-sidebar-toggle:hover {
    transform: scale(1.05);
}

.gt-left-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    color: #ecf0f1;
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.gt-left-sidebar.active {
    left: 0;
}

.gt-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid;
}

.gt-sidebar-logo {
    flex: 1;
}

.gt-sidebar-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.gt-sidebar-logo img {
    max-height: 50px;
    width: auto;
}

.gt-sidebar-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.gt-sidebar-close:hover {
    color: #e74c3c;
}

.gt-sidebar-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.gt-sidebar-search {
    margin-bottom: 20px;
    position: relative;
    flex-shrink: 0;
}

.gt-sidebar-search input[type="text"] {
    width: 100%;
    padding: 12px 80px 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gt-sidebar-search input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.gt-sidebar-search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.gt-sidebar-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.gt-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.gt-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.gt-sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.gt-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gt-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gt-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-sidebar-menu > li {
    margin-bottom: 5px;
}

.gt-sidebar-menu > li {
    position: relative;
}

.gt-sidebar-menu > li > a {
    display: block;
    padding: 12px 45px 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.gt-sidebar-menu > li > a:hover,
.gt-sidebar-menu > li.active > a {
    padding-left: 20px;
}

.gt-sidebar-menu .dropdown-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    pointer-events: auto;
}

.gt-sidebar-menu .dropdown-toggle.active {
    transform: translateY(-50%) rotate(180deg);
}

.gt-sidebar-menu .dropdown-toggle i {
    display: block;
    line-height: 1;
}

.gt-sidebar-menu li.menu-item-has-children > ul {
    display: none;
}

.gt-sidebar-menu ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.gt-sidebar-menu ul li a {
    display: block;
    padding: 8px 15px;
    color: rgba(236, 240, 241, 0.8);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gt-sidebar-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.gt-sidebar-footer {
    padding: 20px;
    border-top: 2px solid;
    flex-shrink: 0;
}

.gt-sidebar-user {
    margin-bottom: 15px;
}

.gt-sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.gt-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gt-sidebar-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
}

.gt-sidebar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gt-sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
}

.gt-sidebar-avatar {
    flex-shrink: 0;
}

.gt-sidebar-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid;
}

.gt-sidebar-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.gt-sidebar-username {
    font-weight: 600;
    font-size: 15px;
    color: #ecf0f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-sidebar-useremail {
    font-size: 12px;
    color: rgba(236, 240, 241, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-sidebar-user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gt-sidebar-link {
    display: block;
    padding: 10px 15px;
    color: #ecf0f1 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.gt-sidebar-link:hover,
.gt-sidebar-link:focus {
    padding-left: 20px;
    text-decoration: none !important;
}

.gt-sidebar-social {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gt-sidebar-social ul,
.gt-sidebar-social .gt-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-sidebar-social li,
.gt-sidebar-social .gt-social-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gt-sidebar-social a,
.gt-sidebar-social .gt-social-links a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.gt-sidebar-social a:hover,
.gt-sidebar-social a:focus,
.gt-sidebar-social .gt-social-links a:hover,
.gt-sidebar-social .gt-social-links a:focus {
    transform: translateY(-3px);
    text-decoration: none !important;
}

.gt-sidebar-cart {
    display: block;
    padding: 12px 15px;
    text-decoration: none !important;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gt-sidebar-cart:hover,
.gt-sidebar-cart:focus {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.gt-cart-count {
    font-weight: bold;
    margin-left: 5px;
}

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

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

/* Mobile Header Styles */
.gt-header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991px) {
    .gt-header-mobile {
        display: flex;
    }
}

.gt-header-mobile .gt-logo {
    flex: 0 0 auto;
}

.gt-header-mobile .gt-logo img {
    max-height: 40px;
    width: auto;
}

.gt-header-mobile .gt-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gt-header-mobile .gt-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gt-header-mobile .gt-icon svg {
    width: 20px;
    height: 20px;
}

.gt-header-mobile .gt-icon svg g,
.gt-header-mobile .gt-icon svg path {
    fill: #333;
    transition: fill 0.3s ease;
}

.gt-header-mobile .gt-icon:hover svg g,
.gt-header-mobile .gt-icon:hover svg path {
    fill: #FFC311;
}

.gt-header-mobile .gt-icon-shop span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.gt-header-mobile .gt-icon-mobile-user a {
    color: #333;
    font-size: 18px;
    transition: color 0.3s ease;
}

.gt-header-mobile .gt-icon-mobile-user a:hover {
    color: #FFC311;
}

.gt-header-cart-link {
    text-decoration: none;
}

/* Desktop/Mobile Display Control */
.gt-desktop-only {
    display: block;
}

.gt-mobile-only {
    display: none;
}

/* Disable sticky header when left sidebar is active */
body:has(.gt-left-sidebar-wrapper) .gt-header-fixed,
body:has(.gt-left-sidebar-wrapper) header.gt-header-fixed {
    display: none !important;
}

.gt-left-sidebar-wrapper ~ .gt-header-fixed {
    display: none !important;
}

.gt-header-fixed {
    display: none !important;
}

@media (min-width: 992px) {
    body:has(.gt-left-sidebar-wrapper) .gt-header-fixed {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .gt-desktop-only {
        display: none !important;
    }
    
    .gt-mobile-only {
        display: block !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gt-left-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .gt-sidebar-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.gt-sidebar-close {
    background-color: transparent !important; 
}

.gt-sidebar-content .dropdown-toggle::after {
    content: none !important;
}