:root {
    --sm-primary: #ff4b33;
    --sm-primary-dark: #d83d29;
    --sm-primary-soft: rgba(255, 75, 51, 0.1);
    --sm-dark: #101828;
    --sm-heading: #101828;
    --sm-text: #344054;
    --sm-muted: #667085;
    --sm-bg: #f6f8fb;
    --sm-surface: #ffffff;
    --sm-surface-alt: #f9fafb;
    --sm-border: #e5e7eb;
    --sm-success: #12b76a;
    --sm-warning: #f79009;
    --sm-danger: #f04438;
    --sm-radius-sm: 12px;
    --sm-radius-md: 18px;
    --sm-radius-lg: 28px;
    --sm-radius-pill: 999px;
    --sm-shadow-sm: 0 8px 22px rgba(16, 24, 40, 0.06);
    --sm-shadow-md: 0 18px 45px rgba(16, 24, 40, 0.08);
    --sm-shadow-lg: 0 30px 80px rgba(16, 24, 40, 0.14);
    --sm-container: 1180px;
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
body::before {
    top:-350px;
    left:200px;
    content: "";
    position: fixed;
    width: 1500px;
    height: 1500px;
    background-image: url("/Images/ShopmasterLogo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(255, 75, 51, 0.08), transparent 34rem), linear-gradient(180deg, #ffffff 0%, var(--sm-bg) 42%, var(--sm-bg) 100%);
    color: var(--sm-text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--sm-heading);
    font-weight: 850;
    letter-spacing: -0.035em;
}

p {
    margin-top: 0;
}

strong {
    font-weight: 800;
}

small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--sm-muted) !important;
}

/* Links */

a {
    color: var(--sm-primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

    a:hover {
        color: var(--sm-primary-dark);
        text-decoration: none;
    }

/* Layout helpers */

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: min(100% - 32px, var(--sm-container));
    max-width: var(--sm-container);
}

main {
    width: 100%;
}

.sm-page-shell {
    width: 100%;
    overflow: hidden;
}

.sm-section {
    padding: 76px 0;
}

.sm-section-tight {
    padding: 48px 0;
}

.sm-section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

    .sm-section-heading h1,
    .sm-section-heading h2 {
        margin: 14px 0 0;
        font-size: clamp(2rem, 4vw, 3.3rem);
        line-height: 1;
    }

    .sm-section-heading p {
        margin: 16px 0 0;
        color: var(--sm-muted);
        font-size: 1.05rem;
        line-height: 1.75;
    }

/* General cards */

.sm-card {
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius-lg);
    box-shadow: var(--sm-shadow-sm);
}

.sm-card-padding {
    padding: 24px;
}

/* Buttons */

.btn,
.sm-btn {
    border-radius: var(--sm-radius-pill);
    text-align: center;
    padding-top: 10px;
    font-weight: 800;
    width: 100px;
    min-height: 50px;
    min-width: 120px
}

.btn-primary,
.sm-btn-primary {
    border-color: var(--sm-primary);
    background-color: var(--sm-primary);
    color: #ffffff;
}

    .btn-primary:hover,
    .sm-btn-primary:hover {
        border-color: var(--sm-primary-dark);
        background-color: var(--sm-primary-dark);
        color: #ffffff;
    }

.btn-outline-primary {
    border-color: var(--sm-primary);
    color: var(--sm-primary);
}

    .btn-outline-primary:hover {
        border-color: var(--sm-primary);
        background-color: var(--sm-primary);
        color: #ffffff;
    }

.btn-light {
    border-color: var(--sm-border);
}

/* Focus states */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea:focus,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.12rem #ffffff, 0 0 0 0.28rem rgba(255, 75, 51, 0.42);
}

/* Forms */

.form-control,
.form-select {
    min-height: 44px;
    border-color: var(--sm-border);
    border-radius: 14px;
    color: var(--sm-dark);
}

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(255, 75, 51, 0.55);
    }

.form-label {
    color: var(--sm-dark);
    font-weight: 800;
}

.form-text {
    color: var(--sm-muted);
}

.form-check-input:checked {
    background-color: var(--sm-primary);
    border-color: var(--sm-primary);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Badges */

.badge {
    border-radius: var(--sm-radius-pill);
    font-weight: 800;
}

/* Tables */

.table {
    color: var(--sm-text);
}

    .table thead th {
        color: var(--sm-dark);
        font-size: 0.85rem;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .table > :not(caption) > * > * {
        border-bottom-color: var(--sm-border);
    }

/* Bootstrap nav pills override */

.nav-pills .nav-link {
    border-radius: var(--sm-radius-pill);
    color: var(--sm-text);
    font-weight: 750;
}

    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        color: #ffffff;
        background-color: var(--sm-primary);
    }

/* Utilities */

.border-top {
    border-top: 1px solid var(--sm-border) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--sm-border) !important;
}

.box-shadow {
    box-shadow: var(--sm-shadow-sm);
}

.bg-surface {
    background: var(--sm-surface);
}

.bg-soft {
    background: var(--sm-bg);
}

.text-primary {
    color: var(--sm-primary) !important;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Footer safety reset.
   Your actual footer styling can stay in Footer.css or _Layout.cshtml.css. */

.footer {
    position: static;
    width: 100%;
    white-space: normal;
    line-height: inherit;
}

/* Selection */

::selection {
    background: rgba(255, 75, 51, 0.2);
    color: var(--sm-dark);
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f6;
}

::-webkit-scrollbar-thumb {
    background: #c7cdd8;
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #aeb6c4;
    }

/* Footer */

.sm-footer {
    margin-top: 72px;
    padding: 42px 0 24px;
    background: #101828;
    color: #ffffff;
}

.sm-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sm-footer-brand {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

    .sm-footer-brand:hover {
        color: #ffffff;
    }

.sm-footer p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.sm-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

    .sm-footer-links a {
        color: rgba(255, 255, 255, 0.72);
        font-weight: 750;
        text-decoration: none;
    }

        .sm-footer-links a:hover {
            color: #ffffff;
        }

.sm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

@media (max-width: 650px) {
    .sm-footer-inner,
    .sm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive */

@media (max-width: 768px) {
    body {
        background: radial-gradient(circle at top left, rgba(255, 75, 51, 0.08), transparent 24rem), var(--sm-bg);
    }

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        width: min(100% - 24px, var(--sm-container));
    }

    .sm-section {
        padding: 54px 0;
    }

    .sm-section-tight {
        padding: 36px 0;
    }
}

@media (min-width: 1200px) {
    .sm-page-shell .container {
        padding-left: 72px;
    }
}
