:root {
    --brand: #2E7076;
    --brand-dark: #21565b;
    --ink: #172124;
    --muted: #667477;
    --paper: #fbfaf7;
    --soft: #eef5f5;
    --line: #dce6e6;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    background: rgba(251, 250, 247, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--brand);
    font-weight: 800;
    padding: 0;
}

.navbar-brand img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.navbar .container {
    gap: 16px;
}

.site-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.site-menu {
    width: 100%;
    padding: 9px 0 0;
    border-top: 1px solid rgba(220, 230, 230, .65);
    overflow: visible;
}

.category-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    overflow: visible;
    white-space: nowrap;
}

.category-menu a,
.category-dropdown > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
}

.category-menu a:hover,
.category-dropdown > a:hover {
    color: var(--brand);
}

.category-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.category-dropdown .dropdown-toggle::after {
    margin-top: 2px;
}

.category-dropdown .dropdown-menu {
    z-index: 1100;
    margin-top: 8px;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 33, 36, .10);
}

.category-dropdown .dropdown-item {
    font-weight: 650;
}

.category-dropdown .dropdown-item:active {
    background: var(--brand);
}

.site-search,
.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.site-search {
    margin-left: auto;
    width: min(100%, 390px);
}

.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-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);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(245, 251, 251, .96), rgba(245, 251, 251, .84) 48%, rgba(245, 251, 251, .50)),
        url("hero-shopping.svg") center right / cover no-repeat;
    padding: 54px 0 40px;
    border-bottom: 1px solid var(--line);
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.15rem, 6vw, 4.65rem);
    line-height: .97;
    font-weight: 850;
}

.lead {
    color: #536265;
}

.eyebrow {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-search {
    max-width: 680px;
}

.hero-logo {
    width: 132px;
    height: 132px;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
}

.post-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(23, 33, 36, .08);
}

.post-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--soft);
    color: var(--brand);
    font-size: 4rem;
    font-weight: 850;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
    background-color: #FFF;
}

.post-card-body {
    padding: 20px;
}

.post-meta {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 1.22rem;
    font-weight: 800;
}

.post-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.article {
    padding: 34px 0 0;
}

.article-head {
    max-width: 860px;
    margin-bottom: 26px;
}

.article-head h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 850;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    font-weight: 700;
    text-decoration: none;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 32px;
  background-color: #FFF;
}

.article-content {
    font-size: 1.06rem;
    line-height: 1.75;
}

.article-content h2 {
    margin-top: 30px;
    font-size: 1.55rem;
    font-weight: 800;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
}

.product-embed {
    display: grid;
    grid-template-columns: minmax(120px, 190px) 1fr;
    gap: 18px;
    align-items: stretch;
    margin: 28px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-embed-image {
    display: grid;
    place-items: center;
    min-height: 180px;
    background: var(--soft);
}

.product-embed-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: #fff;
}

.product-embed-image span {
    color: var(--brand);
    font-weight: 800;
}

.product-embed-body {
    padding: 18px 18px 18px 0;
}

.product-embed-label {
    margin-bottom: 4px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-embed h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 850;
}

.product-embed-body p:not(.product-embed-label) {
    color: var(--muted);
}

.product-embed-missing {
    display: block;
    padding: 14px;
    color: #7a4b00;
    background: #fff5df;
    border-color: #f0d49b;
}

.products-gallery {
    margin: 30px 0;
    padding: 18px 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.products-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-product-card:hover {
    border-color: var(--brand);
}

.gallery-product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--soft);
    border-radius: 6px;
    color: var(--brand);
    font-weight: 800;
}

.gallery-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

.gallery-product-card strong {
    font-size: .95rem;
    line-height: 1.25;
}

.gallery-product-card small {
    color: var(--muted);
    margin-top: 6px;
}

.products-gallery .carousel-control-prev,
.products-gallery .carousel-control-next {
    width: 36px;
}

.products-gallery .carousel-control-prev-icon,
.products-gallery .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    padding: 16px;
    background-color: var(--brand);
    border-radius: 999px;
    background-size: 55%;
}

.offers-box {
    position: sticky;
    top: 92px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.offers-box h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.product-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-card:hover {
    border-color: var(--brand);
}

.product-card img,
.product-placeholder {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--soft);
}

.product-placeholder {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 800;
}

.product-card small {
    display: block;
    color: var(--muted);
}

.related-link,
.empty-state {
    display: block;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
}

.footer {
    background: #17383c;
    color: #d9eeee;
}

@media (max-width: 767.98px) {
    .hero {
        padding-top: 32px;
        background:
            linear-gradient(180deg, rgba(245, 251, 251, .96), rgba(245, 251, 251, .88)),
            url("hero-shopping.svg") center / cover no-repeat;
    }

    .site-search,
    .hero-search {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .site-search {
        margin-left: 0;
    }

    .navbar .container {
        align-items: center;
    }

    .site-navigation {
        width: 100%;
        padding-top: 14px;
    }

    .site-menu {
        padding-top: 12px;
    }

    .category-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        white-space: normal;
    }

    .category-menu a,
    .category-dropdown > a {
        width: 100%;
        min-height: 38px;
    }

    .category-dropdown {
        display: block;
    }

    .category-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 4px 0 8px;
        box-shadow: none;
    }

    .offers-box {
        position: static;
    }

    .product-embed {
        grid-template-columns: 1fr;
    }

    .product-embed-body {
        padding: 16px;
    }

    .product-embed-image {
        min-height: 220px;
    }

    .products-gallery {
        padding: 14px 42px;
    }

    .products-gallery-grid {
        grid-template-columns: 1fr;
    }

    .post-cover {
        aspect-ratio: 1 / 1;
    }

    .article-cover {
        aspect-ratio: 1 / 1;
    }
}
