:root {
    --ivory: #FBF7F0;
    --white: #FFFFFF;
    --black: #000000;
    --caviar: #292A2E;
    --red: #D20000;
    --text: var(--caviar);
    --muted: rgba(41, 42, 46, .64);
    --line: rgba(41, 42, 46, .14);
    --tint: rgba(41, 42, 46, .06);
    --delete: var(--red);
    --fw-light: 200;
    --fw-body: 300;
    --fw-headline: 800;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Noto Sans Armenian", sans-serif;
    font-weight: var(--fw-body);
    background: var(--ivory);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: var(--fw-headline);
    letter-spacing: -.02em;
}

strong, b {
    font-weight: 600;
}

img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

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

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.container {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 86px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 34px;
    color: var(--ivory);
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.header.scrolled,
.header.alt {
    background: rgba(251, 247, 240, .94);
    color: var(--black);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header .shopp-cart {
    filter: brightness(0) invert(1);
}

.header.scrolled .shopp-cart,
.header.alt .shopp-cart {
    filter: brightness(0);
}

.header-position {
    height: 86px;
    margin-bottom: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.nav-right {
    justify-content: flex-end;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 48px;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

/* White logo over the dark hero, black logo once the header turns ivory. */
.logo .logo-dark,
.header.scrolled .logo .logo-light,
.header.alt .logo .logo-light {
    display: none;
}

.header.scrolled .logo .logo-dark,
.header.alt .logo .logo-dark {
    display: block;
}

.footer {
    padding: 68px 0 34px;
    background: var(--caviar);
    color: var(--ivory);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 42px;
    margin-bottom: 48px;
}

.footer-logo {
    width: 120px;
    margin-bottom: 22px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer h4 {
    margin-bottom: 17px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer p,
.footer a {
    display: block;
    color: rgba(251, 247, 240, .68);
    font-size: 14px;
    line-height: 1.9;
}

.footer a:hover {
    color: var(--ivory);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(251, 247, 240, .14);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(251, 247, 240, .56);
    font-size: 13px;
}

.brand-dot {
    display: inline-block;
    width: .42em;
    height: .42em;
    margin-left: .3em;
    border-radius: 50%;
    background: var(--red);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.link-apr {
    position: relative;
    text-decoration: none;
    color: #000000;
    margin: 0 .5rem;
}

.apr-count {
    position: absolute;
    top: -3px;
    right: -12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

.display-none{
    display: none;
}

/*---------global alert---------*/
.global-alert {
    position: fixed;
    top: 0;
    transition: 1s all;
    width: 100%;
    z-index: 99;
}

.global-alert-close {
    cursor: pointer;
}
/*------------------------------*/
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 999;
    display: none;
}

    .cart-overlay.active {
        display: block;
    }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--ivory);
    z-index: 1000;
    transition: right .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
}

    .cart-drawer.active {
        right: 0;
    }

.cart-drawer-header {
    padding: 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-drawer-header h3 {
        margin: 0;
        font-size: 20px;
    }

    .cart-drawer-header button {
        border: 0;
        background: transparent;
        font-size: 32px;
        line-height: 1;
    }

.cart-drawer-body {
    padding: 20px;
    overflow-y: auto;
}

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

    .cart-item img {
        width: 76px;
        height: 76px;
        object-fit: cover;
        border-radius: 2px;
    }

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.cart-item-price {
    color: var(--text);
    margin-bottom: 8px;
}

.cart-count {
    width: 70px;
    height: 36px;
    padding: 6px;
    vertical-align: middle;
    border: 1px solid var(--line);
    background: var(--white);
}

.cart-remove {
    border: 0;
    background: transparent;
    color: var(--red);
    padding: 0;
    margin-top: 8px;
}

.cart-total {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    text-align: center;
    background: var(--black);
    color: var(--ivory);
    border: 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
}

.cart-empty {
    text-align: center;
    padding: 50px 10px;
}

.desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*------------------------------*/

@media (max-width: 1040px) {
    .nav a:not(:first-child) {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .header {
        height: 72px;
        padding: 0 14px;
    }

    .nav {
        gap: 12px;
        font-size: 10px;
    }

    .logo {
        width: 88px;
        height: 40px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}
