/* ============================================
   Plate Mega Menu v3 — 5-column mockup layout
   ============================================ */

.pmm-mega-menu.pmm-v3 {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Panel container */
.pmm-v3 .pmm-panel {
    padding: 28px 24px 20px;
    background: #fff;
    border: none;
    border-radius: 0;
}

/* Grid: 5 columns — 4 product cols of equal width + promo col */
.pmm-v3 .pmm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 240px;
    gap: 0;
}

/* Each column */
.pmm-v3 .pmm-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px;
    border-right: 1px solid #e5e7eb;
}

.pmm-v3 .pmm-col:last-child,
.pmm-v3 .pmm-col:nth-last-child(2) {
    border-right: none;
}

/* ============================================
   Category header (icon + red title)
   ============================================ */

.pmm-v3 .pmm-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pmm-v3 .pmm-category-icon {
    flex-shrink: 0;
}

.pmm-v3 .pmm-category-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E31B23;
    line-height: 1;
}

/* ============================================
   Subcategory group
   ============================================ */

.pmm-v3 .pmm-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.pmm-v3 .pmm-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pmm-v3 .pmm-subcategory-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* ============================================
   Items list (thumbnail + text)
   ============================================ */

.pmm-v3 .pmm-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pmm-v3 .pmm-items .pmm-item + .pmm-item {
    border-top: 1px solid #ebebeb;
    margin-top: 4px;
    padding-top: 10px;
}

/* Single item — horizontal layout: thumb + text */
.pmm-v3 .pmm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    transition: background-color 0.15s;
}

.pmm-v3 .pmm-item:hover {
    background: #f5f5f5;
}

/* Thumbnail */
.pmm-v3 .pmm-item-thumb {
    width: 52px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 3px;
    background: transparent;
}

.pmm-v3 .pmm-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text block */
.pmm-v3 .pmm-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.pmm-v3 .pmm-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    text-decoration: none;
}

.pmm-v3 .pmm-item:hover .pmm-item-title {
    color: #E31B23;
}

.pmm-v3 .pmm-item-desc {
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.35;
    color: #6b7280;
}

/* ============================================
   Compact column (col 4 — simpler items)
   ============================================ */

.pmm-v3 .pmm-col-compact .pmm-item {
    align-items: center;
    padding: 5px 4px;
}

.pmm-v3 .pmm-col-compact .pmm-item-thumb {
    width: 36px;
    height: 32px;
    background: transparent;
    border-radius: 4px;
}

.pmm-v3 .pmm-col-compact .pmm-item-title {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.pmm-v3 .pmm-col-compact .pmm-item:hover .pmm-item-title {
    color: #E31B23;
    text-decoration: none;
}

/* ============================================
   Promo column (right)
   ============================================ */

.pmm-v3 .pmm-col-promo {
    padding: 0 0 0 0;
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Promo banner */
.pmm-v3 .pmm-promo-banner {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    position: relative;
    background: #1a1a1a;
}

.pmm-v3 .pmm-promo-bg {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.pmm-v3 .pmm-promo-banner:hover .pmm-promo-bg {
    opacity: 1;
}

.pmm-v3 .pmm-promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.pmm-v3 .pmm-promo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pmm-v3 .pmm-promo-pre {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
}

.pmm-v3 .pmm-promo-headline {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.pmm-v3 .pmm-promo-tagline {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin-top: 4px;
}

/* CTA box at bottom of banner */
.pmm-v3 .pmm-promo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #E31B23;
    color: #fff;
    transition: background 0.2s;
}

.pmm-v3 .pmm-promo-banner:hover .pmm-promo-cta {
    background: #c8151d;
}

.pmm-v3 .pmm-promo-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmm-v3 .pmm-promo-cta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

.pmm-v3 .pmm-promo-cta-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
}

.pmm-v3 .pmm-promo-cta-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
}

/* ============================================
   Resources section (below promo)
   ============================================ */

.pmm-v3 .pmm-resources {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 14px 16px;
}

.pmm-v3 .pmm-resources-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pmm-v3 .pmm-resources-icon {
    flex-shrink: 0;
    color: #E31B23;
}

.pmm-v3 .pmm-resources-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.pmm-v3 .pmm-resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.15s;
    border-top: 1px solid #e0e0e0;
}

.pmm-v3 .pmm-resource-link svg {
    color: #E31B23;
    flex-shrink: 0;
}

.pmm-v3 .pmm-resource-link:hover {
    color: #E31B23;
}

/* ============================================
   Bottom badges bar
   ============================================ */

.pmm-v3 .pmm-badges-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0 calc((100vw - 1400px) / 2);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .pmm-v3 .pmm-badges-bar {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.pmm-v3 .pmm-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-right: 1px solid #e5e7eb;
}

.pmm-v3 .pmm-badge:last-child {
    border-right: none;
}

.pmm-v3 .pmm-badge-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.pmm-v3 .pmm-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pmm-v3 .pmm-badge-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.pmm-v3 .pmm-badge-desc {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
}

/* ============================================
   Mobile nav — accordion with images
   ============================================ */

.lqd-mobile-main-nav .pmm-v3 .pmm-badges-bar {
    display: none !important;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-panel {
    padding: 8px 0;
    background: transparent;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-col {
    border-right: none;
    border-bottom: none;
    padding: 0;
}

/* Category header — accordion toggle */
.lqd-mobile-main-nav .pmm-v3 .pmm-category-header {
    margin-bottom: 0;
    padding: 14px 16px;
    background: #f7f7f8;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-category-header::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-category-header.pmm-open::after {
    transform: translateY(-30%) rotate(-135deg);
}

.lqd-mobile-main-nav .pmm-v3 .pmm-category-title {
    font-size: 13px;
}

/* Groups — collapsed by default on mobile */
.lqd-mobile-main-nav .pmm-v3 .pmm-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-category-header.pmm-open ~ .pmm-group {
    max-height: 2000px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-category-header.pmm-open ~ .pmm-group:last-child {
    border-bottom: 1px solid #e5e7eb;
}

/* Subcategory title on mobile */
.lqd-mobile-main-nav .pmm-v3 .pmm-subcategory-title {
    font-size: 14px;
    margin: 0;
    padding: 12px 16px 8px;
    color: #1a1a1a;
    background: #fff;
}

/* Items on mobile */
.lqd-mobile-main-nav .pmm-v3 .pmm-items {
    background: #fff;
    padding: 0 12px 8px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-item {
    padding: 10px 8px;
    gap: 12px;
    align-items: center;
    border-radius: 6px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-item:active {
    background: #f0f0f0;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-items .pmm-item + .pmm-item {
    margin-top: 0;
    padding-top: 10px;
}

/* Thumbnails on mobile — visible */
.lqd-mobile-main-nav .pmm-v3 .pmm-item-thumb {
    display: flex;
    width: 48px;
    height: 38px;
}

/* Text on mobile */
.lqd-mobile-main-nav .pmm-v3 .pmm-item-title {
    font-size: 14px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-item-desc {
    display: block;
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* Promo column on mobile — compact banner */
.lqd-mobile-main-nav .pmm-v3 .pmm-col-promo {
    padding: 12px 16px;
    border-right: none;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-promo-bg {
    height: 160px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-promo-overlay {
    height: 160px;
    padding: 16px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-promo-headline {
    font-size: 18px;
}

.lqd-mobile-main-nav .pmm-v3 .pmm-resources {
    margin-top: 8px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1399px) {
    .pmm-v3 .pmm-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr 220px;
    }

    .pmm-v3 .pmm-promo-headline {
        font-size: 18px;
    }
}

@media (max-width: 1199px) {
    .pmm-v3 .pmm-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .pmm-v3 .pmm-col-promo {
        display: none;
    }

    .pmm-v3 .pmm-col:nth-child(4) {
        border-right: none;
    }
}

@media (max-width: 991px) {
    .pmm-v3 .pmm-panel {
        padding: 20px 16px;
    }

    .pmm-v3 .pmm-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 0;
    }

    .pmm-v3 .pmm-col:nth-child(2) {
        border-right: none;
    }

    .pmm-v3 .pmm-badges-bar {
        grid-template-columns: 1fr;
    }

    .pmm-v3 .pmm-badge {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .pmm-v3 .pmm-badge:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .pmm-v3 .pmm-panel {
        padding: 16px 8px;
    }

    .pmm-v3 .pmm-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pmm-v3 .pmm-col {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 0 8px 16px;
    }

    .pmm-v3 .pmm-col:last-child {
        border-bottom: none;
    }
}
