:root {
    --bg-cream: #fff8ef;
    --bg-warm: #fff1de;
    --orange: #f28c38;
    --orange-deep: #dd6b20;
    --text: #2d2a26;
    --muted: #7a6f66;
    --card: rgba(255, 255, 255, 0.84);
    --shadow: 0 20px 45px rgba(187, 120, 58, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 140, 56, 0.18), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255, 215, 176, 0.26), transparent 30%),
        linear-gradient(180deg, var(--bg-cream), #fffdf9);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.site-header,
.site-footer {
    backdrop-filter: blur(12px);
}

.navbar {
    background: #c55312;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.navbar-brand {
    color: #fff;
}

.navbar-brand:hover {
    color: #fff;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    white-space: nowrap;
    color: #fff;
}

.brand-wrap,
.admin-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: inline-block;
    margin-right: 0.1rem;
    filter: drop-shadow(0 4px 12px rgba(221, 107, 32, 0.18));
}

.brand-logo-sm {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
}

.admin-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 12px rgba(221, 107, 32, 0.18));
}

.admin-brand-logo-sm {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffcf9f, #f28c38);
    color: #fff;
    margin-right: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-soft {
    background: linear-gradient(135deg, #ffb469, var(--orange));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    box-shadow: 0 12px 30px rgba(242, 140, 56, 0.22);
}

.btn-soft:hover {
    color: #fff;
    transform: translateY(-1px);
}

.hero-card,
.glass-card,
.product-card,
.admin-panel,
.form-card {
    background: var(--card);
    border: 1px solid rgba(242, 140, 56, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
    position: relative;
    width: min(100%, 1620px);
    max-width: none;
    margin-inline: auto;
}

.hero-marquee {
    width: min(100%, 1620px);
    max-width: none;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 180, 105, 0.95), rgba(242, 140, 56, 0.95));
    color: #fff;
    box-shadow: 0 14px 30px rgba(242, 140, 56, 0.18);
}

.hero-marquee-track {
    display: flex;
    width: max-content;
    animation: hero-marquee 22s linear infinite;
}

.hero-marquee-track span {
    flex: 0 0 auto;
    padding: 0.55rem 2.5rem;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes hero-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.333%);
    }
}

.hero-carousel {
    border-radius: var(--radius);
}

.hero-slide {
    position: relative;
}

.hero-slide-media {
    background: #f2f2f2;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-slide-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain !important;
    object-position: center;
}

.hero-slide-media picture,
.hero-jersey-banner picture {
    display: block;
}

.hero-jersey-banner {
    background: #fff;
    width: calc(100% + 3rem);
    margin: -1.25rem -1.5rem 1.25rem;
}

.hero-jersey-banner img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 120px;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(255, 248, 239, 0.94);
}

.hero-slide-content {
    width: 100%;
    max-width: none;
}

.hero-slide-content > :not(.hero-jersey-banner) {
    max-width: 560px;
}

.hero-slide-copy {
    color: #4c423a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-slide-secondary {
    background: rgba(255, 255, 255, 0.76);
}

.hero-indicators {
    margin-bottom: 0;
    gap: 0.4rem;
    bottom: 1rem;
}

.hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.7);
}

.hero-indicators .active {
    width: 34px;
    background: linear-gradient(135deg, #ffb469, var(--orange));
}

.hero-control {
    width: 4.2rem;
    opacity: 1;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background-color: rgba(45, 42, 38, 0.38);
    background-size: 48% 48%;
}

.hero-badge {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(242, 140, 56, 0.12);
    color: var(--orange-deep);
    font-size: 0.92rem;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.muted {
    color: var(--muted);
}

.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(187, 120, 58, 0.18);
}

.product-thumb {
    min-height: 220px;
    background: linear-gradient(135deg, rgba(242, 140, 56, 0.14), rgba(255, 255, 255, 0.92));
    display: grid;
    place-items: center;
    border-radius: 22px;
    overflow: hidden;
}

.product-thumb img {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(242, 140, 56, 0.12);
    color: var(--orange-deep);
    font-size: 0.85rem;
}

.tab-card .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(242, 140, 56, 0.08);
}

.tab-card .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #ffb469, var(--orange));
}

.size-badge,
.color-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    margin: 0.15rem;
}

.site-footer {
    background: rgba(255, 248, 239, 0.88);
    border-top: 1px solid rgba(242, 140, 56, 0.08);
}

.footer-brand-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(242, 140, 56, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--orange-deep);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.03em;
}

.footer-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange-deep);
    text-decoration: none;
}

.footer-brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 10px rgba(221, 107, 32, 0.14));
}

.footer-brand-text {
    color: var(--orange-deep);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.footer-text-link {
    color: #4c423a;
    padding: 0.2rem 0;
}

.footer-text-link:hover {
    color: var(--orange-deep);
}

.footer-link {
    padding: 0.45rem 0.8rem;
    background: rgba(242, 140, 56, 0.12);
    color: var(--orange-deep);
    border-radius: 999px;
}

.footer-bottom-bar {
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 0.9rem 1rem;
    font-weight: 600;
}

.admin-shell {
    background: #fff8ef;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #fff2df, #fff);
    border-right: 1px solid rgba(242, 140, 56, 0.1);
}

.admin-link {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.35rem;
    border-radius: 16px;
    color: #4c423a;
    font-weight: 600;
}

.admin-link:hover {
    background: rgba(242, 140, 56, 0.12);
    color: var(--orange-deep);
}

.admin-main {
    min-width: 0;
}

.stat-card {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,248,239,.95));
    box-shadow: var(--shadow);
    border: 1px solid rgba(242, 140, 56, 0.08);
}

.table thead th {
    border-top: 0;
    background: rgba(242, 140, 56, 0.08);
}

.preview-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
}

.design-choice {
    cursor: pointer;
    border: 1px solid rgba(242, 140, 56, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.design-choice:has(input:checked) {
    border-color: rgba(242, 140, 56, 0.55);
    box-shadow: 0 14px 34px rgba(242, 140, 56, 0.2);
    transform: translateY(-2px);
}

.status-checklist {
    display: grid;
    gap: 0.4rem;
    min-width: 220px;
}

.status-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #4c423a;
}

.status-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--orange);
}

.customer-status-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 280px;
}

.customer-status-step {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.customer-status-step.is-complete {
    background: rgba(242, 140, 56, 0.14);
    border-color: rgba(242, 140, 56, 0.24);
    color: var(--orange-deep);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

@media (max-width: 575.98px) {
    .brand-logo,
    .brand-logo-sm {
        width: 30px;
        height: 30px;
    }

    .admin-brand-logo,
    .admin-brand-logo-sm {
        width: 30px;
        height: 30px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .brand-wrap,
    .admin-brand-wrap {
        gap: 8px;
    }

    .footer-brand-logo {
        width: 22px;
        height: 22px;
    }

    .footer-brand-text {
        font-size: 1.15rem;
    }

    .hero-slide-overlay {
        position: static;
        padding: 1.15rem;
        background: rgba(255, 248, 239, 0.94);
    }

    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slide-content > :not(.hero-jersey-banner) {
        max-width: 100%;
    }

    .hero-jersey-banner {
        width: calc(100% + 2.3rem);
        margin: -1.15rem -1.15rem 1rem;
    }

    .hero-jersey-banner img {
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center;
    }

    .hero-marquee {
        margin-bottom: 0.55rem;
        border-radius: 14px;
    }

    .hero-marquee-track {
        animation-duration: 16s;
    }

    .hero-marquee-track span {
        padding: 0.45rem 1.4rem;
        font-size: 0.88rem;
    }

    .hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-card,
    .hero-marquee {
        border-radius: 0;
        width: 100%;
    }

    .hero-slide-media {
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .hero-slide-media img {
        height: auto;
        max-height: none;
        object-fit: contain !important;
        object-position: center;
    }

    .hero-control {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-slide-overlay {
        padding: 1.5rem;
        background: linear-gradient(180deg, rgba(255, 248, 239, 0.82) 0%, rgba(255, 248, 239, 0.16) 100%);
    }

    .hero-slide-media {
        min-height: 0;
        height: clamp(260px, 34vw, 340px);
        max-height: none;
        overflow: hidden;
    }

    .hero-slide-media img {
        height: 100%;
        max-height: none;
        object-fit: cover !important;
        object-position: center;
    }

    .hero-jersey-banner img {
        height: clamp(210px, 28vw, 280px);
        min-height: 210px;
        object-fit: cover;
        object-position: center;
    }
}
