/* Izyem responsive layout — desktop unchanged above 1024px */

.izyem-header-nav {
    display: flex;
}

.izyem-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.izyem-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    background: var(--color-background, #fff);
    color: var(--color-muted-foreground, #6b7280);
    cursor: pointer;
    font-family: inherit;
}

.izyem-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
}

.izyem-mobile-menu.is-open {
    pointer-events: auto;
}

.izyem-mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.izyem-mobile-menu.is-open .izyem-mobile-menu-overlay {
    opacity: 1;
}

.izyem-mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--color-background, #fff);
    border-left: 1px solid var(--color-border, #e5e7eb);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
}

.izyem-mobile-menu.is-open .izyem-mobile-menu-panel {
    transform: translateX(0);
}

.izyem-mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.izyem-mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.izyem-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
}

.izyem-mobile-menu-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-foreground, #1f2933);
}

.izyem-mobile-menu-nav a:hover {
    background: var(--color-muted, #f5f7fa);
    color: var(--color-primary, #ce1d2f);
}

.izyem-mobile-menu-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--color-border, #e5e7eb);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.izyem-mobile-menu-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-muted-foreground, #6b7280);
}

.izyem-mobile-menu-cta {
    justify-content: center;
    margin-top: 4px;
}

body.izyem-mobile-menu-open {
    overflow: hidden;
}

.izyem-topbar-compact {
    display: none;
}

.izyem-mobile-menu-cta span {
    display: inline !important;
}

@media (max-width: 1023px) {
    .izyem-header-nav {
        display: none;
    }

    .izyem-mobile-menu-toggle {
        display: inline-flex;
    }

    .izyem-header-cta span {
        display: none;
    }

    .izyem-header-cta {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }

    .izyem-topbar-full {
        display: none;
    }

    .izyem-topbar-compact {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        min-height: 40px;
    }

    .izyem-site [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .izyem-site [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .izyem-category-grid,
    .izyem-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .izyem-process-grid {
        grid-template-columns: 1fr !important;
    }

    .izyem-site [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .izyem-site [style*="grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .izyem-hero-row {
        flex-direction: column;
        gap: 32px !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .izyem-hero-row > .flex-1[style*="min-height"] {
        min-height: 280px !important;
        width: 100%;
    }

    .izyem-hero-row > .flex-1.relative {
        width: 100%;
        min-height: 300px !important;
    }

    .izyem-hero-row > .flex-1.relative > .rounded-lg {
        height: 280px !important;
    }

    .izyem-hero-row > .flex-1.relative > .absolute.grid {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 12px;
        width: 100%;
    }

    .izyem-trust-bar {
        flex-wrap: wrap;
        gap: 16px !important;
        justify-content: flex-start !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .izyem-split-section {
        flex-direction: column;
        gap: 32px !important;
    }

    .izyem-split-section > [style*="min-width: 280px"] {
        min-width: 0 !important;
        max-width: none !important;
        width: 100%;
    }

    .izyem-section-head {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .izyem-section-head > .flex.items-center.gap-2 {
        width: 100%;
        justify-content: space-between;
    }

    .izyem-list-layout {
        flex-direction: column;
    }

    .izyem-list-layout > [style*="width: 240px"],
    .izyem-list-layout > .izyem-category-sidebar,
    .izyem-list-layout > [style*="width: 268px"] {
        width: 100% !important;
    }

    .izyem-catalog-grid[data-cols="3"],
    .izyem-catalog-grid[data-cols="4"],
    .izyem-catalog-grid[data-cols="5"],
    .izyem-catalog-grid[data-cols="6"] {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }

    .izyem-grid-cols-toggle {
        width: 100%;
        justify-content: flex-end;
    }

    .izyem-detail-layout {
        flex-direction: column;
    }

    .izyem-detail-layout > [style*="width: 460px"],
    .izyem-detail-layout > [style*="flex-shrink: 0"] {
        width: 100% !important;
    }

    .izyem-page-hero-row[style*="gap-16"],
    .izyem-page-hero-row {
        flex-direction: column;
        gap: 24px !important;
    }

    .izyem-page-hero-row > [style*="width: 340px"] {
        width: 100% !important;
        height: 200px !important;
    }

    .izyem-hero-slider:not(.izyem-hero-slider--viewport) {
        height: 460px !important;
    }

    .izyem-hero-slider--viewport {
        --izyem-chrome-height: 100px;
        min-height: 480px !important;
    }

    .izyem-hero-slider-nav {
        right: 16px !important;
    }

    .izyem-cta-row {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .izyem-site [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .izyem-site [style*="grid-template-columns: 1fr 420px"],
    .izyem-site [style*="grid-template-columns: 1fr 1fr"][style*="gap: 10"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .izyem-site .mx-auto.px-6 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .izyem-category-grid,
    .izyem-catalog-grid {
        grid-template-columns: 1fr !important;
    }

    .izyem-catalog-cover {
        height: 120px;
    }

    .izyem-site [style*="grid-template-columns: repeat(5"],
    .izyem-site [style*="grid-template-columns: repeat(4"],
    .izyem-site [style*="grid-template-columns: repeat(3, 1fr)"],
    .izyem-site [style*="grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr"] {
        grid-template-columns: 1fr !important;
    }

    .izyem-hero-row h1[style*="font-size: 44px"] {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .izyem-hero-slider:not(.izyem-hero-slider--viewport) {
        height: 480px !important;
        min-height: 480px;
    }

    .izyem-hero-slider--viewport {
        --izyem-chrome-height: 100px;
        min-height: 520px !important;
    }

    .izyem-hero-slide-title {
        font-size: 1.85rem !important;
    }

    .izyem-hero-slide-inner {
        justify-content: flex-start !important;
        padding-top: 3rem !important;
        padding-bottom: 9rem !important;
        box-sizing: border-box;
    }

    .izyem-hero-slide-bg {
        background-image: var(--izyem-slide-mobile-bg) !important;
    }

    .izyem-hero-slide-desc {
        margin-bottom: 1.25rem !important;
    }

    .izyem-hero-slide-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 0.625rem !important;
    }

    .izyem-hero-slide-actions a {
        width: 100%;
        justify-content: center;
    }

    .izyem-hero-slider-arrows {
        top: auto;
        bottom: 132px;
        transform: none;
        padding: 0 12px;
    }

    .izyem-hero-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .izyem-hero-slider-bottom {
        padding: 0 16px 16px;
    }

    .izyem-hero-slider-tab {
        min-width: 140px;
    }

    .izyem-hero-slider-tab-label {
        display: none;
    }

    .izyem-hero-scroll-cue {
        bottom: 148px;
    }

    .izyem-hero-slider-counter {
        right: auto !important;
        left: 1rem !important;
        bottom: 1.75rem !important;
    }

    .izyem-hero-slider-dots {
        bottom: 1.5rem !important;
    }

    .site-search-form {
        flex-wrap: wrap;
    }

    .site-search-esc {
        display: none;
    }

    .site-search-submit {
        width: 100%;
        margin-top: 4px;
    }

    .izyem-form .grid[style*="grid-template-columns: 1fr 1fr"] .col-span-2 {
        grid-column: span 1 !important;
    }

    .izyem-product-detail-form .grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    .izyem-product-detail-form .col-span-3 {
        grid-column: span 1 !important;
    }

    .izyem-product-tabs__nav {
        gap: 6px;
    }

    .izyem-product-tabs__btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        border-radius: 8px;
        border-bottom: 1px solid var(--color-border, #e5e7eb);
        font-size: 13px;
        padding: 10px 12px;
    }

    .izyem-product-tabs__btn.is-active {
        border-color: var(--color-primary, #c8102e);
    }

    .izyem-product-tabs__panels {
        margin-top: 12px;
    }

    .izyem-product-tabs__panel-inner {
        padding: 16px;
    }

    .izyem-footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .izyem-breadcrumb {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

@media (max-width: 479px) {
    .izyem-hero-slider:not(.izyem-hero-slider--viewport) {
        height: 440px !important;
        min-height: 440px !important;
    }

    .izyem-hero-slider--viewport {
        min-height: 480px !important;
    }

    .izyem-hero-slide-title {
        font-size: 1.65rem !important;
    }

    .izyem-hero-row h1[style*="font-size: 44px"] {
        font-size: 28px !important;
    }

    .izyem-header-bar {
        height: 60px !important;
    }
}
