/* New "Προϊόντα" mega menu (partials/menu/products-mega-dev.blade.php).
   3 columns: categories | products of the selected category | extras.
   Brand accent: #15CEC0 (same as the active tabs of the live menu).
   v2: bigger panel, more spacing, products shown as cards with photos. */

.pmm__panel {
    width: min(1360px, calc(100vw - 40px));
    padding: 0;
    margin-top: 10px !important;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .14);
    overflow: hidden;
}

/* Fixed height (fits the screen): each column scrolls on its own if needed */
.pmm__panel.show {
    display: grid;
    /* 350px: long category names (e.g. "Χαρτί αφής & χαρτί περιτυλίγματος") stay on one line */
    grid-template-columns: 350px 1fr 280px;
    height: min(760px, calc(100vh - 180px));
}

/* 1. Categories */
.pmm__cats {
    background: #f7f7f8;
    padding: 16px 14px;
    border-right: 1px solid #ececec;
    overflow-y: auto;
}

.pmm__cat {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: #222 !important;
    text-decoration: none;
}

.pmm__cat img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.pmm__cat-name { flex: 1; }

.pmm__count {
    font-size: 12px;
    color: #888;
    background: #fff;
    border-radius: 10px;
    padding: 2px 8px;
}

.pmm__cat.is-active,
.pmm__cat:focus-visible {
    background: #fff;
    color: #0b9e93 !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #15CEC0, 0 2px 8px rgba(0, 0, 0, .05);
    outline: none;
}

/* 2. Products of the selected category */
.pmm__products { padding: 30px 36px; overflow-y: auto; }

.pmm__group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ececec;
}

.pmm__group-title { margin: 0 !important; font-size: 24px; font-weight: 700; color: #111; }
.pmm__group-all { color: #0b9e93 !important; font-weight: 600; white-space: nowrap; }

/* Cards grid: as many columns of at least 150px as fit */
.pmm__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px 22px;
}

.pmm__card { display: flex; flex-direction: column; gap: 10px; color: #222 !important; text-decoration: none; }

/* Square photo box, light grey behind photos with white space */
.pmm__thumb {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #f5f5f6;
    overflow: hidden;
}

.pmm__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pmm__card:hover .pmm__thumb img { transform: scale(1.05); }
.pmm__card:hover .pmm__name { color: #0b9e93; }

/* Sale badge (Black Friday colours) */
.pmm__sale {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0e0d12;
    color: #f6bc16;
    font-size: 12px;
    font-weight: 700;
}

.pmm__name { font-weight: 600; }

/* 3. Extras */
.pmm__side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 24px;
    border-left: 1px solid #ececec;
    overflow-y: auto;
}

.pmm__label {
    margin: 22px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

.pmm__side-link { color: #333 !important; text-decoration: none; }
.pmm__side-link:hover { color: #0b9e93 !important; }
.pmm__side-link--strong { font-weight: 700; }

.pmm__all {
    margin-top: auto;
    border: 1px solid #111;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none;
}

.pmm__all:hover { background: #111; color: #fff !important; }

/* Black Friday card (same colours as the Black Friday banners) */
.pmm__bf {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 14px;
    background: #0e0d12;
    color: #fff !important;
    text-decoration: none;
}

.pmm__bf-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f6bc16; }
.pmm__bf-sale { font-size: 32px; line-height: 1.1; }
.pmm__bf-note { font-size: 13px; color: #ccc; }
.pmm__bf-cta { margin-top: 12px; font-size: 14px; font-weight: 700; color: #f6bc16; }
.pmm__bf:hover .pmm__bf-cta { text-decoration: underline; }

/* The site rule "header#header nav a" gives every header link
   padding 10px 0 10px 14px, 15px font and 24px line height.
   These #header rules are stronger and set the menu's own spacing. */
/* 7px top/bottom: all 16 categories fit in the panel without scrolling */
#header .pmm__cat { padding: 7px 14px; font-size: 15px; line-height: 1.3; }
/* style.css has ".navbar .dropdown ul:not(.igonre) { display: block }",
   which would turn the cards grid back into a single column */
#header .pmm__list { display: grid; box-shadow: none; }
/* !important is needed here: style.css has
   ".navbar .dropdown ul a { padding: 1px !important }" */
#header .pmm__list a { padding: 0 !important; font-size: 14.5px; line-height: 1.35; }
#header .pmm__group-all { padding: 0; font-size: 14px; line-height: 1.3; }
#header .pmm__side-link { padding: 7px 0; font-size: 14.5px; line-height: 1.35; }
#header .pmm__all { padding: 13px 16px; font-size: 14px; line-height: 1.3; }
#header .pmm__bf { padding: 22px; font-size: 14px; line-height: 1.3; }
