/* ============================================================
   site.css  –  sexbutiker.se  (Razor Pages, mobilanpassad)
   ============================================================ */

:root {
    --color-nav-bg:     #222222;
    --color-nav-text:   #ffffff;
    --color-nav-hover:  #cccccc;
    --color-red:        #cc0000;
    --color-link:       #cc0000;
    --color-link-hover: #990000;
    --color-border:     #dddddd;
    --color-bg:         #ffffff;
    --color-text:       #333333;
    --color-label:      #666666;
    --font-main:        Verdana, Arial, sans-serif;
    --width-total:      980px;
    --width-left:       700px;
    --width-right:      280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--color-text);
    /* Tiled bakgrund, fast vid scroll */
    background-image: url(/pics/bakgrund.png);
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-color: #f0f7ff;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1 { font-size: 15px; font-family: var(--font-main); margin: 10px 0 8px; }
h2 { font-size: 13px; font-family: var(--font-main); }

/* ---------- Ytterhölje ---------- */
.page-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.mainbox {
    width: var(--width-total);
    background: var(--color-bg);
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 0 10px;
    min-height: 130px;
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo img { display: block; }
.header-logo .logo-byline { margin-top: 6px; }

.header-banner {
    flex: 0 0 auto;
    overflow: hidden;
}

/* ---------- Navigation ---------- */
.site-nav {
    background: var(--color-nav-bg);
    padding: 0 6px;
    position: relative;
    margin-top: 8px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    margin: 8px 0;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--color-nav-text);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-links {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-block;
    color: var(--color-nav-text);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-nav-hover);
    text-decoration: none;
    background: rgba(255,255,255,0.1);
}

/* ---------- Dropdown (desktop) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-nav-bg);
    min-width: 160px;
    z-index: 1000;
    padding: 6px 0;
    border-top: 2px solid var(--color-red);
}

.dropdown-menu a {
    display: block;
    color: var(--color-nav-text);
    padding: 5px 14px;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--color-nav-hover);
    background: rgba(255,255,255,0.1);
}

/* ---------- Content-rad ---------- */
.content-row {
    display: flex;
    align-items: flex-start;
}

.leftbox {
    width: var(--width-left);
    flex: 0 0 var(--width-left);
    padding: 12px 14px;
    border-right: 1px solid var(--color-border);
    min-width: 0;
}

.rightbox {
    width: var(--width-right);
    flex: 0 0 var(--width-right);
    padding: 10px 12px;
    font-size: 12px;
}

/* ---------- Butikskort ---------- */
.butiknamn {
    font-size: 15px;
    font-weight: bold;
    float: left;
    margin-bottom: 4px;
}

.butiknamn a {
    color: #3c6aa4;
    font-weight: bold;
}

.butiknamn a:hover { color: #3c6aa4;; }

.butiktyp {
    font-weight: normal;
    font-size: 12px;
    color: var(--color-label);
    margin-left: 4px;
}

.utvaldbutik {
    float: right;
    font-size: 12px;
    color: var(--color-red);
    font-weight: bold;
    font-style: italic;
}

.butikloptext {
    font-size: 12px;
    line-height: 1.6;
}

.butikloptext a {
    color: #3c6aa4;
}

.butikloptext a:hover { color: #2a4f7a; }

.butik-info-col {
    float: left;
    width: 390px;
}

.butik-bild-col {
    float: left;
    width: 250px;
    padding-left: 10px;
}

.iiimg {
    max-width: 230px;
    height: auto;
    margin-bottom: 6px;
}

.hr {
    clear: both;
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 14px 0;
}

/* ---------- Formulär ---------- */
.inputtext {
    width: 100%;
    max-width: 340px;
    padding: 4px 6px;
    border: 1px solid #bbb;
    font-size: 12px;
    font-family: var(--font-main);
}

.inputtextblock {
    width: 100%;
    max-width: 340px;
    padding: 4px 6px;
    border: 1px solid #bbb;
    font-size: 12px;
    font-family: var(--font-main);
    resize: vertical;
}

.submit {
    padding: 5px 16px;
    background: var(--color-nav-bg);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-main);
}

.submit:hover { background: #444; }

.loptext { font-size: 12px; vertical-align: top; padding: 4px 6px 4px 0; }

.link      { color: var(--color-link); }
.link:hover { color: var(--color-link-hover); }
.link_vit  { color: var(--color-nav-text); }

/* ---------- Stjärnknapp ---------- */
.stjarn-knapp {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.stjarn-bg {
    width: 150px;
    height: 29px;
    background: url(/pics/star_off.png);
    text-align: left;
}

.stjarn-fill {
    height: 29px;
    background: url(/pics/star.png);
}

/* ---------- Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.is-open { display: flex; }

.modal-box {
    background: #fff;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    font-family: var(--font-main);
    font-size: 13px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-stang {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.modal-stang:hover { color: #333; }
.modal-box h3 { margin: 0 0 12px; font-size: 14px; }

/* ---------- Modal stjärnor ---------- */
.modal-stjarnor {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
}

.modal-stjarna {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.1s, transform 0.1s;
    user-select: none;
}

.modal-stjarna:hover,
.modal-stjarna.aktiv { color: #cc9900; transform: scale(1.15); }

.modal-skicka {
    margin-top: 10px;
    padding: 6px 20px;
    background: #7a0000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-main);
}

.modal-skicka:hover:not(:disabled) { background: var(--color-red); }
.modal-skicka:disabled { background: #ccc; cursor: default; }

/* ============================================================
   MOBILANPASSNING
   ============================================================ */
@media (max-width: 1000px) {
    .mainbox { width: 100%; }
    .leftbox  { width: auto; flex: 1 1 auto; }
    .rightbox { width: 220px; flex: 0 0 220px; }
    .butik-info-col { width: 100%; float: none; }
    .butik-bild-col { width: 100%; float: none; padding-left: 0; }
}

@media (max-width: 700px) {
    .page-wrapper { padding: 0; }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 8px;
    }

    .header-banner { display: none; }

    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 8px;
        width: 100%;
    }

    .nav-links.is-open { display: flex; }

    .nav-left, .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 9px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        position: static;
        border-top: none;
        padding: 0 0 0 14px;
        background: rgba(0,0,0,0.2);
    }

    .nav-dropdown.is-open .dropdown-menu { display: block; }

    .content-row { flex-direction: column; }

    .leftbox {
        width: 100%;
        flex: none;
        border-right: none;
        padding: 10px;
    }

    .rightbox {
        width: 100%;
        flex: none;
        border-top: 1px solid var(--color-border);
        padding: 10px;
    }

    .iiimg { max-width: 100%; }
    table  { width: 100% !important; }
    td     { display: block; width: 100% !important; }
}
