/* =========================================================
   WASLON | Premium Marketplace
   Main Stylesheet
   ========================================================= */

:root {
    /* Brand */
    --primary: #315BFF;
    --primary-2: #3B82F6;
    --cyan: #22D3EE;

    /* Backgrounds */
    --bg: #050816;
    --surface: #0B1020;
    --surface-2: #10172A;
    --surface-3: #141C31;

    /* Text */
    --white: #FFFFFF;
    --text: #F4F7FF;
    --text-secondary: #A1A7B8;
    --text-muted: #6B7280;

    /* Borders */
    --border: #24304A;
    --border-light: rgba(36, 48, 74, 0.65);

    /* Effects */
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    --shadow-blue: 0 15px 45px rgba(49, 91, 255, 0.18);

    /* Layout */
    --container: 1240px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Fonts */
    --font-ar: "Readex Pro", sans-serif;
    --font-en: var(--font-ar);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ar);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


body::selection {
    background: rgba(49, 91, 255, 0.35);
    color: var(--white);
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


.hidden {
    display: none !important;
}


.dynamic-section {
    position: relative;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary-2);

    font-family: var(--font-en);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(5, 8, 22, 0.78);

    border-bottom: 1px solid transparent;

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.site-header:hover {
    background: rgba(5, 8, 22, 0.9);

    border-color: var(--border-light);
}


.header-inner {
    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* Brand */

.brand {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    transition:
        transform 0.35s var(--ease),
        opacity 0.35s ease;
}


.brand:hover {
    transform: translateY(-1px);
}


.brand-logo {
    width: 142px;
    height: auto;
}


/* Navigation */

.main-nav {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-inline: auto;
}


.nav-link {
    position: relative;

    padding: 7px 0;

    color: var(--text-secondary);

    font-size: 14px;

    font-weight: 500;

    transition:
        color 0.25s ease,
        transform 0.25s var(--ease);
}


.nav-link::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background: var(--primary);

    transition:
        width 0.3s var(--ease);
}


.nav-link:hover,
.nav-link.active {
    color: var(--white);

    transform: translateY(-1px);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* Header actions */

.header-actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


.icon-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(11, 16, 32, 0.75);

    color: var(--text-secondary);

    cursor: pointer;

    font-family: var(--font-en);

    font-size: 21px;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s var(--ease);
}


.icon-button:hover {
    color: var(--white);

    border-color: rgba(49, 91, 255, 0.55);

    background: rgba(49, 91, 255, 0.1);

    transform: translateY(-2px);
}


.login-link {
    color: var(--text-secondary);

    font-size: 13px;

    font-weight: 500;

    transition: color 0.25s ease;
}


.login-link:hover {
    color: var(--white);
}


.header-register {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 17px;

    border-radius: 11px;

    background: var(--primary);

    color: var(--white);

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 8px 25px rgba(49, 91, 255, 0.2);

    transition:
        transform 0.25s var(--ease),
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.header-register:hover {
    background: #4169ff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 32px rgba(49, 91, 255, 0.3);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 640px;

    display: flex;

    align-items: center;

    overflow: hidden;

    isolation: isolate;
}

/*
 * The hero normally clips its decorative glows. While live search is open,
 * lift the hero's own stacking context above the following home sections and
 * release that clipping so the absolutely-positioned results can overlap the
 * advertisement/publisher banners without changing document flow.
 */
.hero.is-search-open {
    z-index: 10;
    overflow: visible;
}

.hero.is-search-open .hero-glow {
    animation: none;
    transform: none;
}

.hero.is-search-open .hero-glow-one {
    right: 0;
    width: min(360px, 100%);
}

.hero.is-search-open .hero-glow-two {
    left: 0;
    width: min(300px, 100%);
}


.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -3;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(49, 91, 255, 0.14),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            rgba(5, 8, 22, 0.2),
            var(--bg)
        );
}


.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -2;

    opacity: 0.24;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 75%
        );
}


.hero-glow {
    position: absolute;

    z-index: -1;

    border-radius: 50%;

    filter: blur(70px);

    pointer-events: none;
}


.hero-glow-one {
    width: 360px;
    height: 360px;

    top: 10%;
    right: 5%;

    background: rgba(49, 91, 255, 0.09);

    animation:
        heroGlow 8s ease-in-out infinite alternate;
}


.hero-glow-two {
    width: 300px;
    height: 300px;

    left: 8%;
    bottom: 0;

    background: rgba(34, 211, 238, 0.055);

    animation:
        heroGlow 10s ease-in-out infinite alternate-reverse;
}


@keyframes heroGlow {

    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(20px, -20px, 0) scale(1.08);
    }
}


.hero-content {
    max-width: 900px;

    padding-block: 110px 95px;

    text-align: center;
}


.hero-badge {
    width: fit-content;

    margin-inline: auto;
    margin-bottom: 24px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 13px;

    border: 1px solid rgba(49, 91, 255, 0.25);

    border-radius: 999px;

    background: rgba(49, 91, 255, 0.07);

    color: #C9D4FF;

    font-size: 12px;
}


.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 0 4px rgba(34, 211, 238, 0.08);

    animation: pulseDot 2s ease-in-out infinite;
}


@keyframes pulseDot {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}


.hero-title {
    max-width: 850px;

    margin-inline: auto;

    color: var(--white);

    font-size: clamp(
        42px,
        6vw,
        76px
    );

    font-weight: 700;

    line-height: 1.16;

    letter-spacing: -0.045em;
}


.hero-title span {
    display: block;

    margin-top: 6px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--primary-2),
            var(--cyan)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero-description {
    max-width: 650px;

    margin: 24px auto 34px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 2;
}


/* Search */

.hero-search {
    position: relative;
    z-index: 20;

    width: min(100%, 690px);

    min-height: 64px;

    margin-inline: auto;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px 8px 7px 9px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background:
        rgba(11, 16, 32, 0.88);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.22);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s var(--ease);
}


.hero-search:focus-within {
    border-color: rgba(49, 91, 255, 0.55);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.28),
        0 0 0 4px rgba(49, 91, 255, 0.06);

    transform: translateY(-2px);
}


.search-icon {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    font-family: var(--font-en);

    font-size: 23px;
}


.hero-search input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--white);

    font-size: 14px;
}


.hero-search input::placeholder {
    color: var(--text-muted);
}


.hero-search button {
    flex-shrink: 0;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 13px;

    background: var(--primary);

    color: var(--white);

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.25s ease,
        transform 0.25s var(--ease);
}


.hero-search button:hover {
    background: #4169ff;

    transform: translateY(-1px);
}


.search-error {
    animation:
        searchShake 0.35s ease;
}


@keyframes searchShake {

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}


/* Popular */

.popular-searches {
    margin-top: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: var(--text-muted);

    font-size: 11px;
}


.popular-search-list {
    display: flex;

    gap: 7px;
}


.popular-search-list:empty {
    display: none;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.categories-section,
.posts-section,
.offers-section,
.products-section {
    padding-block: 90px;
}


.categories-section {
    padding-top: 70px;
}


.section-heading {
    margin-bottom: 34px;

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;
}


.section-heading h2 {
    color: var(--white);

    font-size: clamp(
        25px,
        3vw,
        34px
    );

    font-weight: 600;

    line-height: 1.35;
}


.view-all {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--text-secondary);

    font-size: 13px;

    transition:
        color 0.25s ease,
        gap 0.25s var(--ease);
}


.view-all span {
    color: var(--primary-2);

    transition:
        transform 0.25s var(--ease);
}


.view-all:hover {
    color: var(--white);

    gap: 13px;
}


.view-all:hover span {
    transform: translateX(-3px);
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section { overflow: clip; }

.category-carousel {
    --category-card-width: clamp(220px, 20vw, 260px);
    --category-card-height: clamp(326px, 31vw, 376px);
    position: relative;
    min-width: 0;
    padding-inline: 44px;
}

.category-carousel-viewport {
    position: relative;
    height: calc(var(--category-card-height) + 58px);
    overflow: visible;
    perspective: 1250px;
    perspective-origin: 50% 45%;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.category-carousel-viewport.is-dragging { cursor: grabbing; }

.category-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
}

.category-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--category-card-width);
    height: var(--category-card-height);
    margin: calc(var(--category-card-height) / -2) 0 0 calc(var(--category-card-width) / -2);
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(80, 176, 255, .28);
    border-radius: 24px;
    background: linear-gradient(155deg, #111c31 0%, #08111f 62%, #070d18 100%);
    color: var(--white);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .05);
    text-align: right;
    cursor: pointer;
    pointer-events: auto;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: border-color .28s ease, box-shadow .28s ease, filter .28s ease;
    user-select: none;
-webkit-user-select: none;
-webkit-user-drag: none;
touch-action: pan-y;
isolation: isolate;
}

.category-card img {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, rgba(4, 9, 18, .25) 58%, rgba(4, 9, 18, .97) 100%);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 4;
    pointer-events: none;
    border-radius: 23px;
    box-shadow: inset 0 0 34px rgba(44, 163, 255, .08);
}

.category-card.is-centered {
    border-color: rgba(93, 208, 255, .72);
    box-shadow: 0 30px 72px rgba(0, 0, 0, .5), 0 0 30px rgba(26, 142, 255, .18), inset 0 1px rgba(255, 255, 255, .1);
}

.category-card:focus-visible { outline: 3px solid #67d7ff; outline-offset: 4px; }

.category-card-media {
    position: absolute;

    top: -42px;
    right: -18px;
    left: -18px;
    bottom: 28%;

    z-index: 1;

    display: grid;
    place-items: center;

    padding: 0;

    overflow: visible;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(43, 134, 255, .18),
            transparent 62%
        );
}

.category-card-media img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    border-radius: 0;

    pointer-events: none;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    filter:
        drop-shadow(0 18px 22px rgba(0, 0, 0, .38));
}

.category-card-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    min-height: 31%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    padding: 22px;
}

.category-card-copy h3 { margin: 0; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.35; }
.category-card-copy p { margin: 0; overflow: hidden; color: #aebbd0; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-card-action { display: inline-flex; align-items: center; gap: 7px; color: #65d9ff; font-size: 12px; font-weight: 700; }

.category-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid rgba(89, 186, 255, .32);
    border-radius: 50%;
    background: rgba(8, 16, 30, .9);
    color: #dff7ff;
    font-size: 28px;
    cursor: pointer;
}
.category-carousel-control:hover,.category-carousel-control:focus-visible { border-color: #60d7ff; background: #102540; outline: none; }
.category-carousel-control.previous { right: 0; }
.category-carousel-control.next { left: 0; }
.category-carousel-status { min-height: 22px; color: var(--text-muted); text-align: center; font-size: 12px; }

.category-dialog { position: fixed; inset: 0; z-index: 1500; display: none; place-items: center; padding: 20px; }
.category-dialog.is-open { display: grid; }
.category-dialog-backdrop { position: absolute; inset: 0; background: rgba(2, 7, 16, .82); backdrop-filter: blur(8px); }
.category-dialog-panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(760px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(87, 187, 255, .28); border-radius: 24px; background: #091321; box-shadow: 0 32px 90px rgba(0, 0, 0, .62); }
.category-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid var(--border); }
.category-dialog-parent { display: flex; align-items: center; gap: 15px; min-width: 0; }
.category-dialog-image { width: 70px; height: 70px; flex: 0 0 70px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #111d30; }
.category-dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.category-dialog-parent h2 { margin: 3px 0 4px; font-size: 25px; }
.category-dialog-parent p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.category-dialog-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border); border-radius: 12px; background: #111b2d; color: #fff; font-size: 25px; cursor: pointer; }
.category-dialog-children { display: grid; gap: 10px; min-height: 0; overflow-y: auto; padding: 18px 22px 24px; overscroll-behavior: contain; }
.category-child-link { width: 100%; display: grid; grid-template-columns: 54px minmax(0,1fr) 34px; align-items: center; gap: 13px; min-height: 72px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 14px; background: #0d192a; color: #fff; font: inherit; text-align: start; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.category-child-link:hover,.category-child-link:focus-visible { border-color: rgba(92, 208, 255, .55); background: #11213a; outline: none; }
.category-child-image { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #15223a; color: #67d7ff; }
.category-child-image img { width: 100%; height: 100%; object-fit: cover; }
.category-child-copy { min-width: 0; }
.category-child-copy strong { display: block; margin-bottom: 3px; }
.category-child-copy small { display: block; overflow: hidden; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.category-child-arrow { color: #67d7ff; font-size: 20px; }
.category-dialog-back { min-height: 42px; justify-self: start; padding: 8px 12px; border: 1px solid var(--border); border-radius: 11px; background: #101c30; color: #9edfff; font: inherit; cursor: pointer; }
.category-dialog-back:hover,.category-dialog-back:focus-visible { border-color: rgba(92, 208, 255, .55); outline: none; }
.category-dialog-empty { padding: 24px 18px; border: 1px dashed rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--text-muted); text-align: center; line-height: 1.8; }
body.category-dialog-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .category-card { transition: none; }
    .category-carousel-viewport { scroll-behavior: auto; }
}

@media (max-width: 340px) {
    .category-carousel { --category-card-width: 188px; --category-card-height: 282px; }
    .category-card-copy { padding: 15px; }
    .category-card-copy p { -webkit-line-clamp: 1; }
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    min-height: 240px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

    border: 1px dashed
        rgba(36, 48, 74, 0.9);

    border-radius: var(--radius-lg);

    background:
        rgba(11, 16, 32, 0.38);

    text-align: center;
}


.empty-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 17px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 17px;

    color: var(--primary-2);

    background:
        rgba(49, 91, 255, 0.06);

    font-family: var(--font-en);

    font-size: 22px;
}


.empty-state h3 {
    margin-bottom: 5px;

    color: var(--white);

    font-size: 15px;

    font-weight: 600;
}


.empty-state p {
    max-width: 470px;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   PROMOTIONAL POSTS
   ========================================================= */

.posts-carousel,
.offers-carousel {
    display: flex;

    gap: 18px;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    overscroll-behavior-inline: contain;

    padding: 5px 2px 18px;
}


.posts-carousel::-webkit-scrollbar,
.offers-carousel::-webkit-scrollbar {
    display: none;
}


.promo-post {
    position: relative;

    min-width: min(
        100%,
        760px
    );

    display: grid;

    grid-template-columns:
        minmax(250px, 0.9fr)
        minmax(260px, 1.1fr);

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            #0B1020,
            #0F172B
        );

    scroll-snap-align: start;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.4s var(--ease),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


.promo-post:hover {
    transform: translateY(-5px);

    border-color:
        rgba(49, 91, 255, 0.42);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 15px 45px rgba(49, 91, 255, 0.1);
}


.promo-post-image {
    min-height: 320px;

    overflow: hidden;

    background: var(--surface-2);
}


.promo-post-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s var(--ease);
}


.promo-post:hover .promo-post-image img {
    transform: scale(1.045);
}


.promo-post-content {
    min-height: 320px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 42px;
}


.promo-label {
    width: fit-content;

    margin-bottom: 14px;

    padding: 5px 9px;

    border: 1px solid
        rgba(34, 211, 238, 0.18);

    border-radius: 999px;

    background:
        rgba(34, 211, 238, 0.06);

    color: var(--cyan);

    font-size: 10px;

    font-weight: 600;
}


.promo-post h3 {
    margin-bottom: 12px;

    color: var(--white);

    font-size: clamp(
        23px,
        3vw,
        34px
    );

    font-weight: 600;

    line-height: 1.4;
}


.promo-post p {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.9;
}


.promo-button {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 11px 16px;

    border-radius: 11px;

    background: var(--primary);

    color: var(--white);

    font-size: 12px;

    font-weight: 600;

    transition:
        transform 0.25s var(--ease),
        background 0.25s ease;
}


.promo-button:hover {
    background: #4169ff;

    transform: translateY(-2px);
}


/* Carousel controls */

.carousel-controls {
    display: flex;

    gap: 8px;
}


.carousel-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--surface);

    color: var(--text-secondary);

    cursor: pointer;

    font-family: var(--font-en);

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s var(--ease);
}


.carousel-button:hover {
    color: var(--white);

    border-color:
        rgba(49, 91, 255, 0.45);

    background:
        rgba(49, 91, 255, 0.1);

    transform: translateY(-2px);
}


/* =========================================================
   OFFERS
   ========================================================= */

.offer-card {
    min-width: 340px;

    min-height: 220px;

    position: relative;

    overflow: hidden;

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(49, 91, 255, 0.18),
            transparent 45%
        ),
        var(--surface);

    scroll-snap-align: start;

    transition:
        transform 0.35s var(--ease),
        border-color 0.35s ease;
}


.offer-card::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -80px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(34, 211, 238, 0.06);

    filter: blur(30px);
}


.offer-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(49, 91, 255, 0.4);
}


.offer-content {
    position: relative;

    z-index: 1;
}


.offer-card h3 {
    margin-bottom: 10px;

    color: var(--white);

    font-size: 22px;

    font-weight: 600;
}


.offer-card p {
    color: var(--text-secondary);

    font-size: 12px;
}


.offer-discount {
    display: block;

    margin-top: 18px;

    color: var(--cyan);

    font-family: var(--font-en);

    font-size: 28px;

    font-weight: 700;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.product-card {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    transition:
        transform 0.18s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    transform-style: preserve-3d;

    will-change: transform;
}


.product-card:hover {
    border-color:
        rgba(49, 91, 255, 0.38);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.24),
        0 10px 35px rgba(49, 91, 255, 0.08);
}

.offer-products {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.offer-product {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
}

.offer-product strong {
    color: var(--cyan);
    white-space: nowrap;
}

.product-card.is-featured {
    border-color: rgba(218, 171, 69, 0.82);
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(218, 171, 69, 0.13);
}

.product-card.is-featured:hover {
    border-color: rgba(245, 204, 108, 0.95);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.3),
        0 0 26px rgba(218, 171, 69, 0.17);
}


.product-image {
    position: relative;

    display: block;

    aspect-ratio: 1 / 0.78;

    overflow: hidden;

    background: var(--surface-2);
}


.product-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 65%,
            rgba(0, 0, 0, 0.28)
        );

    pointer-events: none;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s var(--ease);
}


.product-card:hover .product-image img {
    transform: scale(1.055);
}


.product-badge {
    position: absolute;

    top: 13px;
    right: 13px;

    z-index: 2;

    padding: 5px 9px;

    border: 1px solid
        rgba(49, 91, 255, 0.25);

    border-radius: 999px;

    background:
        rgba(5, 8, 22, 0.75);

    backdrop-filter: blur(10px);

    color: #DCE4FF;

    font-size: 10px;
}

.product-card.is-featured .product-badge {
    border-color: rgba(239, 192, 83, 0.66);
    background: rgba(20, 15, 7, 0.88);
    color: #F6D77F;
    box-shadow: 0 4px 14px rgba(218, 171, 69, 0.14);
}


.product-info {
    padding: 19px;
}


.product-category {
    display: block;

    margin-bottom: 5px;

    color: var(--primary-2);

    font-family: var(--font-en);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}


.product-info h3 {
    margin-bottom: 6px;

    color: var(--white);

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;
}


.product-info p {
    min-height: 42px;

    margin-bottom: 15px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.8;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.product-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-top: 13px;

    border-top: 1px solid
        rgba(36, 48, 74, 0.7);
}


.seller {
    color: var(--text-muted);

    font-size: 10px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.product-bottom strong {
    flex-shrink: 0;

    color: var(--white);

    font-family: var(--font-en);

    font-size: 14px;
}


/* =========================================================
   SELLER CTA
   ========================================================= */

.seller-cta {
    padding-block: 45px 100px;
}

.waslon-managed-banner-slot{box-sizing:border-box;width:100%;padding:32px 16px}.waslon-managed-banner-slot.banner-width-contained{max-width:1240px;margin-inline:auto}.waslon-managed-banner{box-sizing:border-box;display:grid;grid-template-columns:minmax(150px,25%) minmax(0,1fr) auto;align-items:center;gap:22px;width:100%;margin-inline:auto;padding:24px;border:1px solid rgba(74,151,255,.24);border-radius:22px;background:linear-gradient(135deg,#0b1424,#0d1d34);box-shadow:0 18px 45px rgba(0,0,0,.18);overflow:hidden}.waslon-managed-banner.banner-size-compact{padding:16px;gap:16px}.waslon-managed-banner.banner-size-large{padding:34px}.waslon-managed-banner.banner-max-720{max-width:720px}.waslon-managed-banner.banner-max-960{max-width:960px}.waslon-managed-banner.banner-max-1200{max-width:1200px}.waslon-managed-banner-image{display:block;width:100%;height:140px;border-radius:15px;background:#08111f}.waslon-managed-banner-image.banner-fit-cover{object-fit:cover}.waslon-managed-banner-image.banner-fit-contain{object-fit:contain}.waslon-managed-banner-copy{min-width:0}.waslon-managed-banner-kicker{display:block;margin-bottom:7px;color:#65dcff;font-size:13px;font-weight:700}.waslon-managed-banner-title{margin:0;color:#fff;font-size:clamp(21px,3vw,31px);line-height:1.35}.waslon-managed-banner-text{margin:8px 0 0;color:#aebbd0;line-height:1.8}.waslon-managed-banner-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border-radius:11px;background:#315bff;color:#fff;text-decoration:none;white-space:nowrap}.waslon-managed-banner.banner-image-only{display:block;padding:0;background:transparent;border-color:rgba(74,151,255,.18)}.waslon-managed-banner.banner-image-only .waslon-managed-banner-image{height:auto;max-height:360px;aspect-ratio:auto;border-radius:inherit}.banner-hide-desktop{display:none!important}
@media(max-width:767px){.banner-hide-desktop{display:block!important}.banner-hide-mobile{display:none!important}.waslon-managed-banner-slot{padding:18px 16px}.waslon-managed-banner{grid-template-columns:1fr;gap:14px;padding:17px;border-radius:17px}.waslon-managed-banner.banner-size-large{padding:21px}.waslon-managed-banner-image{height:auto;max-height:180px;aspect-ratio:16/7}.waslon-managed-banner-title{font-size:21px}.waslon-managed-banner-text{font-size:14px}.waslon-managed-banner-button{width:100%;min-height:46px}.waslon-managed-banner.banner-image-only{padding:0}.waslon-managed-banner.banner-image-only .waslon-managed-banner-image{max-height:none;object-fit:contain}}


.cta-card {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    padding: 48px;

    border: 1px solid var(--border);

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(34, 211, 238, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(49, 91, 255, 0.12),
            transparent 40%
        ),
        var(--surface);

    box-shadow: var(--shadow);
}

.cta-card.has-image {
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 1fr) auto;
}

.publisher-homepage-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
}

.publisher-homepage-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}


.cta-card::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.025),
            transparent 45%
        );
}


.cta-card h2 {
    margin-bottom: 8px;

    color: var(--white);

    font-size: clamp(
        23px,
        3vw,
        34px
    );

    font-weight: 600;
}


.cta-card p {
    color: var(--text-secondary);

    font-size: 13px;
}


.cta-button {
    position: relative;

    z-index: 2;

    flex-shrink: 0;

    min-height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    padding: 0 22px;

    border-radius: 13px;

    background: var(--primary);

    color: var(--white);

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 12px 35px rgba(49, 91, 255, 0.2);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.cta-button:hover {
    background: #4169ff;

    box-shadow:
        0 16px 40px rgba(49, 91, 255, 0.3);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);

    background:
        #040712;

    padding-top: 65px;
}


.footer-grid {
    display: grid;

    grid-template-columns:
        1.7fr
        repeat(3, 1fr);

    gap: 45px;

    padding-bottom: 55px;
}


.footer-brand img {
    width: 130px;

    margin-bottom: 18px;
}


.footer-brand p {
    max-width: 340px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.9;
}


.footer-column {
    display: flex;

    flex-direction: column;

    gap: 11px;
}


.footer-column h3 {
    margin-bottom: 5px;

    color: var(--white);

    font-size: 13px;

    font-weight: 600;
}


.footer-column a {
    width: fit-content;

    color: var(--text-muted);

    font-size: 11px;

    transition:
        color 0.25s ease,
        transform 0.25s var(--ease);
}


.footer-column a:hover {
    color: var(--white);

    transform: translateX(-3px);
}


.footer-bottom {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid
        rgba(36, 48, 74, 0.7);

    color: var(--text-muted);

    font-family: var(--font-en);

    font-size: 9px;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity 0.75s var(--ease),
        transform 0.75s var(--ease);

    transition-delay:
        var(--delay, 0ms);
}


.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   DYNAMIC CARDS
   ========================================================= */

.dynamic-card {
    animation:
        dynamicCardIn 0.55s var(--ease)
        both;

    animation-delay:
        var(--delay, 0ms);
}


@keyframes dynamicCardIn {

    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 20px;
    }


    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .footer-grid {
        grid-template-columns:
            1.5fr
            repeat(3, 1fr);

        gap: 28px;
    }

}


@media (max-width: 900px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }


    .header-inner {
        min-height: 68px;
    }


    .main-nav {
        display: none;
    }


    .login-link {
        display: none;
    }


    .brand-logo {
        width: 126px;
    }


    .hero {
        min-height: 590px;
    }


    .hero-content {
        padding-block: 90px 75px;
    }


    .hero-title {
        font-size: clamp(
            38px,
            9vw,
            62px
        );
    }


    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .promo-post {
        min-width: 86vw;
    }


    .cta-card {
        padding: 36px;
    }

}


@media (max-width: 640px) {

    .container {
        width: min(
            calc(100% - 22px),
            var(--container)
        );
    }


    .site-header {
        backdrop-filter: blur(14px);
    }


    .header-inner { min-height: 64px; gap: 12px; }


    .brand-logo { width: 128px; }


    .header-actions { gap: 0; }

    .header-actions > * { display: none !important; }

    .header-actions #searchButton { display: grid !important; }


    .icon-button { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }


    .header-register {
        min-height: 36px;

        padding-inline: 12px;

        font-size: 11px;
    }


    .hero { min-height: 0; }


    .hero-content { padding-block: 56px 44px; }


    .hero-badge {
        margin-bottom: 18px;
    }


    .hero-title { font-size: clamp(31px, 9vw, 38px); letter-spacing: -0.025em; line-height: 1.28; }


    .hero-description { max-width: 36ch; margin: 16px auto 24px; font-size: 15px; line-height: 1.8; }


    .hero-search {
        min-height: 56px;

        border-radius: 15px;

        padding: 6px;
    }


    .search-icon {
        width: 35px;
        height: 35px;
    }


    .hero-search input { font-size: 16px; }


    .hero-search button { min-width: 64px; min-height: 46px; padding-inline: 15px; border-radius: 11px; font-size: 14px; }


    .popular-searches {
        display: none;
    }


    .categories-section, .posts-section, .offers-section, .products-section { padding-block: 42px; }

    .categories-section { padding-top: 38px; }


    .section-heading { margin-bottom: 18px; align-items: center; gap: 12px; }


    .section-heading h2 { font-size: 22px; line-height: 1.35; }

    .section-heading .eyebrow { margin-bottom: 4px; font-family: var(--font-ar); font-size: 11px; letter-spacing: 0; text-transform: none; }

    .section-heading .cta-button { width: auto; min-height: 40px; margin-inline-start: auto; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: transparent; box-shadow: none; font-size: 12px; white-space: nowrap; }


    .view-all {
        font-size: 11px;
    }


    .category-carousel { --category-card-width: clamp(188px, 64vw, 238px); --category-card-height: clamp(282px, 88vw, 332px); padding-inline: 0; }
    .category-carousel-viewport { height: calc(var(--category-card-height) + 42px); margin-inline: -16px; }
    .category-card { border-radius: 20px; }
    .category-card::after { border-radius: 19px; }
    .category-card-copy { padding: 17px; }
    .category-card-copy h3 { font-size: 18px; }
    .category-card-copy p { font-size: 11px; }
    .category-carousel-control { display: none; }
    .category-dialog { align-items: end; padding: 0; }
    .category-dialog-panel { width: 100%; max-height: min(82vh, 700px); border-radius: 22px 22px 0 0; }
    .category-dialog-header { padding: 17px 16px; }
    .category-dialog-parent { align-items: flex-start; gap: 11px; }
    .category-dialog-image { width: 54px; height: 54px; flex-basis: 54px; border-radius: 14px; }
    .category-dialog-parent h2 { font-size: 21px; }
    .category-dialog-parent p { font-size: 12px; }
    .category-dialog-children { padding: 14px 16px 20px; }
    .category-child-link { min-height: 70px; grid-template-columns: 50px minmax(0,1fr) 28px; padding: 9px; }
    .category-child-image { width: 50px; height: 50px; }


    .empty-state {
        min-height: 210px;

        padding: 28px 18px;
    }


    .promo-post {
        min-width: 88vw;

        grid-template-columns: 1fr;
    }


    .promo-post-image {
        min-height: 210px;

        aspect-ratio: 16 / 9;
    }


    .promo-post-content {
        min-height: auto;

        padding: 26px;
    }


    .promo-post h3 {
        font-size: 23px;
    }


    .offer-card {
        min-width: 78vw;

        min-height: 190px;

        padding: 25px;
    }


    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .product-card {
        border-radius: 15px;
    }


    .product-info { padding: 12px; }


    .product-info h3 { min-height: 42px; margin-bottom: 7px; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


    .product-info p { display: none; }


    .product-bottom { padding-top: 10px; }

    .product-bottom strong { font-size: 14px; }

    .product-category { font-family: var(--font-ar); font-size: 10px; letter-spacing: 0; text-transform: none; }

    .product-image { aspect-ratio: 1 / 0.92; }

    .product-card-interactive { transform: none !important; will-change: auto; }


    .cta-card {
        flex-direction: column;

        align-items: flex-start;

        padding: 29px;

        border-radius: 23px;
    }

    .cta-card.has-image {
        display: flex;
        flex-direction: column;
    }

    .publisher-homepage-image {
        height: auto;
        aspect-ratio: 16 / 7;
    }


    .cta-button {
        width: 100%;
    }


    .site-footer {
        padding-top: 50px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 35px 22px;
    }


    .footer-brand {
        grid-column: 1 / -1;
    }


    .footer-bottom {
        min-height: 62px;

        font-size: 8px;
    }

}


@media (max-width: 420px) {

    .hero-title { font-size: 32px; }


    .header-register {
        display: none;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }


    .reveal {
        opacity: 1;

        transform: none;
    }

}


/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--primary-2);

    outline-offset: 3px;
}


input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline-offset: 4px;
}

.mobile-back-control {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--white);
    font-size: 19px;
}

@media (max-width: 700px) {
    .mobile-back-control { display: inline-flex; }
}
.product-delete {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #ef4444;
    border-radius: 10px;
    background: transparent;
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-delete:hover {
    background: #ef4444;
    color: #fff;
}

.live-search-results {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    z-index: 50;
    max-height: min(480px, 62vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #080d1b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    text-align: right;
    overscroll-behavior: contain;
}

.live-search-results[hidden] {
    display: none;
}

.live-search-heading {
    padding: 8px 10px 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.live-search-item {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease;
}

.live-search-item:hover,
.live-search-item.is-active {
    background: rgba(49, 91, 255, .14);
}

.live-search-thumb {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--primary-2);
    font-size: 18px;
    text-align: center;
    line-height: 40px;
}

.live-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-search-text strong {
    overflow: hidden;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-text small {
    overflow: hidden;
    color: var(--cyan);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-empty,
.live-search-loading {
    padding: 18px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.live-search-all {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border-top: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    color: var(--primary-2);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 340px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-image { aspect-ratio: 16 / 9; }
}

.category-icon img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
