.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    font-size: 1rem;
    color: #212529;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}
.dropdown-menu.show {
    display: block;
}
.dropdown, .dropleft, .dropright, .dropup {
    position: relative;
}
.c-gold {
    color: #ffc53d;
}


/* ---------- Theme tokens ---------- */
:root,
html[data-theme="dark"] {
    --bg: #07070f;
    --bg-grad: radial-gradient(140% 90% at 50% -10%, #14122b 0%, #0a0a15 45%, #07070f 100%);
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .012);
    --card-grad: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    --panel: rgba(20, 18, 43, .9);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #e9e9f5;
    --text-soft: #c3c4dd;
    --text-muted: #9a9cbb;
    --text-dim: #7a7c98;
    --accent: #8b5cf6;
    --primary: var(--accent);
    --accent2: #22d3ee;
    --accent-soft: rgba(139, 92, 246, .16);
    --accent-border: rgba(139, 92, 246, .42);
    --header-bg: rgba(9, 9, 18, .72);
    --shadow: 0 20px 44px -22px rgba(139, 92, 246, .75);
    --hero-grad: radial-gradient(120% 150% at 82% 0%, rgba(139, 92, 246, .42), transparent 58%), linear-gradient(120deg, #151233, #0b0b18);
    --good: #34d399;
    --good-bg: rgba(52, 211, 153, .12);
    --bf: #ff2d55;
}

html[data-theme="light"] {

    --primary: var(--accent);

    --bg: #eef0f8;
    --bg-grad: radial-gradient(140% 90% at 50% -10%, #ffffff 0%, #f1f2fb 45%, #e9ebf6 100%);
    --surface: #ffffff;
    --surface-2: #ffffff;
    --card-grad: #ffffff;
    --panel: #ffffff;
    --border: rgba(20, 20, 50, .10);
    --border-strong: rgba(20, 20, 50, .18);
    --text: #16172e;
    --text-soft: #3a3c58;
    --text-muted: #656785;
    --text-dim: #8a8ca6;
    --accent: #7c3aed;
    --accent2: #0891b2;
    --accent-soft: rgba(124, 58, 237, .12);
    --accent-border: rgba(124, 58, 237, .35);
    --header-bg: rgba(255, 255, 255, .82);
    --shadow: 0 18px 40px -20px rgba(124, 58, 237, .4);
    --hero-grad: radial-gradient(120% 150% at 82% 0%, rgba(124, 58, 237, .22), transparent 58%), linear-gradient(120deg, #ede9fe, #f6f7fc);
    --good: #059669;
    --good-bg: rgba(5, 150, 105, .1);
    --bf: #e11d48;
}

/* ---------- Base ---------- */
* {
    box-sizing: border-box
}

html, body {
    margin: 0
}

body {
    background: var(--bg);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    text-align: right;
    direction: rtl;
    transition: background-color .35s ease, color .35s ease;
}

a {
    color: inherit
}

a:hover {
    text-decoration: none
}



.text-soft {
    color: var(--text-soft) !important
}

.text-muted2 {
    color: var(--text-muted) !important
}

.text-dim {
    color: var(--text-dim) !important
}

.section {
    padding: 44px 0 10px
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase
}

::-webkit-scrollbar {
    height: 9px;
    width: 9px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 99px
}

/* ---------- Buttons ---------- */
.btn-neon {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    font-weight: 600;
    border: none;
    box-shadow: 0 12px 34px -12px var(--accent);
    transition: transform .2s, box-shadow .2s;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px var(--accent)
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent)
}

.btn-soft {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--text);
    font-weight: 600;
    transition: .2s;
}

.btn-soft:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0a0a14;
    border-color: transparent
}

/* ---------- Header ---------- */
#header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 22px var(--accent-border);
    font-weight: 700;
    font-size: 19px;
    color: #0a0a14;
}

.brand-name {
    font-weight: 700;
    font-size: 21px;
    color: var(--text)
}

.brand-name .accent {
    color: var(--accent)
}

.main-nav .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 9px;
    padding: 8px 13px !important;
    transition: .15s;
}

.main-nav .nav-link:hover, .main-nav .nav-item.show .nav-link {
    color: var(--text);
    background: var(--surface)
}

.main-nav .nav-link.active {
    color: var(--accent)
}

/* header icon buttons */
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    cursor: pointer;
    transition: .15s;
    position: relative;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--text)
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0a0a14;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 12px var(--accent-border);
}

/* mini search */
.mini-search {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 8px 13px;
    min-width: 200px;
    transition: .15s;
}

.mini-search:focus-within {
    border-color: var(--accent)
}

.mini-search input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    font-size: 14px;
    width: 100%
}

.mini-search input::placeholder {
    color: var(--text-dim)
}

/* theme toggle */
.theme-toggle .moon {
    display: none
}

html[data-theme="light"] .theme-toggle .sun {
    display: none
}

html[data-theme="light"] .theme-toggle .moon {
    display: block
}

/* ---------- Mega menu ---------- */
.dropdown-menu {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
    padding: 10px;
    margin-top: 10px;
    color: var(--text);
}

.dropdown-item {
    color: var(--text-soft);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: block;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--surface);
    color: var(--text)
}

.dropdown-divider {
    border-color: var(--border)
}

.mega-menu {
    width: 640px;
    max-width: 92vw;
    padding: 20px
}

.mega-col-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin: 0 0 10px;
    font-weight: 700
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-soft);
    transition: .15s;
    font-size: 14px
}

.mega-link:hover {
    background: var(--surface);
    color: var(--text)
}

.mega-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 auto
}

.mega-promo {
    border-radius: 12px;
    padding: 18px;
    background: var(--hero-grad);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end
}

/* tree (nested) submenu */
.dropdown-submenu {
    position: relative
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -10px;

}

.dropdown-submenu > a::after {
    content: "›";
    float: left;
    font-weight: 700;
    opacity: .6
}

@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block
    }
}

/* mini cart dropdown */
.cart-menu {
    width: 340px;
    padding: 16px
}

.cart-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border)
}

.cart-thumb {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    flex: 0 0 auto
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 15px;
    line-height: 1
}

.cart-remove:hover {
    color: var(--bf)
}

/* ---------- Cards / tiles ---------- */
.card-neon {
    background: var(--card-grad);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

a.card-neon:hover, .card-neon.hoverable:hover {
    transform: translateY(-6px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow)
}

.tile {
    min-height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tile .brand {
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .9
}

.tile .denom {
    font-weight: 700;
    font-size: 32px;
    line-height: 1
}

.tile-tag {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 4px 9px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff
}

.price {
    font-weight: 700;
    font-size: 20px;
    color: var(--text)
}

.price-old {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: line-through
}

.off-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--good);
    background: var(--good-bg);
    padding: 3px 8px;
    border-radius: 7px
}

.prod-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    line-height: 1.35
}

/* placeholder art */
.ph {
    background: repeating-linear-gradient(45deg, rgba(128, 128, 160, .14) 0 13px, rgba(128, 128, 160, .05) 13px 26px);
    border: 1px dashed var(--border-strong);
    display: grid;
    place-items: center;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    border-radius: 16px;
}


.gift-card .price{
    font-size: 13px;
}

/* ---------- Hero carousel ---------- */
.hero {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--border)
}

.hero .carousel-item {
    min-height: 470px;
    background: var(--hero-grad)
}

.hero-inner {
    min-height: 470px;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.04;
    color: var(--text);
    max-width: 520px
}

.hero p {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 440px
}

.hero .carousel-indicators li {
    width: 26px;
    height: 8px;
    border-radius: 99px
}

.pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase
}

/* ---------- Banners ---------- */
.text-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 38px 44px;
    background: var(--hero-grad);
    border: 1px solid var(--border)
}

.strip-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    border-radius: 14px;
    padding: 16px 24px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-soft));
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600
}

.notif {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 14px
}

.notif .ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 17px
}

.notif-success {
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .32)
}

.notif-success .ico {
    background: rgba(52, 211, 153, .2);
    color: #34d399
}

.notif-info {
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .3)
}

.notif-info .ico {
    background: rgba(34, 211, 238, .2);
    color: #22d3ee
}

.notif-warning {
    background: rgba(255, 193, 61, .1);
    border: 1px solid rgba(255, 193, 61, .32)
}

.notif-warning .ico {
    background: rgba(255, 193, 61, .2);
    color: #ffc53d
}

.notif-error {
    background: rgba(244, 63, 94, .1);
    border: 1px solid rgba(244, 63, 94, .32)
}

.notif-error .ico {
    background: rgba(244, 63, 94, .2);
    color: #ff6b81
}

.notif .close-x {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--surface);
    color: var(--text);
    cursor: pointer
}

/* ---------- Uploader ---------- */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 44px 20px;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    border: 2px dashed var(--border-strong);
    background: var(--surface-2);
    transition: .2s;
}

.dropzone.drag {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.up-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--border)
}

.up-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--surface);
    display: grid;
    place-items: center
}

.up-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.up-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: 0 0 auto;
    display: grid;
    place-items: center
}

.up-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(128, 128, 160, .22);
    overflow: hidden
}

.up-bar > span {
    display: block;
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width .2s
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 92, 246, .25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ---------- Feature box ---------- */
.feature {
    padding: 26px 24px;
    border-radius: 18px;
    background: var(--card-grad);
    border: 1px solid var(--border);
    height: 100%;
    transition: transform .25s, border-color .25s
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--accent-border)
}

.feature .fico {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 23px;
    margin-bottom: 16px;
    background: var(--accent-soft)
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-2)
}

.site-footer h4 {
    font-size: 14px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px
}

.site-footer a {
    color: var(--text-muted);
    font-size: 14.5px;
    display: block;
    padding: 5px 0;
    transition: .15s
}

.site-footer a:hover {
    color: var(--accent)
}

.pay-chip {
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 600
}

/* ---------- Countdown ---------- */
.count-box {
    min-width: 92px;
    padding: 18px 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(255, 45, 85, .28);
    text-align: center
}

.count-box .n {
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums
}

.count-box .l {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 8px
}

.bf-hero h1 {
    font-weight: 700;
    font-size: clamp(48px, 9vw, 104px);
    line-height: .92;
    letter-spacing: -.03em;
    color: var(--text)
}

.bf-grad {
    background: linear-gradient(90deg, #ff2d55, #ff8a3d, #ff2d55);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bfshine 4s linear infinite
}

@keyframes bfshine {
    0% {
        background-position: -200% 0
    }
    100% {
        background-position: 200% 0
    }
}

.btn-bf {
    background: linear-gradient(135deg, #ff2d55, #ff5e3a);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 16px 44px -12px rgba(255, 45, 85, .7)
}

.btn-bf:hover {
    color: #fff;
    transform: translateY(-2px)
}

/* animations */
@keyframes floaty {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-12px)
    }
}

@keyframes glow {
    0%, 100% {
        opacity: .4
    }
    50% {
        opacity: .85
    }
}

.floaty {
    animation: floaty 6s ease-in-out infinite
}

/* search result page */
.search-item .price{
    font-size: 16px;
}
.result-title {
    font-weight: 600;
    font-size: 20px;
    color: var(--accent);
    line-height: 1.25
}

.result-title:hover {
    text-decoration: underline
}

.result-url {
    color: var(--accent2);
    font-size: 12.5px
}

/* utilities */
.divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0
}

.rounded-xl {
    border-radius: 18px
}

.gap-2 {
    gap: .5rem
}

.gap-3 {
    gap: 1rem
}

.chip {
    padding: 9px 16px;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: .15s
}

.chip:hover {
    color: var(--text)
}

.chip.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #0a0a14;
    border-color: transparent
}

.form-control {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 11px
}

.form-control:focus {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 .18rem var(--accent-soft)
}

.form-control::placeholder {
    color: var(--text-dim)
}

select.form-control {
    cursor: pointer
}
