:root {
    --blue: #2f45c7;
    --deep: #12235c;
    --ink: #17213e;
    --yellow: #ffd345;
    --cream: #f4f5f9;
    --line: #e4e6ee;
    --muted: #687087
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif
}

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

button,
input {
    font: inherit
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.top-strip {
    background: #16235a;
    color: #e7ebff;
    text-align: center;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em
}

.top-strip span {
    color: var(--yellow);
    padding: 0 11px
}

.market-header {
    min-height: 73px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 27px;
    padding: 0 5%;
    box-shadow: 0 1px 7px #15245d12;
    position: sticky;
    top: 0;
    z-index: 10
}

.qiva-logo {
    display: inline-grid;
    line-height: .75;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--blue)
}

.qiva-logo span {
    color: var(--yellow)
}

.qiva-logo small {
    font-size: 7px;
    letter-spacing: .3px;
    font-weight: 700;
    color: var(--deep);
    margin-top: 8px
}

.search-box {
    background: #f1f3f9;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    max-width: 670px;
    padding: 0 10px;
    position: relative;
    transition: .2s
}

.search-box:focus-within {
    background: #fff;
    border-color: #9aa7e7;
    box-shadow: 0 0 0 3px #cad1f633
}

.search-box span {
    font-size: 24px;
    line-height: 1;
    color: #5469c9
}

.search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 100px;
    width: 100%;
    padding: 13px 0;
    font-size: 12px
}

.search-box button {
    background: var(--blue);
    border: 0;
    border-radius: 5px;
    color: #fff;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 15;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe3f1;
    border-radius: 7px;
    box-shadow: 0 13px 30px #15245b2b
}

.search-suggestions-title {
    display: block;
    padding: 11px 13px 7px;
    color: #7983a4;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em
}

.search-suggestion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    border-top: 1px solid #eef0f5;
    background: #fff;
    color: var(--ink);
    padding: 10px 13px;
    text-align: left;
    cursor: pointer
}

.search-suggestion:hover,
.search-suggestion:focus {
    background: #f0f3ff;
    outline: 0
}

.search-suggestion span {
    display: grid;
    gap: 2px;
    font-size: 11px;
    font-weight: 800
}

.search-suggestion small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase
}

.search-suggestion strong {
    color: var(--blue);
    font-size: 11px
}

.search-no-results {
    display: block;
    padding: 14px 13px;
    color: var(--muted);
    font-size: 10px
}

.market-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700
}

.market-actions>a:hover,
.account-button:hover {
    color: var(--blue)
}

.account-button,
.cart-trigger {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    padding: 0
}

.account-button {
    color: var(--blue)
}

.admin-entry {
    border: 1px solid #d5d9e9;
    padding: 7px 9px;
    border-radius: 4px
}

.cart-trigger b {
    background: var(--yellow);
    border-radius: 20px;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 3px
}

.category-bar {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
    gap: min(6.8vw, 82px);
    padding: 13px 5%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none
}

.category-bar::-webkit-scrollbar { display: none }

.category-bar a {
    flex: 0 0 auto;
    min-width: 68px;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #2f3651;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    scroll-snap-align: start
}

.category-bar i {
    /*width: clamp(32px, 4vw, 48px);
    height: clamp(32px, 4vw, 48px);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 19px;
    background: #e8ebff*/
    width: fit-content;
    height: fit-content;
    min-width: 32px;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    font-style: normal;
    font-size: 19px;
    background: #e8ebff;
    /*width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: flex;
    justify-content: space-evenly;
    align-items: center;

    gap: clamp(4px, 1vw, 15px);
    padding: 13px clamp(8px, 2vw, 30px);

    overflow-x: auto;
    overflow-y: hidden;*/
}

.category-bar a:nth-child(2) i {
    background: #fff0dd
}

.category-bar a:nth-child(3) i {
    background: #e2f4e7
}

.category-bar a:nth-child(4) i {
    background: #fae4ee
}

.category-bar a:hover {
    color: var(--blue)
}

.hero-banner {
   /* max-width: 1360px;
    margin: 20px auto;
    padding: 0 5%;
    min-height: 302px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden8*/
    width: 100%;
    max-width: 1260px;
    margin: 20px auto;
    padding: 0;
    min-height: 302px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 10px;
}

.hero-copy {
    background: var(--blue);
    padding: 55px 15%;
    color: #fff;
    position: relative;
    z-index: 1
}

.hero-copy p,
.feature-card p,
.section-title p,
.why-qiva>div>p {
    font-size: 10px;
    letter-spacing: .13em;
    font-weight: 800;
    margin: 0 0 13px
}

.hero-copy p {
    color: #dbe0ff
}

.hero-copy h1 {
    font-size: clamp(39px, 4.4vw, 61px);
    line-height: .92;
    letter-spacing: -.07em;
    margin: 0
}

.hero-copy h1 em,

.feature-card em,
.why-qiva em {
    font-family: Georgia, serif;
    font-weight: 400
}

.hero-copy>span {
    display: block;
    max-width: 340px;
    font-size: 12px;
    line-height: 1.65;
    margin: 20px 0 25px;
    color: #e4e8ff
}

.hero-copy a {
    display: inline-flex;
    gap: 35px;
    background: #fff;
    color: var(--blue);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800
}

.hero-art {
    background: #e4e8ff;
    position: relative;
    overflow: hidden
}

.orb {
    position: absolute;
    border-radius: 50%
}

.orb-one {
    height: 270px;
    width: 270px;
    background: #ffd345;
    right: -43px;
    top: -64px
}

.orb-two {
    height: 173px;
    width: 173px;
    background: #b5c0ff;
    left: 21px;
    bottom: -68px
}

.deal-card {
    position: absolute;
    border-radius: 13px;
    box-shadow: 0 15px 35px #1a237849;
    text-align: center;
    font-weight: 800
}

.deal-card-back {
    background: #16235a;
    color: #fff;
    right: 21%;
    top: 44px;
    padding: 24px 22px;
    font-size: 13px;
    line-height: 1.16;
    transform: rotate(9deg)
}

.deal-card-back strong {
    font-size: 44px;
    letter-spacing: -3px;
    color: var(--yellow)
}

.deal-card-front {
    background: #fff;
    color: var(--blue);
    right: 8%;
    bottom: 37px;
    height: 132px;
    width: 150px;
    padding: 19px;
    text-align: left;
    transform: rotate(-6deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.deal-card-front span {
    font-size: 10px;
    letter-spacing: .08em
}

.deal-card-front strong {
    font-size: 23px;
    line-height: .86;
    letter-spacing: -1.5px
}

.deal-card-front i {
    font-size: 25px;
    color: var(--yellow);
    font-style: normal;
    align-self: flex-end
}

.service-row {
    background: #fff;
    max-width: 1260px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 3px 12px #1827650d
}

.service-row>div {
    padding: 19px 23px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-right: 1px solid var(--line)
}

.service-row>div:last-child {
    border: 0
}

.service-row i {
    font-style: normal;
    color: var(--blue);
    font-size: 19px
}

.service-row span {
    display: grid;
    gap: 3px;
    font-size: 9px;
    color: var(--muted)
}

.service-row strong {
    color: var(--ink);
    font-size: 10px
}

.deals-section {
    max-width: 1260px;
    margin: 0 auto;
    background: #fff;
    padding: 25px 28px 33px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px
}

.section-title p {
    color: #7181d7;
    margin-bottom: 7px
}

.section-title h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: -1.4px
}

.deal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 69%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none
}

.deal-controls::-webkit-scrollbar { display: none }

.filter-chip {
    flex: 0 0 auto;
    border: 1px solid #dce0ee;
    background: #fff;
    border-radius: 20px;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.deal-controls a {
    font-size: 10px;
    font-weight: 800;
    color: var(--blue);
    margin-left: 9px
}

.market-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.product-card {
    position: relative;
    border: 1px solid #edf0f5;
    border-radius: 7px;
    background: #fff;
    overflow: hidden;
    transition: .23s
}

.product-card:hover {
    box-shadow: 0 10px 27px #15245e17;
    transform: translateY(-3px)
}

.product-image {
    height: 222px;
    background: #f4f6fc;
    position: relative;
    padding: 16px;
    display: grid;
    place-items: center
}

.product-image img {
    max-width: 100%;
    height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e9edff;
    color: var(--blue);
    padding: 5px 7px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em
}

.add-product {
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 0;
    border-radius: 50%;
    height: 34px;
    width: 34px;
    background: var(--blue);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 3px 8px #2f45c955
}

.add-product:disabled {
    background: #a6acbd;
    cursor: not-allowed
}

.product-meta {
    padding: 13px 14px 15px
}

.product-meta h3 {
    font-size: 12px;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.product-meta small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase
}

.product-meta p {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 800
}

.product-meta p:before {
    content: 'Deal price ';
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
    margin-right: 5px
}

.empty-cart {
    font-size: 12px;
    color: var(--muted);
    grid-column: 1/-1
}

.feature-grid {
    max-width: 1260px;
    margin: 28px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px
}

.feature-card {
    padding: 28px;
    min-height: 240px;
    position: relative;
    overflow: hidden
}

.feature-card p {
    position: relative;
    z-index: 1
}

.feature-card h2 {
    position: relative;
    z-index: 1;
    font-size: 28px;
    line-height: .98;
    letter-spacing: -1.8px;
    margin: 0 0 24px
}

.feature-card a {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 800;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px
}

.feature-icon {
    position: absolute;
    font-size: 135px;
    right: -19px;
    bottom: -39px;
    opacity: .18;
    font-weight: 800
}

.feature-blue {
    background: #cdd3ff;
    color: #1b2e96
}

.feature-yellow {
    background: var(--yellow);
    color: #20306c
}

.feature-dark {
    background: #17285d;
    color: #fff
}

.feature-dark p {
    color: #c8d1ff
}

.feature-dark .feature-icon {
    color: var(--yellow);
    opacity: .85
}

.why-qiva {
    max-width: 1260px;
    margin: 0 auto 28px;
    background: #fff;
    padding: 41px 44px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px
}

.why-qiva>div>p {
    color: #7181d7
}

.why-qiva h2 {
    font-size: 31px;
    letter-spacing: -2px;
    line-height: 1.04;
    margin: 0
}

.why-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px
}

.why-list b {
    font-size: 11px;
    color: var(--blue)
}

.why-list h3 {
    font-size: 12px;
    margin: 12px 0 8px
}

.why-list p {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0
}

.market-footer {
    background: #15245b;
    color: #e5e8fb;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 37px;
    padding: 43px 8% 20px
}

.market-footer .qiva-logo {
    color: #fff
}

.market-footer .qiva-logo small {
    display: none
}

.footer-brand p {
    font-size: 11px;
    color: #aeb8e4
}

.market-footer h3 {
    font-size: 9px;
    color: #9eaded;
    letter-spacing: .1em;
    margin: 0 0 13px
}

.market-footer div:not(.footer-brand) {
    display: grid;
    align-content: start;
    gap: 9px
}

.market-footer a {
    font-size: 10px
}

.market-footer a:hover {
    color: var(--yellow)
}

.market-footer small {
    grid-column: 1/-1;
    border-top: 1px solid #34457c;
    padding-top: 17px;
    color: #8291ca;
    font-size: 8px
}

.cart-drawer {
    position: fixed;
    z-index: 30;
    right: 0;
    top: 0;
    width: min(100%, 405px);
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s;
    display: flex;
    flex-direction: column;
    padding: 23px
}

.cart-drawer.open {
    transform: none
}

.overlay {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: #0c174b88;
    opacity: 0;
    pointer-events: none;
    transition: .25s
}

.overlay.open {
    opacity: 1;
    pointer-events: auto
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 17px
}

.drawer-head p {
    font-size: 9px;
    letter-spacing: .12em;
    color: #7481bd;
    margin: 0 0 7px
}

.drawer-head h2 {
    font-size: 19px;
    margin: 0;
    letter-spacing: -1px
}

.close-cart {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--ink)
}

.cart-items {
    flex: 1;
    overflow: auto;
    padding: 17px 0
}

.cart-item {
    display: grid;
    grid-template-columns: 63px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px
}

.cart-item img {
    height: 63px;
    width: 63px;
    object-fit: contain;
    background: #f1f3f9
}

.cart-item h3 {
    font-size: 11px;
    margin: 0
}

.cart-item p {
    font-size: 12px;
    font-weight: 800;
    margin: 5px 0
}

.remove-item {
    border: 0;
    background: transparent;
    color: #7f879a;
    font-size: 19px;
    cursor: pointer
}

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

.cart-footer>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
    font-size: 12px
}

.cart-footer>div strong {
    font-size: 15px
}

.cart-footer button {
    width: 100%;
    border: 0;
    background: var(--blue);
    color: #fff;
    border-radius: 4px;
    padding: 14px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer
}

.cart-footer button:disabled {
    background: #b0b8d7;
    cursor: not-allowed
}

.cart-footer small {
    color: var(--muted);
    display: block;
    text-align: center;
    font-size: 9px;
    margin-top: 9px
}

.toast {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 23px;
    transform: translate(-50%, 100px);
    background: #14235b;
    color: #fff;
    padding: 12px 17px;
    border-radius: 4px;
    font-size: 11px;
    box-shadow: 0 4px 18px #18265e52;
    transition: .25s
}

.toast.show {
    transform: translate(-50%, 0)
}

@media(max-width:900px) {
    .market-header {
        padding: 0 4%;
        gap: 15px
    }

    .market-actions>a {
        display: none
    }

    .account-button {
        display: inline-flex;
        align-items: center;
        gap: 4px
    }

    .market-actions {
        margin-left: auto
    }

    .search-box {
        order: 3;
        position: absolute;
        left: 4%;
        right: 4%;
        top: 65px;
        max-width: none
    }

    .market-header {
        height: 121px;
        align-items: flex-start;
        padding-top: 17px
    }

    .category-bar {
        gap: 27px;
        justify-content: flex-start
    }

    .hero-banner {
        width: auto;
        max-width: none;
        margin: 14px 3% 18px;
        padding: 0;
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 36px 8% 32px
    }

    .hero-art {
        min-height: 190px
    }

    .deal-card-back {
        right: 31%;
        top: 25px
    }

    .deal-card-front {
        right: 12%;
        bottom: 20px
    }

    .service-row {
        margin: 0 3% 18px;
        grid-template-columns: 1fr 1fr
    }

    .service-row>div:nth-child(2) {
        border-right: 0
    }

    .deals-section,
    .why-qiva {
        margin: 0 3%;
        padding: 24px
    }

    .market-products {
        grid-template-columns: repeat(3, 1fr)
    }

    .feature-grid {
        margin: 18px 3%;
        grid-template-columns: 1fr 1fr
    }

    .feature-card:last-child {
        grid-column: 1/-1
    }

    .why-qiva {
        grid-template-columns: 1fr
    }

    .market-footer {
        padding: 35px 6%;
        grid-template-columns: 1.5fr 1fr 1fr
    }

    .market-footer div:last-of-type {
        display: none
    }
}

@media(max-width:580px) {
    .top-strip {
        font-size: 9px
    }

    .top-strip span {
        padding: 0 5px
    }

    .market-header {
        height: 115px
    }

    .qiva-logo {
        font-size: 27px
    }

    .market-actions {
        gap: 10px
    }

    .admin-entry {
        font-size: 9px;
        padding: 6px
    }

    .cart-trigger span {
        display: none
    }

    .category-bar {
        padding: 11px 14px;
        gap: 15px;
        justify-content: flex-start
    }

    .category-bar a {
        min-width: 55px;
        font-size: 8px
    }

    .hero-copy h1 {
        font-size: 39px
    }

    .hero-banner {
        margin: 12px 3% 16px;
        border-radius: 8px
    }

    .hero-copy {
        padding: 29px 22px 27px
    }

    .hero-art {
        min-height: 145px
    }

    .hero-copy>span {
        max-width: 310px;
        margin: 15px 0 20px;
        font-size: 11px
    }

    .service-row {
        grid-template-columns: 1fr 1fr
    }

    .service-row>div {
        padding: 13px 10px
    }

    .service-row strong {
        font-size: 9px
    }

    .service-row span {
        font-size: 8px
    }

    .section-title {
        align-items: start;
        flex-direction: column;
        gap: 17px
    }

    .section-title h2 {
        font-size: 22px
    }

    .deal-controls {
        width: 100%;
        max-width: none;
        flex-wrap: nowrap
    }

    .market-products {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .product-image {
        height: 164px;
        padding: 10px
    }

    .product-meta {
        padding: 10px
    }

    .product-meta h3 {
        font-size: 10px
    }

    .product-meta p {
        font-size: 12px
    }

    .feature-grid {
        grid-template-columns: 1fr
    }

    .feature-card:last-child {
        grid-column: auto
    }

    .why-list {
        grid-template-columns: 1fr;
        gap: 17px
    }

    .market-footer {
        grid-template-columns: 1fr 1fr;
        gap: 25px
    }

    .footer-brand {
        grid-column: 1/-1
    }

    .market-footer div:last-of-type {
        display: grid
    }

    .cart-drawer {
        width: 100%
    }
}
