/* =====================================================
   GLOBAL
===================================================== */

body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background:#f2f2f7;
    color:#111;
}


/* =====================================================
   APP SHELL
===================================================== */

.butiksjakt-shell{
    max-width:480px;
    margin:auto;
    min-height:100vh;
    background:#f2f2f7;
    position:relative;
}


/* =====================================================
   APPLE NAV BAR
===================================================== */

.top-bar{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,0.75);
    backdrop-filter:blur(20px) saturate(180%);
    -webkit-backdrop-filter:blur(20px) saturate(180%);
    padding:16px;
    text-align:center;
    font-weight:600;
    font-size:17px;
    transition:all .25s ease;
}

.top-bar.scrolled{
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}


/* =====================================================
   CONTENT
===================================================== */

.app-content{
    padding:16px;
    padding-bottom:90px;
}


/* =====================================================
   VIEW TRANSITIONS
===================================================== */

.view{
    display:none;
    transform:translateX(20px);
    opacity:0;
}

.view.active{
    display:block;
    animation:slideIn .25s ease forwards;
}

@keyframes slideIn{
    from{
        transform:translateX(20px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}


/* =====================================================
   IOS CARD
===================================================== */

.review,
.search-result,
.card{
    background:white;
    border-radius:16px;
    padding:16px;
    margin-bottom:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.05);
}


/* =====================================================
   INPUTS
===================================================== */

input,textarea,select{
    width:100%;
    padding:14px;
    margin-bottom:12px;
    border-radius:12px;
    border:1px solid #e5e5ea;
    font-size:16px;
    background:white;
}


/* =====================================================
   BUTTON
===================================================== */

button{
    width:100%;
    padding:16px;
    border-radius:14px;
    border:none;
    background:#007aff;
    color:white;
    font-size:16px;
    font-weight:600;
    box-shadow:0 6px 14px rgba(0,122,255,0.25);
}

button:active{
    transform:scale(0.97);
}


/* =====================================================
   BOTTOM NAV IOS
===================================================== */

.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
    max-width:480px;
    display:flex;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(20px);
    border-top:1px solid rgba(0,0,0,0.05);
    height:64px;
}

.nav-item{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size:11px;
    color:#8e8e93;
    gap:2px;
    position:relative;
}

.nav-item.active{
    color:#007aff;
    font-weight:600;
}

.nav-item.active::after{
    content:"";
    position:absolute;
    bottom:6px;
    width:28px;
    height:3px;
    border-radius:3px;
    background:#007aff;
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.butiksjakt-shell img{
    width:100%;
    border-radius:14px;
    margin:8px 0 12px;
}


/* =====================================================
   SAFE AREA
===================================================== */

@supports(padding:max(0px)){
    .app-content{
        padding-left:max(16px, env(safe-area-inset-left));
        padding-right:max(16px, env(safe-area-inset-right));
        padding-bottom:max(90px, env(safe-area-inset-bottom));
    }
}
html, body.butiksjakt-fullscreen{
    margin:0 !important;
    padding:0 !important;
    background:#f2f2f7;
}

.butiksjakt-fullscreen .site,
.butiksjakt-fullscreen header,
.butiksjakt-fullscreen footer{
    display:none !important;
}
