/* ===== MEGA MENU — Echo Park Paper Co ===== */
/* Extracted from base.html. Loaded via {{{stylesheet '/assets/css/mega-menu.css'}}} */

/* Hide the top banner injected by BigCommerce store admin */
.banners-top { display: none !important; }
/* Override Capacity theme navy body background */
body { background-color: #ffffff !important; }
body::before, body::after { background-color: #ffffff !important; }

/* Remove blue from cart/account icon area in nav */
.header-tools { background: transparent !important; }
.header-tools a,
.header-tools button,
.cart-preview-trigger,
.dropbtn { background: transparent !important; border: none !important; box-shadow: none !important; }
.cart-preview-quantity,
#cart-preview-count { background: transparent !important; color: #2d2d2d !important; }

/* Mega menu font */
.ep-mega-panel, .ep-mega-panel * { font-family: Cardo, serif; }

/* ===== MEGA MENU ===== */

.ep-new-link  { color: #e84393 !important; font-weight: 700 !important; }
.ep-sale-link { color: #ce3834 !important; font-weight: 700 !important; }

/* Down arrow on all mega menu items */
.ep-mega-item > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #2d2d2d;
    position: relative;
    top: 1px;
}
.ep-sale-link::after  { border-top-color: #2d2d2d !important; }
.ep-new-link::after   { border-top-color: #e84393 !important; }

.ep-mega-item { position: static !important; }
.ep-mega-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    width: 100vw;
    top: var(--ep-header-bottom, 260px);
    background: #fff;
    border-top: 2px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    box-sizing: border-box;
    overflow-x: hidden;
}
.ep-mega-panel.ep-mega-open { display: block; }

.ep-mega-inner {
    max-width: 1420px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 0;
    padding: 28px 48px 32px;
    align-items: flex-start;
    box-sizing: border-box;
    min-height: 500px;
}

.ep-mega-col-heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
    white-space: nowrap;
}
.ep-sale-heading { color: #ce3834; border-bottom-color: #ce3834; }
.ep-sale-heading--main { color: #111 !important; border-bottom-color: #111 !important; }

.ep-mega-cat-grid { flex: 1; min-width: 0; padding-right: 32px; border-right: 1px solid #efefef; margin-right: 24px; }
.ep-cat-list { list-style: none; margin: 0; padding: 0; column-count: 4; column-gap: 24px; }
.ep-cat-list--single { column-count: 1; }
.ep-cat-list li { break-inside: avoid; margin-bottom: 10px; }
.ep-cat-list li a { font-size: 14px; color: #333; text-decoration: none; }
.ep-cat-list li a:hover { color: #cc0000; }
.ep-sale-item-link { color: #ce3834 !important; }

.ep-mega-tiles-section { flex: 1; min-width: 0; padding-right: 32px; border-right: 1px solid #efefef; margin-right: 24px; }
.ep-tile-row { display: flex; gap: 14px; }
.ep-tile { flex: 1; min-width: 0; text-decoration: none; text-align: center; display: block; }
.ep-tile-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; position: relative; margin-bottom: 10px; transition: box-shadow 0.2s, transform 0.2s; }
.ep-tile:hover .ep-tile-img { box-shadow: 0 6px 20px rgba(0,0,0,0.14); transform: translateY(-2px); }
.ep-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-tile-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ep-tile-ph-0 { background: linear-gradient(135deg,#fde8e4,#f9cfc9); }
.ep-tile-ph-1 { background: linear-gradient(135deg,#e4eeff,#c9d8f9); }
.ep-tile-ph-2 { background: linear-gradient(135deg,#e8fde4,#cdf9c9); }
.ep-tile-ph-3 { background: linear-gradient(135deg,#fde4f4,#f9c9ec); }
.ep-tile-ph-4 { background: linear-gradient(135deg,#f4e4fd,#ecc9f9); }
.ep-tile-name { font-size: 12px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.5px; display: block; text-align: center; line-height: 1.3; }
.ep-tile:hover .ep-tile-name { color: #cc0000; }

.ep-tile-row--landscape { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.ep-tile--landscape { flex: none; text-align: left; }
.ep-tile-row--landscape .ep-tile--landscape:nth-child(-n+3) { width: calc(33.333% - 6px); }
.ep-tile-row--landscape .ep-tile--landscape:nth-child(n+4)  { width: calc(25% - 6px); }
.ep-tile-img--landscape { aspect-ratio: 5 / 2; border-radius: 6px; overflow: hidden; position: relative; transition: box-shadow 0.2s, transform 0.15s; }
.ep-tile--landscape:hover .ep-tile-img--landscape { box-shadow: 0 4px 16px rgba(0,0,0,0.18); transform: translateY(-1px); }
.ep-tile-overlay-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px 10px; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; pointer-events: none; }
.ep-tile-img--landscape .ep-tile-ph-0 { background: linear-gradient(120deg,#f9d4cc,#f4a090); }
.ep-tile-img--landscape .ep-tile-ph-1 { background: linear-gradient(120deg,#cce4f9,#90c4f4); }
.ep-tile-img--landscape .ep-tile-ph-2 { background: linear-gradient(120deg,#cdf9c9,#90f490); }
.ep-tile-img--landscape .ep-tile-ph-3 { background: linear-gradient(120deg,#f9c9ec,#f490d8); }
.ep-tile-img--landscape .ep-tile-ph-4 { background: linear-gradient(120deg,#ecc9f9,#d490f4); }
.ep-tile-img--landscape .ep-tile-ph-5 { background: linear-gradient(120deg,#f9eac9,#f4cc90); }

.ep-tile-img--clearance { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; transition: transform 0.2s, box-shadow 0.2s; }
.ep-tile-img--clearance img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.ep-tile:hover .ep-tile-img--clearance { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.ep-tile-img--plain { width: 160px; height: 160px; margin-bottom: 10px; }
.ep-tile-img--plain img { width: 100%; height: 100%; object-fit: contain; display: block; }

.ep-mega-inner--themes { align-items: flex-start; gap: 0; }
.ep-themes-left-section { display: flex; flex-direction: column; flex-shrink: 0; margin-right: 0; padding-right: 28px; }
.ep-themes-text-cols { display: flex; padding-bottom: 0; margin-bottom: 0; }
.ep-themes-col { flex-shrink: 0; width: 150px; padding-right: 20px; }
.ep-themes-group-heading { font-size: 13px; font-weight: 700; color: #111; margin: 14px 0 6px; text-decoration: underline; }
.ep-themes-col .ep-themes-group-heading:first-child { margin-top: 0; }
.ep-themes-group-heading a { color: #111; text-decoration: underline; }
.ep-themes-group-heading a:hover { color: #cc0000; }
.ep-themes-sublist { list-style: none; margin: 0 0 4px; padding: 0; }
.ep-themes-sublist li { margin-bottom: 3px; }
.ep-themes-sublist li a { font-size: 13px; color: #444; text-decoration: none; }
.ep-themes-sublist li a:hover { color: #cc0000; }
.ep-themes-single { list-style: none; margin: 0; padding: 0; }
.ep-themes-single li { margin-bottom: 8px; }
.ep-themes-single li a { font-size: 13px; font-weight: 600; color: #111; text-decoration: none; }
.ep-themes-single li a:hover { color: #cc0000; }
.ep-themes-patterns-col { flex-shrink: 0; width: 520px; padding: 0 28px; border-left: 1px solid #efefef; border-right: 1px solid #efefef; margin: 0 28px 0 0; }
.ep-patterns-grid { gap: 16px 12px; }
.ep-patterns-grid .ep-tile--circle-sm { width: 105px; flex: none; }
.ep-patterns-grid .ep-tile-img--circle-sm { width: 105px; height: 105px; }

.ep-tile-row--circle-grid { flex-wrap: wrap; gap: 16px 12px; max-width: 876px; }
.ep-tile-row--projects { display: grid; grid-template-columns: repeat(4, 210px); gap: 16px 12px; max-width: none; }
.ep-tile--circle-sm { width: 210px; flex-shrink: 0; text-align: center; text-decoration: none; display: block; }
.ep-tile-img--circle-sm { width: 210px; height: 210px; overflow: hidden; border-radius: 50%; background: #f5f5f5; margin: 0 auto 10px; transition: transform 0.2s, box-shadow 0.2s; }
.ep-tile--circle-sm:hover .ep-tile-img--circle-sm { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.ep-tile-img--circle-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ep-mega-inner--shop { align-items: flex-start; }
.ep-shop-cols { flex: 1; min-width: 0; padding-right: 32px; border-right: 1px solid #e0e0e0; margin-right: 32px; }
.ep-shop-grid { display: flex; gap: 0 20px; }
.ep-shop-col { flex: 1; min-width: 0; }
.ep-shop-group-heading { font-size: 13px; font-weight: 700; color: #111; margin: 0 0 6px; padding-bottom: 0; }
.ep-shop-group-heading a { color: #111; text-decoration: underline; }
.ep-shop-group-heading a:hover { color: #cc0000; }
.ep-shop-clearance-heading { margin-top: 16px; }
.ep-shop-clearance-heading a { color: #cc0000; text-decoration: none; }
.ep-shop-clearance-heading a:hover { text-decoration: underline; }
.ep-shop-sublist { list-style: none; margin: 0 0 14px; padding: 0; }
.ep-shop-sublist li { margin-bottom: 3px; }
.ep-shop-sublist li a { font-size: 12px; color: #444; text-decoration: none; line-height: 1.5; }
.ep-shop-sublist li a:hover { color: #cc0000; }
.ep-shop-buttons { display: flex; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #efefef; justify-content: center; }
.ep-shop-btn { display: inline-block; padding: 10px 20px; background: #cc0000; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; border-radius: 4px; transition: background 0.2s; }
.ep-shop-btn:hover { background: #a80000; }

.ep-sale-main { flex: 1; min-width: 0; padding-right: 24px; border-right: 1px solid #efefef; margin-right: 24px; }
.ep-sale-main-inner { display: flex; align-items: flex-start; gap: 16px; }
.ep-tile-row--sale-banners { flex: 1; min-width: 0; gap: 12px; align-items: flex-start; }
.ep-tile--sale-banner { flex: 1; min-width: 0; text-align: center; text-decoration: none; display: block; }
.ep-sale-banner-img { width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.ep-sale-banner-img img { width: 100%; display: block; object-fit: cover; aspect-ratio: 1/1; }
.ep-tile--sale-banner:hover .ep-sale-banner-img { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.ep-sale-links-col { flex-shrink: 0; width: 140px; padding-top: 4px; }
.ep-tile-ph-sale-0 { background: linear-gradient(135deg,#fde0e0,#f9b8b8); }
.ep-tile-ph-sale-1 { background: linear-gradient(135deg,#fde8e0,#f9ccb8); }
.ep-tile-ph-sale-2 { background: linear-gradient(135deg,#fdf0e0,#f9ddb8); }
.ep-tile-ph-sale-3 { background: linear-gradient(135deg,#fde0e8,#f9b8cc); }
.ep-tile-ph-sale-4 { background: linear-gradient(135deg,#f0e0fd,#ddb8f9); }
.ep-tile-name--sale { color: #ce3834 !important; }
.ep-tile--sale:hover .ep-tile-name { color: #a01a1a !important; }

.ep-flyout-list { list-style: none; margin: 0; padding: 0; }
.ep-flyout-item > a { display: block; padding: 6px 0; font-size: 14px; color: #333 !important; text-decoration: none; opacity: 1 !important; }
.ep-flyout-item > a:hover { color: #cc0000 !important; opacity: 1 !important; }

.ep-mega-nav-col--wide { flex: 1; min-width: 0; border-right: 1px solid #efefef; margin-right: 24px; padding-right: 24px; }
.ep-themes-grid { list-style: none; margin: 0; padding: 0; column-count: 5; column-gap: 16px; }
.ep-themes-grid li { break-inside: avoid; margin-bottom: 9px; }
.ep-themes-grid li a { font-size: 13px; color: #444; text-decoration: none; }
.ep-themes-grid li a:hover { color: #cc0000; }

.ep-mega-promo-col { flex-shrink: 0; width: 220px; }
.ep-promo-card { display: block; text-decoration: none; border-radius: 6px; overflow: hidden; border: 1px solid #eee; transition: box-shadow 0.15s; }
.ep-promo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.ep-promo-img-placeholder { background: linear-gradient(135deg, #f8e8ec 0%, #fce4d0 100%); height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; font-size: 13px; gap: 4px; }
.ep-promo-img-placeholder small { font-size: 11px; color: #bbb; }
.ep-promo-img-placeholder--sale { background: linear-gradient(135deg, #fce8e8 0%, #f9d0d0 100%); }
.ep-promo-caption { padding: 12px 14px; background: #fff; }
.ep-promo-caption strong { display: block; font-size: 14px; color: #111; margin-bottom: 4px; }
.ep-promo-caption span { font-size: 12px; color: #cc0000; }

@media (max-width: 960px) {
    .ep-mega-panel { display: none !important; }
}
