/* ================================================================
   Arboleda Category List for Elementor
   Prefix: .mv-  |  Zero external dependencies
   Visual depth: layered shadows, glassmorphism overlay, micro-anim
   ================================================================ */

/* ── Reset ── */
.mv-cat-wrapper *,
.mv-cat-wrapper *::before,
.mv-cat-wrapper *::after { box-sizing: border-box; }
.mv-cat-wrapper a { text-decoration: none; color: inherit; }

/* ── No results ── */
.mv-cat-no-results {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 32px 16px;
    font-size: 0.9rem;
}

/* ================================================================
   LAYOUTS
   ================================================================ */
.mv-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.mv-cat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mv-cat-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-bottom: 12px;
}
.mv-cat-carousel::-webkit-scrollbar { height: 5px; }
.mv-cat-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.mv-cat-carousel .mv-cat-item { flex: 0 0 260px; scroll-snap-align: start; }

/* ================================================================
   CARD  — depth-first design
   ================================================================ */
.mv-cat-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    /* Three-layer shadow for natural depth */
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 4px 12px rgba(0,0,0,.07),
        0 12px 32px rgba(0,0,0,.06);
    transition:
        transform   .32s cubic-bezier(.25,.8,.25,1),
        box-shadow  .32s cubic-bezier(.25,.8,.25,1),
        background  .2s ease;
    /* Thin inner highlight on top edge */
    border-top: 1px solid rgba(255,255,255,.9);
}

/* ── Link wrapper ── */
.mv-cat-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.mv-imgpos-left .mv-cat-link,
.mv-imgpos-right .mv-cat-link  { flex-direction: row; align-items: stretch; }
.mv-imgpos-right .mv-cat-link  { flex-direction: row-reverse; }

/* ================================================================
   IMAGE WRAP
   ================================================================ */
.mv-cat-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
    /* Subtle gradient mask fading into card */
    isolation: isolate;
}
.mv-imgpos-left  .mv-cat-img-wrap,
.mv-imgpos-right .mv-cat-img-wrap { width: 38%; height: auto; min-height: 140px; }

/* Background mode */
.mv-imgpos-background .mv-cat-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.mv-imgpos-background .mv-cat-item  { min-height: 280px; }
.mv-imgpos-background .mv-cat-content { position: relative; z-index: 1; }

/* Image itself */
.mv-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .48s cubic-bezier(.25,.8,.25,1);
}

/* Editor placeholder */
.mv-cat-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 60%, #94a3b8 100%);
}

/* Overlay — subtle shimmer gradient by default */
.mv-cat-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0,0,0,.28) 100%
    );
    transition: background .32s ease;
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade strip that ties image to content */
.mv-cat-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(transparent, rgba(255,255,255,.18));
    pointer-events: none;
    z-index: 2;
}
.mv-imgpos-background .mv-cat-img-wrap::after { display: none; }

/* ================================================================
   CONTENT
   ================================================================ */
.mv-cat-content {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.mv-imgpos-left  .mv-cat-content,
.mv-imgpos-right .mv-cat-content { justify-content: center; padding: 18px 22px; }

/* Name */
.mv-cat-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -.01em;
    transition: color .2s ease;
}

/* Count pill */
.mv-cat-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 99px;
    width: fit-content;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}

/* Description */
.mv-cat-desc {
    margin: 3px 0 0;
    font-size: 0.865rem;
    color: #475569;
    line-height: 1.6;
}

/* CTA button */
.mv-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition:
        background .22s ease,
        transform   .18s ease,
        box-shadow  .22s ease;
    align-self: flex-start;
    border: none;
    /* Subtle bottom shadow for lifted button feel */
    box-shadow: 0 2px 8px rgba(15,23,42,.22), 0 1px 2px rgba(15,23,42,.12);
}
.mv-cat-btn:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,23,42,.28), 0 2px 4px rgba(15,23,42,.12);
    color: #f8fafc;
}

/* Subcategory pills */
.mv-cat-subcats {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.mv-cat-subcats li a {
    font-size: 0.74rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 99px;
    transition: all .18s;
}
.mv-cat-subcats li a:hover {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}

/* ================================================================
   HOVER EFFECTS
   ================================================================ */

/* Lift */
.mv-hover-lift .mv-cat-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 2px 4px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.10),
        0 20px 48px rgba(0,0,0,.10);
}

/* Zoom image */
.mv-hover-zoom .mv-cat-item:hover .mv-cat-img { transform: scale(1.08); }

/* Overlay darken */
.mv-hover-overlay .mv-cat-item:hover .mv-cat-img-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.58) 100%);
}
.mv-hover-overlay .mv-cat-item:hover .mv-cat-name { color: #fff; }

/* Slide content up */
.mv-hover-slide .mv-cat-content { transform: translateY(8px); transition: transform .3s ease; }
.mv-hover-slide .mv-cat-item:hover .mv-cat-content { transform: translateY(0); }
.mv-hover-slide .mv-cat-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); }

/* ================================================================
   LIST LAYOUT — horizontal card
   ================================================================ */
.mv-cat-list .mv-cat-item {
    border-radius: 14px;
}
.mv-cat-list .mv-cat-link {
    flex-direction: row;
    align-items: center;
}
.mv-cat-list .mv-cat-img-wrap {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 10px 0 0 10px;
}
.mv-cat-list .mv-cat-content { padding: 14px 18px; }
.mv-cat-list .mv-cat-img-wrap::after { display: none; }

/* ================================================================
   MOBILE ACCORDION TRIGGER
   ================================================================ */
.mv-mob-trigger {
    display: none; /* JS shows below breakpoint */
    width: 100%;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 12px;
    padding: 15px 20px;
    background: #ffffff;
    /* Card-style depth */
    box-shadow:
        0 1px 3px rgba(0,0,0,.05),
        0 4px 16px rgba(0,0,0,.07);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
    text-align: left;
    /* Inset top highlight */
    border-top: 1px solid rgba(255,255,255,.95);
    transition:
        border-color .22s ease,
        box-shadow   .22s ease,
        border-radius .25s ease;
    position: relative;
    z-index: 2;
}
.mv-mob-trigger:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* Open state — flat bottom to merge with drawer */
.mv-mob-trigger[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.06);
}

.mv-mob-label { flex: 1; }
.mv-mob-icon  { display: inline-flex; align-items: center; flex-shrink: 0; }
.mv-mob-icon svg { display: block; }

.mv-mob-chevron {
    transition: transform .3s cubic-bezier(.25,.8,.25,1);
}
.mv-mob-trigger[aria-expanded="true"] .mv-mob-chevron { transform: rotate(180deg); }

/* ── Drawer panel ── */
.mv-mob-drawer {
    background: #ffffff;
    border: 1px solid rgba(226,232,240,.9);
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.04);
    /* Slide animation */
    max-height: 0;
    opacity: 0;
    transition:
        max-height .38s cubic-bezier(.25,.8,.25,1),
        opacity    .26s ease;
}
.mv-mob-drawer[hidden]     { display: none !important; }
.mv-mob-drawer.mv-is-open  { display: block !important; max-height: 0; opacity: 0; }
.mv-mob-drawer.mv-anim-open { max-height: 1200px; opacity: 1; }

.mv-mob-list { list-style: none; margin: 0; padding: 0; }

/* ── Rows style ── */
.mv-mob-style-rows .mv-mob-row-item {
    border-bottom: 1px solid #f1f5f9;
}
.mv-mob-style-rows .mv-mob-row-item:last-child { border-bottom: none; }

.mv-mob-row-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: #0f172a;
    transition: background .16s ease;
}
.mv-mob-row-link:hover { background: #f8fafc; }
.mv-mob-row-link:active { background: #f1f5f9; }

/* Thumb */
.mv-mob-thumb {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.mv-mob-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text */
.mv-mob-row-text  { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mv-mob-row-name  { font-size: .9rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-mob-row-count { font-size: .74rem; font-weight: 500; color: #64748b; }

/* Arrow */
.mv-mob-row-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    display: flex; align-items: center;
    transition: transform .18s ease, color .18s ease;
}
.mv-mob-row-link:hover .mv-mob-row-arrow { transform: translateX(4px); color: #0f172a; }

/* ── Pills style ── */
.mv-mob-style-pills .mv-mob-list {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 16px;
}
.mv-mob-style-pills .mv-mob-row-item { border: none; }
.mv-mob-style-pills .mv-mob-row-link {
    padding: 7px 16px;
    background: #f1f5f9;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    font-size: .84rem;
    font-weight: 600;
    gap: 6px;
}
.mv-mob-style-pills .mv-mob-row-link:hover {
    background: #0f172a; color: #fff; border-color: #0f172a;
}
.mv-mob-style-pills .mv-mob-row-link:hover .mv-mob-row-arrow { color: #fff; }
.mv-mob-style-pills .mv-mob-thumb { display: none; }
.mv-mob-style-pills .mv-mob-row-text { flex-direction: row; gap: 5px; align-items: center; }
.mv-mob-style-pills .mv-mob-row-count::before { content: "("; }
.mv-mob-style-pills .mv-mob-row-count::after  { content: ")"; }

/* ── Grid2 style ── */
.mv-mob-style-grid2 .mv-mob-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.mv-mob-style-grid2 .mv-mob-row-item {
    border-bottom: 1px solid #f1f5f9;
    border-right:  1px solid #f1f5f9;
}
.mv-mob-style-grid2 .mv-mob-row-item:nth-child(2n) { border-right: none; }
.mv-mob-style-grid2 .mv-mob-row-link {
    flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 8px;
}
.mv-mob-style-grid2 .mv-mob-thumb { width: 38px; height: 38px; border-radius: 8px; }
.mv-mob-style-grid2 .mv-mob-row-arrow { display: none; }

/* ================================================================
   RESPONSIVE FALLBACK (no-JS safety net)
   ================================================================ */
@media (max-width: 767px) {
    .mv-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mv-imgpos-left .mv-cat-link,
    .mv-imgpos-right .mv-cat-link { flex-direction: column; }
    .mv-imgpos-left  .mv-cat-img-wrap,
    .mv-imgpos-right .mv-cat-img-wrap { width: 100%; height: 180px; }
}
@media (max-width: 480px) {
    .mv-cat-grid { grid-template-columns: 1fr; }
    .mv-cat-list .mv-cat-img-wrap { width: 90px; height: 70px; }
}
