@font-face {
    font-family: "Samim";
    src: url("../fonts/Samim.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Samim";
    src: url("../fonts/Samim.woff") format("woff");
    font-display: swap;
    font-style: normal;
    font-weight: 700;
}

:root {
    --loqmeh-coral: #ee6c4d;
    --loqmeh-coral-deep: #d95537;
    --loqmeh-coral-soft: #fff0eb;
    --loqmeh-espresso: #2d211b;
    --loqmeh-muted: #776961;
    --loqmeh-ivory: #fff8f1;
    --loqmeh-surface: #fffdf9;
    --loqmeh-line: #eadfd6;
    --loqmeh-green: #77985c;
    --loqmeh-shadow: 0 18px 50px rgba(66, 39, 25, 0.09);
    --loqmeh-radius-lg: 28px;
    --loqmeh-radius-md: 20px;
    --loqmeh-content: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body.loqmeh-menu-page {
    min-width: 320px;
    margin: 0;
    color: var(--loqmeh-espresso);
    background:
        radial-gradient(circle at 8% 3%, rgba(238, 108, 77, 0.08), transparent 30%),
        radial-gradient(circle at 92% 28%, rgba(119, 152, 92, 0.07), transparent 27%),
        var(--loqmeh-ivory);
    font-family: "Samim", Tahoma, "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.loqmeh-shell {
    width: min(100%, var(--loqmeh-content));
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

.loqmeh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(234, 223, 214, 0.84);
    background: rgba(255, 248, 241, 0.9);
    backdrop-filter: blur(18px);
}

.loqmeh-header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.loqmeh-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.loqmeh-brand__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    filter: drop-shadow(0 8px 15px rgba(238, 108, 77, 0.2));
}

.loqmeh-brand__copy {
    display: grid;
    line-height: 1.12;
}

.loqmeh-brand__name {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.loqmeh-brand__tagline {
    margin-top: 5px;
    color: var(--loqmeh-muted);
    font-size: 0.78rem;
}

.loqmeh-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--loqmeh-green);
    font-size: 0.82rem;
    white-space: nowrap;
}

.loqmeh-status::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(119, 152, 92, 0.13);
    content: "";
}

.loqmeh-main {
    padding-block: 22px 56px;
}

.loqmeh-hero {
    position: relative;
    min-height: clamp(228px, 42vw, 340px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--loqmeh-radius-lg);
    background: #c95a3f;
    box-shadow: var(--loqmeh-shadow);
    isolation: isolate;
}

.loqmeh-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(45, 25, 18, 0.05) 0%, rgba(45, 25, 18, 0.78) 100%);
    content: "";
}

.loqmeh-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loqmeh-hero__content {
    width: min(70%, 520px);
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 48px);
    color: #fff;
}

.loqmeh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

.loqmeh-eyebrow::before {
    width: 26px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
    content: "";
}

.loqmeh-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3.25rem);
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.loqmeh-hero p:last-child {
    max-width: 42ch;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
}

.loqmeh-toolbar {
    position: sticky;
    top: 78px;
    z-index: 40;
    margin-inline: -4px;
    padding: 16px 4px 13px;
    background: linear-gradient(var(--loqmeh-ivory) 78%, rgba(255, 248, 241, 0));
}

.loqmeh-search {
    position: relative;
}

.loqmeh-search__icon {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 21px;
    height: 21px;
    color: var(--loqmeh-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.loqmeh-search input {
    width: 100%;
    height: 54px;
    padding: 0 52px 0 48px;
    border: 1px solid var(--loqmeh-line);
    outline: none;
    border-radius: 18px;
    color: var(--loqmeh-espresso);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 10px 30px rgba(66, 39, 25, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.loqmeh-search input::placeholder {
    color: #a1948c;
}

.loqmeh-search input:focus {
    border-color: rgba(238, 108, 77, 0.7);
    box-shadow: 0 0 0 4px rgba(238, 108, 77, 0.12);
}

.loqmeh-search__clear {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 34px;
    height: 34px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--loqmeh-muted);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.loqmeh-search__clear.is-visible {
    display: grid;
}

.loqmeh-categories {
    display: flex;
    gap: 9px;
    margin-top: 11px;
    padding: 1px 1px 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.loqmeh-categories::-webkit-scrollbar {
    display: none;
}

.loqmeh-category-chip {
    min-height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid var(--loqmeh-line);
    border-radius: 15px;
    color: var(--loqmeh-espresso);
    background: var(--loqmeh-surface);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.loqmeh-category-chip:hover,
.loqmeh-category-chip:focus-visible {
    border-color: rgba(238, 108, 77, 0.45);
    transform: translateY(-1px);
}

.loqmeh-category-chip.is-active {
    border-color: var(--loqmeh-coral);
    color: #fff;
    background: var(--loqmeh-coral);
    box-shadow: 0 9px 20px rgba(238, 108, 77, 0.22);
}

.loqmeh-menu-content {
    padding-top: 12px;
}

.loqmeh-category-section {
    margin-top: 30px;
    scroll-margin-top: 210px;
}

.loqmeh-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.loqmeh-section-heading h2 {
    margin: 0;
    font-size: clamp(1.32rem, 3vw, 1.72rem);
    letter-spacing: -0.035em;
}

.loqmeh-section-heading span {
    color: var(--loqmeh-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.loqmeh-product-grid {
    display: grid;
    gap: 12px;
}

.loqmeh-product-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--loqmeh-line);
    border-radius: var(--loqmeh-radius-md);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 12px 32px rgba(66, 39, 25, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.loqmeh-product-card:hover {
    border-color: rgba(238, 108, 77, 0.34);
    box-shadow: 0 18px 38px rgba(66, 39, 25, 0.09);
    transform: translateY(-2px);
}

.loqmeh-product-card[hidden],
.loqmeh-category-section[hidden] {
    display: none;
}

.loqmeh-product-card__image-button {
    position: relative;
    min-height: 138px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #efe4da;
    cursor: zoom-in;
}

.loqmeh-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.loqmeh-product-card:hover .loqmeh-product-card__image {
    transform: scale(1.035);
}

.loqmeh-product-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.loqmeh-product-card__title {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.loqmeh-product-card__description {
    display: -webkit-box;
    margin: 6px 0 12px;
    overflow: hidden;
    color: var(--loqmeh-muted);
    font-size: 0.78rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.loqmeh-product-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: auto 0 0;
    color: var(--loqmeh-coral-deep);
    font-size: 1rem;
    font-weight: 700;
    direction: rtl;
}

.loqmeh-product-card__price small {
    font-size: 0.68rem;
    font-weight: 400;
}

.loqmeh-empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 34px;
    border: 1px dashed #d8c9be;
    border-radius: var(--loqmeh-radius-lg);
    color: var(--loqmeh-muted);
    background: rgba(255, 253, 249, 0.66);
    text-align: center;
}

.loqmeh-empty-state[hidden] {
    display: none;
}

.loqmeh-empty-state__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    color: var(--loqmeh-coral);
}

.loqmeh-empty-state h2,
.loqmeh-empty-state p {
    margin: 0;
}

.loqmeh-empty-state h2 {
    color: var(--loqmeh-espresso);
    font-size: 1.15rem;
}

.loqmeh-empty-state p {
    margin-top: 6px;
    font-size: 0.84rem;
}

.loqmeh-info-card {
    display: grid;
    gap: 18px;
    margin-top: 38px;
    padding: 23px;
    border: 1px solid var(--loqmeh-line);
    border-radius: var(--loqmeh-radius-lg);
    background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(255, 240, 235, 0.76));
}

.loqmeh-info-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.loqmeh-info-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--loqmeh-coral-deep);
    background: var(--loqmeh-coral-soft);
}

.loqmeh-info-card__icon svg {
    width: 21px;
    height: 21px;
}

.loqmeh-info-card strong,
.loqmeh-info-card span {
    display: block;
}

.loqmeh-info-card strong {
    font-size: 0.88rem;
}

.loqmeh-info-card span {
    margin-top: 2px;
    color: var(--loqmeh-muted);
    font-size: 0.77rem;
}

.loqmeh-footer {
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--loqmeh-line);
    color: var(--loqmeh-muted);
    font-size: 0.74rem;
    text-align: center;
}

.loqmeh-lightbox {
    width: min(92vw, 760px);
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.loqmeh-lightbox::backdrop {
    background: rgba(28, 18, 13, 0.82);
    backdrop-filter: blur(6px);
}

.loqmeh-lightbox__figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--loqmeh-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.loqmeh-lightbox__image {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #1f1814;
}

.loqmeh-lightbox__caption {
    padding: 13px 18px;
    color: var(--loqmeh-espresso);
    background: var(--loqmeh-surface);
    font-size: 0.88rem;
    text-align: center;
}

.loqmeh-lightbox__close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    background: rgba(31, 24, 20, 0.64);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.loqmeh-lightbox__close svg {
    width: 20px;
    height: 20px;
}

:focus-visible {
    outline: 3px solid rgba(238, 108, 77, 0.46);
    outline-offset: 3px;
}

@media (min-width: 700px) {
    .loqmeh-main {
        padding-top: 32px;
    }

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

    .loqmeh-product-card {
        grid-template-columns: 148px minmax(0, 1fr);
        min-height: 154px;
    }

    .loqmeh-product-card__image-button {
        min-height: 154px;
    }

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

@media (max-width: 520px) {
    html {
        scroll-padding-top: 191px;
    }

    .loqmeh-shell {
        padding-inline: 14px;
    }

    .loqmeh-header__inner {
        min-height: 72px;
    }

    .loqmeh-brand__mark {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
    }

    .loqmeh-brand__name {
        font-size: 1.45rem;
    }

    .loqmeh-brand__tagline {
        font-size: 0.7rem;
    }

    .loqmeh-status {
        font-size: 0.72rem;
    }

    .loqmeh-main {
        padding-top: 14px;
    }

    .loqmeh-hero {
        min-height: 224px;
        border-radius: 23px;
    }

    .loqmeh-hero::after {
        background: linear-gradient(0deg, rgba(45, 25, 18, 0.8), rgba(45, 25, 18, 0.03) 78%);
    }

    .loqmeh-hero__content {
        width: 100%;
        padding: 22px;
    }

    .loqmeh-hero p:last-child {
        font-size: 0.78rem;
    }

    .loqmeh-toolbar {
        top: 72px;
        padding-top: 12px;
    }

    .loqmeh-search input {
        height: 50px;
        border-radius: 16px;
        font-size: 0.84rem;
    }

    .loqmeh-categories {
        gap: 7px;
        margin-top: 9px;
    }

    .loqmeh-category-chip {
        min-height: 39px;
        padding: 7px 15px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .loqmeh-category-section {
        margin-top: 24px;
        scroll-margin-top: 194px;
    }

    .loqmeh-product-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 132px;
        border-radius: 18px;
    }

    .loqmeh-product-card__image-button {
        min-height: 132px;
    }

    .loqmeh-product-card__body {
        padding: 14px;
    }

    .loqmeh-product-card__title {
        font-size: 0.95rem;
    }

    .loqmeh-product-card__description {
        margin-top: 4px;
        font-size: 0.72rem;
    }

    .loqmeh-product-card__price {
        font-size: 0.94rem;
    }
}

@media (max-width: 370px) {
    .loqmeh-status span {
        display: none;
    }

    .loqmeh-product-card {
        grid-template-columns: 98px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
