/* Utility */

[hidden] {
    display: none !important;
}


/* styles.css */

:root {
    --bg: #0b0c10;
    --card: #15171c;
    --text: #e8e8ea;
    --muted: #a9abb3;
    --accent: #5eead4;
    --line: #2a2d35;
}


/* ===== Theme (shared) ===== */

body[data-theme="light"] {
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #4b5563;
    --line: rgba(15, 23, 42, 0.12);
    --accent: #1363ff;
    --topbar-bg: rgba(255, 255, 255, 0.92);
    --marquee-bg: rgba(255, 255, 255, 0.90);
    --marquee-text: rgba(15, 23, 42, 0.85);
}

body[data-theme="dark"] {
    --topbar-bg: rgba(11, 12, 16, .92);
    --marquee-bg: rgba(21, 23, 28, 0.8);
    --marquee-text: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--text);
}


/* 🚚 scrolling banner */

.marquee {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--marquee-bg, rgba(21, 23, 28, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding: 8px 16px;
    animation: marquee 18s linear infinite;
}

.marquee-item {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--marquee-text, rgba(255, 255, 255, 0.92));
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33%);
    }
}

.address-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
}

.topbar {
    position: sticky;
    top: 0;
    background: var(--topbar-bg, rgba(11, 12, 16, .92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 0;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    letter-spacing: .4px;
}

.badge {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

select,
input,
textarea {
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
}

input {
    min-width: 240px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }
    input {
        min-width: 100%;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}


/* ===== Product image status overlay (sold out / preorder) ===== */

.pmedia {
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.pmedia img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.pmedia .pimg {
    cursor: zoom-in;
}

.pmedia.noclick .pimg {
    cursor: default;
}

.pmedia.soldout img {
    filter: grayscale(1) contrast(.95) brightness(.85);
}

.pmedia.preorder img {
    filter: sepia(.55) saturate(1.25) brightness(.98) contrast(.98);
}

.pmedia .poverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-align: center;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .1px;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.pmedia .poverlay .sub {
    margin-top: 8px;
    font-weight: 700;
    font-size: 12px;
    color: rgba(232, 232, 234, .88);
}

.pmedia.preorder .poverlay {
    background: rgba(93, 74, 18, .40);
}


/* warm */

.pmedia.soldout .poverlay {
    background: rgba(0, 0, 0, .50);
}


/* neutral */

.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.03);
}


/* clickable product image */

.card img.pimg {
    cursor: zoom-in;
}

.card .p {
    padding: 12px;
}

.name {
    font-weight: 700;
}

.meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.price {
    color: var(--accent);
    font-weight: 800;
}

.btn {
    cursor: pointer;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 700;
}

.btn.primary {
    background: var(--accent);
    color: #04201c;
    border-color: transparent;
}

.btn.small {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 980px) {
    .panel {
        grid-template-columns: 1fr;
    }
}

.box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}

.box h3 {
    margin: 0 0 10px;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 12px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 45, 53, .6);
}

.cart-item:last-child {
    border-bottom: none;
}

.qty {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
}

.footer {
    color: var(--muted);
    font-size: 13px;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}


/* ===== Checkout UI upgrades ===== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.pay-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    cursor: pointer;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.tab.active {
    background: var(--accent);
    color: #04201c;
    border-color: transparent;
}

.pay-panel {
    display: none;
}

.pay-panel.show {
    display: block;
}

.pay-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    align-items: start;
}

@media (max-width: 980px) {
    .pay-card {
        grid-template-columns: 1fr;
    }
}

.pay-title {
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 6px;
}

.pay-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.qr-box {
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.qr-box img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: 14px;
}

.bank-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
}

.bank-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(42, 45, 53, .45);
}

.bank-row:last-child {
    border-bottom: none;
}

.small {
    font-size: 12px;
}


/* ===== Modal ===== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    width: min(920px, calc(100% - 24px));
    margin: 24px auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.modal-title {
    font-weight: 900;
    font-size: 16px;
}

.icon-btn {
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

.modal-body {
    padding: 16px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}


/* ===== Product Quick View Modal ===== */

.modal-card.pmodal {
    width: min(980px, calc(100% - 24px));
}

.pmodal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
}

@media (max-width: 980px) {
    .pmodal-grid {
        grid-template-columns: 1fr;
    }
}

.pmodal-imgwrap {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmodal-imgwrap img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    transition: transform 120ms ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.pmodal-zoom {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pmodal-right {
    display: flex;
    flex-direction: column;
}

.pmodal-title {
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .2px;
}

.pmodal-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.pmodal-price {
    color: var(--accent);
    font-weight: 900;
    font-size: 22px;
    margin-top: 10px;
}

.pmodal-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}


/* ===== Product Gallery (thumbs + 1,1 view) ===== */

.pmodal2 {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .pmodal2 {
        grid-template-columns: 1fr;
    }
}

.pmodal-gallery {
    display: grid;
    grid-template-columns: 98px 1fr;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 560px) {
    .pmodal-gallery {
        grid-template-columns: 78px 1fr;
    }
}

.pm-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    max-height: 560px;
    padding-right: 4px;
}

.pm-thumb {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 6px;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease;
}

.pm-thumb:hover {
    transform: translateY(-1px);
}

.pm-thumb.active {
    border-color: rgba(255, 255, 255, 0.35);
}

.pm-thumb img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    display: block;
}

.pm-main {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.pm-main img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    display: block;
}

.pm-nav {
    position: absolute;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pm-nav.prev {
    right: 70px;
}

.pm-nav.next {
    right: 18px;
}

.pm-nav:hover {
    background: rgba(0, 0, 0, 0.40);
}

@media (max-width: 560px) {
    .pmodal-opts {
        grid-template-columns: 1fr;
    }
}


/* ===== Auth modal ===== */

#authModal.hidden {
    display: none;
}

#authModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
}

.modalCard {
    width: min(560px, 92vw);
    border-radius: 18px;
    background: rgba(22, 24, 30, .98);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
    padding: 16px;
    color: #e9eef6;
}

.modalHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modalTitle {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.iconBtn {
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

@media(max-width:520px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}

.lbl {
    display: block;
    font-size: 12px;
    opacity: .8;
    margin: 6px 0;
}

.inp {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    outline: none;
}

.rowBtns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btnPrimary {
    padding: 10px 14px;
    border-radius: 14px;
    border: 0;
    background: #38e8c6;
    color: #062019;
    font-weight: 800;
    cursor: pointer;
}

.btnGhost {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btnDanger {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 70, 70, .35);
    background: rgba(255, 70, 70, .10);
    color: #ffb3b3;
    font-weight: 800;
    cursor: pointer;
}

.hint {
    margin-top: 10px;
    font-size: 13px;
    opacity: .85;
}

.hr {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: 12px 0;
}


/* ===== Big order status ===== */

.statusBig {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    margin: 10px 0 14px;
}

.statusDot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #9aa6b2;
    box-shadow: 0 0 0 6px rgba(154, 166, 178, .15);
}

.statusText {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.statusText .t1 {
    font-weight: 900;
    font-size: 16px;
}

.statusText .t2 {
    font-size: 12px;
    opacity: .8;
}

.status-pending .statusDot {
    background: #ffcc66;
    box-shadow: 0 0 0 6px rgba(255, 204, 102, .18);
}

.status-approved .statusDot {
    background: #4ee3ff;
    box-shadow: 0 0 0 6px rgba(78, 227, 255, .18);
}

.status-done .statusDot {
    background: #58ffb2;
    box-shadow: 0 0 0 6px rgba(88, 255, 178, .18);
}


/* ===== Product status badge ===== */

.pstatus {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    vertical-align: middle;
}

.pstatus.instock {
    background: rgba(94, 234, 212, .12);
    border-color: rgba(94, 234, 212, .25);
    color: var(--accent);
}

.pstatus.preorder {
    background: rgba(255, 193, 7, .12);
    border-color: rgba(255, 193, 7, .25);
    color: #ffd07a;
}

.pstatus.soldout {
    background: rgba(255, 99, 132, .12);
    border-color: rgba(255, 99, 132, .25);
    color: #ff9fb1;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* --- Product modal zoom --- */

.pm-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.pm-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.pm-zoom {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.pm-zbtn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.pm-zbtn:hover {
    background: rgba(0, 0, 0, .5);
}

.logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

#count {
    display: none !important;
}


/* ===== Toast notifications ===== */

#toastHost {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 360px;
    background: rgba(20, 20, 24, .95);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-info {
    border-color: rgba(121, 134, 255, .35);
}

.toast-success {
    border-color: rgba(34, 197, 94, .45);
}

.toast-danger {
    border-color: rgba(239, 68, 68, .45);
}


/* ==========================================================
   AUTH (login.html) — one-card animated UI (codemyui inspired)
   Namespaced to avoid breaking the store UI
   ========================================================== */

.auth2-page {
    background: var(--bg);
    color: var(--text);
}

.auth2-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

\.auth2-card {
    position: relative;
    width: min(520px, 92vw);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 18px 18px 14px;
    overflow: hidden;
}

.auth2-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth2-logo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.auth2-next {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.auth2-next-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(17, 24, 39, 0.55);
    letter-spacing: 0.2px;
}

.auth2-next-labels {
    display: flex;
    gap: 10px;
    font-size: 12px;
    user-select: none;
}

.auth2-next-labels span {
    color: rgba(17, 24, 39, 0.45);
    cursor: pointer;
    font-weight: 700;
}

.auth2-next-labels span.is-active {
    color: rgba(17, 24, 39, 0.92);
}


/* switch */

.auth2-switch {
    position: relative;
    width: 84px;
    height: 36px;
    display: inline-block;
}

.auth2-switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.auth2-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #66f2c0, #5aa2ff);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12);
}

.auth2-switch-knob {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    background: var(--card);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.25);
    transform: translateX(0);
    transition: transform 220ms ease;
}

.auth2-switch input:checked~.auth2-switch-knob {
    transform: translateX(48px);
}


/* tabs */

.auth2-tabs {
    position: relative;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.auth2-tab {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    color: rgba(17, 24, 39, 0.72);
}

.auth2-tab.is-active {
    color: #fff;
}

.auth2-tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: #0b0f14;
    border-radius: 999px;
    transition: transform 260ms ease;
    z-index: 0;
}

.auth2-tabs .auth2-tab {
    z-index: 1;
}

.auth2-card.is-signup .auth2-tab-indicator {
    transform: translateX(calc(100% + 6px));
}


/* panels */

.auth2-panels {
    position: relative;
    margin-top: 14px;
    min-height: 360px;
}

.auth2-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-14px);
    transition: opacity 240ms ease, transform 240ms ease;
}

.auth2-card.is-signup #signupForm,
.auth2-card:not(.is-signup) #loginForm {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.auth2-title {
    font-size: 36px;
    line-height: 1.05;
    margin: 6px 0 4px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.auth2-sub {
    margin: 0 0 14px;
    color: rgba(17, 24, 39, 0.55);
    font-weight: 600;
}

.auth2-field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.auth2-field>span {
    font-size: 12px;
    font-weight: 800;
    color: rgba(17, 24, 39, 0.70);
}

.auth2-field input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    color: #111827;
    outline: none;
}

.auth2-field input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.auth2-field--pw {
    position: relative;
}

.auth2-eye {
    position: absolute;
    right: 10px;
    bottom: 11px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.auth2-btn {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: #1363ff;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    margin-top: 6px;
}

.auth2-btn:hover {
    filter: brightness(0.98);
}

.auth2-btn--google {
    background: #fff;
    color: rgba(17, 24, 39, 0.86);
    border: 1px solid rgba(17, 24, 39, 0.12);
}

.g-badge {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    margin-right: 10px;
    font-weight: 900;
}

.auth2-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: rgba(17, 24, 39, 0.35);
    margin: 14px 0 10px;
    font-weight: 800;
    font-size: 12px;
}

.auth2-divider::before,
.auth2-divider::after {
    content: "";
    height: 1px;
    background: rgba(17, 24, 39, 0.10);
}

.auth2-divider span {
    padding: 0 4px;
}

.auth2-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    color: rgba(17, 24, 39, 0.65);
    font-weight: 600;
}

.auth2-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: #1363ff;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.auth2-hint {
    margin-top: 10px;
    font-weight: 700;
    font-size: 13px;
    color: rgba(17, 24, 39, 0.60);
    min-height: 18px;
}

.auth2-hint.is-err {
    color: #b91c1c;
}

.auth2-hint.is-ok {
    color: #047857;
}

.auth2-back {
    display: inline-block;
    margin-top: 12px;
    color: rgba(17, 24, 39, 0.55);
    font-weight: 700;
    text-decoration: none;
}

.auth2-back:hover {
    text-decoration: underline;
}


/* forgot overlay */

.auth2-forgot {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.45);
    padding: 18px;
}

.auth2-forgot-card {
    width: min(440px, 92vw);
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.25);
    padding: 14px;
}

.auth2-forgot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.auth2-forgot-title {
    font-weight: 900;
    font-size: 16px;
}

.auth2-forgot-sub {
    margin-top: 4px;
    font-weight: 600;
    font-size: 12px;
    color: rgba(17, 24, 39, 0.55);
}

.auth2-x {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

@media (max-width: 420px) {
    .auth2-next {
        justify-items: start;
    }
    .auth2-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== Unified Topbar UI (v4) ===== */

.theme-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* Fallback: any data-theme-toggle without class */

[data-theme-toggle] img {
    height: 44px;
    width: auto;
    display: block;
}

[data-theme-toggle] {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.theme-toggle img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18));
    transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

.theme-toggle:hover img {
    transform: translateY(-1px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .22));
}

.theme-toggle.switching img {
    opacity: .85;
    transform: scale(.98);
}

.pill {
    height: 44px;
    border-radius: 999px;
    border: 0;
    padding: 0 18px;
    font-weight: 800;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

.pill:active {
    transform: translateY(1px);
}

.pill .ico {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.22);
}

.auth-login {
    background: linear-gradient(90deg, #39b7ff, #7aa7ff);
    color: #fff;
}

.auth-logout {
    background: linear-gradient(90deg, #ff7a7a, #ffb36b);
    color: #fff;
}

.orders-pill {
    background: linear-gradient(90deg, #22c55e, #2563eb);
    color: #fff;
}

.orders-pill .ico {
    background: rgba(255, 255, 255, 0.25);
}

.cart-pill {
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    color: #fff;
}

.cart-pill .ico {
    background: rgba(255, 255, 255, 0.25);
}

.order-pill {
    background: linear-gradient(90deg, #22c55e, #2563eb);
    color: #fff;
}

.pill span.badge-mini {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

body[data-theme="light"] .pill span.badge-mini {
    background: rgba(255, 255, 255, 0.28);
}


/* Topbar cart icon */

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cart-ico {
    width: 18px;
    height: 18px;
    display: block;
}

.cart-text {
    font-weight: 900;
}


/* Controls wrap fix */

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.row {
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
}


/* === Image buttons === */

.img-btn {
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .62));
    padding: 0 12px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

body[data-theme="light"] .img-btn {
    border: 1px solid rgba(15, 23, 42, .12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    box-shadow: 0 10px 26px rgba(2, 6, 23, .10);
}

.img-btn img {
    height: 34px;
    width: auto;
    display: block;
    background: transparent;
    border-radius: 999px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .20));
}

.img-btn:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {
    .img-btn {
        height: 40px;
        padding: 0 10px;
    }
    .img-btn img {
        height: 30px;
    }
}


/* === Auth2 dark theme fixes === */

body[data-theme="dark"] .auth2-next-title,
body[data-theme="dark"] .auth2-next-labels span,
body[data-theme="dark"] .auth2-sub,
body[data-theme="dark"] .auth2-field>span,
body[data-theme="dark"] .auth2-tab,
body[data-theme="dark"] .auth2-divider {
    color: rgba(255, 255, 255, 0.78);
}

body[data-theme="dark"] .auth2-next-labels span.is-active {
    color: rgba(255, 255, 255, 0.96);
}

body[data-theme="dark"] .auth2-switch-knob {
    background: #0b0f14;
}

body[data-theme="dark"] .auth2-field input {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
}

body[data-theme="dark"] .auth2-eye {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .auth2-divider::before,
body[data-theme="dark"] .auth2-divider::after {
    background: rgba(255, 255, 255, 0.12);
}


/* Image button (used for Google / Login / Logout etc) */

.img-btn {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.img-btn img {
    display: block;
    height: 46px;
    width: auto;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.img-btn:hover img {
    transform: translateY(-1px) scale(1.02);
}

.img-btn:active img {
    transform: translateY(0) scale(.99);
}

.img-btn--google img {
    height: 54px;
    /* Google button is bigger */
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}


/* === IMAGE BUTTON CLEAN (no border/shadow/radius) === */

.img-btn {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.img-btn img {
    display: block;
    height: 46px;
    width: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.img-btn:hover img {
    transform: none !important;
    opacity: .95;
}

.img-btn:active img {
    transform: none !important;
    opacity: .90;
}


/* When an image button is also a pill, kill pill styling */

.pill.img-btn,
a.pill.img-btn {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* ===== AUTH (LOGIN/SIGNUP) NIGHT MODE FIX ===== */

[data-theme="dark"] .auth2-page,
[data-theme="dark"] .auth2-container {
    color: #ffffff !important;
}

[data-theme="dark"] .auth2-title {
    color: #ffffff !important;
}

[data-theme="dark"] .auth2-sub,
[data-theme="dark"] .auth2-field span,
[data-theme="dark"] .auth2-back,
[data-theme="dark"] .auth2-divider span,
[data-theme="dark"] .auth2-link,
[data-theme="dark"] .auth2-hint {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .auth2-field input {
    background: #121212 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .auth2-field input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .auth2-btn {
    color: #ffffff !important;
}

[data-theme="dark"] .auth2-btn--primary {
    background: #2563eb !important;
}

[data-theme="dark"] .auth2-divider::before,
[data-theme="dark"] .auth2-divider::after {
    background: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .auth2-panel {
    background: transparent !important;
}


/* Google button in dark */

[data-theme="dark"] #googleLogin {
    filter: brightness(1.05) contrast(1.05);
}


/* === AUTH (login/signup) dark theme fixes === */

[data-theme="dark"] .auth2-next-title {
    color: rgba(255, 255, 255, .72) !important;
}

[data-theme="dark"] .auth2-next-labels span {
    color: rgba(255, 255, 255, .60) !important;
}

[data-theme="dark"] .auth2-next-labels span.is-active {
    color: rgba(255, 255, 255, .92) !important;
}

[data-theme="dark"] .auth2-tab {
    color: rgba(255, 255, 255, .70) !important;
}

[data-theme="dark"] .auth2-tab.is-active {
    color: #fff !important;
}

[data-theme="dark"] .auth2-tab-indicator {
    background: rgba(255, 255, 255, .10) !important;
}

[data-theme="dark"] .auth2-sub {
    color: rgba(255, 255, 255, .72) !important;
}

[data-theme="dark"] .auth2-field>span {
    color: rgba(255, 255, 255, .82) !important;
}

[data-theme="dark"] .auth2-field input {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    color: rgba(255, 255, 255, .92) !important;
}

[data-theme="dark"] .auth2-field input::placeholder {
    color: rgba(255, 255, 255, .45) !important;
}

[data-theme="dark"] .auth2-eye {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
}

[data-theme="dark"] .auth2-eye svg {
    color: rgba(255, 255, 255, .85) !important;
}

[data-theme="dark"] .auth2-divider span {
    color: rgba(255, 255, 255, .70) !important;
}

[data-theme="dark"] .auth2-divider:before,
[data-theme="dark"] .auth2-divider:after {
    background: rgba(255, 255, 255, .12) !important;
}

[data-theme="dark"] .auth2-row,
[data-theme="dark"] .auth2-link {
    color: rgba(180, 210, 255, .95) !important;
}

[data-theme="dark"] .auth2-hint.err {
    color: rgba(255, 120, 120, .95) !important;
}

[data-theme="dark"] .auth2-hint.ok {
    color: rgba(130, 255, 190, .95) !important;
}


/* =========================
   LOGIN NIGHT MODE TEXT FIX
   ========================= */

[data-theme="dark"] .auth2-next-title {
    color: rgba(255, 255, 255, .72) !important;
}

[data-theme="dark"] .auth2-next-labels span {
    color: rgba(255, 255, 255, .60) !important;
}

[data-theme="dark"] .auth2-next-labels span.is-active {
    color: rgba(255, 255, 255, .92) !important;
}

[data-theme="dark"] .auth2-tab {
    color: rgba(255, 255, 255, .70) !important;
}

[data-theme="dark"] .auth2-tab.is-active {
    color: #fff !important;
}

[data-theme="dark"] .auth2-tab-indicator {
    background: rgba(255, 255, 255, .10) !important;
}

[data-theme="dark"] .auth2-sub {
    color: rgba(255, 255, 255, .72) !important;
}

[data-theme="dark"] .auth2-field>span {
    color: rgba(255, 255, 255, .82) !important;
}

[data-theme="dark"] .auth2-field input {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    color: rgba(255, 255, 255, .92) !important;
}

[data-theme="dark"] .auth2-field input::placeholder {
    color: rgba(255, 255, 255, .45) !important;
}

[data-theme="dark"] .auth2-eye {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
}

[data-theme="dark"] .auth2-eye svg {
    color: rgba(255, 255, 255, .85) !important;
}

[data-theme="dark"] .auth2-divider span {
    color: rgba(255, 255, 255, .70) !important;
}

[data-theme="dark"] .auth2-divider:before,
[data-theme="dark"] .auth2-divider:after {
    background: rgba(255, 255, 255, .12) !important;
}

[data-theme="dark"] .auth2-row,
[data-theme="dark"] .auth2-link {
    color: rgba(180, 210, 255, .95) !important;
}

[data-theme="dark"] .auth2-hint.err {
    color: rgba(255, 120, 120, .95) !important;
}

[data-theme="dark"] .auth2-hint.ok {
    color: rgba(130, 255, 190, .95) !important;
}


/* =========================
   GOOGLE BUTTON (DARK MODE)
   ========================= */

.auth2-btn--google {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
}

[data-theme="dark"] .auth2-btn--google {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

.auth2-btn--google .g-badge {
    background: #fff !important;
    color: #111827 !important;
}


/* ===== Google Login Button ===== */

#googleLogin {
    width: 100%;
    max-width: 720px;
    /* Login button-той адил урт */
    height: 64px;
    /* Login button өндөр */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    cursor: pointer;
}


/* доторх зураг / icon */

#googleLogin img {
    height: 100px;
    /* зөв хэмжээтэй icon */
    width: auto;
}


/* dark mode дээр */

[data-theme="dark"] #googleLogin {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
}


/* light mode дээр */

[data-theme="light"] #googleLogin {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    color: #111;
}


/* ===== Floating Social Links (bottom-right) ===== */

.social-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

.social-fab a {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    transition: transform .2s ease, opacity .2s ease;
}

body[data-theme="light"] .social-fab a {
    background: rgba(255, 255, 255, .78);
}

.social-fab a:hover {
    transform: translateY(-2px);
    opacity: .95;
}

.social-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    color: var(--text);
}

#themeToggle,
.theme-toggle {
    transform: scale(0.6);
    transform-origin: left center;
    /* байрлалаа алдахгүй */
}

.product-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #cfd6e4;
}


/* Menu button icon size */

.menu-btn img {
    width: 34px;
    height: 34px;
    display: block;
}


/* Dropdown panel */

.menu-panel {
    position: absolute;
    top: 72px;
    /* topbar өндрөөс хамаарч бага зэрэг тааруул */
    right: 18px;
    width: 240px;
    background: rgba(20, 22, 28, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: .18s ease;
}

.menu-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-item {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 12px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #e9eefc;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, .06);
}


/* Menu item layout (icon + text) */

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item .mi-ico {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.menu-item .mi-emoji {
    font-size: 16px;
    line-height: 1;
}

.menu-item .mi-text {
    font-weight: 800;
}


/* === Mobile: index дээр header-ийн олон товчийг нууж, menu ашиглана === */


/* topbar дээрх “суурь” товчнуудыг нууж, зөвхөн menu icon-оор удирдана */

@media (max-width: 720px) {
    /* Theme + Login/Logout-ийг битгий нуу */
    .page-index .controls #cartBadge,
    .page-index .controls #openCheckoutTop,
    .page-index .controls .orders-pill {
        display: none !important;
    }
}


/* Profile button */

.profile-btn {
    margin-left: 8px;
}

.profile-btn.hidden {
    display: none !important;
}

.profile-btn .profile-ic {
    font-size: 18px;
    line-height: 1;
}


/* Qty input (cart) */

.qty .qty-input {
    width: 56px;
    text-align: center;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: 6px 8px;
    margin: 0 8px;
}

.qty .qty-input:focus {
    outline: none;
    border-color: rgba(0, 255, 200, .45);
}


/* Footer links section */

.footer-links {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 22px 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.footer-links h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: .9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* Simple static pages */

.page-shell {
    max-width: 1100px;
    margin: 20px auto 80px;
    padding: 0 14px;
}

.page-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.page-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
}

.page-card p {
    opacity: .92;
    line-height: 1.65;
}

.page-card ul {
    margin: 10px 0 0 18px;
}


/* ===== Footer links (v8 refresh) ===== */

.footer-links {
    max-width: 1100px;
    margin: 26px auto 70px;
    padding: 0;
    background: transparent;
    border: none;
}

.footer-links__inner {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 22px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

.footer-links__brand h3 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .2px;
}

.footer-links__brand p {
    margin: 0;
    opacity: .78;
    line-height: 1.45;
    font-size: 14px;
}

.footer-links__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, .92);
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.footer-link::after {
    content: "›";
    opacity: .55;
    font-size: 18px;
    line-height: 1;
}

.footer-link:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.footer-link:active {
    transform: translateY(0);
}

@media (max-width: 820px) {
    .footer-links__inner {
        grid-template-columns: 1fr;
    }
    .footer-links__grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Blog / Posts ===== */

.posts-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

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

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: block;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 239, 216, .35);
    background: rgba(255, 255, 255, .04);
}

.post-cover {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-cover.detail {
    border-radius: 16px;
    overflow: hidden;
    margin: 10px 0 12px;
}

.post-body {
    padding: 12px 12px 14px;
}

.post-date {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 6px;
}

.post-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.post-excerpt {
    font-size: 13px;
    opacity: .8;
    line-height: 1.4;
    max-height: 3.8em;
    overflow: hidden;
}

.post-detail .post-content {
    font-size: 14px;
    line-height: 1.65;
    opacity: .95;
}


/* styles.css - shared small additions */


/* Go to shop image button */

.go-shop-img {
    height: 34px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}


/* Category badge in posts */

.post-cat {
    display: inline-block;
    font-size: 12px;
    opacity: .85;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}


/* Inputs (fallback if page doesn't style select) */

.input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .25);
    color: inherit;
}


/* ===== Post category tags ===== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    opacity: .9;
}

.tag-cat {
    border-color: rgba(94, 234, 212, .25);
    background: rgba(94, 234, 212, .10);
    color: var(--accent);
}


/* === GO TO SHOP – COMPLETELY CLEAN (no outer frame) === */

.img-btn.go-shop-btn,
a.img-btn.go-shop-btn {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.img-btn.go-shop-btn img {
    display: block;
    height: 46px;
    width: auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* focus outline арилгана */

.img-btn.go-shop-btn:focus,
.img-btn.go-shop-btn:focus-visible {
    outline: none !important;
}


/* === Go to Shop button: remove outer border completely === */

.page-top .btn.small {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.page-top .btn.small:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.go-shop-img {
    display: block;
}


/* Save button том */

#btnSave img {
    height: 95px;
}


/* Refresh хэвийн */

#btnReload img {
    height: 46px;
}


/* ==========================================================
   MOBILE HOTFIX (keeps desktop unchanged)
   - Prevent unexpected text autoscaling
   - Avoid horizontal overflow
   - Improve small-screen spacing
   NOTE: If the whole page looks "zoomed out" on phones,
   you MUST also add in HTML <head>:
   <meta name="viewport" content="width=device-width, initial-scale=1">
   ========================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}


/* Make tap targets & header usable on small screens */

@media (max-width: 520px) {
    .container {
        padding: 14px;
    }
    .row {
        gap: 10px;
    }
    .controls {
        justify-content: flex-start;
    }
    .badge {
        font-size: 11px;
    }
    /* Keep the theme toggle readable on mobile */
    #themeToggle,
    .theme-toggle {
        transform: scale(0.85);
    }
    /* Floating social buttons: smaller so they don't cover content */
    .social-fab {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    .social-fab a {
        width: 42px;
        height: 42px;
    }
    .social-fab svg {
        width: 20px;
        height: 20px;
    }
}


/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: stretch;
    }
    .panel {
        width: 100%;
        margin-top: 20px;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .topbar .row {
        gap: 10px;
    }
    .brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .controls {
        width: 100%;
        justify-content: space-between;
    }
    input,
    select {
        width: 100%;
    }
    .social-fab {
        right: 12px;
        bottom: 12px;
    }
}