/* 4-Level Modern Category Megamenu Block - Desktop Stylesheet */

.paktrees-menu-root-container {
    font-family: sans-serif;
    position: relative;
    width: 100%;
}

/* RTL Layout Direction Support */
.paktrees-menu-root-container.pm-rtl {
    direction: rtl;
    text-align: right;
}

/* ==========================================
   DESKTOP COLUMN GRID STYLES (No side tabs, pure mega menu columns)
   ========================================== */
.pm-desktop-menu-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.pm-category-megamenu-block {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    width: 100%;
    max-height: 520px; /* Scrollable panel */
    overflow-y: auto;
}

/* Scrollbar Customization for clean premium feel */
.pm-category-megamenu-block::-webkit-scrollbar {
    width: 6px;
}
.pm-category-megamenu-block::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.pm-category-megamenu-block::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}
.pm-category-megamenu-block::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* Grid Layout: 4 columns per row */
.pm-megamenu-grid-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 25px;
}

.pm-megamenu-col {
    display: flex;
    flex-direction: column;
}

/* Column Header (Level 2: e.g. INDOOR PLANTS, SUCCULENTS) */
.pm-col-title-header {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 12px 0;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-col-title-header a {
    color: #28a745;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pm-col-title-header a:hover {
    color: #1b5e20;
}

/* List Items Container */
.pm-col-level3-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-col-level3-item {
    font-size: 13px;
    line-height: 1.4;
}

.pm-col-level3-item a {
    color: #555555;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pm-col-level3-item a:hover {
    color: #28a745;
}

/* Hidden Level 3 items by default (first 5 limit) */
.pm-col-level3-hidden {
    display: none;
}

/* Bold subheadings for Level 3 items with children */
.pm-col-level3-heading-bold {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #333333;
    margin-bottom: 4px;
    margin-top: 4px;
    cursor: pointer;
    user-select: none;
}

.pm-col-level3-heading-bold a {
    color: #333333 !important;
}

.pm-col-level3-heading-bold a:hover {
    color: #28a745 !important;
}

/* Toggle Arrow for Level 4 */
.pm-lvl4-toggle-arrow {
    font-size: 10px;
    color: #888888;
    transition: transform 0.2s ease;
    display: inline-block;
    padding: 0 4px;
}

.pm-arrow-rotated {
    transform: rotate(90deg);
    color: #28a745;
}

/* Level 4 sub-varieties list under Level 3 subheadings (collapsed by default) */
.pm-col-level4-list {
    display: none;
    list-style: none;
    padding-left: 10px;
    margin: 3px 0 6px 0;
    flex-direction: column;
    gap: 4px;
    border-left: 1px solid #e2f0d9;
}

/* RTL list border */
.pm-rtl .pm-col-level4-list {
    padding-left: 0;
    padding-right: 10px;
    border-left: none;
    border-right: 1px solid #e2f0d9;
}

.pm-col-level4-list a {
    color: #666666;
    font-size: 12px;
    text-decoration: none !important;
}

.pm-col-level4-list a:hover {
    color: #28a745;
}

/* Toggle Button for More/Less */
.pm-col-more-btn {
    background: none;
    border: none;
    color: #28a745;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    outline: none;
}

.pm-col-more-btn:hover {
    color: #1b5e20;
    text-decoration: underline;
}


/* ==========================================
   NEW MOBILE COLLAPSIBLE DRAWER MENU STYLES
   ========================================== */
.paktrees-mobile-menu-container {
    width: 100%;
    box-sizing: border-box;
    font-family: sans-serif;
    text-align: left;
}

.paktrees-mobile-menu-container.pm-rtl {
    direction: rtl;
    text-align: right;
}

.pm-mob-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.pm-mob-menu-item {
    display: block;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.pm-mob-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 48px;
}

.pm-mob-item-link {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.pm-mob-menu-item.has-children > .pm-mob-item-row > .pm-mob-item-link {
    font-weight: 700;
}

.pm-mob-arrow-opener {
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    transition: background-color 0.2s ease;
}

.pm-rtl .pm-mob-arrow-opener {
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.pm-mob-arrow-opener:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Opener Caret Icon styling */
.pm-mob-arrow-opener::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #888888;
    border-bottom: 2px solid #888888;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-bottom: 2px;
}

.pm-mob-arrow-opener.expanded::after {
    transform: rotate(-135deg);
    border-color: #28a745;
    margin-bottom: -2px;
}

/* Sub-menus nesting styles */
.pm-mob-submenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #fcfdfc;
}

/* Indentations for deeper levels */
.pm-mob-depth-1 > .pm-mob-menu-item > .pm-mob-item-row > .pm-mob-item-link {
    padding-left: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
}

.pm-rtl .pm-mob-depth-1 > .pm-mob-menu-item > .pm-mob-item-row > .pm-mob-item-link {
    padding-left: 15px;
    padding-right: 30px;
}

.pm-mob-depth-2 > .pm-mob-menu-item > .pm-mob-item-row > .pm-mob-item-link {
    padding-left: 45px;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
}

.pm-rtl .pm-mob-depth-2 > .pm-mob-menu-item > .pm-mob-item-row > .pm-mob-item-link {
    padding-left: 15px;
    padding-right: 45px;
}
