/* Caliber Menu Pro v5.4.0 */
:root{
    --cm-blur: 14px;
}

body.cm-menu-theme,
body.cm-menu-theme .site-content,
body.cm-menu-theme .ast-container{
    background: radial-gradient(1200px 800px at 50% -200px, #0b1220 0%, #0a0f1c 40%, #060a12 75%, #05070c 100%), var(--cm-bg);
    color: var(--cm-text);
}

body.cm-bg-solid,
body.cm-bg-solid .site-content,
body.cm-bg-solid .ast-container{
    background: var(--cm-bg) !important;
}

.cm-bleed{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.caliber-menu-wrap{
    max-width: var(--cm-container);
    margin: 0 auto;
    padding: 16px 16px calc(var(--cm-dock-height) + 24px);
}

.cm-hide-dock .caliber-menu-wrap{
    padding-bottom: 24px;
}

.cm-hero{
    position: relative;
    height: var(--cm-hero-height);
    background: linear-gradient(90deg, var(--cm-header-a), var(--cm-header-b)), var(--cm-surface);
    color: var(--cm-hero-title);
    overflow: hidden;
}

.cm-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--cm-hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: var(--cm-hero-image-opacity);
    pointer-events: none;
}

.cm-hero::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22));
    pointer-events: none;
}

.cm-hero-inner{
    position: relative;
    z-index: 1;
    max-width: var(--cm-container);
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.cm-hero-left,
.cm-hero-right{
    min-width: 0;
}

.cm-logo{
    display: block;
    height: var(--cm-logo-height);
    max-width: 170px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.cm-hero-center{
    min-width: 0;
    text-align: center;
}

.cm-hero-title{
    margin: 0;
    color: var(--cm-hero-title);
    font-size: clamp(18px, 3.2vw, var(--cm-hero-title-size));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .2px;
}

.cm-hero-sub{
    margin: 4px 0 0;
    color: var(--cm-hero-sub);
    font-size: var(--cm-hero-sub-size);
    line-height: 1.4;
    opacity: .95;
}

.cm-hero-right{
    justify-self: end;
}

.cm-hero-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.cm-social{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--cm-icon-bg);
    color: var(--cm-icon-color);
    text-decoration: none !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform .16s ease, background-color .16s ease, opacity .16s ease;
}

.cm-social:hover,
.cm-social:focus{
    color: var(--cm-icon-color);
    transform: translateY(-1px);
    opacity: .92;
}

.cm-cat{
    scroll-margin-top: calc(var(--cm-hero-height) + 18px);
    margin: var(--cm-section-gap) 0;
}

.cm-cat-head{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cm-cat-title{
    margin: 0;
    color: var(--cm-cat-title);
    font-size: var(--cm-cat-title-size);
    font-weight: 800;
    text-align: center;
    letter-spacing: .2px;
}

.cm-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cm-grid-gap);
}

.cm-item{
    min-height: var(--cm-card-min-height);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--cm-card);
    border: 1px solid var(--cm-card-border);
    border-radius: var(--cm-card-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    overflow: hidden;
    transition: transform .16s ease, box-shadow .18s ease, border-color .16s ease;
}

.cm-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

.cm-thumb{
    margin: 0;
    aspect-ratio: var(--cm-image-ratio);
    background: var(--cm-surface);
    overflow: hidden;
}

.cm-thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--cm-image-fit);
    transition: transform .35s ease;
}

.cm-no-card-hover .cm-item:hover{
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.cm-no-image-zoom .cm-item:hover .cm-thumb img{
    transform: none;
}

.cm-item:hover .cm-thumb img{
    transform: scale(1.045);
}

.cm-info{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: var(--cm-card-padding);
}

.cm-texts{
    min-width: 0;
}

.cm-name{
    margin: 0 0 4px;
    color: var(--cm-card-title);
    font-size: var(--cm-product-title-size);
    font-weight: 800;
    line-height: 1.25;
}

.cm-desc{
    margin: 0;
    color: var(--cm-card-desc);
    font-size: var(--cm-product-desc-size);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cm-price{
    flex: 0 0 auto;
    align-self: center;
    color: var(--cm-card-price);
    font-size: var(--cm-product-price-size);
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cm-dock{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    background: var(--cm-dock-bg);
    -webkit-backdrop-filter: blur(var(--cm-blur));
    backdrop-filter: blur(var(--cm-blur));
    padding: max(8px, env(safe-area-inset-bottom)) 12px 12px;
    box-shadow: 0 -10px 25px rgba(0,0,0,.35);
}

.cm-dock-inner{
    max-width: var(--cm-container);
    margin: 0 auto;
}

.cm-cats-scroll{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cm-cats-scroll::-webkit-scrollbar{
    display: none;
}

.cm-chip{
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 12px 16px;
    border-radius: var(--cm-chip-radius);
    color: var(--cm-dock-text);
    background: var(--cm-chip-bg);
    border: 1px solid var(--cm-chip-border);
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
    text-decoration: none !important;
    font-size: var(--cm-chip-font-size);
    font-weight: 800;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

.cm-chip:hover,
.cm-chip:focus{
    color: var(--cm-dock-text);
    transform: translateY(-1px);
}

.cm-chip.is-active{
    color: var(--cm-dock-active-text);
    background: var(--cm-dock-active);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(0,0,0,.28), 0 0 0 2px rgba(255,255,255,.14) inset;
}

.cm-chip.just-activated{
    animation: cmPulse .35s ease;
}

.cm-footer{
    padding: 18px 0;
    color: var(--cm-muted);
    text-align: center;
    font-size: 12px;
}

.cm-empty-state{
    max-width: 680px;
    margin: 48px auto;
    padding: 24px;
    border: 1px solid var(--cm-border);
    border-radius: 18px;
    background: var(--cm-surface);
    text-align: center;
}

.cm-empty-state h1,
.cm-empty-state h2{
    color: var(--cm-text);
}

.cm-header-fixed .cm-hero{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1003;
}

.cm-header-fixed .caliber-menu-wrap{
    padding-top: calc(var(--cm-hero-height) + 16px);
}

body.admin-bar.cm-header-fixed .cm-hero{
    top: 32px;
}

.cm-hide-images .cm-thumb{
    display: none;
}

.cm-hide-dock .cm-dock{
    display: none;
}

html[dir="rtl"] .cm-hero-right{
    justify-self: start;
}

html[dir="rtl"] .cm-info{
    flex-direction: row-reverse;
}

html[dir="rtl"] .cm-cats-scroll{
    direction: rtl;
}

@keyframes cmPulse{
    0%{ transform: scale(.98); }
    50%{ transform: scale(1.025); }
    100%{ transform: scale(1); }
}

@media (min-width: 720px){
    .cm-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px){
    .cm-grid{
        grid-template-columns: repeat(var(--cm-columns), minmax(0, 1fr));
    }
}

@media (max-width: 782px){
    body.admin-bar.cm-header-fixed .cm-hero{
        top: 46px;
    }
}

@media (max-width: 640px){
    .cm-hero-inner{
        grid-template-columns: auto 1fr auto;
        gap: 8px;
    }

    .cm-logo{
        max-width: 92px;
    }

    .cm-hero-actions{
        max-width: 84px;
        gap: 4px;
    }

    .cm-social{
        width: 32px;
        height: 32px;
    }

    .cm-info{
        gap: 8px;
    }
}
