@font-face {
    font-family: "BraindYerevan";
    src: url("../fonts/braindyerevan.otf") format("opentype");
}

@font-face {
    font-family: "NotoSansArmenian";
    src: url("../fonts/notosansarmenian.ttf") format("truetype");
}

body {
    font-family: "NotoSansArmenian", sans-serif;
}

/* ——— Product cards ——— */
.product-card-category {
    display: block;
    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-name {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #302018;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.product-card-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #302018;
    white-space: nowrap;
}

.product-card-meta {
    font-size: 0.68rem;
    color: #6e5549;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .product-card-category {
        font-size: 0.68rem;
    }

    .product-card-name {
        font-size: 0.92rem;
    }

    .product-card-price {
        font-size: 0.82rem;
    }

    .product-card-meta {
        font-size: 0.72rem;
    }
}

@media (min-width: 1024px) {
    .product-card-category {
        font-size: 0.72rem;
    }

    .product-card-name {
        font-size: 0.94rem;
    }

    .product-card-price {
        font-size: 0.86rem;
    }

    .product-card-meta {
        font-size: 0.74rem;
    }
}

/* ——— Product popup ——— */
.popup-product-category {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C0A99E;
    margin-bottom: 0.5rem;
}

.popup-product-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.15rem, 3.2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.popup-product-description {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.popup-product-price {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

/* ——— Beverage popup: compact text, price visible without scroll ——— */
#popupFrame.popup-frame--beverage,
#popupCard.popup-card--beverage {
    height: auto !important;
    max-height: 70vh;
}

#popupCard.popup-card--beverage #popupContent {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-y: visible;
    max-height: none;
    padding-bottom: 1.25rem;
}

#popupCard.popup-card--beverage #popupImageWrap {
    height: auto !important;
    aspect-ratio: 16 / 10;
    max-height: min(46vh, 400px);
}

#popupCard.popup-card--beverage .popup-price-row {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

#popupCard.popup-card--beverage .popup-product-title {
    margin-bottom: 0.25rem;
}

#popupCard.popup-card--beverage .popup-product-category {
    margin-bottom: 0.25rem;
    font-size: 0.62rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    #popupFrame.popup-frame--beverage,
    #popupCard.popup-card--beverage {
        min-height: 280px;
    }

    #popupCard.popup-card--beverage #popupImageWrap {
        aspect-ratio: unset;
        min-height: 280px;
        max-height: 70vh;
    }
}

@media (min-width: 768px) {
    .popup-product-category {
        font-size: 0.78rem;
    }

    .popup-product-description {
        font-size: 1rem;
    }
}

/* ——— 18+ age gate on product cards ——— */
.card--age-restricted .card-inner {
    filter: blur(10px);
    transform: none !important;
    pointer-events: none;
    user-select: none;
}

.card--age-restricted:hover {
    transform: none;
    box-shadow: none;
}

.card-age-gate {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.15);
}

.card-age-badge {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 0.45rem 1.1rem;
    border-radius: 12px;
    background: rgba(48, 32, 24, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.popup-card--age {
    max-width: 420px;
    padding: 32px 28px;
}

.age-verify-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.age-verify-btn--yes {
    background: #302018;
    color: #fff;
}

.age-verify-btn--yes:hover {
    transform: scale(1.03);
    background: #4b3329;
}

.age-verify-btn--no {
    background: rgba(48, 32, 24, 0.1);
    color: #302018;
}

.age-verify-btn--no:hover {
    background: rgba(48, 32, 24, 0.18);
}

/* ——— Image loading spinner ——— */
.img-load-wrap {
    position: relative;
    background: #ebe6df;
    overflow: hidden;
}

.img-load-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.img-load-wrap img.is-loading {
    opacity: 0;
}

.img-load-spinner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ebe6df;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.img-load-spinner::after {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(192, 169, 158, 0.35);
    border-top-color: #302018;
    animation: imgLoadSpin 0.75s linear infinite;
}

.img-load-wrap.is-loaded .img-load-spinner {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes imgLoadSpin {
    to {
        transform: rotate(360deg);
    }
}
