* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #101828;
    --muted: #667085;
    --line: #e4e7ec;
    --paper: #ffffff;
    --soft: #f6f8fb;
    --brand: #2457e6;
    --brand-dark: #173ea8;
    --accent: #0f9f8f;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(16, 24, 40, .11);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

body.cart-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.demo-shell {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.demo-bar {
    color: #d8deeb;
    background: #0c1322;
    font-size: 12px;
}

.demo-bar .demo-shell {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.demo-bar a {
    color: #ffffff;
    font-weight: 700;
}

.demo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.demo-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.demo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
}

.demo-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: var(--radius);
    font-size: 15px;
}

.demo-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.demo-links a {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.demo-links a:hover {
    color: var(--brand);
}

.demo-btn,
.demo-btn-ghost,
.cart-button,
.product-button,
.filter-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.demo-btn {
    color: #ffffff;
    background: var(--brand);
    border: 1px solid var(--brand);
    padding: 12px 20px;
}

.demo-btn:hover,
.product-button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
}

.demo-btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .9);
    padding: 12px 20px;
}

.demo-hero {
    position: relative;
    min-height: calc(100vh - 178px);
    max-height: 760px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.demo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 50px 0;
}

.demo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}

.demo-hero h1 {
    font-size: clamp(44px, 5.2vw, 64px);
    line-height: 1.03;
    margin-top: 18px;
}

.demo-hero p {
    max-width: 610px;
    font-size: 17px;
    line-height: 1.75;
    margin-top: 20px;
}

.demo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.studio-theme {
    --brand: #176b67;
    --brand-dark: #0f4e4b;
    --accent: #d59b2c;
}

.studio-theme .demo-hero {
    color: #ffffff;
    background-image: url('../assets/img/portfolio/studio-hero.jpg');
}

.studio-theme .demo-hero::before {
    background: rgba(9, 22, 31, .52);
}

.studio-theme .demo-hero p {
    color: #eef4f4;
}

.shop-theme {
    --brand: #315f4c;
    --brand-dark: #244738;
    --accent: #c26a82;
    --soft: #f4f8f5;
}

.shop-theme .demo-hero {
    background-image: url('../assets/img/portfolio/botanica-products.jpg');
    background-position: center;
}

.shop-theme .demo-hero::before {
    background: rgba(255, 255, 255, .08);
}

.shop-theme .demo-hero-content {
    max-width: 560px;
}

.fitness-theme {
    --brand: #eb5e56;
    --brand-dark: #c9443d;
    --accent: #26365f;
}

.fitness-theme .demo-hero {
    background-image: url('../assets/img/portfolio/fitness-hero.jpg');
    background-position: center;
}

.fitness-theme .demo-hero::before {
    background: rgba(255, 255, 255, .08);
}

.fitness-theme .demo-hero-content {
    max-width: 575px;
}

.realty-theme {
    --brand: #1f4b43;
    --brand-dark: #15362f;
    --accent: #b88a44;
    --soft: #f5f7f6;
}

.realty-theme .demo-hero {
    color: #ffffff;
    background-image: url('../assets/img/portfolio/realty-hero.jpg');
    background-position: center;
}

.realty-theme .demo-hero::before {
    background: rgba(9, 25, 22, .38);
}

.realty-theme .demo-hero p {
    color: #eef4f2;
}

.demo-section {
    padding: 84px 0;
}

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

.demo-heading {
    max-width: 690px;
    margin-bottom: 38px;
}

.demo-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.demo-heading span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.demo-heading h2 {
    font-size: 38px;
    line-height: 1.17;
    margin-top: 12px;
}

.demo-heading p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 13px;
}

.feature-band,
.service-demo-grid,
.program-grid,
.product-grid,
.property-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.feature-band,
.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 26px 0;
}

.feature-band article,
.stats-grid article {
    padding-right: 18px;
    border-right: 1px solid var(--line);
}

.feature-band article:last-child,
.stats-grid article:last-child {
    border-right: 0;
}

.feature-band strong,
.stats-grid strong {
    display: block;
    font-size: 20px;
}

.feature-band span,
.stats-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

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

.demo-card,
.program-card,
.product-card,
.faq-item,
.demo-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

.demo-card,
.program-card,
.product-card,
.property-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.demo-card:hover,
.program-card:hover,
.product-card:hover,
.property-card:hover {
    transform: translateY(-6px);
    border-color: rgba(49, 95, 76, .24);
    box-shadow: 0 20px 44px rgba(16, 24, 40, .12);
}

.demo-card,
.program-card {
    padding: 28px;
}

.card-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--soft);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
}

.demo-card h3,
.program-card h3,
.product-card h3 {
    font-size: 19px;
    margin-top: 20px;
}

.demo-card p,
.program-card p,
.product-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 10px;
}

.split-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.split-demo-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-demo-image img {
    min-height: 390px;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .75, .25, 1);
}

.split-demo-image:hover img {
    transform: scale(1.045);
}

.split-demo-copy h2 {
    font-size: 40px;
    line-height: 1.15;
}

.split-demo-copy p {
    color: var(--muted);
    line-height: 1.8;
    margin: 17px 0 25px;
}

.filter-row {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-button {
    min-height: 40px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 14px;
    font-size: 13px;
}

.filter-button.active,
.filter-button:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

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

.property-search {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.property-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.property-search-form label {
    display: grid;
    gap: 7px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.property-search-form select {
    min-height: 48px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.property-search-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    margin-top: 12px;
}

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

.property-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.property-card[hidden] {
    display: none;
}

.property-image {
    height: 245px;
    overflow: hidden;
}

.property-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .35s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.07);
    filter: saturate(1.07);
}

.property-body {
    padding: 22px;
}

.property-body > span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.property-body h3 {
    font-size: 19px;
    margin-top: 7px;
}

.property-details {
    display: flex;
    gap: 13px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 11px;
}

.property-price {
    display: block;
    font-size: 20px;
    margin-top: 17px;
}

.favorite-button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    font-size: 18px;
}

.favorite-button.active {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
}

.product-card {
    overflow: hidden;
}

.product-card[hidden] {
    display: none;
}

.product-image {
    height: 260px;
    overflow: hidden;
    background: var(--soft);
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
    filter: saturate(1.06);
}

.product-image.serum img {
    object-position: 55% center;
}

.product-image.cream img {
    object-position: 72% center;
}

.product-image.cleanser img {
    object-position: 90% center;
}

.product-image.toner img {
    object-position: 82% center;
}

.product-image.oil img {
    object-position: 60% center;
}

.product-image.kit img {
    object-position: 72% center;
}

.product-info {
    padding: 22px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.product-meta strong {
    font-size: 18px;
}

.product-button {
    min-height: 40px;
    color: #ffffff;
    background: var(--brand);
    border: 1px solid var(--brand);
    padding: 8px 13px;
    font-size: 13px;
}

.cart-button {
    position: relative;
    width: 46px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--accent);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(16, 24, 40, .48);
}

.cart-overlay[hidden],
.cart-drawer[hidden] {
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(410px, 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--paper);
    box-shadow: -18px 0 55px rgba(16, 24, 40, .18);
}

.cart-header,
.cart-footer,
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 20px;
}

.cart-items {
    display: grid;
    gap: 12px;
    overflow-y: auto;
    padding: 24px 0;
}

.cart-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.cart-remove {
    color: #b42318;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}

.cart-empty {
    color: var(--muted);
    line-height: 1.7;
}

.cart-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.cart-footer strong {
    font-size: 20px;
}

.faq-list {
    max-width: 800px;
    display: grid;
    gap: 12px;
    margin: 0 auto;
}

.faq-question {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    background: transparent;
    border: 0;
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
}

.faq-answer {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    padding: 0 20px 20px;
}

.faq-answer[hidden] {
    display: none;
}

.booking-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
    gap: 50px;
}

.booking-copy h2 {
    font-size: 40px;
    line-height: 1.15;
}

.booking-copy p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 16px;
}

.demo-form {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.demo-form label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.demo-form input,
.demo-form select {
    width: 100%;
    min-height: 48px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    outline: 0;
}

.demo-form input:focus,
.demo-form select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(235, 94, 86, .12);
}

.demo-form-status {
    min-height: 22px;
    color: var(--brand-dark);
    font-size: 13px;
}

.demo-footer {
    color: #c9d1df;
    background: #0c1322;
    padding: 32px 0;
}

.demo-footer .demo-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.demo-footer a {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .demo-links {
        display: none;
    }

    .feature-band,
    .stats-grid,
    .service-demo-grid,
    .program-grid,
    .product-grid,
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-demo,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .split-demo-image {
        order: -1;
    }
}

@media (max-width: 620px) {
    .demo-bar .demo-shell {
        justify-content: center;
    }

    .demo-bar span {
        display: none;
    }

    .demo-nav {
        min-height: 68px;
    }

    .demo-nav > .demo-btn {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .demo-brand {
        font-size: 16px;
    }

    .demo-brand-mark {
        width: 31px;
        height: 31px;
    }

    .demo-hero {
        min-height: 640px;
        max-height: none;
        background-position: 64% center;
    }

    .shop-theme .demo-hero,
    .fitness-theme .demo-hero {
        background-position: 68% center;
    }

    .shop-theme .demo-hero::before,
    .fitness-theme .demo-hero::before {
        background: rgba(255, 255, 255, .72);
    }

    .demo-hero-content {
        padding: 62px 0;
    }

    .demo-hero h1 {
        font-size: 43px;
    }

    .demo-hero p {
        font-size: 15px;
    }

    .demo-actions,
    .demo-actions .demo-btn,
    .demo-actions .demo-btn-ghost {
        width: 100%;
    }

    .feature-band,
    .stats-grid,
    .service-demo-grid,
    .program-grid,
    .product-grid,
    .property-grid {
        grid-template-columns: 1fr;
    }

    .property-search-form {
        grid-template-columns: 1fr;
    }

    .feature-band article,
    .stats-grid article {
        padding: 0 0 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-band article:last-child,
    .stats-grid article:last-child {
        border-bottom: 0;
    }

    .demo-section {
        padding: 66px 0;
    }

    .demo-heading h2,
    .split-demo-copy h2,
    .booking-copy h2 {
        font-size: 31px;
    }

    .product-image {
        height: 240px;
    }

    .demo-footer .demo-shell {
        align-items: flex-start;
        flex-direction: column;
    }
}
