/* Edem Flower photo catalog mega menu */
.ef-mega.mega{position:absolute;top:100%;left:0;right:0;padding:0;gap:0;background:#fffefa;box-shadow:0 20px 40px #1e40341c;border-top:1px solid #e1e9dc;max-height:min(580px,75vh);overflow:hidden}
.ef-mega.mega.open{display:grid;grid-template-columns:290px minmax(0,1fr)}
.ef-mega-side{background:#f0f3e9;padding:24px 16px;overflow-y:auto;min-height:320px}
.ef-mega-eyebrow{font:700 11px Manrope,sans-serif;letter-spacing:.14em;color:#789080;margin:0 14px 16px}
.ef-mega-cat{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-bottom:8px;padding:14px 16px;border:0;border-radius:9px;background:transparent;color:#194a38;font:700 14px Manrope,sans-serif;text-align:left;cursor:pointer}
.ef-mega-cat.active,.ef-mega-cat:hover{background:#fff;color:#0e6b4f}
.ef-mega-cat span{font-size:20px}
.ef-mega-main{padding:28px 32px;overflow-y:auto;min-width:0}
.ef-mega-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.ef-mega-top h3{font:600 27px 'Playfair Display',Georgia,serif;color:#163f31;margin:0}
.ef-mega.mega .ef-mega-top a{background:none;padding:0;color:#0e6b4f;font:700 13px Manrope,sans-serif;white-space:nowrap}
.ef-mega-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ef-mega.mega .ef-mega-tile{display:block;background:none;padding:0;border-radius:10px;text-decoration:none;color:#194a38;overflow:hidden}
.ef-mega-tile img{display:block;width:100%;height:135px;object-fit:cover;border-radius:10px;transition:transform .25s}
.ef-mega-tile:hover img{transform:scale(1.035)}
.ef-mega.mega .ef-mega-tile span{display:block;margin-top:8px;font:700 13px Manrope,sans-serif;color:#194a38}
@media(max-width:1000px){.ef-mega-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ef-mega.mega.open{grid-template-columns:1fr;overflow-y:auto;max-height:75vh}.ef-mega-side{min-height:0;max-height:170px;padding:12px}.ef-mega-main{padding:20px;overflow:visible}.ef-mega-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ef-mega-tile img{height:105px}}


/* Isolate photo tiles from legacy homepage promotional mega-card rules */
.header .ef-mega.mega.open{padding:0!important;gap:0!important;grid-template-columns:290px minmax(0,1fr)!important}
.header .ef-mega .ef-mega-main{min-width:0}
.header .ef-mega .ef-mega-top{min-height:0}
.header .ef-mega .ef-mega-top a{position:static!important;display:inline!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;color:#0e6b4f!important;border:0!important;transform:none!important;isolation:auto!important}
.header .ef-mega .ef-mega-top a::before,.header .ef-mega .ef-mega-tile::before{content:none!important;display:none!important}
.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.header .ef-mega .ef-mega-tile{position:static!important;display:block!important;min-height:0!important;height:auto!important;padding:0!important;background:transparent!important;color:#194a38!important;isolation:auto!important;transform:none!important}
.header .ef-mega .ef-mega-tile img{width:100%;height:135px;object-fit:cover;border-radius:10px}
.header .ef-mega .ef-mega-tile span{position:static!important;color:#194a38!important;font:700 13px Manrope,Arial,sans-serif!important;margin-top:8px!important}
@media(max-width:1000px){.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.header .ef-mega.mega.open{grid-template-columns:1fr!important}.header .ef-mega .ef-mega-tile img{height:105px}}


/* Approved editorial photo-card menu */
.header .ef-mega.mega.open{grid-template-columns:270px minmax(0,1fr)!important;max-height:min(740px,82vh);background:#fffefa}
.ef-mega-side{background:#f0f3e9;padding:24px 16px;min-height:0}
.ef-mega-cat{height:52px;min-height:52px;margin-bottom:8px;padding:0 16px;gap:14px}
.ef-mega-main{padding:24px 28px 30px}
.ef-mega-top{margin-bottom:20px}
.ef-mega-top h3{font-size:29px}
.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 18px}
.header .ef-mega .ef-mega-tile{border:1px solid #e6e9e1!important;border-radius:13px!important;background:#fffefa!important;overflow:hidden!important;box-shadow:0 2px 9px #1e403412;transition:box-shadow .2s,transform .2s}
.header .ef-mega .ef-mega-tile:hover{transform:translateY(-3px)!important;box-shadow:0 9px 22px #1e40341b}
.header .ef-mega .ef-mega-tile img{height:145px;width:100%;object-fit:cover;border-radius:12px 12px 0 0}
.header .ef-mega .ef-mega-tile .ef-tile-caption{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:47px;padding:7px 12px!important;margin:0!important;background:#fffefa!important;color:#194a38!important}
.header .ef-mega .ef-mega-tile .ef-tile-caption span{margin:0!important;color:#194a38!important;font-size:13px!important}
.header .ef-mega .ef-mega-tile .ef-tile-arrow{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:50%;background:#eef2e8;color:#0e6b4f;font-size:15px}
@media(max-width:1100px){.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.header .ef-mega.mega.open{grid-template-columns:1fr!important}.header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.header .ef-mega .ef-mega-tile img{height:110px}}


/* Botanical category icons in the homepage mega menu */
.header .ef-mega .ef-mega-cat{display:flex;align-items:center;gap:12px}
.header .ef-mega .ef-mega-cat .ef-mega-root-icon{flex:none;color:#0e6b4f}
.header .ef-mega .ef-mega-cat .ef-mega-root-name{flex:1;text-align:left}
.header .ef-mega .ef-mega-cat>span:last-child{flex:none}


/* FIX: homepage mega-menu category names must remain on one line */
@media(min-width:701px){
.header .ef-mega.mega.open{grid-template-columns:315px minmax(0,1fr)!important}
.header .ef-mega .ef-mega-side{min-width:0;padding-left:12px;padding-right:12px}
.header .ef-mega .ef-mega-cat{width:100%;min-width:0;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:9px!important;padding:0 11px!important}
.header .ef-mega .ef-mega-cat .ef-mega-root-name{display:block;flex:1 1 auto;min-width:0;white-space:nowrap!important;font-size:14px!important;line-height:1.2!important;text-align:left}
.header .ef-mega .ef-mega-cat .ef-mega-root-icon{width:18px;height:18px;flex:0 0 18px}
.header .ef-mega .ef-mega-cat>span:last-child{flex:0 0 auto;margin-left:auto}
}

/* Square botanical portraits: keep the complete plant visible on desktop. */
@media(min-width:701px){
 .header .ef-mega .ef-mega-tiles{grid-template-columns:repeat(auto-fill,minmax(160px,210px));align-items:start;gap:18px}
 .header .ef-mega .ef-mega-tile img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center;background:#f3efe5;border-radius:12px 12px 0 0;transform:none!important}
 .header .ef-mega .ef-mega-tile .ef-tile-caption{min-height:56px}
 .header .ef-mega .ef-mega-tile .ef-tile-caption span{line-height:1.4}
}
