﻿@import url('https://fonts.googleapis.com/css2?family=Lato&family=Caveat:wght@400;600&display=swap');

body {
}

.pagefooter {
    background-color: black;
    color: white;
    padding-top: 20px;
    margin-top: 2rem;
}
    .pagefooter a {
        color: white;
        text-decoration: none;
    }
    .pagefooter a:hover {
        background-color: #a71c1c;
    }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem 1.5rem;
}
@media (max-width: 650px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Info pages — Opening Hours, Contact, About */
.info-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}
.info-page h1 {
    color: #a71c1c;
    border-bottom: 2px solid #a71c1c;
    padding-bottom: 0.4rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* About page */
.about-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}
.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: block;
}
.about-signature {
    font-weight: 600;
    color: #a71c1c;
    margin-top: 1.5rem;
}
@media (max-width: 650px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    .about-photo {
        margin: 0 auto 1rem;
    }
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 650px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-label {
    color: #a71c1c;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.contact-label:first-child {
    margin-top: 0;
}
.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}
.container-full-width {
    margin-bottom: 1rem;
}
.container-full-width > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.mainheading {
    color: black;
    margin-top: 1rem;
}
.mainheading a {
    text-decoration: none;
    color: black;
}
    .mainheading a:hover {
        text-decoration: underline;
        color: blue;
    }

.mainnavbar {
    background-color: black;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
}
    .mainnavbar a {
        text-decoration: none;
        color: white;
        padding: 3px 8px;
    }
        .mainnavbar a:hover {
            background-color: #a71c1c;
        }
        .mainnavbar a svg {
            fill: white;
        }
        .mainnavbar a:hover svg {
            background-color: #a71c1c;
        }
/* =============================================
   Single Responsive Header
   ============================================= */
.site-header-outer {
    background-color: #a71c1c;
    position: sticky;
    top: 0;
    z-index: 200;
}
    .site-header {
        display: grid;
        grid-template-columns: auto 1fr 1fr auto;
        align-items: center;
        background-color: #a71c1c;
        color: white;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        margin: auto;
        max-width: 1200px;
    }

    .site-search-bar {
        background-color: #8c1515;
        padding: 0.35rem 1rem 0.45rem;
    }

    .site-search-wrap {
        position: relative;
        max-width: 50rem;
        margin: 0 auto;
    }

    .site-search-form {
        display: flex;
        gap: 0.4rem;
    }

    .site-search-drop {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        z-index: 500;
        overflow: hidden;
    }

        .site-search-drop a {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            padding: 0.55rem 0.85rem;
            text-decoration: none;
            border-bottom: 1px solid #f0f0f0;
            gap: 0.75rem;
            font-size: 0.9rem;
            font-weight: normal;
            text-transform: none;
        }

        .site-search-drop a.search-drop-item {
            color: #222;
        }

            .site-search-drop a.search-drop-item:hover,
            .site-search-drop a.search-drop-item.search-drop-focused {
                background: #fdf0f0;
                color: #a71c1c;
            }

        .search-drop-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-drop-price {
            color: #a71c1c;
            font-weight: 600;
            flex-shrink: 0;
            font-size: 0.85rem;
        }

        .site-search-drop a.search-drop-more {
            justify-content: center;
            background: #fdf0f0;
            color: #a71c1c;
            font-size: 0.85rem;
            font-weight: 600;
            border-bottom: none;
        }

            .site-search-drop a.search-drop-more:hover,
            .site-search-drop a.search-drop-more.search-drop-focused {
                background: #a71c1c;
                color: white;
            }

        .site-search-form input[type='search'] {
            flex: 1;
            padding: 0.4rem 0.75rem;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            outline: none;
            min-width: 0;
        }

            .site-search-form input[type='search']:focus {
                outline: 2px solid white;
                outline-offset: 1px;
            }

        .site-search-form button[type='submit'] {
            background: white;
            border: none;
            border-radius: 4px;
            padding: 0.4rem 0.8rem;
            cursor: pointer;
            color: #a71c1c;
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

            .site-search-form button[type='submit']:hover {
                background: #f0f0f0;
            }

            .site-search-form button[type='submit'] svg {
                width: 1rem;
                height: 1rem;
                fill: currentColor;
                display: block;
            }

.search-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

        .site-header a {
            color: white;
            text-decoration: none;
            font-size: small;
        }

            .site-header a:hover {
                text-decoration: underline;
            }

    .site-header-middle {
        text-align: center;
    }

        .site-header-middle > div {
            display: inline-block;
            text-align: left;
        }

    @media (max-width: 600px) {
        .site-header-middle {
            display: none;
        }
        .site-header {
            grid-template-columns: auto 1fr auto;
        }
        .header-logo {
            min-width: 0;
            display: flex;
            justify-content: center;
        }
        .header-logo img {
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 44px;
        }
    }

    .header-logo img {
        height: 52px;
        display: block;
    }

    .header-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }

        .header-phone:hover {
            text-decoration: underline;
            color: white;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.header-cart {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

        .header-cart:hover {
            opacity: 0.85;
            color: white;
        }

#CartItemsCount {
    position: absolute;
    bottom: -5px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: black;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

    .header-hamburger {
        background: none;
        cursor: pointer;
        padding: 2px;
        display: flex;
        align-items: center;
        border: none;
    }

        .header-hamburger svg {
            width: 28px;
            height: 28px;
            display: block;
            fill: white;
        }

    .header-cart svg {
        width: 28px;
        height: 28px;
        display: block;
        fill: white;
    }

    .hambar {
        fill: white;
    }
    /* Slide-out nav menu */
    #navmenu {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(22rem, 85vw);
        height: 100%;
        background-color: black;
        z-index: 300;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 0.5rem;
    }

        #navmenu.open {
            left: 0;
        }

        #navmenu a {
            display: block;
            padding: 1rem 1.25rem;
            color: white;
            text-decoration: none;
            text-transform: uppercase;
            border-bottom: 1px solid #222;
            font-size: 1.05rem;
        }

            #navmenu a:hover {
                background-color: #a71c1c;
            }

    .nav-close {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.75rem 1.25rem;
        text-align: right;
        width: 100%;
    }

        .nav-close:hover {
            color: #a71c1c;
        }

    #nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 250;
    }

        #nav-overlay.open {
            display: block;
        }

    /* ── Nav department tree ─────────────────────── */

    .nav-separator {
        border: none;
        border-top: 2px solid #a71c1c;
        margin: 0.5rem 0;
    }

    .nav-dept-header {
        display: flex;
        align-items: stretch;
    }

    .nav-dept-toggle {
        background: none;
        border: none;
        border-bottom: 1px solid #222;
        color: white;
        font-size: 0.75rem;
        width: 2.5rem;
        min-width: 2.5rem;
        cursor: pointer;
        padding: 0;
        text-align: center;
        flex-shrink: 0;
    }

        .nav-dept-toggle:hover {
            background-color: #333;
        }

    .nav-dept-spacer {
        display: inline-block;
        min-width: 2.5rem;
        flex-shrink: 0;
    }

    #navmenu .nav-dept-link {
        padding: 0.5rem 0.75rem;
        text-transform: none;
        border-bottom: 1px solid #222;
        font-size: 0.9rem;
        flex: 1;
    }

    .nav-dept-children {
        display: none;
        padding-left: 1rem;
        border-left: 2px solid #333;
        margin-left: 1.25rem;
    }

    .nav-dept-node.open > .nav-dept-children {
        display: block;
    }

#navmenu .nav-dept-selected {
    font-weight: 700;
    color: #fce8e8;
    background-color: #a71c1c;
}

    /* ── Nav hint post-it ────────────────────────────── */

.nav-hint {
    position: fixed;
    top: 7rem;
    left: 0.5rem;
    width: 15rem;
    background: #f53060;
    color: white;
    padding: 0.65rem 0.75rem 0.65rem 0.75rem;
    box-shadow: 3px 4px 10px rgba(0,0,0,0.6);
    transform: rotate(-1.5deg);
    z-index: 190;
    font-size: 1.5rem;
    line-height: 1.45;
    font-family: Caveat;
}

    .nav-hint::before {
        content: '';
        position: absolute;
        top: -0.5rem;
        left: 1.25rem;
        border-left: 0.5rem solid transparent;
        border-right: 0.5rem solid transparent;
        border-bottom: 0.5rem solid #ffd6e0;
    }

    .nav-hint-close {
        position: absolute;
        top: 0.3rem;
        right: 0.4rem;
        cursor: pointer;
        font-size: 0.75rem;
        color: white;
        text-decoration: none;
        line-height: 1;
        padding: 0.1rem 0.25rem;
    }

        .nav-hint-close:hover {
            color: #333;
        }

    .smallheading {
        background-color: lavender;
        padding: 5px;
        text-transform: uppercase;
        font-size: x-small;
    }

    .altbackgrounds > div:nth-child(odd) > div {
        background-color: #FFFFFFbf;
        color: black;
    }

    .altbackgrounds > div:nth-child(even) {
        background-color: #000000bf;
        color: white;
    }

    .altbackgrounds > div:nth-child(even) a {
        color: #7cc4f5;
    }

    .altbackgrounds > div:nth-child(even) a:hover {
        color: #aadcff;
    }

    .altbackgrounds h1 {
        margin-top: 0;
    }


    .ScanDropBox {
        border: dashed 5px #333;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 15px 5px;
        margin: 5px;
    }

    .dragoverclass {
        background-color: #a71c1c;
        color: blue;
    }

    .productlinksbox {
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        flex-direction: row;
    }

        .productlinksbox a {
            border: solid 1px #333;
            padding: 13px 6px;
            flex-grow: 1;
            display: flex;
            justify-content: center;
        }

    .supplierwebbuttonbox {
        display: flex;
    }

        .supplierwebbuttonbox a {
            border: solid 1px #333;
            text-align: center;
            flex-grow: 1;
            padding: 6px 0;
        }

    .statsline {
        display: grid;
        grid-template-columns: 1fr 8rem 5rem;
    }

        .statsline > div {
            padding: 3px;
        }

            .statsline > div:nth-child(2), .statsline > div:nth-child(3) {
                text-align: right;
            }

    .jsondata {
        font-size: 12px;
    }

        .jsondata .key {
            font-weight: bold;
            color: deeppink;
        }

        .jsondata .string {
            font-weight: bold;
            color: rebeccapurple;
        }

        .jsondata .number {
            font-weight: bold;
            color: forestgreen;
        }

    .subcategoriesbox a {
        text-decoration: none;
    }

        .subcategoriesbox a:hover {
            text-decoration: underline;
        }

    .sidebar > div {
        background-color: #EEE;
        color: #a71c1c;
        margin-bottom: 2px;
        display: grid;
        grid-template-columns: 1rem 1fr;
        padding-left: 3px;
    }

    .sidebar a {
        display: block;
        margin-bottom: 1px;
        color: black !important;
        padding: 3px;
        text-decoration: none;
    }

        .sidebar a:hover {
            text-decoration: underline;
        }

    .sidebar .selecteditem {
        background-color: #c5c5c5;
    }

    .productboxes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    @media (min-width: 600px) {
        .productboxes { grid-template-columns: repeat(3, 1fr); }
    }

    @media (min-width: 900px) {
        .productboxes { grid-template-columns: repeat(4, 1fr); }
    }

    #PatternResults {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
    }

    .pattern-card {
        border: solid 2px #a71c1cd4;
        width: 286px;
        text-decoration: none;
    }

    .patterncoverimage {
        aspect-ratio: 282 / 400;
    }

    .paternfilterouter {
        margin-bottom: 6px;
        border: solid 2px #a71c1cd4;
        padding: 2px;
    }

    .patterncoverimage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    #PatternFilterInstruction {
        border: solid 2px #a71c1cd4;
        color: #a71c1cd4;
        font-weight: bold;
        font-size: 14pt;
        padding: 1rem 0;
        display: block;
        text-align: center;
        margin: 1rem 0;
    }

    .productbox {
        display: grid;
        width: 100%;
        border: solid 2px #a71c1cd4;
        grid-template-rows: auto auto auto;
        text-decoration: none;
        box-shadow: 10px 10px 10px #00000044;
    }

        .productbox:hover {
            background-color: #ffc8c8;
        }

    .productboxheadingX {
        text-align: center;
        font-family: Roboto, sans-serif;
        font-weight: bold;
        line-height: 1.3;
        min-height: calc(1.3em * 2); /* reserve space for 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        color: black;
    }

    .productboxheading {
        height: calc(1.3em * 2);
        padding: 2.1rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: #f1f1f1b5;
        color: #080808;
    }

        .productboxheading span {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.3;
            font-weight: 600;
        }

    .productImageBox {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
    }

    .productimage {
        margin: 0 auto;
        background-size: contain;
    }

    .productbottombox {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        padding: 5px 0;
        background-color: #f1f1f1b5;
        color: #080808;
    }

        .productbottombox > div {
            text-align: center;
        }

    .priceouter .price {
        font-weight: 900;
        font-size: 1.4rem;
        font-family: Roboto, Arial, sans-serif;
    }


    .departmentsnav {
        background-color: #CCCCCC99;
        color: #a71c1c;
        border-radius: 3px;
        padding: 6px;
        margin-bottom: 6px;
        font-size: 0.9rem;
    }

        .departmentsnav a {
            color: #a71c1c !important;
            text-decoration: none;
            padding: 3px 6px;
        }

        .departmentsnav a:hover {
            text-decoration: underline;
        }

    /* ── Department page layout ─────────────────────── */

    .dept-section-heading {
        color: #a71c1c;
        font-size: 1rem;
        font-weight: 600;
        margin: 1.25rem 0 0.5rem;
        padding-bottom: 0.25rem;
        border-bottom: 2px solid #a71c1c;
    }

    .dept-layout {
        display: grid;
        grid-template-columns: 15rem 1fr;
        gap: 1rem;
        padding: 1rem;
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
    }

    @media (max-width: 750px) {
        .dept-layout { grid-template-columns: 1fr; padding: 0.5rem; }
        .sidebar { display: none; }
    }

    /* Subcategory links grid */
    .subcategoriesbox {
        list-style: none;
        padding: 0.5rem;
        margin: 0 0 1rem 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        gap: 0.25rem;
        background-color: rgba(255,255,255,0.7);
        border-radius: 4px;
    }

    .subcategoriesbox li a {
        display: block;
        padding: 0.4rem 0.6rem;
        color: #a71c1c;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: white;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .subcategoriesbox li a:hover {
        background-color: #fce8e8;
        border-color: #a71c1c;
    }

    h1#productTitle {
        color: #a71c1c;
        font-family: Lato;
    }

    .pageinformation {
        background-color: #EEE;
        padding: 3px;
        margin-bottom: 0.5rem;
        display: block;
    }

        .pageinformation a {
            border: solid 1px #CCC;
            padding: 3px;
            display: inline-block;
        }

    .home-page-listofitems ul {
        columns: 20rem;
    }

    .management-menu-bar {
        background-color: rebeccapurple;
        color: white;
        padding: 6px
    }

        .management-menu-bar a {
            background-color: rebeccapurple;
            color: white;
            padding: 6px;
            display: inline-block;
        }

    .add-to-cart {
        display: block;
        padding: 6px;
        background-color: #a71c1c;
        color: white;
        border: 0;
        font-size: 1.1rem;
        font-weight: bold;
    }

    #cart-toast {
        position: fixed;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
        padding: 1rem 1.5rem;
        background: rgba(0,0,0,0.85);
        color: #fff;
        border-radius: 8px;
        font-size: 1rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 99999;
        text-align: center;
        max-width: 80%;
    }
    /* Cart Container */
    #cart-container {
        background: #fff;
        padding: 1rem;
        border-radius: 6px;
        box-shadow: 0 0 10px rgba(0,0,0,0.08);
    }
    /* Header Row */
    .cart-header {
        display: grid;
        grid-template-columns: 96px 1fr 160px 120px 80px;
        font-weight: bold;
        padding: 0.5rem 0;
        border-bottom: 2px solid #ddd;
        color: #222;
        text-transform: uppercase;
        font-size: 0.85rem;
        text-align: center;
    }

        .cart-header > div:first-child {
            grid-column: span 2;
        }
    /* Cart Row Layout */
    .cart-row {
        display: grid;
        grid-template-columns: 96px 1fr 160px 120px 80px;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }

        .cart-row:last-child {
            border-bottom: none;
        }
        /* Image */
        .cart-row .item-image img {
            width: 90px;
            height: 90px;
            object-fit: contain;
            border-radius: 4px;
        }
        /* Product Name */
        .cart-row .item-name a {
            font-weight: bold;
            color: #222;
            text-decoration: none;
            font-size: larger;
        }

            .cart-row .item-name a:hover {
                color: #d40000;
            }

        .cart-row > div:nth-child(5) {
            text-align: center;
        }

    .per-unit {
        color: #444;
    }
    /* Price + Subtotal */
    .item-price,
    .item-subtotal {
        font-weight: bold;
        color: #222;
        text-align: right;
    }
    /* Quantity Controls */
    .item-qty {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qty-minus, .qty-plus {
        background: #f7f7f7;
        border: 1px solid #ccc;
        font-size: 1.1rem;
        font-weight: bold;
        width: 32px;
        height: 32px;
        border-radius: 4px;
        cursor: pointer;
        color: #333;
        transition: 0.2s;
    }

        .qty-minus:hover, .qty-plus:hover {
            background: #d40000;
            border-color: #d40000;
            color: white;
        }
    /* Quantity Input */
    .qty-input {
        width: 70px;
        margin: 0 4px;
        padding: 4px;
        text-align: right;
        border: 1px solid #bbb;
        border-radius: 4px;
        font-size: 1rem;
    }
    /* Remove Button */
    .item-remove {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.3rem;
        color: #888;
        transition: 0.2s;
        text-align: center;
    }

        .item-remove::before {
            content: "❌"; /* Rubbish bin icon */
        }

        .item-remove:hover {
            color: #d40000;
        }
    /* Summary Box */
    .cart-summary {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 2px solid #ddd;
        font-size: 1.1rem;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
    }

    .checkout-button {
        display: block;
        margin-top: 1rem;
        background: #d40000;
        color: white;
        padding: 0.8rem;
        text-align: center;
        font-size: 1.2rem;
        font-weight: bold;
        border-radius: 6px;
        text-decoration: none;
        transition: 0.2s;
    }

        .checkout-button:hover {
            background: #b00000;
        }
    /* Cart empty – calm grey */
    #checkout-button.empty-cart {
        background-color: #bdbdbd;
        color: #333;
    }
        /* Still clickable, just less exciting */
        #checkout-button.empty-cart:hover {
            background-color: #a9a9a9;
        }
    /* Responsive */
    @media (max-width: 768px) {
        .cart-header, .cart-row {
            grid-template-columns: 80px 1fr 160px 100px 80px;
            font-size: 0.9rem;
        }

        .qty-input {
            width: 55px;
        }
    }
    /* -----------------------------
   Checkout layout
----------------------------- */

    .checkout-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 24px 16px 40px;
    }

        .checkout-container h1 {
            margin-bottom: 8px;
            font-size: 1.8em;
        }

        .checkout-container > p {
            margin-bottom: 24px;
            color: #555;
        }
    /* -----------------------------
   Sections
----------------------------- */

    .checkout-section {
        background: #fafafa;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 20px;
        margin-bottom: 20px;
    }

        .checkout-section h2 {
            margin-top: 0;
            margin-bottom: 16px;
            font-size: 1.3em;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 6px;
        }
    /* -----------------------------
   Form rows
----------------------------- */

    .form-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 14px;
    }

        .form-row label {
            font-weight: 600;
            margin-bottom: 4px;
            color: #333;
        }

        .form-row input[type="text"],
        .form-row input[type="email"],
        .form-row input[type="tel"] {
            padding: 10px 12px;
            font-size: 1em;
            border-radius: 4px;
            border: 1px solid #bbb;
            background: #fff;
        }

        .form-row input:focus {
            outline: none;
            border-color: #c62828; /* your nice red */
            box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
        }
    /* -----------------------------
   Radio groups
----------------------------- */

    .checkout-section label input[type="radio"] {
        margin-right: 6px;
    }

    .checkout-section label {
        margin-right: 16px;
        cursor: pointer;
    }
    /* -----------------------------
   Primary action button
----------------------------- */

    #checkout-submit {
        display: inline-block;
        margin-top: 10px;
        padding: 14px 28px;
        font-size: 1.1em;
        font-weight: 600;
        border-radius: 6px;
        border: none;
        background-color: #c62828; /* Sewing Centre red */
        color: #fff;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        #checkout-submit:hover {
            background-color: #b71c1c;
        }
    /* -----------------------------
   Message area
----------------------------- */

    #checkout-message {
        margin-top: 20px;
        padding: 16px;
        border-radius: 6px;
        background: #f1f1f1;
        color: #333;
    }

    .address-suggestions {
        border: 1px solid #ccc;
        background: #fff;
        margin-top: 4px;
        border-radius: 4px;
        max-height: 180px;
        overflow-y: auto;
    }

        .address-suggestions div {
            padding: 8px 10px;
            cursor: pointer;
        }

            .address-suggestions div:hover {
                background: #f0f0f0;
            }

    label .required {
        color: #c62828;
        font-size: 0.85em;
        vertical-align: super;
    }

    #ErrorMessageBox {
        color: orangered;
        font-weight: bold;
    }

    #ManagementPanel {
        border: solid 2px orangered;
        padding: 3px;
        overflow-x: scroll;
        width: 90vw;
    }

/* ── Shop / Product page ───────────────────────────────────── */

.shop-layout {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.shop-item-box {
    background-color: #FFFFFFDD;
    padding: 0 1rem 1rem;
}

.shop-item-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.shop-main-image {
    background-color: white;
    position: relative;
    border: 1px solid #333;
    margin-bottom: 6px;
    cursor: pointer;
}

    .shop-main-image img {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .shop-main-image > div {
        position: absolute;
        background-color: #FAFAFACC;
        font-size: small;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 3px;
    }

.shop-info-col {
    grid-row: span 2;
}

#SmallProductThumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

    #SmallProductThumbnails img {
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 2px;
    }

        #SmallProductThumbnails img:hover {
            border-color: #a71c1c;
        }

.swabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0.5rem 0;
}

.imageswab {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
}

    .imageswab:hover,
    .imageswab.selectedChildImage {
        border-color: #a71c1c;
        outline: 1px solid #a71c1c;
    }

#ImageZoomModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    place-items: center;
    cursor: pointer;
}

    #ImageZoomModal > div {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: min(90vw, 80vh);
        height: min(90vw, 80vh);
        position: relative;
    }

    #ImageZoomModal a {
        position: absolute;
        top: -2rem;
        right: 0;
        color: white;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.9rem;
    }

.shop-addtocart {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.productspecstable {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

    .productspecstable td {
        padding: 3px 6px;
        vertical-align: top;
        border-bottom: 1px solid #eee;
    }

    .productspecstable td:first-child {
        color: #555;
        white-space: nowrap;
        padding-right: 1rem;
    }

@media (max-width: 750px) {
    .shop-layout {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .shop-item-grid {
        grid-template-columns: 1fr;
    }

    .shop-info-col {
        grid-row: auto;
    }

    .shop-item-box {
        padding: 0 0.5rem 1rem;
    }
}

/* ── Department management panel (logged-in editors only) ── */
.dept-management-panel {
    border: solid 2px red;
    padding: 6px;
    background-color: white;
    overflow-x: auto;
    font-size: small;
    margin-top: 1rem;
}

.dept-management-heading {
    color: red;
}

@media (max-width: 750px) {
    .dept-management-panel {
        display: none;
    }
}
