/* ============================================================
   ISMAR EXPORT – OUR PRODUCTS CATALOG
   WordPress Plugin Frontend Styles
   ============================================================ */

:root {
    --is-primary: #0d2d5a;
    --is-accent: #1E6FB3;
    --is-gold: #FFD216;
    --is-gold-light: #FFE566;
    --is-bg: #f2f5f9;
    --is-dark: #071b38;
    --is-white: #ffffff;
    --is-text: #1c2a3a;
    --is-text-mid: #4a5c72;
    --is-text-light: #8d9bb0;
}

.mh-catalog-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--is-bg);
    color: var(--is-text);
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════ */
.mh-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.mh-breadcrumb a {
    color: var(--is-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.mh-breadcrumb a:hover {
    color: var(--is-accent);
}

.mh-breadcrumb-sep {
    color: var(--is-text-light);
    font-size: 10px;
}

.mh-breadcrumb-current {
    color: var(--is-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════ */
.mh-page-header {
    background: var(--is-bg);
    padding: 36px 24px 0;
}

.mh-page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mh-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--is-text);
    margin: 0 0 6px;
}

.mh-page-subtitle {
    font-size: 14px;
    color: var(--is-text-mid);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   STATS STRIP
   ══════════════════════════════════════ */
.mh-stats-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.mh-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--is-white);
    border: 1px solid rgba(13,45,90,0.08);
    border-radius: 8px;
    padding: 14px 20px;
    flex: 1;
    min-width: 160px;
}

.mh-stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: rgba(30,111,179,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-stat-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--is-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mh-stat-info {
    display: flex;
    flex-direction: column;
}

.mh-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--is-primary);
    line-height: 1;
}

.mh-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--is-text-light);
    margin-top: 3px;
    font-weight: 700;
}

/* ══════════════════════════════════════
   SEARCH
   ══════════════════════════════════════ */
.mh-search-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.mh-search-section *,
.mh-search-section *::before,
.mh-search-section *::after {
    box-sizing: border-box;
}

.mh-search-box-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    border: none !important;
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
}

.mh-search-inner {
    width: 100%;
    max-width: 560px;
    position: relative;
    box-sizing: border-box;
}

.mh-main-search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 20px !important;
    border-radius: 8px;
    border: 1px solid rgba(13,45,90,0.1);
    background: var(--is-white);
    box-shadow: 0 4px 20px rgba(13,45,90,0.08);
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--is-text);
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mh-main-search::placeholder {
    color: var(--is-text-light);
}

.mh-main-search:focus {
    border-color: var(--is-accent);
    box-shadow: 0 4px 20px rgba(30,111,179,0.12), 0 0 0 3px rgba(30,111,179,0.06);
}

.mh-main-search.has-value {
    padding-right: 48px !important;
}

/* Search Clear Button */
.mh-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(13,45,90,0.06);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.mh-search-clear:hover {
    background: rgba(13,45,90,0.12);
}

.mh-search-clear svg {
    width: 12px;
    height: 12px;
    stroke: var(--is-text-mid);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.mh-search-clear.show {
    display: flex;
}

/* ══════════════════════════════════════
   FILTER PILLS
   ══════════════════════════════════════ */
.mh-filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    padding: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mh-pill {
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(13,45,90,0.1);
    background: var(--is-white);
    color: var(--is-text-mid);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.mh-pill:hover,
.mh-pill.active {
    background: var(--is-primary);
    color: #fff;
    border-color: var(--is-primary);
}

.mh-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: rgba(13,45,90,0.08);
    font-size: 10px;
    font-weight: 700;
    color: var(--is-text-mid);
    margin-left: 6px;
    padding: 0 5px;
    line-height: 1;
}

.mh-pill.active .mh-pill-count {
    background: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
}

/* Sticky Filter Bar */
.mh-filter-pills.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(242,245,249,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(13,45,90,0.08);
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(13,45,90,0.06);
}

/* ══════════════════════════════════════
   RESULTS COUNTER
   ══════════════════════════════════════ */
.mh-results-counter {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--is-text-light);
    text-align: right;
    transition: opacity 0.3s;
}

.mh-results-counter span {
    color: var(--is-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════
   GRID
   ══════════════════════════════════════ */
.mh-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.mh-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ══════════════════════════════════════
   CARD
   ══════════════════════════════════════ */
.mh-cat-card {
    display: block;
    text-decoration: none !important;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--is-white);
    border: 1px solid rgba(13,45,90,0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.35s ease;
    cursor: pointer;
}

.mh-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(13,45,90,0.12);
    border-color: rgba(30,111,179,0.15);
}

.mh-cat-card.mh-hiding {
    opacity: 0;
    transform: scale(0.95);
}

/* Visual Wrap (zoom container) */
.mh-cat-visual-wrap {
    overflow: hidden;
    position: relative;
}

.mh-cat-visual-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Image */
.mh-cat-visual {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.mh-cat-card:hover .mh-cat-visual {
    transform: scale(1.06);
}

/* Arrow */
.mh-cat-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.25s;
    border: 1px solid rgba(13,45,90,0.08);
}

.mh-cat-arrow svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--is-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s;
}

.mh-cat-card:hover .mh-cat-arrow {
    background: var(--is-primary);
    border-color: var(--is-primary);
}

.mh-cat-card:hover .mh-cat-arrow svg {
    stroke: #fff;
}

/* Product Count Badge */
.mh-cat-count {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(13,45,90,0.08);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--is-primary);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mh-cat-count svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--is-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Content */
.mh-cat-content {
    padding: 20px 24px 24px;
}

/* Badge */
.mh-cat-badge {
    width: 40px;
    height: 40px;
    background: rgba(30,111,179,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.25s;
}

.mh-cat-card:hover .mh-cat-badge {
    background: rgba(30,111,179,0.12);
}

.mh-cat-badge svg {
    width: 20px;
    height: 20px;
    fill: var(--is-accent);
}

/* Tag */
.mh-cat-tag {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 6px;
    color: var(--is-accent);
}

/* Title */
.mh-cat-content h3 {
    color: var(--is-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Divider */
.mh-cat-divider {
    width: 32px;
    height: 3px;
    background: var(--is-accent);
    border-radius: 2px;
    margin-bottom: 14px;
    transition: width 0.3s;
}

.mh-cat-card:hover .mh-cat-divider {
    width: 52px;
}

/* Product List */
.mh-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mh-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--is-text-mid);
    background: rgba(30,111,179,0.04);
    border: 1px solid rgba(30,111,179,0.08);
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.1px;
}

.mh-check-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: rgba(30,111,179,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-check-icon svg {
    width: 8px;
    height: 8px;
    fill: var(--is-accent);
}

/* ══════════════════════════════════════
   CTA BOTTOM
   ══════════════════════════════════════ */
.mh-footer-cta {
    background: var(--is-white);
    border-top: 1px solid rgba(13,45,90,0.06);
    text-align: center;
    padding: 48px 24px 56px;
}

.mh-cta-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--is-text-light);
    font-weight: 700;
    margin-bottom: 12px;
}

.mh-cta-title {
    font-size: 24px;
    color: var(--is-primary);
    font-weight: 700;
    margin-bottom: 28px;
}

.mh-btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--is-primary);
    color: #fff;
    padding: 13px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: background 0.2s, transform 0.2s;
}

.mh-btn-catalog:hover {
    background: var(--is-accent);
    transform: translateY(-2px);
}

.mh-btn-catalog svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════ */
.mh-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--is-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(13,45,90,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s;
    z-index: 999;
}

.mh-back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mh-back-top:hover {
    background: var(--is-accent);
    transform: translateY(-2px);
}

.mh-back-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
.mh-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.mh-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.mh-reveal.d1 { transition-delay: 0.06s; }
.mh-reveal.d2 { transition-delay: 0.12s; }
.mh-reveal.d3 { transition-delay: 0.18s; }
.mh-reveal.d4 { transition-delay: 0.24s; }
.mh-reveal.d5 { transition-delay: 0.30s; }
.mh-reveal.d6 { transition-delay: 0.36s; }
.mh-reveal.d7 { transition-delay: 0.42s; }
.mh-reveal.d8 { transition-delay: 0.48s; }
.mh-reveal.d9 { transition-delay: 0.54s; }

/* No Results */
.mh-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    display: none;
}

.mh-no-results-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: rgba(30,111,179,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-no-results-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--is-text-light);
    fill: none;
    stroke-width: 2;
}

.mh-no-results p {
    color: var(--is-text-light);
    font-size: 14px;
    font-weight: 600;
}

/* ══════════════════════════════════════
   ACCESSIBILITY / FOCUS
   ══════════════════════════════════════ */
.mh-cat-card:focus-visible {
    outline: 3px solid var(--is-accent);
    outline-offset: 2px;
}

.mh-pill:focus-visible {
    outline: 2px solid var(--is-accent);
    outline-offset: 2px;
}

.mh-btn-catalog:focus-visible {
    outline: 2px solid var(--is-gold);
    outline-offset: 2px;
}

.mh-main-search:focus-visible {
    outline: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 960px) {
    .mh-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mh-page-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .mh-catalog-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .mh-page-header {
        padding: 28px 16px 0;
    }
    .mh-page-title {
        font-size: 22px;
    }
    .mh-stats-strip {
        padding: 0 16px;
    }
    .mh-stat-card {
        min-width: 100%;
    }
    .mh-filter-pills {
        gap: 6px;
    }
    .mh-pill {
        padding: 6px 14px;
        font-size: 11px;
    }
    .mh-cta-title {
        font-size: 20px;
    }
    .mh-grid-section {
        padding: 0 16px 48px;
    }
    .mh-back-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .mh-breadcrumb {
        padding: 14px 16px 0;
    }
    .mh-results-counter {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .mh-stat-card {
        min-width: 100%;
    }
}
