body { font-weight:300;}

/* Make SweetAlert2 inputs look like Bootstrap form-control */
        .swal2-popup .swal2-input,
        .swal2-popup .swal2-textarea,
        .swal2-popup .swal2-file {
            width: 100%;
            box-sizing: border-box;

            /* Bootstrap-ish */
            display: block;
            margin: .5rem 0 0 0;
            padding: .375rem .75rem;
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.5;

            color: #212529;
            background-color: #fff;
            background-clip: padding-box;

            border: 1px solid #ced4da;
            border-radius: .375rem;

            transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
        }

        /* File input tweaks (SweetAlert uses input[type=file] with class swal2-file) */
        .swal2-popup .swal2-file {
            padding: .375rem .75rem;
        }

        /* Placeholder similar to Bootstrap */
        .swal2-popup .swal2-input::placeholder,
        .swal2-popup .swal2-textarea::placeholder {
            color: #6c757d;
            opacity: 1;
        }

        /* Focus state like Bootstrap */
        .swal2-popup .swal2-input:focus,
        .swal2-popup .swal2-textarea:focus,
        .swal2-popup .swal2-file:focus {
            outline: 0;
            border-color: #86b7fe;
            box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
        }

        /* Remove SweetAlert2 default shadows/odd spacing */
        .swal2-popup .swal2-input,
        .swal2-popup .swal2-textarea {
            box-shadow: none !important;
        }

        /* Better spacing between fields */
        .swal2-popup .swal2-html-container {
            margin-top: .5rem !important;
        }

        /* Optional: make the popup a bit more “Bootstrap card” feeling */
        .swal2-popup {
            border-radius: .75rem;
        }

        /* Optional: align checkbox row nicer */
        .swal2-popup label {
            font-size: .95rem;
            color: #212529;
        }

        .global-product-search {
            width: 100%;
            max-width: 420px;
        }

        .global-product-search .list-group {
            max-height: 300px;
            overflow-y: auto;
        }

        /* Layout */
        .split-layout {
            display: flex;
            min-height: calc(100vh - 113px);
        }

        .split-left {
            width: 50%;
            padding: 80px;
            background: #f6f4ee;
        }

        .split-right {
            width: 50%;
            position: relative;
        }

        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Typography */
        .form-title {
            font-size: 32px;
            margin-bottom: 30px;
            font-weight: 300;
        }

        /* Thumbnails */
        .thumb-row {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
        }

        .thumb {
            width: 80px;
            height: 80px;
            object-fit: cover;
        }

        /* Inputs - underline style */
        .form-group label {
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #777;
        }

        .form-control {
            border: none;
            border-bottom: 1px solid #ccc;
            border-radius: 0;
            padding-left: 0;
        }

        .form-control:focus {
            box-shadow: none;
            border-bottom: 1px solid #000;
        }

        /* Row */
        .form-row {
            display: flex;
            gap: 30px;
        }

        /* Colour buttons */
        .colour-btn {
            border: 1px solid #ccc;
            padding: 6px 14px;
            margin-right: 10px;
            cursor: pointer;
            background: transparent;
        }
        .colour-btn:hover {
            background: var(--bs-body-bg);
        }

        .btn-check:checked + .colour-btn {
            border-color: #000;
            background: #000;
            color: #fff;
            box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
        }

        /* Preview */
        .preview-box {
            margin-top: 30px;
            height: 200px;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Quote */
        .quote-result {
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }

        /* CTA */
        .btn-primary-custom {
            margin-top: 30px;
            background: #968d4c;
            color: white;
            border: none;
            padding: 12px 30px;
        }

        .btn-primary-custom:disabled {
            opacity: 0.5;
        }

        @media (max-width: 991.98px) {
            .split-layout {
                flex-direction: column-reverse;
                min-height: auto;
            }

            .split-left,
            .split-right {
                width: 100%;
            }

            .split-left {
                padding: 32px 20px;
            }

            .split-right {
                min-height: 42vh;
            }

            .hero-image {
                max-height: 60vh;
            }

            .thumb-row {
                flex-wrap: wrap;
            }

            .form-row {
                flex-direction: column;
                gap: 12px;
            }

            .btn-primary-custom {
                width: 100%;
            }

            .preview-box {
                height: 170px;
            }
        }

        .form-control { padding-left:1rem; }
        #frame-preview-shape {
            border:solid 1px #666;
        }
        #frame-preview-shape {
            position: relative;
            background: rgba(150, 141, 76, 0.12);
            border: 1px solid rgba(53, 51, 51, 0.35);
        }

        #frame-preview-width-label,
        #frame-preview-height-label {
            position: absolute;
            font-size: 11px;
            color: var(--brand-text);
            background: #f6f4ee;
            padding: 1px 5px;
            line-height: 1.2;
            white-space: nowrap;
        }

        #frame-preview-width-label {
            left: 50%;
            bottom: -22px;
            transform: translateX(-50%);
        }

        #frame-preview-height-label {
            top: 50%;
            left: -42px;
            transform: translateY(-50%) rotate(-90deg);
            transform-origin: center;
        }

        .list-group-item.active {
            background: var(--brand-secondary);
            border:solid 1px var(--brand-primary);
        }
        .admin-nav {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .admin-nav-card {
            background: var(--brand-highlight);
            border: 1px solid rgba(150, 141, 76, 0.35);
            border-radius: 14px;
            overflow: hidden;
        }

        .admin-nav-heading {
            padding: 0.7rem 1rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--brand-accent);
            border-bottom: 1px solid rgba(150, 141, 76, 0.25);
        }

        .admin-nav-link {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.75rem 1rem;
            color: var(--brand-text);
            text-decoration: none;
            font-size: 0.95rem;
            border-bottom: 1px solid rgba(150, 141, 76, 0.12);
        }

        .admin-nav-link-label {
            flex: 1;
        }

        .admin-nav-notification {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.25rem;
            height: 1.25rem;
            padding: 0 0.35rem;
            border-radius: 999px;
            background: #dc3545;
            color: #fff;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1;
        }

        .admin-nav-link:last-child {
            border-bottom: none;
        }

        .admin-nav-link i {
            width: 18px;
            color: var(--brand-accent);
            text-align: center;
        }

        .admin-nav-link:hover {
            background: rgba(150, 141, 76, 0.08);
            color: var(--brand-text);
        }

        .admin-nav-link.active {
            background: var(--brand-accent);
            color: #fff;
        }

        .admin-nav-link.active i {
            color: #fff;
        }
        .admin-layout {
            display: flex;
            gap: 1.5rem;
        }

        .admin-sidebar {
            width: 200px;
            min-width: 200px;
            flex-shrink: 0;
        }

        .admin-content {
            flex: 1;
        }
        .site-header {
            background: var(--brand-bg);
            border-bottom: 1px solid rgba(53, 51, 51, .45);
        }

        .site-header-inner {
            position: relative;
            height: 190px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 3rem;
        }

        .site-logo {
            width: 350px;
            max-width: 50vw;
            height: auto;
        }

        .site-menu-toggle {
            position: absolute;
            left: 3rem;
            top: 50%;
            transform: translateY(-50%);
            border: 0;
            background: transparent;
            color: var(--brand-text);
            font-size: 1.2rem;
            padding: .5rem;
        }

        .site-header-search {
            position: absolute;
            right: 3rem;
            top: 50%;
            transform: translateY(-50%);
            width: 210px;
            z-index: 3000;
        }
        .site-header-actions {
            position: absolute;
            right: 3rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .site-cart-link {
            position: relative;
            color: var(--brand-text);
            text-decoration: none;
            font-size: 1rem;
        }

        .site-cart-link-wrap {
            position: relative;
        }
        .site-cart-preview {
            position: absolute;
            top: calc(100% - 10px);
            right: -15px;
            width: min(380px, 88vw);
            background: #fff;
            border: 1px solid rgba(0,0,0,.12);
            box-shadow: 0 10px 24px rgba(0,0,0,.18);
            border-radius: 8px;
            padding: .75rem;
            display: none;
            z-index: 3100;
        }
        .site-cart-preview::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 0;
            right: 0;
            height: 10px;
        }
        .site-cart-link-wrap:hover .site-cart-preview,
        .site-cart-link-wrap:focus-within .site-cart-preview {
            display: block;
        }
        .site-cart-preview-items {
            max-height: 280px;
            overflow: auto;
            display: grid;
            gap: .55rem;
            padding-right: .25rem;
        }
        .site-cart-preview-item {
            display: flex;
            gap: .55rem;
            align-items: center;
        }
        .site-cart-preview-copy {
            flex: 1 1 auto;
            min-width: 0;
        }
        .site-cart-preview-remove {
            border: 0;
            background: transparent;
            color: #b02a37;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 28px;
            transition: background-color .15s ease, color .15s ease;
        }
        .site-cart-preview-remove:hover,
        .site-cart-preview-remove:focus {
            background: rgba(176, 42, 55, .12);
            color: #842029;
        }
        .site-cart-preview-image {
            width: 46px;
            height: 46px;
            object-fit: cover;
            border: 1px solid rgba(0,0,0,.15);
            border-radius: 4px;
            flex: 0 0 46px;
            font-size: .65rem;
        }
        .site-cart-preview-image-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6c757d;
            background: #f8f9fa;
        }
        .site-cart-preview-name {
            font-size: .86rem;
            line-height: 1.2;
        }
        .site-cart-preview-qty {
            font-size: .78rem;
            color: #6c757d;
        }
        .site-cart-preview-actions {
            border-top: 1px solid rgba(0,0,0,.08);
            margin-top: .75rem;
            padding-top: .65rem;
            display: flex;
            justify-content: space-between;
            gap: .5rem;
        }
        .site-cart-preview-actions .btn {
            flex: 1 1 auto;
        }
        .site-cart-preview-empty {
            color: #6c757d;
            font-size: .88rem;
            padding: .25rem 0;
        }
.site-cart-count {
            position: absolute;
            top: -8px;
            right: -10px;
            min-width: 16px;
            height: 16px;
            border-radius: 999px;
            background: #212529;
            color: #fff;
            font-size: .65rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
        }

        .site-header-search-input {
            width: 100%;
            height: 22px;
            border: 1px solid rgba(53, 51, 51, .55);
            background: transparent;
            padding: 0 28px 0 8px;
            font-size: .8rem;
        }



        #global-product-search-results {
            left: auto !important;
            right: 0;
            width: min(40vw, 520px);
            min-width: 320px;
            max-width: calc(100vw - 2rem);
            background: var(--brand-highlight);
        }
        .site-header-search i {
            position: absolute;
            right: -22px;
            top: 7px;
            font-size: .85rem;
            color: rgba(53, 51, 51, .7);
        }

        .site-menu-overlay {
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(226, 218, 194, .88);
            backdrop-filter: blur(2px);
            display: none;
            width:600px;
            max-width:50%;
        }

        .site-menu-overlay.is-open {
            display: block;
        }

        .site-menu-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            border: 0;
            background: transparent;
            font-size: 1.5rem;
            color: var(--brand-text);
            z-index: 2;
        }
.site-menu-panel {
    min-width: 320px;
    height: 100dvh;
    background: var(--brand-bg);
    border-right: 1px solid rgba(53, 51, 51, .18);

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: clamp(.4rem, 2vh, 2rem);
    padding: clamp(1.5rem, 6vh, 4rem) 4.5rem;

    width: 600px;

    transition: 1s;
    z-index: 999999;
    position: fixed;

    overflow: hidden;
}

.site-menu-panel a,
.site-menu-panel button {
    border: 0;
    background: transparent;
    padding: clamp(6px, 1.8vh, 20px) 20px;
    text-align: left;
    text-decoration: none;
    color: var(--brand-text);
    font-size: clamp(15px, 2.1vh, 20px);
    line-height: 1.1;
    font-family: var(--font-main);
}
.form-control::file-selector-button {
    color: #fff;
    background-color: var(--brand-accent);
    border: 0;
    border-right: 1px solid var(--brand-accent-hover);
    margin: -.375rem .75rem -.375rem -.75rem;
    padding: .375rem .75rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.form-control:hover:not(:disabled):not([readonly])::file-selector-button,
.form-control:focus:not(:disabled):not([readonly])::file-selector-button {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}

.form-control::-webkit-file-upload-button {
    color: #fff;
    background-color: var(--brand-accent);
    border: 0;
    border-right: 1px solid var(--brand-accent-hover);
    margin: -.375rem .75rem -.375rem -.75rem;
    padding: .375rem .75rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button,
.form-control:focus:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: var(--brand-accent-hover);
    border-color: var(--brand-accent-hover);
}

.customer-dashboard {
    padding-bottom: 4rem;
}

.dashboard-title {
    margin-bottom: 1.75rem;
}

.dashboard-section {
    margin-top: 2.25rem;
    scroll-margin-top: 1.5rem;
}

.customer-dashboard > .dashboard-section:first-of-type {
    margin-top: 0;
}

.dashboard-section-title {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.dashboard-panel,
.dashboard-action-card,
.dashboard-order-card,
.dashboard-product-card {
    overflow: hidden;
    background: rgba(245, 244, 238, 0.42);
    border: 1px solid rgba(150, 141, 76, 0.28);
}

.dashboard-action-card,
.dashboard-order-card,
.dashboard-product-card {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

.dashboard-action-card:hover,
.dashboard-order-card:hover,
.dashboard-product-card:hover,
.dashboard-action-card:focus,
.dashboard-order-card:focus,
.dashboard-product-card:focus {
    border-color: rgba(150, 141, 76, 0.55);
    box-shadow: 0 .35rem 1rem rgba(53, 51, 51, 0.08);
    transform: translateY(-1px);
}

.dashboard-order-card {
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.dashboard-card-media,
.dashboard-product-media {
    width: 100%;
    object-fit: cover;
    background: var(--brand-highlight);
}

.dashboard-card-media {
    height: 180px;
}

.dashboard-product-media {
    height: 140px;
}

.dashboard-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(53, 51, 51, 0.65);
}

.dashboard-empty-state {
    margin-top: 1rem;
    background: rgba(245, 244, 238, 0.42);
}

.dashboard-table-wrap .table {
    margin-bottom: 0;
}

.customer-dashboard .badge.bg-secondary {
    background-color: var(--brand-outline-secondary) !important;
}
.site-header-actions {z-index:2000;}

@media (max-width: 930px) {

    .site-menu-overlay {

        width: 100%;
        max-width:100%;
    }
    .site-menu-panel
    {
        width: 100%;
        max-width:100%;
    }


    .site-header-inner {
                height: auto;
                min-height: 130px;
                padding: .75rem 1.25rem .9rem;
                flex-direction: column;
                justify-content: center;
                gap: .55rem;
            }

            .site-menu-toggle {
                left: 1.25rem;
                top: 1rem;
                transform: none;
            }

            .site-header-actions {
                position: static;
                top: auto;
                right: auto;
                transform: none;
                gap: .5rem;
                width: min(100%, 360px);
                justify-content: center;
            }
           .site-header-search {
                position: relative;
                right: auto;
                top: auto;
                transform: none;
                width: 130px;
            }

            .site-logo {
                width: 350px;
            }

    .site-cart-preview
    {
        left: 50% !important;
        right: auto;
        transform: translateX(-66%);
        width: min(92vw, 420px);
        min-width: 0;
        max-width: calc(100vw - 1.5rem);
    }
            #global-product-search-results {
                left: 50% !important;
                right: auto;
                transform: translateX(-48%);
                width: min(92vw, 420px);
                min-width: 0;
                max-width: calc(100vw - 1.5rem);

            }

            .site-menu-panel {
                width: min(82%, 460px);
                min-width: 0;
                padding: 7rem 2rem 3rem;
            }
        }


#toast-container > .toast {
    opacity: 1;
    color: #fff;
    text-shadow: none;
}

#toast-container > .toast-success {
    background-color: #1f7a46;
}

#toast-container > .toast-error {
    background-color: #b02a37;
}

#toast-container > .toast-info {
    background-color: #0f5f8f;
}

#toast-container > .toast-warning {
    background-color: #8a6d1b;
}

.tm-summary-card {
    top: 1rem;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .tm-summary-card {
        position: static !important;
    }
}
