:root {
    --brand: #d71920;
    --brand-dark: #9f1117;
    --ink: #171717;
    --muted: #6f747b;
    --line: #e3e6ea;
    --soft: #f6f7f9;
    --deep: #25282d;
    --warm: #f6b436;
}

body {
    color: var(--ink);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

.btn {
    border-radius: 4px;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.quick-strip {
    background: #f3f4f6;
    border-bottom: 1px solid var(--line);
    color: #3c424a;
    font-size: .82rem;
}

.quick-strip .container {
    min-height: 36px;
}

.quick-links {
    display: flex;
    gap: 1.35rem;
}

.quick-links a {
    color: #3c424a;
}

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

.main-navbar {
    border-bottom: 1px solid var(--line);
    min-height: 74px;
}

.brand-mark {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
}

.brand-symbol {
    background: var(--brand);
    color: #fff;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    letter-spacing: 0;
}

.main-navbar .nav-link {
    color: #242830;
    font-weight: 600;
    padding: .75rem .9rem;
}

.main-navbar .nav-link:hover {
    color: var(--brand);
}

.mega-dropdown {
    position: static;
}

.mega-menu {
    width: min(1000px, calc(100vw - 2rem));
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 45px rgba(20, 24, 30, .12);
}

.mega-title {
    color: var(--ink);
    display: block;
    font-weight: 700;
    margin-bottom: .35rem;
}

.mega-menu li a {
    color: var(--muted);
    display: block;
    font-size: .9rem;
    padding: .12rem 0;
}

.mega-panel {
    background: linear-gradient(135deg, var(--brand), var(--deep));
    color: #fff;
}

.mega-panel p {
    color: rgba(255, 255, 255, .82);
}

.site-search {
    align-items: center;
    background: #f3f4f6;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    margin-right: 1rem;
    min-width: min(330px, 100%);
    overflow: hidden;
}

.site-search input {
    background: transparent;
    border: 0;
    min-width: 0;
    outline: 0;
    padding: .62rem .85rem;
    width: 100%;
}

.site-search button {
    background: var(--deep);
    border: 0;
    color: #fff;
    min-height: 42px;
    padding: 0 .85rem;
}

.header-actions {
    display: flex;
    gap: .55rem;
}

.icon-action {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.icon-action:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cart-count {
    background: var(--brand);
    border-radius: 999px;
    color: #fff;
    font-size: .68rem;
    min-width: 18px;
    padding: .1rem .3rem;
    position: absolute;
    right: -3px;
    top: -6px;
    text-align: center;
}

.promo-marquee {
    background: var(--brand);
    color: #fff;
    font-size: .9rem;
    overflow: hidden;
    white-space: nowrap;
}

.promo-track {
    animation: promo-scroll 32s linear infinite;
    display: inline-flex;
    gap: 2rem;
    padding: .52rem 0;
}

.promo-track a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

@keyframes promo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-35%); }
}

.store-hero {
    background: linear-gradient(90deg, rgba(16, 17, 20, .82), rgba(16, 17, 20, .34)), var(--hero-image), #202328;
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 520px;
    position: relative;
}

.store-hero .container {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 660px;
    padding: 4rem 0;
}

.hero-eyebrow {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: .35rem .75rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, .86);
    font-size: 1.12rem;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0;
}

.section-heading a {
    color: var(--brand);
    font-weight: 700;
}

.brand-discovery {
    background: #fff;
    padding: 3rem 0 1rem;
}

.range-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 170px;
    padding: 1.2rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.range-card:hover {
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(20, 24, 30, .08);
    transform: translateY(-2px);
}

.range-card i {
    color: var(--brand);
    font-size: 2rem;
}

.range-card strong {
    font-size: 1.08rem;
}

.range-card span {
    color: var(--muted);
    font-size: .9rem;
}

.category-scroll,
.product-row {
    display: grid;
    gap: 1rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: .35rem;
    scroll-snap-type: x proximity;
}

.product-row {
    grid-auto-columns: minmax(245px, 285px);
}

.category-pill-card {
    background: linear-gradient(135deg, #f9fafb, #fff);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    min-height: 112px;
    padding: 1.15rem;
    scroll-snap-align: start;
}

.category-pill-card span {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
}

.category-pill-card small {
    color: var(--muted);
}

.highlight-section {
    background: var(--soft);
    padding: 3.5rem 0;
}

.highlight-tabs {
    border-bottom: 1px solid var(--line);
    gap: .45rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.highlight-tabs .nav-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    padding: .55rem 1rem;
    white-space: nowrap;
}

.highlight-tabs .nav-link.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
    box-shadow: 0 14px 35px rgba(20, 24, 30, .1);
    transform: translateY(-2px);
}

.offer-ribbon {
    background: var(--brand);
    border-radius: 0 0 6px 0;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    left: 0;
    padding: .35rem .55rem;
    position: absolute;
    top: 0;
    z-index: 2;
}

.product-media {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    display: block;
    padding: 1rem;
}

.product-media img,
.product-image-main {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.product-category {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: .35rem 0 .45rem;
    min-height: 2.5rem;
}

.product-title a {
    color: var(--ink);
}

.rating-line {
    align-items: center;
    color: var(--warm);
    display: flex;
    font-size: .78rem;
    gap: .08rem;
    margin-bottom: .75rem;
}

.rating-line span {
    color: var(--muted);
    margin-left: .35rem;
}

.price-stack {
    margin-top: auto;
}

.price-stack strong {
    display: block;
    font-size: 1.12rem;
}

.price-stack span {
    color: var(--muted);
    font-size: .82rem;
}

.product-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    margin-top: .85rem;
}

.feature-banner {
    border-radius: 8px;
    min-height: 270px;
    padding: 2rem;
}

.feature-banner span {
    display: block;
    font-weight: 800;
    margin-bottom: .65rem;
}

.feature-banner h2 {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 800;
    max-width: 560px;
}

.feature-banner a {
    font-weight: 800;
}

.feature-banner-dark {
    background: linear-gradient(135deg, #2b2f36, #111316);
    color: #fff;
}

.feature-banner-dark a {
    color: #fff;
}

.feature-banner-light {
    background: #fff4f4;
    border: 1px solid #ffd5d8;
}

.support-band {
    background: var(--deep);
    color: #fff;
    padding: 1.2rem 0;
}

.support-band i {
    color: var(--warm);
    display: block;
    font-size: 1.6rem;
    margin-bottom: .35rem;
}

.support-band strong {
    display: block;
    font-size: .92rem;
}

.site-footer {
    background: #f3f4f6;
}

.site-footer h2,
.site-footer h3 {
    color: var(--ink);
    font-weight: 800;
}

.site-footer li {
    margin-bottom: .4rem;
}

.site-footer a {
    color: #3f444c;
}

.footer-copy {
    color: var(--muted);
    max-width: 360px;
}

.footer-newsletter {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}

.footer-newsletter input {
    border: 0;
    outline: 0;
    padding: .72rem .85rem;
    width: 100%;
}

.footer-newsletter button {
    background: var(--brand);
    border: 0;
    color: #fff;
    min-height: 46px;
    padding: 0 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.account-nav,
.admin-content .card,
.dashboard-card {
    border-radius: 8px;
}

.admin-body {
    background: #f7faf9;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    background: #14211e;
    color: #fff;
    inset: 0 auto 0 0;
    padding: 1rem;
    position: fixed;
    width: 260px;
}

.admin-brand {
    color: #fff;
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: .75rem;
}

.admin-sidebar .nav-link {
    border-radius: 6px;
    color: rgba(255, 255, 255, .82);
    margin-bottom: .25rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

.admin-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    height: 62px;
    padding: .75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 5;
}

.admin-content {
    padding: 1.5rem;
}

.table td,
.table th {
    vertical-align: middle;
}

.admin-product-name {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-width: 220px;
}

.admin-product-thumb {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border: 1px solid var(--line);
    border-radius: 6px;
    flex: 0 0 54px;
    height: 54px;
    object-fit: contain;
    padding: .25rem;
    width: 54px;
}

.admin-image-tile {
    width: 150px;
}

.admin-image-tile img {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
    padding: .35rem;
    width: 100%;
}

.variation-create-box,
.variation-edit-box {
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.variation-select {
    max-width: 180px;
}

@media (max-width: 991.98px) {
    .quick-strip {
        display: none;
    }

    .site-search {
        margin-right: 0;
        width: 100%;
    }

    .header-actions {
        margin-top: .75rem;
    }

    .mega-menu {
        transform: none;
        width: 100%;
    }

    .store-hero,
    .store-hero .container {
        min-height: 430px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
        z-index: 20;
    }

    .admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .store-hero,
    .store-hero .container {
        min-height: 390px;
    }

    .hero-content {
        padding: 2.5rem 0;
    }

    .category-scroll,
    .product-row {
        grid-auto-columns: minmax(210px, 78vw);
    }
}
