:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --surface-strong: #eefaf2;
    --ink: #111111;
    --muted: #4d4d4d;
    --accent: #00b67a;
    --accent-strong: #00b67a;
    --edge: #dfe4e6;
    --footer: #2f1c6a;
    --footer-ink: #ffffff;
    --ok: #2e8b57;
    --radius: 12px;
    --shadow: 0 14px 35px rgba(17, 17, 17, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 100% -20%, rgba(89, 206, 143, 0.1), transparent 42%),
        radial-gradient(circle at -10% 0%, rgba(232, 249, 253, 0.8), transparent 35%),
        var(--bg);
}

a {
    color: inherit;
}

.container {
    width: min(1240px, 94vw);
    margin: 0 auto;
}

.site-main {
    min-height: 58vh;
    padding: 1.4rem 0 2.4rem;
}

.site-header {
    border-bottom: 1px solid var(--edge);
    background: #5025d1;
    color: #ffffff;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    min-height: 68px;
}

.site-brand {
    font-family: Inter, sans-serif;
    font-size: 1.16rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
}

.menu-root,
.menu-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-root {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-root-item {
    position: relative;
}

.menu-root-item > a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.5rem 0.6rem;
    border-radius: 999px;
    color: #111111;
}

.menu-root-item > a:hover {
    background: rgba(89, 206, 143, 0.22);
    color: #111111;
}

.menu-children {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0.45rem;
    display: none;
}

.menu-root-item:hover > .menu-children,
.menu-item:hover > .menu-children {
    display: block;
}

.menu-children a {
    display: block;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
}

.menu-children a:hover {
    background: #eefaf2;
}

.menu-item {
    position: relative;
}

.menu-item > .menu-children {
    left: calc(100% + 8px);
    top: -6px;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.site-search input {
    height: 38px;
    border: 1px solid var(--edge);
    border-radius: 10px;
    width: 260px;
    padding: 0 0.8rem;
    font-size: 0.92rem;
    background: #ffffff;
    color: #111111;
}

.site-search button,
.filter-group button,
.newsletter-row button {
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 0 0.9rem;
    cursor: pointer;
}

.site-search button:hover,
.filter-group button:hover,
.newsletter-row button:hover {
    background: #d91900;
}

.hero-block {
    border: 1px solid var(--edge);
    background: linear-gradient(130deg, #ffffff, #f6fbf7);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.2rem;
}

h1,
h2,
h3 {
    font-family: Inter, sans-serif;
    margin: 0;
}

h1 {
    font-size: clamp(1.48rem, 3vw, 2rem);
}

h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

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

.home-row,
.product-description,
.offers-panel,
.history-panel,
.product-panel,
.filter-panel,
.listing-results,
.page-generic {
    border: 1px solid var(--edge);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-row {
    margin-bottom: 1.15rem;
    padding: 1rem;
}

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

.section-head a {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs {
    display: flex;
    gap: 0.42rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.86rem;
    margin-bottom: 0.9rem;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--muted);
}

.listing-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 1rem;
    align-items: start;
}

.filter-panel {
    padding: 1rem;
    position: sticky;
    top: 84px;
}

.filter-panel h2 {
    margin-bottom: 0.7rem;
}

.filter-caption,
.muted {
    font-size: 0.88rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group h3 {
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.filter-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.filter-group a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.88rem;
}

.filter-group form {
    display: grid;
    gap: 0.35rem;
}

.filter-group input {
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--edge);
    padding: 0 0.65rem;
}

.listing-results {
    padding: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.product-card {
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 34, 44, 0.11);
}

.product-card-link {
    display: block;
    padding: 0.72rem;
    text-decoration: none;
}

.product-card-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--edge);
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-title {
    margin-top: 0.62rem;
    font-size: 0.92rem;
    line-height: 1.35;
}

.product-card-price {
    margin-top: 0.35rem;
    color: var(--ok);
    font-weight: 800;
    font-size: 0.9rem;
}

.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.45rem 0 0.85rem;
    border: 1px solid var(--edge);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    background: #f5fbf7;
}

.page-link {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}

.page-link.disabled {
    pointer-events: none;
    color: #9aa3a6;
}

.page-status {
    font-size: 0.88rem;
    color: var(--muted);
}

.empty-state {
    border: 1px dashed var(--edge);
    padding: 1.1rem;
    border-radius: 12px;
    color: var(--muted);
}

.page-product h1 {
    margin-bottom: 0.25rem;
}

.product-subhead {
    margin-bottom: 0.9rem;
}

.product-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-gallery {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #f0deca;
}

.product-thumbs {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
}

.thumb-btn {
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 0;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.thumb-btn.active {
    border-color: var(--accent);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-side {
    display: grid;
    gap: 0.8rem;
}

.product-panel,
.product-description,
.offers-panel,
.history-panel,
.page-generic {
    padding: 1rem;
}

.variant-list,
.highlights-list {
    margin: 0.6rem 0 0;
    padding-left: 1rem;
}

.variant-list li {
    margin-bottom: 0.35rem;
}

.variant-list a {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    text-decoration: none;
}

.variant-list .selected a,
.variant-list a:hover {
    color: var(--accent);
}

.offers-panel {
    margin-top: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.89rem;
}

th,
td {
    border-bottom: 1px solid var(--edge);
    padding: 0.58rem 0.45rem;
    text-align: left;
}

th {
    font-size: 0.81rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4d4d4d;
}

.price-strong {
    font-weight: 800;
    color: var(--ok);
}

.history-panel {
    margin-top: 1rem;
}

.history-chart-wrap {
    height: 260px;
}

.site-footer {
    background: var(--footer);
    color: var(--footer-ink);
    margin-top: 1.4rem;
    padding-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
    gap: 1rem;
}

.footer-column h3,
.footer-newsletter h3 {
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.footer-column a {
    color: var(--footer-ink);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-empty {
    color: #ffffff;
    font-size: 0.86rem;
}

.footer-newsletter p {
    color: #333333;
}

.newsletter-row {
    display: flex;
    gap: 0.4rem;
}

.newsletter-row input {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #b8d6df;
    padding: 0 0.8rem;
    background: #ffffff;
    color: #111111;
}

.footer-base {
    border-top: 1px solid #b8d6df;
    margin-top: 1.2rem;
    padding: 0.95rem 0;
}

.footer-base p {
    color: #333333;
    margin: 0;
    font-size: 0.88rem;
}

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

    .filter-panel {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header-row {
        grid-template-columns: 1fr;
        padding: 0.7rem 0;
    }
}

@media (max-width: 760px) {
    .menu-root {
        flex-wrap: wrap;
    }

    .site-search {
        width: 100%;
    }

    .site-search input {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .product-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}