:root {
    --purple: #c58a18;
    --purple-dark: #8d5c08;
    --purple-light: #e3b64f;
    --lavender: #fff5df;
    --text: #1e1b2e;
    --muted: #7c778f;
    --white: #ffffff;
    --border: #eadfc8;
    --bg-main: #fffdf8;
    --shadow: 0 10px 30px -5px rgba(197, 138, 24, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-main);
    padding-bottom: 100px;
    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* --- Topbar (Yuqori panel) --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 6%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(197, 138, 24, 0.24);
}

.dot {
    color: var(--purple);
}

/* Burger menyu tugmasi */
.menu-toggle-btn {
    background: none;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.menu-toggle-btn:hover {
    background: var(--lavender);
    color: var(--purple);
}

/* Qidiruv paneli */
.search {
    flex: 1;
    max-width: 550px;
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.search:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(197, 138, 24, 0.12);
}

.search input {
    min-width: 0;
    flex: 1;
    padding: 13px 18px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.search button {
    width: 54px;
    height: 48px;
    border: 0;
    color: white;
    background: var(--purple);
    font-size: 22px;
    transition: background 0.2s;
}

.search button:hover {
    background: var(--purple-dark);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

/* O'ng yuqori burchakdagi profil va avatar */
.user-profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
    padding: 5px 14px 5px 5px;
    background: var(--lavender);
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.profile-avatar-link:hover {
    background: #e9e2ff;
    border-color: var(--purple-light);
}

.top-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple);
}

.top-username {
    font-size: 13px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.join-btn {
    display: inline-block;
    padding: 12px 22px;
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(197, 138, 24, 0.2);
    transition: all 0.2s;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(197, 138, 24, 0.28);
}

/* --- Yon Menyu (Sidebar) Dizayni --- */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.sidebar-close {
    background: none;
    border: 0;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-links a,
.sidebar-links .lang-select-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-main);
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-links a:hover {
    background: var(--lavender);
    color: var(--purple);
}

.lang-select-box select {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
}

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

/* --- Asosiy kontent --- */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 6%;
}

.section {
    margin-bottom: 45px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* Kategoriyalar chiplari */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.category-chip {
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-chip:hover {
    color: var(--white);
    border-color: var(--purple);
    background: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 138, 24, 0.2);
}

/* Mahsulotlar grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--purple-light);
}

.product-image {
    position: relative;
    height: 210px;
    background: linear-gradient(135deg, #f5f1ff, #faf8ff);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image>span {
    font-size: 55px;
}

/* Sevimlilar yurakchasi */
.heart {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--purple);
    font-size: 22px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.heart:hover {
    background: var(--purple);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.product-info p {
    color: var(--muted);
    font-size: 13px;
    height: 38px;
    overflow: hidden;
    margin-bottom: 14px;
}

.product-info strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: 16px;
    display: block;
}

.add-cart {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: var(--lavender);
    color: var(--purple-dark);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.2s;
}

.add-cart:hover {
    background: var(--purple);
    color: white;
    box-shadow: 0 6px 18px rgba(197, 138, 24, 0.2);
}

/* Bo'sh holat */
.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: 24px;
}

.empty-icon {
    font-size: 55px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}

/* --- Pastki suzuvchi navigatsiya paneli --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(112, 71, 235, 0.18);
    z-index: 1000;
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.bottom-nav .nav-item .icon {
    font-size: 22px;
    margin-bottom: 3px;
    transition: transform 0.2s;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: white;
    background: var(--purple);
    box-shadow: 0 8px 20px rgba(197, 138, 24, 0.24);
}

.bottom-nav .nav-item.active .icon,
.bottom-nav .nav-item:hover .icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 30px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-radius: 24px 24px 0 0;
}

.footer p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

/* Responsivlik */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .topbar {
        flex-wrap: wrap;
        padding: 14px 4%;
        gap: 12px;
    }

    .search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
/* BUTUN SAYT UCHUN JONLI VALYUTA VA KOINLAR TICKERI */
.currency-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #181824;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 99999;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

                .ticker-track {
                    display: inline-flex;
                    width: max-content;
                    white-space: nowrap;
                    animation: wmIndexTicker 60s linear infinite !important;
                }
        
                .ticker-track .ticker-item {
                    flex: 0 0 auto;
                }
        
                .currency-ticker:hover .ticker-track {
                    animation-play-state: paused !important;
                }
        
                @keyframes wmIndexTicker {
                    from {
                        transform: translate3d(0, 0, 0);
                    }
        
                    to {
                        transform: translate3d(-50%, 0, 0);
                    }
                }

.ticker-item {
    display: inline-block;
    padding: 0 25px;
}

.ticker-item span {
    color: #2ecc71;
    font-weight: 800;
    margin-left: 6px;
}

.live-badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 10px;
    font-weight: 800;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* WorldMall premium gold theme */
:root {
  --wm-gold: #c58a18;
  --wm-gold-dark: #925d06;
  --wm-gold-soft: #fff1cf;
  --wm-navy: #10284d;
  --wm-cream: #fffaf0;
}
.wm-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 24px; min-height: 285px; margin: 8px 0 28px; padding: 30px 38px;
  border: 1px solid #f0dfb7; border-radius: 24px;
  background: radial-gradient(circle at 82% 40%, #fff 0, transparent 25%),
    linear-gradient(115deg, #fff7e5 0%, #f8e4b8 52%, #e9bd62 100%);
  box-shadow: 0 14px 34px rgba(143, 96, 13, .10);
}
.wm-hero:after { content: ""; position:absolute; width:340px; height:340px; right:7%; top:-190px;
  border:2px solid rgba(255,255,255,.65); border-radius:50%; box-shadow:0 0 0 22px rgba(255,255,255,.12),0 0 0 48px rgba(255,255,255,.10); }
.wm-hero-copy { position:relative; z-index:1; max-width:600px; }
.wm-hero-kicker { display:inline-block; padding:7px 12px; border-radius:30px; background:rgba(255,255,255,.72); color:#8b5b08; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.wm-hero h1 { margin:14px 0 10px; color:var(--wm-navy); font-size:clamp(28px,4vw,46px); line-height:1.08; font-weight:900; letter-spacing:-1.5px; }
.wm-hero p { margin:0 0 20px; color:#46536b; font-size:16px; max-width:480px; }
.wm-hero-btn { display:inline-flex; align-items:center; gap:10px; padding:13px 23px; border-radius:13px; color:#fff; font-weight:800; background:linear-gradient(135deg,#dca72e,#9b6508); box-shadow:0 8px 18px rgba(153,100,8,.22); }
.wm-hero-art { position:relative; z-index:1; display:flex; justify-content:center; align-items:center; min-height:190px; }
.wm-hero-art img { width:min(100%,330px); max-height:225px; object-fit:contain; filter:drop-shadow(0 16px 16px rgba(69,49,14,.16)); mix-blend-mode:multiply; }
.wm-benefits { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0 0 28px; }
.wm-benefit { display:flex; align-items:center; gap:12px; padding:15px 17px; border:1px solid #eee4d1; border-radius:16px; background:#fff; box-shadow:0 6px 18px rgba(20,35,60,.04); color:var(--wm-navy); font-weight:800; }
.wm-benefit span:first-child { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; color:#9b6508; background:#fff1cf; font-size:20px; }
.logo-icon { background:linear-gradient(135deg,#dca72e,#9b6508) !important; }
@media(max-width:760px){ .wm-hero{grid-template-columns:1fr;padding:24px;min-height:0}.wm-hero-art{min-height:130px}.wm-hero-art img{max-height:145px}.wm-benefits{grid-template-columns:1fr}.topbar{padding:12px 16px}.logo{font-size:19px} }
/* Yonib-o'chuvchi LIVE belgisi o'chirilgan, valyuta satri aylanadi */
.live-badge {
    animation: none !important;
}
/* =========================================
   WORLDMALL — MOSLIK VA DIZAYN TUZATISHLARI
========================================= */

/* HERO PANEL VA RASM */

.wm-hero {
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
}

.wm-hero-art,
.wm-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    background: transparent !important;
}

.wm-hero-art img,
.wm-hero-visual img {
    display: block;
    width: min(100%, 420px);
    height: auto;
    max-height: 280px;
    object-fit: contain;
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* HERO RASM OSTIDAGI BADGE */

.wm-hero-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    max-width: 95%;
    text-align: center;
}

/* AFZALLIKLAR */

.wm-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.wm-benefit,
.wm-benefit-item {
    min-width: 0;
}

/* MAHSULOTLAR GRID — IKKALA KLASSNI HAM QO'LLAB-QUVVATLASH */

.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* PASTKI NAVIGATSIYA */

.bottom-nav {
    z-index: 100001;
    bottom: 48px;
}

.bottom-nav-item,
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7c778f;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px;
    border-radius: 16px;
    transition: 0.2s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover,
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: white;
    background: #c58a18;
}

/* TICKER PASTKI MENYUDAN PASTROQ */

.currency-ticker {
    z-index: 100000;
}

/* ASOSIY SAHIFA PASTIDAGI BO'SH JOY */

body {
    padding-bottom: 115px;
}

/* PLANSHEET */

@media (max-width: 1100px) {

    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .wm-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* TELEFON */

@media (max-width: 600px) {
    .wm-hero {
        grid-template-columns: 1fr;
    }

    .wm-benefits {
        grid-template-columns: 1fr;
    }

    .wm-hero-art img,
    .wm-hero-visual img {
        max-height: 280px;
    }

    .bottom-nav {
        bottom: 48px;
    }
}
/* WORLDMALL LOGIN BUTTON */
button.wm-login-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 18px;
    background: #c58a18 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.wm-login-submit:hover {
    background: #a87310 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(197, 138, 24, 0.25);
}