:root {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #2563eb;
    --ink: #17202a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f5f9fb;
    --warning: #f59e0b;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

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

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

a:hover {
    color: var(--brand-dark);
}

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

.btn {
    border-radius: var(--radius);
    font-weight: 800;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

.topbar {
    background: #eef8f6;
}

.navbar-brand {
    font-weight: 900;
    color: var(--ink);
}

.navbar .nav-link {
    font-weight: 600;
}

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

.site-main {
    min-height: 70vh;
}

.section {
    padding: 48px 0;
}

.section-muted {
    background: var(--soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-section {
    padding: 36px 0 38px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(37, 99, 235, .08)),
        linear-gradient(180deg, #ffffff, #f6fbfc);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-carousel {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.hero-slide {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
    isolation: isolate;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, .12) 100%),
        linear-gradient(180deg, rgba(15, 118, 110, .08), rgba(37, 99, 235, .06));
}

.hero-slide__content {
    width: min(650px, 100%);
}

.hero-carousel .carousel-indicators {
    margin-bottom: 16px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background-color: var(--brand);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 7%;
}

.hero-section h1 {
    max-width: 680px;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-section .lead {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-points span,
.product-card__meta span,
.product-status span {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--muted);
}

.hero-media {
    position: relative;
}

.hero-media > img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.hero-panel {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.hero-panel__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted);
}

.hero-panel__top strong {
    color: var(--brand);
    font-size: 22px;
    line-height: 1.15;
    text-align: right;
}

.hero-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 4px;
}

.hero-category-list a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--ink);
    background: #f8fafc;
    font-weight: 800;
    font-size: 13px;
}

.hero-category-list a:hover {
    border-color: rgba(15, 118, 110, .35);
    background: #eef8f6;
    color: var(--brand-dark);
}

.hero-category-list--under {
    margin-top: 16px;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.mini-stat-grid div {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    padding: 14px;
}

.mini-stat-grid strong {
    display: block;
    color: var(--brand);
    font-size: 22px;
}

.mini-stat-grid span {
    color: var(--muted);
    font-size: 12px;
}

.featured-section {
    background: #0f172a;
    color: #fff;
}

.featured-section .eyebrow,
.featured-section .link-more {
    color: #a7f3d0;
}

.featured-section .section-heading h2 {
    color: #fff;
}

.featured-section .product-card {
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-weight: 850;
}

.link-more {
    font-weight: 700;
}

.category-tile,
.benefit,
.content-block,
.summary-box,
.checkout-form,
.info-grid > div,
.success-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.category-tile {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 20px;
    color: var(--ink);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.category-tile:hover {
    border-color: rgba(15, 118, 110, .35);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.category-tile span {
    font-size: 20px;
    font-weight: 800;
}

.category-tile small {
    margin-top: auto;
    color: var(--muted);
}

.quick-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-cats a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font-weight: 900;
}

.quick-cats a:hover {
    border-color: rgba(15, 118, 110, .35);
    color: var(--brand);
}

.quick-cats small {
    color: var(--muted);
    font-weight: 700;
}

.benefit {
    height: 100%;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: #eef8f6;
    color: var(--brand);
    font-size: 20px;
    margin-bottom: 14px;
}

.benefit h3 {
    font-size: 20px;
    font-weight: 800;
}

.benefit p,
.content-narrow p {
    color: var(--muted);
}

.category-seo {
    background: #fbfdff;
}

.category-seo h2 {
    font-size: 26px;
    font-weight: 900;
}

.category-seo p:last-child {
    margin-bottom: 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.product-card__image {
    position: relative;
    display: block;
    background: #f8fafc;
    aspect-ratio: 4 / 3;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--warning);
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
    font-size: 12px;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.product-card__title {
    min-height: 48px;
    color: var(--ink);
    font-weight: 800;
}

.product-card__meta,
.product-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: auto 0 14px;
}

.product-card__price strong {
    font-size: 22px;
}

.product-card__price del {
    color: var(--muted);
}

.footer-cta {
    background: #eef8f6;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 32px 0;
}

.site-footer {
    padding: 38px 0 70px;
    background: #0f172a;
    color: #fff;
}

.site-footer a,
.site-footer span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.site-footer .text-muted {
    color: #cbd5e1 !important;
}

.search-form {
    min-width: 280px;
}

.live-search {
    position: absolute;
    z-index: 1030;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.live-search__item {
    display: flex;
    gap: 10px;
    padding: 10px;
    color: var(--ink);
}

.live-search__item:hover {
    background: var(--soft);
}

.live-search__item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.live-search__item small,
.live-search__empty {
    display: block;
    color: var(--muted);
}

.live-search__empty {
    padding: 14px;
}

.empty-state {
    border: 1px dashed #b6c5d2;
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    color: var(--muted);
    background: #fbfdff;
}

.content-narrow {
    max-width: 920px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.info-grid > div {
    padding: 22px;
}

.info-grid h2 {
    font-size: 20px;
    font-weight: 800;
}

.contact-list {
    display: grid;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.search-page-form {
    display: flex;
    gap: 10px;
}

.mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    padding: 10px 6px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mobile-nav a.active {
    color: var(--brand);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 58px;
    }

    .search-form {
        min-width: 100%;
        margin: 10px 0;
    }

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

    .info-grid,
    .mini-stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 28px 0 34px;
    }

    .hero-slide {
        min-height: 440px;
        align-items: flex-start;
        padding: 22px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .84) 62%, rgba(255, 255, 255, .18) 100%);
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .hero-section h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .hero-section .lead {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero-points {
        gap: 6px;
        margin-top: 16px;
    }

    .hero-points span {
        padding: 6px 9px;
        font-size: 12px;
    }

    .hero-media {
        margin-top: 8px;
    }

    .hero-panel {
        position: static;
        margin-top: 12px;
        padding: 16px;
    }

    .hero-panel__top {
        align-items: start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 10px;
    }

    .hero-panel__top strong {
        text-align: left;
        font-size: 20px;
    }

    .hero-category-list {
        flex-wrap: nowrap;
        margin: 12px -16px 0;
        overflow-x: auto;
        padding: 0 16px 4px;
        scrollbar-width: none;
    }

    .hero-category-list::-webkit-scrollbar {
        display: none;
    }

    .hero-category-list a {
        flex: 0 0 auto;
    }

    .search-page-form {
        flex-direction: column;
    }
}
