/* ═══════════════════════════════════════════
   Petchegou — Mega-menu Header
   ═══════════════════════════════════════════ */

/* ── Hide old Elementor nav-menu row ─────── */
.elementor-location-header [data-id="925ea7e"] { display: none !important; }

/* ── Elementor icon color override ───────── */
.elementor-13 .elementor-element.elementor-element-d97791a.elementor-view-framed .elementor-icon,
.elementor-13 .elementor-element.elementor-element-d97791a.elementor-view-default .elementor-icon svg {
    color: #043507;
    fill: #043507;
}

/* ── Hide hamburger icon on tablet (768–1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-13 .elementor-element.elementor-element-d97791a { display: none !important; }
}

/* ── Keep header above overlay ───────────── */
.elementor-location-header {
    position: relative;
    z-index: 101;
}

/* ── Reset scope ──────────────────────────── */
.ptch-catbar-wrapper *, .ptch-catbar-wrapper *::before, .ptch-catbar-wrapper *::after,
.ptch-megamenu *, .ptch-megamenu *::before, .ptch-megamenu *::after,
#ptch-drawer *, #ptch-drawer *::before, #ptch-drawer *::after {
    box-sizing: border-box;
}

.ptch-catbar-wrapper a { text-decoration: none; }
.ptch-catbar-wrapper button { font-family: inherit; }
#ptch-drawer button { font: inherit; }
#ptch-drawer a { text-decoration: none; color: inherit; }
#ptch-drawer ul { list-style: none; margin: 0; padding: 0; }

/* ── Header wrapper (no longer used, kept for safety) ── */
#ptch-header {
    width: 100%;
}

/* ── Top row (logo + search + icons) ─────── */
.ptch-header-top {
    background: #043507;
    padding: 12px 0;
}

.ptch-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.ptch-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.ptch-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.ptch-logo-text {
    color: #BFE22B;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -.3px;
}

/* Search */
.ptch-search-form {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.ptch-search-form .ptch-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 28px;
    padding: 9px 18px;
    transition: border-color .2s;
}

.ptch-search-form .ptch-search-wrap:focus-within {
    border-color: rgba(191,226,43,.6);
}

.ptch-search-icon { color: #BFE22B; flex-shrink: 0; }

.ptch-search-form input[type="search"],
.ptch-search-form input[type="text"] {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    flex: 1;
    outline: none;
    min-width: 0;
}

.ptch-search-form input::placeholder { color: rgba(255,255,255,.5); }

/* Header icons */
.ptch-header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ptch-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 11px;
    line-height: 1.3;
    transition: color .2s;
    white-space: nowrap;
}

.ptch-icon-btn:hover { color: #BFE22B; }

.ptch-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #BFE22B;
    border-radius: 20px;
    padding: 9px 16px;
    color: #043507;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
    position: relative;
}

.ptch-cart-btn:hover { background: #d2f02f; }

.ptch-cart-badge {
    background: #043507;
    color: #BFE22B;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ── Mobile header ────────────────────────── */
.ptch-mobile-header {
    display: none;
    background: #043507;
    padding: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.ptch-hamburger {
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.ptch-hamburger:hover { background: rgba(255,255,255,.2); }

.ptch-mobile-cart {
    background: rgba(191,226,43,.15);
    border-radius: 8px;
    padding: 7px 9px;
    color: #BFE22B;
    position: relative;
    display: flex;
    align-items: center;
}

.ptch-mobile-cart .ptch-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #BFE22B;
    color: #043507;
    font-size: 9px;
    min-width: 16px;
    height: 16px;
}

.ptch-mobile-search {
    display: none;
    background: #043507;
    padding: 0 16px 12px;
}

.ptch-mobile-search .ptch-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;
    padding: 8px 14px;
}

.ptch-mobile-search input[type="search"] {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    flex: 1;
    outline: none;
}

.ptch-mobile-search input::placeholder { color: rgba(255,255,255,.5); }

/* ── Category bar ─────────────────────────── */
.ptch-catbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Connector strip (full width, catbar → modal) ─ */
#ptch-mm-connector {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: #BFE22B;
    z-index: 201;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

#ptch-mm-connector.open,
.ptch-catbar-wrapper:has(.ptch-cat-item:hover) #ptch-mm-connector {
    opacity: 1;
}

.ptch-catbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ptch-catbar-inner::-webkit-scrollbar { display: none; }

.ptch-cat-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #043507;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
    margin: 4px 0;
}

.ptch-cat-all:hover { background: #f0f7f0; }

.ptch-cat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 13px;
    color: #444;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
    margin: 4px 0;
    line-height: 1.4;
}

.ptch-cat-item:hover { background: #f0f7f0; color: #043507; }

.ptch-cat-item.active {
    background: #BFE22B;
    color: #043507;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    align-self: stretch;
    margin-bottom: 0;
    padding: 0 16px;
}

.ptch-cat-item.active svg { stroke: #043507; }

.ptch-promo-item {
    background: #BFE22B !important;
    color: #043507 !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
}

.ptch-promo-item:hover { background: #d2f02f !important; }

/* ── Mega-menu panel ──────────────────────── */
.ptch-megamenu {
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0 round 0 0 28px 28px);
    transition:
        clip-path .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s linear .35s;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 16px 40px rgba(4,53,7,.14);
    background: #fff;
    overflow: hidden;
}

.ptch-megamenu.open {
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0% 0 round 0 0 28px 28px);
    transition:
        clip-path .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s;
}

.ptch-mm-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ptch-mm-panel.active { display: grid; }

/* Grid variants */
.ptch-mm-grid-4 { grid-template-columns: minmax(200px, auto) 180px 1fr 240px; }
.ptch-mm-grid-3b { grid-template-columns: minmax(200px, auto) 180px 1fr; }
.ptch-mm-grid-3e { grid-template-columns: minmax(200px, auto) 180px 1fr; }
.ptch-mm-grid-2  { grid-template-columns: minmax(200px, auto) 1fr; }

/* Column base */
.ptch-mm-col { min-height: 220px; }

/* Col 1: subcategories */
.ptch-mm-col1 {
    background: #BFE22B;
    border-right: none;
    padding: 12px 0;
    border-bottom-left-radius: 43px;
    border-bottom-right-radius: 43px;
}

.ptch-mm-subcat {
    display: block;
    width: calc(100% - 20px);
    margin: 2px 10px;
    padding: 9px 14px;
    text-align: left;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    color: #043507;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.4;
    white-space: nowrap;
}

.ptch-mm-subcat:hover {
    background: rgba(4,53,7,.1);
    color: #043507;
}

.ptch-mm-subcat.active {
    background: #fff;
    color: #043507;
    font-weight: 400;
    border-radius: 10px 0 0 10px;
    width: calc(100% - 10px);
    margin: 2px 0 2px 10px;
}

.ptch-mm-viewall {
    display: block;
    margin: 8px 10px 4px;
    padding: 7px 14px;
    font-size: 12px;
    color: #043507;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 6px;
    transition: background .15s;
}

.ptch-mm-viewall:hover { background: rgba(4,53,7,.1); }

/* Col 2: sub-subcategories */
.ptch-mm-col2 {
    border-right: none;
    padding: 14px 0;
    background: #fff;
}

.ptch-mm-subsubs { display: none; }
.ptch-mm-subsubs.active { display: block; }

.ptch-megamenu .ptch-mm-subsub {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 400 !important;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin: 1px 8px;
    transition: background .12s, color .12s;
}

.ptch-mm-subsub:hover { background: #f0f7f0; color: #043507; }

.ptch-mm-viewall-sub {
    display: block;
    margin: 6px 10px 0;
    padding: 8px 14px;
    font-size: 12px;
    color: #043507;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #eee;
    border-radius: 0;
    transition: background .15s;
}

.ptch-mm-viewall-sub:hover { background: #e8f5e8; }

/* Col 3: extra section */
.ptch-mm-col3 {
    padding: 18px 20px;
}

.ptch-mm-extra-title {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ptch-mm-extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 0;
    background: none;
    border: none;
    margin-bottom: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    transition: color .12s;
}

.ptch-mm-extra-item:hover { color: #043507; }

.ptch-mm-extra-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e8;
    object-fit: cover;
    border: 2px solid #d0e8d0;
    transition: border-color .12s;
    flex-shrink: 0;
}

.ptch-mm-extra-item:hover .ptch-mm-extra-icon,
.ptch-mm-extra-item:hover .ptch-mm-extra-icon-empty {
    border-color: #8bc88b;
}

.ptch-mm-extra-icon-empty {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f5e8;
    border: 2px solid #d0e8d0;
    flex-shrink: 0;
    transition: border-color .12s;
}

/* Col 4: banner */
.ptch-mm-col4 { padding: 14px; }

.ptch-mm-banner {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    min-height: 180px;
}

.ptch-mm-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform .3s ease;
}

.ptch-mm-banner:hover img { transform: scale(1.03); }

/* ── Mega-menu overlay ────────────────────── */
#ptch-mm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s linear .35s;
}

#ptch-mm-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity .35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s;
}

/* ── Drawer overlay ───────────────────────── */
.ptch-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999;
}

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

/* ── Drawer ───────────────────────────────── */
.ptch-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: left .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
}

.ptch-drawer.open { left: 0; }

.ptch-drawer-head {
    background: #BFE22B;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 64px;
}

.ptch-drawer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ptch-drawer-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.ptch-drawer-logo-text {
    color: #043507;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.ptch-drawer-welcome {
    color: #043507;
    font-size: 12px;
    margin-bottom: 4px;
}

.ptch-drawer-login {
    color: #043507;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ptch-drawer-close {
    background: rgba(4,53,7,.12);
    border: none;
    color: #043507;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 11px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    transition: background .2s;
    font-family: inherit;
}

.ptch-drawer-close:hover { background: rgba(4,53,7,.22); }

/* Drawer body: sliding panels */
.ptch-drawer-body {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.ptch-drawer-l1,
.ptch-drawer-l2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: #fff;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.ptch-drawer-l1 { transform: translateX(0); }
.ptch-drawer-l1.slide-out { transform: translateX(-100%); }

.ptch-drawer-l2 { transform: translateX(100%); }
.ptch-drawer-l2.active { transform: translateX(0); }

/* L1 list */
.ptch-drawer-l1 ul { padding: 8px 0; }

.ptch-drawer-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    transition: background .15s;
}

.ptch-drawer-cat:hover { background: #f8fdf8; }

.ptch-drawer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e8;
    border: 2px solid #c8e6c8;
    object-fit: cover;
    flex-shrink: 0;
}

.ptch-drawer-icon-placeholder {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f5e8;
    border: 2px solid #c8e6c8;
    flex-shrink: 0;
}

.ptch-drawer-cat-name { flex: 1; font-weight: 500; }

.ptch-drawer-arrow { color: #bbb; flex-shrink: 0; }

/* L2 */
.ptch-drawer-l2-head {
    display: flex;
    align-items: center;
    background: #f8faf8;
    border-bottom: 2px solid #043507;
}

.ptch-drawer-back {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 14px 14px 14px 16px;
    background: none;
    border: none;
    border-right: 1px solid #ddeedd;
    cursor: pointer;
    color: #043507;
    font-family: inherit;
    transition: background .15s;
}

.ptch-drawer-back:hover { background: #e8f5e8; }

.ptch-drawer-l2-title {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.ptch-drawer-viewall {
    display: block;
    padding: 8px 16px 14px;
    font-size: 12px;
    color: #043507;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.ptch-drawer-l2 ul { padding: 8px 0; }

.ptch-drawer-subcat {
    display: block;
    width: 100%;
    padding: 13px 16px;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
    transition: background .12s, color .12s;
}

.ptch-drawer-subcat:hover { background: #f0f7f0; color: #043507; }

/* ── Drawer L2: expandable sub-subcategories ─ */
.ptch-drawer-subcat-exp {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ptch-drawer-exp-arrow {
    flex-shrink: 0;
    color: #bbb;
    transition: transform .2s ease;
}

.ptch-drawer-subcat-exp.open .ptch-drawer-exp-arrow {
    transform: rotate(180deg);
    color: #043507;
}

.ptch-drawer-subsubs {
    display: none;
    background: #f4faf4;
}

.ptch-drawer-subsubs.open { display: block; }

.ptch-drawer-subsub {
    display: block;
    padding: 13px 16px 13px 28px;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit;
    color: #333;
    text-decoration: none !important;
    border-bottom: 1px solid #eaeeea;
    transition: background .12s, color .12s;
}

.ptch-drawer-subsub:hover { background: #e0f0e0; color: #043507; }

.ptch-drawer-viewall-subsub {
    display: block;
    padding: 9px 16px 9px 28px;
    font-size: 12px;
    font-weight: 600;
    color: #043507;
    text-decoration: none;
    background: #e8f5e8;
    border-top: 1px solid #c8e0c8;
    transition: background .12s;
}

.ptch-drawer-viewall-subsub:hover { background: #d4ecd4; }

/* Drawer extras */
.ptch-drawer-extras {
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    background: #f8faf8;
}

.ptch-drawer-extra-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #043507;
    text-decoration: none;
    transition: background .12s;
}

.ptch-drawer-extra-link:hover { background: #e8f5e8; }

/* ── Mobile trigger button ────────────────── */
.ptch-mm-mobile-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #043507;
    font-family: inherit;
    border-radius: 8px;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.ptch-mm-mobile-trigger:hover { background: #f0f7f0; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 767px) {
    /* Catbar hidden on mobile; drawer opens via Elementor header icon (d97791a) */
    .ptch-catbar-wrapper { display: none; }

    /* Make Elementor header icon clearly clickable */
    .elementor-element-d97791a .elementor-icon,
    .elementor-element-d97791a .elementor-widget-container { cursor: pointer; }
}

@media (min-width: 768px) {
    .ptch-mm-mobile-trigger { display: none !important; }
    .ptch-mobile-header { display: none; }
    .ptch-mobile-search { display: none; }
}

/* ── Body padding compensation ────────────── */
body { padding-top: 0 !important; }
