/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --black: #050505;
    --navy: #0b2d5c;
    --blue: #1565c0;
    --blue2: #0b4fa3;
    --gold: #ffb300;
    --bg: #f4f7fb;
    --text: #18212f;
    --muted: #667085;
    --border: #e5e7eb;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Times, sans-serif;
    min-height: 100vh;
    background-color: #090607;
    background-image: url('../images/site-background-red-black.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
}

a {
    color: var(--blue);
}


/* =========================================================
   HEADER / NAVBAR
========================================================= */

.navbar {
    min-height: 76px;
    padding: 8px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    /* GRAY HEADER */
    background: #0066cc;

    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 20;
}


/* =========================================================
   SITE BRAND
========================================================= */

.site-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}



/* =========================================================
   HEADER LOGO — SMALL SIZE
========================================================= */

.site-brand {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 55px;
    text-decoration: none;
}


/* FORCE LOGO TO 40px × 40px */

.site-logo-image {
    display: block !important;

    width: 69.69px !important;
    height: 60px !important;

    min-width: 69.69px !important;
    min-height: 60px !important;

    max-width: 69.69px !important;
    max-height: 60px !important;

    padding: 0 !important;
    margin: 0 !important;

    object-fit: contain !important;

    border-radius: 6px;

    background: #ffffff;

    box-shadow: none !important;

    flex: 0 0 69.69px !important;
}


/* MOBILE — SAME SMALL SIZE */

@media (max-width: 700px) {

    .site-logo-image {
        width: 69.69px !important;
        height: 60px !important;

        min-width: 69.69px !important;
        min-height: 60px !important;

        max-width: 69.69px !important;
        max-height: 60px !important;

        flex: 0 0 69.69px !important;
    }
}


/* =========================================================
   BRAND TEXT
========================================================= */

.site-logo-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-logo-text {
    color: #1683ff;
    font-size: 39px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.site-logo-subtext {
    color: #ffcf70;
    font-size: 16.5px;
    font-weight: 700;
    margin-top: 3px;
    white-space: nowrap;
}


/* =========================================================
   MENU
========================================================= */

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 27px;
    padding: 9px 18px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.menu a:hover {
    background: #ffffff;
    color: #333333;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    max-width: 1240px;
    margin: 32px auto;
    padding: 0 20px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 430px;
    border-radius: 22px;
    padding: 70px 60px;

    display: flex;
    align-items: center;

    color: #ffffff;
    overflow: hidden;
    position: relative;

    background: transparent;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.hero h1 {
    font-size: 72px;
    line-height: 1.05;
    margin: 0 0 14px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 30px;
    color: #f1f5f9;
    margin: 0 0 25px;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    font-size: 42px;
    margin: 38px 0 18px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn,
button {
    display: inline-block;

    border: 0;
    border-radius: 9px;

    padding: 12px 20px;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--blue2)
    );

    color: #ffffff;
    text-decoration: none;

    cursor: pointer;
    font-weight: 700;

    transition: 0.2s ease;

    box-shadow: 0 5px 14px rgba(21, 101, 192, 0.22);
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}


/* =========================================================
   GRID LAYOUTS
========================================================= */

.product-grid,
.category-grid,
.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   CARDS
========================================================= */

.product-card,
.category-card,
.dashboard-card,
.card {
    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(16, 24, 40, 0.07);
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    padding: 18px;
    overflow: hidden;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 32px rgba(16, 24, 40, 0.13);
}

.product-card img {
    width: 100%;
    height: 205px;

    object-fit: contain;
    display: block;

    transition: 0.25s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-card h3 {
    margin: 14px 0 8px;
    font-size: 25.5px;
}

.product-card p {
    font-size: 31.5px;
    font-weight: 800;
    margin: 0 0 10px;
}


/* =========================================================
   GENERAL CARDS
========================================================= */

.category-card,
.dashboard-card,
.card {
    padding: 24px;
}


/* =========================================================
   AUTH / FORM / CHECKOUT BOX
========================================================= */

.auth-box,
.form-box,
.checkout-box {
    max-width: 520px;

    margin: 50px auto;

    background: #ffffff;

    padding: 32px;

    border-radius: 18px;

    border: 1px solid var(--border);

    box-shadow:
        0 14px 40px rgba(16, 24, 40, 0.10);
}

.auth-box h1,
.form-box h1,
.checkout-box h1 {
    margin-top: 0;
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

input,
textarea,
select {
    width: 100%;

    padding: 13px 14px;

    margin: 7px 0 15px;

    border: 1px solid #ccd3dc;

    border-radius: 9px;

    background: #ffffff;

    color: #18212f;

    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(21, 101, 192, 0.12);
}

textarea {
    min-height: 120px;
}


/* =========================================================
   TABLE
========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;
}

th,
td {
    padding: 13px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;
}

th {
    background: #f7f9fc;
    font-weight: 800;
}


/* =========================================================
   ALERTS
========================================================= */

.error {
    background: #fff0f0;

    color: #a00000;

    padding: 12px 14px;

    border-radius: 9px;

    margin-bottom: 15px;

    border: 1px solid #ffd0d0;
}

.success {
    background: #eaf8ee;

    color: #176b2d;

    padding: 20px;

    border-radius: 10px;

    border: 1px solid #bfe8c9;
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    background: #ffffff;

    padding: 30px;

    border-radius: 18px;

    border: 1px solid var(--border);

    box-shadow:
        0 8px 26px rgba(16, 24, 40, 0.08);
}

.product-details img {
    width: 100%;
    max-height: 450px;

    object-fit: contain;
}


/* =========================================================
   CAPTCHA
========================================================= */

.captcha-box {
    margin: 8px 0 12px;
}

.captcha-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;
}

.captcha-row img {
    width: 180px;
    height: 55px;

    display: block;

    border-radius: 8px;
}

.captcha-refresh {
    width: 42px;
    height: 42px;

    padding: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 33px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    margin-top: 60px;

    padding: 38px 20px;

    text-align: center;

    background: #000000;

    color: #ffffff;
}

footer h3 {
    margin: 0 0 6px;
}

footer p {
    margin: 5px;
    color: #d1d5db;
}


/* =========================================================
   PROFILE / REGISTER
========================================================= */

.register-box {
    max-width: 620px;
}

.profile-page {
    max-width: 1100px;

    margin: 35px auto;

    padding: 0 20px;
}

.profile-card {
    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 30px;

    background: #ffffff;

    padding: 30px;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   PROFILE PHOTO
========================================================= */

.profile-photo-wrap {
    text-align: center;
}

.profile-photo {
    width: 132px;
    height: 170px;

    min-width: 132px;
    min-height: 170px;

    max-width: 132px;
    max-height: 170px;

    border-radius: 10px;

    object-fit: cover;

    border: 4px solid #f0f2f5;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;
}

.profile-placeholder {
    background: #111111;

    color: #ffffff;

    font-size: 105px;

    font-weight: 800;
}


/* =========================================================
   PHOTO FORM
========================================================= */

.photo-form {
    display: flex;

    flex-direction: column;

    gap: 10px;

    align-items: center;

    margin-top: 18px;
}

.photo-form small {
    color: #777777;
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-btn {
    background: #333333 !important;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 5px 18px;
}

.form-grid label {
    display: block;

    margin-top: 10px;
}


/* =========================================================
   PROFILE INFORMATION
========================================================= */

.profile-info h1 {
    margin-top: 0;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.table-wrap {
    overflow-x: auto;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.08);
}

.table-wrap table {
    min-width: 1100px;
}


/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 850px) {

    .navbar {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .menu {
        justify-content: flex-start;
    }
}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 9px 15px;
    }

    .site-logo-image {
        width: 55px;
        height: 55px;

        min-width: 55px;
        min-height: 55px;

        max-width: 55px;
        max-height: 55px;
    }

    .site-logo-text {
        font-size: 33px;
    }

    .site-logo-subtext {
        font-size: 13.5px;
    }

    .menu {
        gap: 3px;
    }

    .menu a {
        font-size: 19.5px;

        padding: 8px 9px;
    }

    .hero {
        min-height: 360px;

        padding: 48px 25px;

        border-radius: 16px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 25.5px;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 19.5px;

        display: block;

        overflow-x: auto;
    }

    .auth-box,
    .form-box,
    .checkout-box {
        margin: 30px auto;

        padding: 24px;
    }
}


/* =========================================================
   SMALL MOBILE PROFILE
========================================================= */

@media (max-width: 750px) {

    .profile-card {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 132px;
        height: 170px;

        min-width: 132px;
        min-height: 170px;

        max-width: 132px;
        max-height: 170px;
    }

    .profile-placeholder {
        font-size: 82.5px;
    }
}

/* =========================================================
   FINAL HEADER OVERRIDES — requested 2026-10-06
   Applies site-wide because all pages use includes/navbar.php
========================================================= */
.navbar {
    background: #000000 !important;
}

.navbar .menu a {
    color: #ffffff !important;
}

.navbar .site-logo,
.navbar .site-logo:hover,
.navbar .site-logo:focus,
.navbar .site-logo:visited,
.navbar .site-logo-text {
    text-decoration: none !important;
}

.navbar .site-logo-text {
    color: #1683ff !important;
    font-size: 90px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.navbar .site-logo-image {
    width: 69.69px !important;
    height: 60px !important;
    min-width: 69.69px !important;
    min-height: 60px !important;
    max-width: 69.69px !important;
    max-height: 60px !important;
    flex: 0 0 69.69px !important;
}

@media (max-width: 700px) {
    .navbar .site-logo-text {
        font-size: 48px !important;
    }
}

/* =========================================================
   HEADER LOGO CURVE + LARGER BRAND TEXT — 2026-10-06
========================================================= */
.navbar .site-logo-image {
    border-radius: 18px !important;
    overflow: hidden !important;
    object-fit: cover !important;
}

.navbar .site-logo-text {
    font-size: 102px !important;
    font-weight: 900 !important;
    color: #1683ff !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

@media (max-width: 700px) {
    .navbar .site-logo-text {
        font-size: 54px !important;
    }
}
\n\n/* =========================================================\n   ORDER / HEADER FINAL FIX — 2026-10-06\n========================================================= */\n/* Manage Orders product image: fixed requested display size */\n.admin-order-item > img {\n    width: 295px !important;\n    height: 231px !important;\n    min-width: 295px !important;\n    max-width: 295px !important;\n    object-fit: contain !important;\n    object-position: center !important;\n    display: block !important;\n}\n\n/* Brand text requested display box: 823px x 95px */\n.navbar .site-logo-text {\n    width: 823px !important;\n    height: 95px !important;\n    max-width: 823px !important;\n    display: flex !important;\n    align-items: center !important;\n    white-space: nowrap !important;\n    font-size: 102px !important;\n    font-weight: 900 !important;\n    line-height: 95px !important;\n    color: #1683ff !important;\n    text-decoration: none !important;\n}\n\n@media (max-width: 1100px) {\n    .navbar .site-logo-text {\n        width: auto !important;\n        height: auto !important;\n        max-width: calc(100vw - 120px) !important;\n        font-size: clamp(28px, 6vw, 68px) !important;\n        line-height: 1.1 !important;\n    }\n}\n\n@media (max-width: 700px) {\n    .admin-order-item > img {\n        width: min(295px, 100%) !important;\n        height: 231px !important;\n        min-width: 0 !important;\n    }\n}\n
/* =========================================================
   GLOBAL FONT + HEADER/NAVBAR FINAL STYLE — 2026-10-07
========================================================= */
html, body, body *, button, input, select, textarea, option {
    font-family: "Times New Roman", Times, serif !important;
}

.navbar {
    background: #0066cc !important;
    color: #ffffff !important;
}

.navbar .menu a,
.navbar .site-logo,
.navbar .site-logo:hover,
.navbar .site-logo:focus,
.navbar .site-logo:visited,
.navbar .site-logo-text,
.navbar .site-logo-subtext {
    color: #ffffff !important;
}

.navbar .menu a:hover,
.navbar .menu a:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}



@media (max-width: 768px) {
    body { background-attachment: scroll; background-position: center top; }
}

/* Page background is shared by storefront, auth, account and admin pages.
   Keep content panels opaque so forms, tables and product text stay readable. */
main.container { background: transparent; }
main.container > h1,
main.container > h2,
main.container > h3,
main.container > p,
main.container > .section-title {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
@media (max-width: 768px) {
    body { background-position: 65% top; }
}
@media print {
    body { background: #ffffff; }
    main.container > h1, main.container > h2, main.container > h3,
    main.container > p { color: #18212f; text-shadow: none; }
}

/* Transparent product tiles on the shared computer-sales background. */
.product-card,
.product-card:hover {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
}
.product-card h2,
.product-card h3,
.product-card p,
.product-card strong,
.product-card span,
.product-card small,
.product-card a {
    color: #ffffff;
}
.product-card h2, .product-card h3, .product-card p,
.product-card strong, .product-card small {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
@media print {
    .product-card, .product-card h2, .product-card h3, .product-card p,
    .product-card strong, .product-card span, .product-card small, .product-card a {
        color: #18212f; text-shadow: none;
    }
}

/* Transparent shared header on every customer and admin page. */
.navbar {
    background: transparent !important;
    box-shadow: none;
}
.navbar .site-logo-text,
.navbar .site-logo-subtext,
.navbar .menu a {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* Shared transparent panels for categories, contact, authentication,
   customer accounts and administration. */
@media screen {
    main.container { color: #ffffff; }
    .category-card, .dashboard-card, .card,
    .auth-box, .form-box, .checkout-box, .profile-card,
    .product-details, .table-wrap, .order-list-card,
    .admin-order-card, .delivery-card, .admin-order-head,
    .admin-order-grid, .admin-order-items, .admin-order-item,
    .order-item-row, .order-totals, .admin-order-total,
    main.container table, main.container thead, main.container tbody,
    main.container tr, main.container th, main.container td {
        background: transparent;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.38);
    }
    main.container :is(h1, h2, h3, h4, p, label, small, strong, .muted) {
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }
    main.container a:not(.btn):not(.button) {
        color: #ffffff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    main.container :is(input, textarea, select) {
        background: transparent;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.65);
        color-scheme: dark;
    }
    main.container :is(input, textarea)::placeholder {
        color: #e5e7eb;
        opacity: 1;
    }
    main.container :is(input, textarea, select):focus {
        border-color: #ffffff;
        outline: 2px solid #90c9ff;
        outline-offset: 2px;
    }
    /* Native dropdown menus need an opaque surface for legible options. */
    main.container select option, main.container select optgroup {
        background: #18212f;
        color: #ffffff;
    }
    main.container .error, main.container .error-message,
    main.container .success, main.container .success-message {
        background: transparent;
        color: #ffffff;
    }
    main.container .error { border-color: #ff9393; }
    main.container .success { border-color: #8ee5ab; }
}

/* Text enlarged by 50%. Inherited text scales once; explicit pixel sizes
   above are scaled individually so nested elements do not compound. */
html { font-size: 24px; }
body { font-size: 1rem; }
button, input, select, textarea { font-size: 20px; }
/* Allow the larger brand and navigation to wrap without clipping. */
.navbar { flex-wrap: wrap; }
.navbar .site-brand, .navbar .site-logo { max-width: 100%; }
.navbar .site-logo-text {
    white-space: normal !important;
    overflow-wrap: anywhere;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100% !important;
    line-height: 1.1 !important;
}
.menu { max-width: 100%; }
.btn, button { white-space: normal; overflow-wrap: anywhere; }

/* Compact brand and a single-line header navigation. */
.navbar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2%;
}
.navbar .site-brand { flex: 0 0 auto; min-width: 0; }
.navbar .site-logo { height: auto; }
.navbar .site-logo-text {
    font-size: clamp(30px, 3.2vw, 60px) !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
    line-height: 1.1 !important;
}
.navbar .menu {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    padding-block: 3px;
}
.navbar .menu a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: clamp(18px, 1.6vw, 27px);
    padding: 9px 8px;
}
@media (max-width: 900px) {
    .navbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 15px; }
    .navbar .site-brand { align-self: center; max-width: 100%; }
    .navbar .site-logo-text { font-size: clamp(20px, 5vw, 40px) !important; }
    .navbar .site-logo-image {
        width: 46px !important; min-width: 46px !important; max-width: 46px !important;
        height: 40px !important; min-height: 40px !important; max-height: 40px !important;
        flex-basis: 46px !important;
    }
    .navbar .menu { width: 100%; }
    .navbar .menu a { font-size: 19.5px; }
}

/* Full brand artwork replaces the former icon and separate name. */
.navbar .site-brand { flex: 0 1 auto; }
.navbar .site-logo { display: flex; height: auto; max-width: 100%; }
.navbar .header-brand-image {
    display: block;
    width: clamp(280px, 34vw, 600px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 900px) {
    .navbar .site-brand { width: min(100%, 460px); }
    .navbar .site-logo, .navbar .header-brand-image { width: 100%; }
}

/* Enquiry controls stay together in one horizontal row. */
.enquiry-actions-cell { width: 1%; white-space: nowrap; }
.enquiry-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 0;
}
.enquiry-actions > .btn,
.enquiry-actions > button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 20px;
    line-height: 1.3;
    padding: 12px 18px;
    margin: 0;
}
.security-logs-table .log-phone { white-space: nowrap; }

/* Enquiries fit the viewport; details no longer compete with action buttons. */
.enquiry-list { display: grid; gap: 20px; min-width: 0; width: 100%; }
.enquiry-entry {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    overflow-wrap: anywhere;
}
.enquiry-entry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.enquiry-entry-heading h2 { min-width: 0; margin: 0; font-size: 28px; }
.enquiry-status { flex: 0 0 auto; font-size: 20px; }
.enquiry-details { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; margin: 20px 0; }
.enquiry-details > div { min-width: 0; }
.enquiry-details dt { font-weight: bold; font-size: 20px; }
.enquiry-details dd { margin: 4px 0 0; }
.enquiry-message { min-width: 0; }
.enquiry-message p { white-space: pre-wrap; margin: 8px 0 20px; }
.enquiry-entry .enquiry-actions { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 700px) {
    .enquiry-entry { padding: 12px; }
    .enquiry-entry-heading h2 { font-size: 24px; }
    .enquiry-details { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .enquiry-entry .enquiry-actions {
        display: grid;
        grid-template-columns: minmax(0,2.2fr) minmax(0,1.25fr) minmax(0,.8fr);
        gap: 6px;
    }
    .enquiry-entry .enquiry-actions > .btn,
    .enquiry-entry .enquiry-actions > button {
        min-width: 0;
        width: 100%;
        height: 100%;
        font-size: clamp(12px, 2.8vw, 18px);
        padding: 10px 4px;
        white-space: normal;
        overflow-wrap: normal;
    }
}

/* Customers: all details fit the available page width without a wide table. */
.customer-list { display: grid; gap: 20px; width: 100%; min-width: 0; }
.customer-entry {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    overflow-wrap: anywhere;
}
.customer-entry-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}
.customer-entry-heading h2 { min-width: 0; margin: 0; font-size: 28px; }
.customer-entry-heading > span { font-size: 20px; }
.customer-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 20px 0 0;
}
.customer-details > div { min-width: 0; }
.customer-details dt { font-size: 20px; font-weight: bold; }
.customer-details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .customer-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .customer-entry { padding: 14px; }
    .customer-entry-heading h2 { font-size: 24px; }
    .customer-details { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Order details: bounded images and responsive rounded result cards. */
.checkout-box.wide-box {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin: 24px auto;
    padding: 24px;
    overflow-wrap: anywhere;
}
.orders-list, .order-items-list, .admin-order-items {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.order-list-card, .admin-order-card, .delivery-card,
.order-item-row, .admin-order-item, .order-totals {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
    background: transparent;
    overflow-wrap: anywhere;
}
.admin-order-card { margin-bottom: 24px; }
.delivery-card { margin: 20px 0; }
.order-item-row, .admin-order-item {
    display: grid;
    grid-template-columns: minmax(0,295px) minmax(0,1fr);
    align-items: start;
    gap: 20px;
}
.order-item-row > img, .admin-order-item > img {
    display: block;
    width: 295px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 231px !important;
    aspect-ratio: 295 / 231;
    object-fit: contain !important;
    object-position: center;
    border-radius: 12px;
}
.order-item-row > div, .admin-order-item-info { min-width: 0; }
.order-item-row > strong { grid-column: 2; }
.order-item-row p { margin: 8px 0; }
.admin-order-item-info { display: grid; gap: 8px; }
.order-title-row, .admin-order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.order-title-row > div, .admin-order-head > div { min-width: 0; max-width: 100%; }
.admin-order-head .status-form { min-width: 0; max-width: 100%; }
.admin-order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.admin-order-grid > section { min-width: 0; }
.order-totals { margin: 20px 0; }
.order-totals > div, .admin-order-total > div, .order-list-card > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}
.order-totals .grand-total { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.4); }
.admin-order-total { margin-top: 20px; }
@media (max-width: 700px) {
    .checkout-box.wide-box { padding: 14px; margin: 16px auto; }
    .order-list-card, .admin-order-card, .delivery-card,
    .order-item-row, .admin-order-item, .order-totals { padding: 14px; }
    .order-item-row, .admin-order-item, .admin-order-grid { grid-template-columns: minmax(0,1fr); }
    .order-item-row > img, .admin-order-item > img { justify-self: center; }
    .order-item-row > strong { grid-column: 1; }
}

/* Keep a short cart's footer at the viewport bottom without an overlay. */
body.cart-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.cart-page > .navbar { flex: 0 0 auto; }
body.cart-page > main.container {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}
body.cart-page > footer {
    flex: 0 0 auto;
    position: static;
    width: 100%;
    margin-top: 0;
}


/* Site-wide contact strip: transparent background, white text, 75% larger */
.site-contact-strip {
    width: 100%;
    background: transparent;
    color: #ffffff;
    border-bottom: 0;
    padding: 3px 16px;
    margin: 0;
    line-height: 1.15;
    font-size: 24.5px; /* 75% larger than the previous 14px */
    font-weight: 800;
    position: relative;
    z-index: 21;
}
.site-contact-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 28px;
    text-align: center;
}
.site-contact-strip span,
.site-contact-strip a { color: #ffffff; text-decoration: none; }
.site-contact-strip a:hover { text-decoration: underline; }
@media (max-width: 520px) {
    .site-contact-strip { font-size: 21px; padding: 3px 8px; } /* 75% larger than previous 12px */
    .site-contact-strip-inner { gap: 5px 14px; }
}


/* =========================================================
   RESPONSIVE VIEWPORT FIT (browser zoom remains user-controlled)
========================================================= */
html {
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
img, video, iframe, canvas, svg {
    max-width: 100%;
}
input, select, textarea, button {
    max-width: 100%;
}
@media (max-width: 768px) {
    .container, .site-container, .main-container, .content, .page-container {
        width: 100%;
        max-width: 100%;
    }
    table {
        max-width: 100%;
    }
}


/* Final header spacing adjustment: contact details sit closer to the logo/navigation. */
.site-contact-strip { padding-top: 2px; padding-bottom: 2px; }
.site-contact-strip-inner { line-height: 1.15; }
.navbar { margin-top: 0 !important; padding-top: 4px !important; }


/* =========================================================
   ADMIN DASHBOARD — compact, balanced and responsive cards
========================================================= */
.admin-dashboard-page .container {
    width: min(100% - 36px, 1440px);
    max-width: 1440px;
    margin: 24px auto 40px;
}
.admin-dashboard-page h1 {
    margin: 0 0 22px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.admin-dashboard-page .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}
.admin-dashboard-page .dashboard-card {
    min-width: 0;
    min-height: 190px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: #fff;
    background: rgba(8, 10, 16, .22);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    backdrop-filter: blur(2px);
}
.admin-dashboard-page .dashboard-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 1.7vw, 27px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.admin-dashboard-page .dashboard-card h3 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.25;
}
.admin-dashboard-page .dashboard-card p {
    margin: 0;
    color: #f3f4f6;
    font-size: 16px;
}
.admin-dashboard-page .dashboard-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}
@media (max-width: 1050px) {
    .admin-dashboard-page .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .admin-dashboard-page .container { width: min(100% - 24px, 600px); margin-top: 18px; }
    .admin-dashboard-page .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .admin-dashboard-page .dashboard-card { min-height: 165px; padding: 16px 14px; gap: 10px; }
    .admin-dashboard-page .dashboard-card .btn { width: 100%; padding: 9px 10px; font-size: 16px; }
}
@media (max-width: 420px) {
    .admin-dashboard-page .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .admin-dashboard-page .dashboard-card { min-height: 150px; padding: 13px 11px; border-radius: 14px; }
    .admin-dashboard-page .dashboard-card h2 { font-size: 18px; }
    .admin-dashboard-page .dashboard-card .btn { font-size: 14px; padding: 8px; }
}


/* Contact panels share one surface and stay side by side on desktop. */
.contact-layout {
    width: 100%;
    margin: 28px auto 42px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}
.contact-layout .contact-box,
.contact-layout .contact-info-card {
    width: 100%; max-width: none; min-width: 0; margin: 0; padding: 24px;
    color: #fff; background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.36); border-radius: 16px;
    box-shadow: none; backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.contact-layout .contact-box p,
.contact-layout .contact-box label { color: #fff; }
.contact-layout .contact-box input,
.contact-layout .contact-box textarea {
    color: #fff; background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.58);
}
.contact-layout .contact-box input::placeholder,
.contact-layout .contact-box textarea::placeholder { color: rgba(255,255,255,.8); }
/* Contact Information uses the same heading and body sizes as Contact Us. */
.contact-info-card h2 {
    margin: 0 0 12px; font-size: 2em;
    line-height: 1.3; font-weight: 800;
}
.contact-info-card > p,
.contact-info-label,
.contact-info-item a,
.contact-info-item address { font-size: 1rem; line-height: 1.65; color: #fff; }
.contact-info-card > p { margin: 0 0 20px; font-weight: 700; }
.contact-info-item {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,.22);
}
.contact-info-label { font-weight: 800; white-space: nowrap; }
.contact-info-item a { max-width: 100%; overflow-wrap: anywhere; font-weight: 700; white-space: normal; text-decoration: none; }
.contact-info-item address { margin: 0; font-style: normal; font-weight: 700; }
.contact-address-line { display: block; }
.contact-info-item a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .contact-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .contact-layout .contact-box, .contact-layout .contact-info-card { padding: 20px; }
}

/* All storefront listings: three equal rounded tiles per desktop row. */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.product-grid .product-card {
    min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
    padding: 20px; border-radius: 16px;
    background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.36);
    box-shadow: none;
}
.product-grid .product-card img { width: 100%; height: 231px; object-fit: contain; border-radius: 10px; }
.product-grid .product-card h3 { overflow-wrap: anywhere; }
.product-grid .product-card p { font-size: 20px; overflow-wrap: anywhere; }
.product-grid .product-card .btn { margin-top: auto; }
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Plain confirmation on the existing transparent contact panel. */
.contact-layout .contact-box .success-message {
    display: block;
    box-sizing: border-box;
    margin: 16px 0 20px;
    padding: 14px 16px;
    color: #90ee90 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: none;
}

/* Category tiles reuse the storefront product grid and card surface. */
.category-grid .category-card h2 { margin: 14px 0 8px; font-size: 25.5px; overflow-wrap: anywhere; }
.category-grid .category-card { min-height: 190px; }
.contact-info-item address { min-width: 0; overflow-wrap: anywhere; }
.contact-info-card h2 { overflow-wrap: anywhere; }

/* Keep the address beside its label, including when the value wraps. */
.contact-info-item.contact-address-item {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    column-gap: 8px;
}

/* Contact address location preview. */
.contact-layout .contact-info-card { display: flex; flex-direction: column; }
.contact-info-card > :not(.contact-location) { flex-shrink: 0; }
.contact-location { margin: 16px 0 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-location h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.4; color: #fff; }
.contact-map-preview { position: relative; width: 100%; max-width: none; min-height: 270px; height: auto; flex: 1; margin: 0; box-sizing: border-box; overflow: hidden; border: 4px solid #fff; border-radius: 17px; background: #e5e7eb; }
.contact-map-preview iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.contact-map-preview .contact-map-link { position: absolute; top: 9px; left: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 3px; background: #fff; color: #0969da; font: 600 14px/1.3 Arial, sans-serif; text-decoration: none; box-shadow: 0 1px 5px rgba(0,0,0,.15); }
.contact-map-preview .contact-map-link:hover { background: #f0f6ff; text-decoration: underline; }
.contact-map-preview .contact-map-link:focus-visible { outline: 3px solid #0969da; outline-offset: 2px; }

/* Brands table matches the product-management list. */
.brand-admin-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 18px; }
.brand-admin-table th, .brand-admin-table td { padding: 12px; border-bottom: 1px solid #777; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.brand-admin-table th:nth-child(1) { width: 21%; }
.brand-admin-table th:nth-child(2) { width: 27%; }
.brand-admin-table th:nth-child(3) { width: 10%; }
.brand-admin-table th:nth-child(4) { width: 10%; }
.brand-admin-table th:nth-child(5) { width: 32%; }
.brand-table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.brand-table-actions form { margin: 0; padding: 0; width: auto; }
.brand-table-actions a, .brand-table-actions button { display: inline-block; padding: 8px 12px; border: 0; border-radius: 8px; background: #1565c0; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.brand-table-actions .brand-status { background: #4b5563; }
.brand-table-actions .brand-delete { background: #b42318; }
.brand-table-actions a:hover, .brand-table-actions button:hover { filter: brightness(1.12); }
@media (max-width: 760px) {
    .brand-admin-table { font-size: 13px; }
    .brand-admin-table th, .brand-admin-table td { padding: 7px 4px; }
    .brand-table-actions { gap: 6px; }
    .brand-table-actions a, .brand-table-actions button { padding: 7px 6px; font-size: 12px; white-space: normal; }
}

/* Keep the map action legible over its white background. */
.contact-map-preview .contact-map-link, .contact-map-preview .contact-map-link span { color: #0969da !important; }

/* Disable native dragging/selection of website image elements. */
img, picture, svg, canvas {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* About Us: director portrait and business journey. */
.about-intro { margin: 32px 0 24px; max-width: 820px; }
.about-intro h1 { margin: 8px 0 14px; }
.about-eyebrow { font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.about-page p { line-height: 1.7; }
.about-overview { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }
.about-director, .about-story, .about-journey { margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.36); border-radius: 16px; background: rgba(0,0,0,.3); color: #fff; }
.about-director img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; border-radius: 12px; }
.about-director figcaption { text-align: center; padding-top: 18px; }
.about-director h2, .about-director p { margin: 0 0 6px; }
.about-story h2 { margin-top: 0; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.about-journey { margin: 28px 0 40px; }
.about-journey h2 { margin-top: 0; }
.about-journey-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.about-journey-steps li { min-width: 0; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.5); }
.about-step { display: inline-block; font-weight: 800; font-size: 28px; }
.about-journey-steps h3 { margin: 12px 0 8px; }
@media(max-width:760px) { .about-overview, .about-journey-steps { grid-template-columns: minmax(0,1fr); } .about-director, .about-story, .about-journey { padding: 20px; } }

.cart-remove-form { margin: 0; padding: 0; }
.cart-remove-form .cart-remove-button { background: #b42318; color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-weight: 700; }
.cart-remove-form .cart-remove-button:hover { background: #961d14; }

/* Consistent previous-page control for storefront, account and admin pages. */
.page-back-toolbar { display: flex; margin: 18px 0; }
.page-back-toolbar .page-back-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: rgba(0,0,0,.4); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.4; }
.page-back-toolbar .page-back-button:hover { background: #1565c0; }
.page-back-toolbar .page-back-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
