﻿@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Salsa&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

html {
    background-color: whitesmoke;
    color: #333;
    background-image: url(/icons/12145.png);
    background-attachment: fixed;
    background-repeat: repeat;
}

    body {
    }

    .navmobile {
        background-color: #c50000;
        color: white;
    }

    .footermobile {
        background-color: #c50000;
        color: white;
        margin-top: 6px;
        text-align: center;
        padding: 8px;
    }

    .SearchResults {
        background-color: white;
        color: black;
        padding: 6px;
        position: fixed;
        max-width: 412px;
        width: 100vw;
        z-index: 99;
    }

        .SearchResults a {
            color: black;
            text-decoration: none;
        }

    .heading1 {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

        .heading1 svg {
            font-size: 30px;
            padding: 5px;
        }

    .heading2 {
        margin-bottom: 6px;
        display: flex;
    }

        .heading2 input[type=search] {
            display: block;
            font-size: 14pt;
            padding: 3px;
            margin: 6px;
            border: 0;
            flex-grow: 1;
        }

    .whitesvg {
        fill: white;
    }

    .logodiv {
        background-image: url(/icons/timarusewingcentre-logo.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    #PageContent {
        background-image: url(/icons/12145.png);
        background-attachment: fixed;
        background-repeat: repeat;
        overflow: auto;
    }


    .caticons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .caticons .catitem {
            margin: 3px;
            padding: 3px;
            text-align: center;
            display: grid;
            justify-items: center;
            padding: 3px;
            color: #444;
            background-color: white;
        }

            .caticons .catitem div.img {
                width: 10vw;
                height: 10vw;
                background-color: pink;
                margin: 3px;
                background-size: cover;
            }

    .searchlistitem {
        background-color: rgba(255,255,255,0.5);
        text-decoration: none;
        color: black;
        padding: 3px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 1rem;
        margin-bottom: 2px;
        border: solid 1px #999;
    }

        .searchlistitem:hover {
            background-color: rgba(99,99,99,0.8);
        }

.AddToCartBtn {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    border-radius: 6px;
    padding: 8px 2rem;
    background-color: #a71c1c;
    color: white !important;
    margin: 4px 0;
    text-decoration: none;
}

    .ViewDetailsBtn {
        display: block;
        text-align: center;
        font-weight: bold;
        border-radius: 6px;
        padding: 8px;
        background-color: #9f0ffe;
        color: white;
        margin: 4px 0;
        text-decoration: none;
    }

    nav.breadcrumbs {
        background-color: #444;
        color: white;
        font-size: small;
        margin-bottom: 0.5rem;
    }

        nav.breadcrumbs a {
            text-decoration: none;
            color: white;
            padding: 5px;
            display: inline-block;
        }

    .departmentscontainer {
    }

    .managementarea a {
        text-align: center;
        display: block;
        padding: 6px;
        background-color: #999;
        border-radius: 4px;
        margin-bottom: 6px;
        text-decoration: none;
        color: white;
    }

    nav.HomeMenu {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 0.5rem;
        margin: 0.5rem;
    }

    .HomeMenu > a {
        display: grid;
        grid-template-columns: auto 1fr;
        justify-content: center;
        align-items: center;
        padding: 3px;
        text-decoration: none;
        color: black;
        background-color: white;
        filter: drop-shadow(5px 5px 4px #CCC);
    }

        .HomeMenu > a:hover div.heading {
            text-decoration: underline;
        }

        .HomeMenu > a > img {
            width: 40px;
            height: 40px;
            display: block;
            margin: 1rem;
        }

        .HomeMenu > a > div {
            padding: 0.5rem;
        }

    .HomeMenu div.heading {
        font-family: Lato, 'Open Sans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .HomeMenu div.comment {
        font-family: Lato, 'Open Sans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-size: 0.8rem;
        color: #888;
    }

    .infobox {
        background-color: #bc000091;
        color: white;
        border-radius: 8px;
        align-items: center;
        display: grid;
        grid-template-columns: auto 1fr;
        text-decoration: none;
        padding: 0.5rem;
        margin: 0.5rem;
        grid-gap: 1rem;
    }

        .infobox img {
            width: 32px;
            height: 32px;
            filter: drop-shadow(5px 5px 4px #000000be);
        }

    .headingbox {
        color: white;
        align-items: center;
        display: grid;
        grid-gap: 1rem;
        grid-template-columns: auto 1fr;
        text-decoration: none;
        padding: 8px;
        font-size: larger;
        font-weight: 500;
        background-color: #444444a6;
        margin-bottom: 1rem;
        padding-left: 1rem;
    }

        .headingbox img {
            width: 52px;
            height: 52px;
            filter: drop-shadow(5px 5px 4px #000);
        }

    .filterbox {
        border: solid 1px #ccc;
        margin: 0.5rem;
        display: grid;
        background-color: rgba(255,255,255,0.4);
    }

        .filterbox .filtertitle {
            font-weight: bold;
            font-family: salsa;
            padding: 6px;
        }

        .filterbox .filterinput {
            padding: 6px;
        }

        .filterbox input, .filterbox select {
            font-family: inherit;
            font-size: inherit;
            padding: 3px;
            width: 100%;
        }
.productspecstable {
    width: 100%;
}
    .productspecstable tr td:first-child
    {
        width: 16rem;
    }
    .productspecstable td {
        background-color: #EEE;
        padding: 3px 6px;
    }
.AddToCartBtn {
}

.swabs > img {
    border: solid 2px #EEE;
}
    .swabs > img.selectedChildImage {
        border: solid 2px darkred !important;
    }
.unselectedChildImage {
    border: solid 2px #FF0;
}

section > div {
    margin: 0 auto 1rem auto;
    max-width: 980px;
}

.cartpageheader {
    display: grid;
    grid-template-columns: auto 1fr 5rem 5rem;
    align-items: center;
    grid-gap: 1rem;
    border-bottom: solid 1px #333;
}
.cartpageline {
    display: grid;
    grid-template-columns: auto 1fr 5rem 5rem;
    align-items: center;
    grid-gap: 1rem;
    border: solid 1px #DDD;
    border-radius: 5px;
    padding: 5px;
}
    .cartpageline img {
        border-top-left-radius: 5px;
    }
    .cartpageline img {
        border-bottom-left-radius: 5px;
    }
    .cartpageline input {
        padding: 4px;
        font-family: inherit;
        font-size: inherit;
        text-align: right;
    }

#ImageZoomModal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    background-size: contain;
    padding: 10px;
    grid-template-rows: 1fr;
}
    #ImageZoomModal > div {
        background-position: center;
        background-repeat: no-repeat;
        text-align: center;
        background-size: contain;
    }
    #ImageZoomModal a {
        color: white;
        background-color: black;
        text-decoration: none;
        padding: 4px 8px;
    }
    #ImageZoomModal a:hover {
        text-decoration: none;
    }

.paternfilterinner {
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2px;

}
.paternfilterouter .vertical label {
    display: grid;
    grid-gap: 3px;
    padding: 2px;
    background-color: #FFFFFFbf;
    margin-bottom: 1px;
    grid-template-columns: auto 1fr;
    background-color: #DDDDDD99;
}
.paternfilterouter .horiziontal {
    display: inline-grid;
    grid-template-columns: 10rem 10rem 10rem 10rem 1fr;
    border: solid 1px #CCC;
    margin-bottom: 0.5rem;
}
.paternfilterouter .horiziontal > * {
    margin-left: 1px;
    background-color: #DDDDDD99;
    padding: 3px;
}

/* ── Pattern wizard start screen ────────────────────── */

.wizard-start {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wizard-start-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.wizard-linda {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.wizard-start-question {
    font-family: 'Salsa', cursive;
    font-size: 1.3rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.wizard-start-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.wizard-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    flex: 0 0 calc(33.333% - 0.5rem);
    box-sizing: border-box;
}

.wizard-tile:hover {
    border-color: #a71c1c;
    box-shadow: 0 2px 8px rgba(167,28,28,0.15);
}

.wizard-tile-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.wizard-tile-label {
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .wizard-tile {
        flex: 0 0 calc(50% - 0.375rem);
    }

    .wizard-linda {
        display: none;
    }

    .wizard-show {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ── Pattern wizard ─────────────────────────────────── */

.seo-links {
    display: none;
}

.pattern-wizard {
    padding: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.wizard-step {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wizard-progress {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wizard-question {
    font-family: 'Salsa', cursive;
    color: #333;
    margin: 0 0 1.25rem 0;
    font-size: 1.4rem;
}

.wizard-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wizard-pill {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.55rem 1rem;
    border: 2px solid #ccc;
    border-radius: 2rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.wizard-pill:hover {
    border-color: #a71c1c;
}

.wizard-pill.selected {
    background: #a71c1c;
    border-color: #a71c1c;
    color: white;
}

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.wizard-btn {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #333;
    color: white;
}

.wizard-btn:hover {
    background: #555;
}

.wizard-next {
    background: #a71c1c;
    font-weight: 600;
}

.wizard-next:hover {
    background: #c50000;
}

.wizard-any {
    background: transparent;
    color: #666;
    border: 2px solid #ccc;
}

.wizard-any:hover {
    background: #f5f5f5;
    border-color: #aaa;
}

.wizard-show {
    background: transparent;
    color: #a71c1c;
    border: 2px solid #a71c1c;
    margin-left: auto;
}

.wizard-show:hover {
    background: #fff0ee;
}

.wizard-count {
    font-size: 0.85rem;
    color: #888;
    min-height: 1.3em;
    margin-bottom: 0.75rem;
}

.wizard-pill-zero {
    opacity: 0.3;
    cursor: not-allowed;
}

.wizard-pill-zero:hover {
    border-color: #ccc;
}

.wizard-loading,
.wizard-error,
.wizard-no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.wizard-error { color: #c00; }

/* ── Pattern results ────────────────────────────────── */

.wizard-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
    color: #555;
    font-size: 0.95rem;
}

.wizard-restart {
    background: transparent;
    color: #444;
    border: 1px solid #aaa;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.wizard-restart:hover {
    background: #f0f0f0;
}

.pattern-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .pattern-results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
    .pattern-results-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .pattern-results-grid { grid-template-columns: repeat(4, 1fr); }
    .pattern-wizard { max-width: 900px; }
}

.pattern-card {
    display: block;
    text-decoration: none;
    width: 100%;
    color: #333;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.15s;
}

.pattern-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.pattern-card .patterncoverimage {
    width: 100%;
    height: auto;
    display: block;
}

.pattern-card-name {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #444;
}

/* ── Pattern detail page ────────────────────────────── */

.pattern-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.pattern-detail-back {
    margin-bottom: 1rem;
}

.pattern-detail-back a {
    color: #a71c1c;
    text-decoration: none;
    font-size: 0.9rem;
}

.pattern-detail-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 560px) {
    .pattern-detail-inner {
        grid-template-columns: auto 1fr;
    }
}

.pattern-detail-image img {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pattern-detail-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.pattern-brand { color: #666; margin: 0 0 0.25rem 0; }
.pattern-price { font-weight: bold; font-size: 1.2rem; color: #a71c1c; margin: 0 0 1rem 0; }

