/* ===== GG Mobile Menu ===== */

/* Mobile header bar — only visible <= 767px */
.gg-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 15px;
    align-items: center;
    justify-content: space-between;
}

.gg-mobile-header__hamburger {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    line-height: 0;
}

.gg-mobile-header__hamburger svg {
    width: 24px;
    height: 24px;
    fill: var(--gg-dark, #1E1E1C);
}

.gg-mobile-header__logo img {
    height: 40px;
    width: auto;
}

.gg-mobile-header__cart {
    position: relative;
    color: var(--gg-dark, #1E1E1C);
    text-decoration: none;
    line-height: 0;
    padding: 8px;
}

.gg-mobile-header__cart svg {
    width: 24px;
    height: 24px;
    fill: var(--gg-dark, #1E1E1C);
}

.gg-mobile-header__cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gg-primary, #00A1E1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Off-canvas overlay */
.gg-offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gg-offcanvas-overlay.active {
    display: block;
    opacity: 1;
}

/* Off-canvas panel */
.gg-offcanvas {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gg-offcanvas.open {
    left: 0;
}

/* Panel header — logo + close */
.gg-offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.gg-offcanvas__logo img {
    height: 35px;
    width: auto;
}

.gg-offcanvas__close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--gg-dark, #1E1E1C);
}

/* Search bar */
.gg-offcanvas__search {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.gg-offcanvas__search .dgwt-wcas-search-wrapp {
    width: 100% !important;
}

/* Tabs */
.gg-offcanvas__tabs {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    flex-shrink: 0;
}

.gg-offcanvas__tab {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.gg-offcanvas__tab.active {
    color: var(--gg-dark, #1E1E1C);
    border-bottom-color: var(--gg-primary, #00A1E1);
}

/* Tab content area */
.gg-offcanvas__content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gg-offcanvas__panel {
    display: none;
}

.gg-offcanvas__panel.active {
    display: block;
}

/* Category list */
.gg-offcanvas__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gg-offcanvas__cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.gg-offcanvas__cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--gg-dark, #1E1E1C);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.gg-offcanvas__cat-link:hover {
    background: #f8f8f8;
}

.gg-offcanvas__cat-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
}

/* Subcategory view — back button */
.gg-offcanvas__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f8f8f8;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gg-dark, #1E1E1C);
}

.gg-offcanvas__back-arrow {
    font-size: 14px;
}

/* Subcategory list */
.gg-offcanvas__subcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gg-offcanvas__subcat-item {
    border-bottom: 1px solid #f0f0f0;
}

.gg-offcanvas__subcat-link {
    display: block;
    padding: 12px 20px;
    color: var(--gg-dark, #1E1E1C);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s ease;
}

.gg-offcanvas__subcat-link:hover {
    background: #f8f8f8;
    color: var(--gg-primary, #00A1E1);
}

/* View all link at top of subcategories */
.gg-offcanvas__subcat-link--all {
    font-weight: 600;
    color: var(--gg-primary, #00A1E1);
}

/* Useful links list */
.gg-offcanvas__links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gg-offcanvas__links-item {
    border-bottom: 1px solid #f0f0f0;
}

.gg-offcanvas__links-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--gg-dark, #1E1E1C);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.gg-offcanvas__links-link:hover {
    background: #f8f8f8;
}

.gg-offcanvas__links-icon {
    width: 18px;
    text-align: center;
    color: #999;
    flex-shrink: 0;
}

/* Contact section at bottom */
.gg-offcanvas__contact {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
    background: #fafafa;
}

.gg-offcanvas__contact-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gg-dark, #1E1E1C);
    margin: 0 0 10px 0;
}

.gg-offcanvas__contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.gg-offcanvas__contact-item:hover {
    color: var(--gg-primary, #00A1E1);
}

.gg-offcanvas__contact-icon {
    width: 16px;
    text-align: center;
    color: #999;
}

/* ===== RESPONSIVE: show mobile header, hide desktop header ===== */
@media (max-width: 767px) {
    .gg-mobile-header {
        display: flex;
    }

    /* Hide Elementor desktop header rows */
    [data-elementor-type="header"] > .e-con > .e-con {
        display: none !important;
    }
}

/* Prevent body scroll when menu is open */
body.gg-offcanvas-open {
    overflow: hidden;
}
