:root {
    --tenant-primary: #0d6efd;
    --tenant-secondary: #0f766e;
    --surface: #ffffff;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg-soft: #f3f7fb;
    --shadow-soft: 0 14px 36px rgba(17, 24, 39, .08);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(1100px 380px at -10% -10%, rgba(59, 130, 246, .09), transparent 55%),
        radial-gradient(800px 280px at 110% 0%, rgba(16, 185, 129, .08), transparent 50%),
        var(--bg-soft);
    color: #111827;
}

.container {
    max-width: 1160px;
}

h1,
h2,
h3,
.hero-title,
.product-title {
    font-family: 'Fraunces', serif;
    letter-spacing: -.01em;
}

.top-offers-bar {
    background: linear-gradient(90deg, var(--tenant-primary), #1d4ed8);
    color: #fff;
    padding: .8rem 0;
    box-shadow: 0 6px 16px rgba(13, 110, 253, .28);
}

.top-offers-content {
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem 1.25rem;
    align-items: center;
    justify-content: center;
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .01em;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: .1rem;
}

.top-offers-content::-webkit-scrollbar {
    display: none;
}

.top-offers-content span {
    position: relative;
    padding: .08rem 0;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .09);
    padding: .28rem .72rem;
}

.top-offers-content span + span::before {
    display: none;
}

.navbar {
    backdrop-filter: saturate(120%) blur(3px);
    border-color: #e6ecf3 !important;
}

.nav-search {
    width: min(560px, 100%);
}

.nav-mobile-category {
    padding-left: .2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(135deg, var(--tenant-primary), #1d4ed8);
    box-shadow: var(--shadow-soft);
}

.hero > .row {
    position: relative;
    z-index: 2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -35% -10% auto auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
}

.hero.hero-custom-bg {
    background: linear-gradient(135deg, var(--tenant-primary), #1d4ed8);
}

.hero.hero-custom-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: .4;
    z-index: 0;
    pointer-events: none;
}

.hero-image-only {
    padding: 0 !important;
    background: #dfe9f8;
}

.hero-banner-frame {
    width: 100%;
    aspect-ratio: 1920 / 700;
    min-height: 220px;
    max-height: 560px;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbe7fb, #f4f8ff);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.hero-tag {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 99px;
}

.hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.15;
}

.hero-metric-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

.hero-metric {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    padding: .85rem .75rem;
    display: flex;
    flex-direction: column;
}

.hero-metric strong {
    font-size: 1.5rem;
    line-height: 1;
}

.hero-metric span {
    font-size: .82rem;
    opacity: .95;
}

.benefits-strip {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: .75rem;
}

.benefit-item {
    font-size: .95rem;
    text-align: center;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    padding: .95rem .75rem;
    min-height: 118px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
    width: min(320px, 100%);
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 260px;
}

.benefits-count-1 .benefit-item {
    max-width: 460px;
    flex-basis: 460px;
}

.benefits-count-2 .benefit-item {
    max-width: 380px;
    flex-basis: 340px;
}

.benefits-count-3 .benefit-item {
    max-width: 340px;
    flex-basis: 300px;
}

.benefits-count-4 .benefit-item {
    max-width: 300px;
    flex-basis: 250px;
}

.benefit-item i {
    color: var(--tenant-primary);
    font-size: 1.85rem;
    line-height: 1;
}

.benefit-text {
    display: block;
    line-height: 1.2;
}

.catalog-head {
    background: rgba(255, 255, 255, .7);
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: .9rem 1rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .2rem .5rem;
    border-radius: 10px;
}

.brand-logo-highlight {
    width: 110px;
    height: 40px;
    object-fit: contain;
}

.category-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .72rem .9rem;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    background: #fff;
    border: 1px solid var(--line);
    transition: all .15s ease;
}

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

.category-chip:hover {
    border-color: color-mix(in srgb, var(--tenant-primary) 35%, #d9dde5);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.card,
.alert,
.form-control,
.form-select,
.btn {
    border-radius: 12px;
}

.card {
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.product-card {
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.product-image-wrap {
    position: relative;
}

.promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    padding: .25rem .5rem;
    border-radius: 999px;
}

.product-thumb {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #edf2f7;
}

.product-price,
.product-price-lg {
    color: #0b1324;
    font-weight: 800;
}

.product-price {
    font-size: 1.08rem;
}

.product-price-lg {
    font-size: 1.45rem;
}

.product-gallery-card,
.product-detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.product-gallery {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #eef3fb;
    border-radius: 12px;
}

.stl-viewer {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3fb;
}

.list-group-item {
    border-color: #edf1f6;
}

.text-primary,
.btn-primary,
.btn-outline-primary:hover,
.page-item.active .page-link {
    --bs-primary: var(--tenant-primary);
}

.page-link {
    color: #1f2937;
    border-color: #dde5f0;
}

.page-item.active .page-link {
    border-color: var(--tenant-primary);
}

.btn-action {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tenant-secondary);
    --bs-btn-border-color: var(--tenant-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5f57;
    --bs-btn-hover-border-color: #0b5f57;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a524c;
    --bs-btn-active-border-color: #0a524c;
}

.btn-outline-action {
    --bs-btn-color: var(--tenant-secondary);
    --bs-btn-border-color: var(--tenant-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tenant-secondary);
    --bs-btn-hover-border-color: var(--tenant-secondary);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 110, 253, .4);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}

.admin-navbar {
    background: linear-gradient(90deg, #0f172a, #1f2937);
}

.admin-body .table {
    --bs-table-bg: transparent;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.admin-actions-menu {
    min-width: 11rem;
    border-radius: 10px;
    border-color: #dbe3ef;
}

.admin-actions-menu .dropdown-item {
    font-size: .92rem;
    display: flex;
    align-items: center;
}

.admin-actions-menu form {
    margin: 0;
}

.admin-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.admin-kpi-card {
    border: 1px solid #dce6f3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.admin-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(13, 110, 253, .1);
    color: var(--tenant-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-chart-card {
    border: 1px solid #dce6f3;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.admin-chart-wrap {
    position: relative;
    height: 340px;
}

.footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, .85), #fff);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.footer-company-card,
.footer-contact-card {
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    background: #fff;
    padding: .85rem .95rem;
}

.footer-company-name {
    font-size: 1rem;
    color: #1f2937;
}

.footer-address,
.footer-contact-card {
    line-height: 1.45;
}

.footer-note {
    color: #4b5563;
}

.footer-copy {
    color: #4b5563;
}

@media (max-width: 991px) {
    .product-thumb {
        height: 205px;
    }

    .benefit-item {
        min-width: 200px;
        max-width: 280px;
        flex-basis: 220px;
    }
}

@media (max-width: 767px) {
    .category-chips {
        grid-template-columns: 1fr;
    }

    .hero-metric-wrap {
        grid-template-columns: 1fr 1fr;
    }

    .navbar .nav-search {
        width: 100%;
        margin-top: .6rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        border-radius: 14px !important;
    }

    .hero-banner-frame {
        min-height: 170px;
    }

    .product-thumb {
        height: 220px;
        object-fit: contain;
        object-position: center center;
        background: #eef2f7;
    }

    .product-gallery {
        max-height: 350px;
    }

    .stl-viewer {
        height: 340px;
    }

    .admin-chart-wrap {
        height: 280px;
    }

    .benefit-item {
        width: 100%;
        flex-basis: 100%;
    }

    .top-offers-bar {
        padding: .58rem 0;
    }

    .top-offers-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: .86rem;
        gap: .35rem;
        padding-inline: 0;
        overflow: visible;
    }

    .top-offers-content span + span::before {
        display: none;
    }

    .top-offers-content span {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: .24rem .6rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .footer-company-card,
    .footer-contact-card {
        padding: .72rem .8rem;
        text-align: center;
    }

    .footer-address,
    .footer-contact-card,
    .footer-note,
    .footer-copy {
        text-align: center;
        align-items: center;
        font-size: .82rem;
    }
}
