/* Gameyab v2 — Marketplace UI (Divar-inspired) */

:root {
    --gy-brand: #00b4d8;
    --gy-brand-dark: #0096c7;
    --gy-brand-deep: #0077b6;
    --gy-accent: #ff6b35;
    --gy-accent-hover: #e85a28;
    --gy-dark: #0b1220;
    --gy-text: #1e293b;
    --gy-muted: #64748b;
    --gy-bg: #f4f6f9;
    --gy-surface: #ffffff;
    --gy-line: #e2e8f0;
    --gy-radius: 14px;
    --gy-radius-lg: 20px;
    --gy-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --gy-font: 'Vazirmatn', Tahoma, sans-serif;
    --gy-header-h: 64px;
    --gy-mobile-nav: 62px;
}

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

html { scroll-behavior: smooth; }

body.gy-body {
    margin: 0;
    font-family: var(--gy-font);
    background: var(--gy-bg);
    color: var(--gy-text);
    padding-bottom: var(--gy-mobile-nav);
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    body.gy-body { padding-bottom: 0; }
}

.gy-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: 16px;
}

/* ── Topbar ─────────────────────────────────────────────── */

.gy-topbar {
    background: var(--gy-surface);
    border-bottom: 1px solid var(--gy-line);
    z-index: 1030;
}

.gy-topbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--gy-header-h);
}

.gy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gy-dark);
    flex-shrink: 0;
}

.gy-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gy-brand), var(--gy-brand-deep));
    color: #fff;
    font-weight: 900;
    font-size: .85rem;
    display: grid;
    place-items: center;
    letter-spacing: -.5px;
}

.gy-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gy-logo-text strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.gy-logo-text small {
    font-size: .68rem;
    color: var(--gy-muted);
}

.gy-topbar-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    background: var(--gy-bg);
    border: 1.5px solid var(--gy-line);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    transition: border-color .2s, box-shadow .2s;
}

.gy-topbar-search:focus-within {
    border-color: var(--gy-brand);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, .15);
    background: #fff;
}

.gy-topbar-search i {
    color: var(--gy-muted);
    margin-left: 8px;
}

.gy-topbar-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    padding: 8px 0;
}

.gy-topbar-search button {
    border: none;
    background: var(--gy-brand);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}

.gy-topbar-search button:hover { background: var(--gy-brand-dark); }

.gy-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.gy-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--gy-text);
    text-decoration: none;
    transition: background .15s;
}

.gy-icon-link:hover { background: var(--gy-bg); color: var(--gy-brand-deep); }

.gy-btn-post {
    background: var(--gy-accent) !important;
    border: none;
    color: #fff !important;
    font-weight: 700;
    font-size: .85rem;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(255, 107, 53, .35);
    transition: transform .15s, background .15s;
}

.gy-btn-post:hover {
    background: var(--gy-accent-hover) !important;
    transform: translateY(-1px);
}

.gy-menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gy-line);
    border-radius: 10px;
    background: #fff;
    font-size: 1.3rem;
}

.gy-cat-nav {
    display: flex;
    gap: 4px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gy-cat-nav::-webkit-scrollbar { display: none; }

.gy-cat-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--gy-muted);
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all .15s;
}

.gy-cat-nav a:hover {
    background: rgba(0, 180, 216, .1);
    color: var(--gy-brand-deep);
}

/* ── Hero ───────────────────────────────────────────────── */

.gy-hero-block {
    position: relative;
    padding: 40px 0 24px;
    overflow: hidden;
}

.gy-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 180, 216, .18), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 107, 53, .1), transparent),
        linear-gradient(180deg, #0b1220 0%, #152238 100%);
    z-index: 0;
}

.gy-hero-inner { position: relative; z-index: 1; }

.gy-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    color: #a5f3fc;
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.gy-hero-headline {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.35;
    margin: 0 0 12px;
}

.gy-hero-headline span {
    background: linear-gradient(90deg, #67e8f9, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gy-hero-lead {
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
    margin-bottom: 24px;
    max-width: 460px;
}

.gy-hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--gy-radius);
    padding: 6px 6px 6px 16px;
    box-shadow: var(--gy-shadow);
    gap: 8px;
}

.gy-hero-search-box i { color: var(--gy-muted); font-size: 1.1rem; }

.gy-hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .95rem;
    padding: 12px 0;
    min-width: 0;
}

.gy-btn-search {
    background: var(--gy-brand) !important;
    border: none;
    color: #fff !important;
    font-weight: 700;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    white-space: nowrap;
}

.gy-hero-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
}

.gy-hero-tags a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    padding: 4px 12px;
    border-radius: 999px;
    transition: background .15s;
}

.gy-hero-tags a:hover { background: rgba(255, 255, 255, .18); }

.gy-hero-carousel img {
    aspect-ratio: 16/10;
    object-fit: cover;
    max-height: 320px;
}

.gy-hero-carousel .carousel-control-prev,
.gy-hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .4);
    border-radius: 50%;
    opacity: 1;
}

/* ── Stats bar ──────────────────────────────────────────── */

.gy-stats-bar {
    margin-top: -20px;
    position: relative;
    z-index: 2;
    padding-bottom: 8px;
}

.gy-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .gy-stats-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.gy-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius);
    padding: 16px;
    text-decoration: none;
    color: var(--gy-text);
    box-shadow: var(--gy-shadow);
    transition: transform .2s, box-shadow .2s;
}

.gy-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    color: var(--gy-text);
}

.gy-stat-card i {
    font-size: 1.5rem;
    color: var(--gy-brand);
    flex-shrink: 0;
}

.gy-stat-card strong {
    display: block;
    font-size: .85rem;
    font-weight: 800;
}

.gy-stat-card small {
    color: var(--gy-muted);
    font-size: .72rem;
}

.gy-stat-cta {
    background: linear-gradient(135deg, var(--gy-accent), #ff8c42);
    border-color: transparent;
    color: #fff !important;
}

.gy-stat-cta i { color: #fff; }
.gy-stat-cta small { color: rgba(255, 255, 255, .8); }

/* ── Categories ─────────────────────────────────────────── */

.gy-categories { padding: 32px 0 16px; }

.gy-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.gy-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: var(--gy-dark);
}

.gy-link-more {
    text-decoration: none;
    color: var(--gy-brand-deep);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gy-link-more:hover { color: var(--gy-brand); }

.gy-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 576px) { .gy-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 992px) { .gy-cat-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.gy-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius);
    text-decoration: none;
    color: var(--gy-text);
    transition: all .2s;
    text-align: center;
}

.gy-cat-card:hover {
    border-color: var(--cat-color, var(--gy-brand));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    color: var(--gy-text);
}

.gy-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--cat-color, var(--gy-brand)) 12%, white);
    color: var(--cat-color, var(--gy-brand));
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.gy-cat-name {
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ── Listing sections ───────────────────────────────────── */

.gy-listing-section {
    padding: 24px 0;
}

.gy-listing-section.is-featured {
    background: linear-gradient(180deg, rgba(255, 107, 53, .04), transparent);
    border-top: 1px solid rgba(255, 107, 53, .1);
    border-bottom: 1px solid rgba(255, 107, 53, .1);
}

.gy-section-info .gy-section-desc {
    margin: 4px 0 0;
    font-size: .85rem;
    color: var(--gy-muted);
}

.gy-pill {
    display: inline-block;
    background: var(--gy-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

/* Card track — horizontal scroll mobile, grid desktop */

.gy-card-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gy-card-track::-webkit-scrollbar { display: none; }

.gy-card-track .gy-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .gy-card-track .gy-card { flex: 0 0 200px; }
}

@media (min-width: 992px) {
    .gy-card-track {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        overflow: visible;
        padding-bottom: 0;
    }
    .gy-card-track .gy-card { flex: unset; }
}

@media (min-width: 1200px) {
    .gy-card-track { grid-template-columns: repeat(6, 1fr); }
}

/* ── Product card ───────────────────────────────────────── */

.gy-card {
    background: var(--gy-surface);
    border-radius: var(--gy-radius);
    overflow: hidden;
    border: 1px solid var(--gy-line);
    transition: transform .2s, box-shadow .2s;
}

.gy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gy-shadow);
}

.gy-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gy-card-media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #eef2f6;
}

.gy-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.gy-card:hover .gy-card-media img { transform: scale(1.05); }

.gy-card-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gy-accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.gy-card-price {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    padding: 24px 10px 8px;
    text-align: left;
}

.gy-card-price.is-negotiable {
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    font-size: .78rem;
    opacity: .9;
}

.gy-card-body { padding: 10px; }

.gy-card-title {
    font-size: .8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gy-dark);
}

/* ── Banners ────────────────────────────────────────────── */

.gy-banners { padding: 16px 0; }

.gy-banner-link {
    display: block;
    border-radius: var(--gy-radius);
    overflow: hidden;
    box-shadow: var(--gy-shadow);
}

.gy-banner-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.gy-banner-link:hover .gy-banner-img { transform: scale(1.02); }

/* ── Trust ──────────────────────────────────────────────── */

.gy-trust-section { padding: 32px 0; }

.gy-trust-box {
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius-lg);
    padding: 28px;
    height: 100%;
}

.gy-trust-box h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.gy-trust-box p {
    color: var(--gy-muted);
    font-size: .85rem;
    margin-bottom: 16px;
}

.gy-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gy-social-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--gy-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--gy-text);
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s;
}

.gy-social-row a:hover { background: rgba(0, 180, 216, .12); color: var(--gy-brand-deep); }

.gy-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gy-badges img { max-height: 80px; }

/* ── Footer ─────────────────────────────────────────────── */

.gy-footer {
    background: var(--gy-dark);
    color: rgba(255, 255, 255, .65);
    padding: 48px 0 24px;
    margin-top: 16px;
}

.gy-footer-brand {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}

.gy-footer p {
    font-size: .85rem;
    line-height: 1.7;
    margin: 0;
}

.gy-footer h4 {
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.gy-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gy-footer li { margin-bottom: 8px; }

.gy-footer a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .85rem;
    transition: color .15s;
}

.gy-footer a:hover { color: var(--gy-brand); }

.gy-footer-end {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
}

/* ── Mobile nav ─────────────────────────────────────────── */

.gy-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--gy-mobile-nav);
    background: #fff;
    border-top: 1px solid var(--gy-line);
    display: flex;
    z-index: 1040;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}

.gy-mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--gy-muted);
    font-size: .62rem;
    font-weight: 600;
}

.gy-mobile-nav a i { font-size: 1.15rem; }
.gy-mobile-nav a.active { color: var(--gy-brand-deep); }

.gy-nav-post {
    color: var(--gy-accent) !important;
}

.gy-nav-post i {
    width: 44px;
    height: 44px;
    background: var(--gy-accent);
    color: #fff !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem !important;
    margin-top: -18px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, .4);
}

/* ── FAB (desktop) ──────────────────────────────────────── */

.gy-fab {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 1020;
    background: var(--gy-accent);
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 28px rgba(255, 107, 53, .45);
    transition: transform .2s;
}

.gy-fab:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ── Drawer ─────────────────────────────────────────────── */

.gy-drawer { width: min(320px, 88vw) !important; }

.gy-drawer-links a,
.gy-drawer-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--gy-text);
    font-size: .9rem;
    font-weight: 600;
    transition: background .12s;
}

.gy-drawer-links a:hover,
.gy-drawer-section a:hover { background: var(--gy-bg); }

.gy-drawer-section p {
    padding: 12px 20px 4px;
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gy-muted);
    letter-spacing: .04em;
}

.gy-main { min-height: 50vh; }

/* ── Inner pages ────────────────────────────────────────── */

body.gy-body-inner { background: var(--gy-bg); }

.gy-breadcrumb {
    background: var(--gy-surface);
    border-bottom: 1px solid var(--gy-line);
    padding: 10px 0;
}

.gy-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
}

.gy-breadcrumb-list a {
    color: var(--gy-brand-deep);
    text-decoration: none;
    font-weight: 600;
}

.gy-breadcrumb-list span { color: var(--gy-muted); }
.gy-breadcrumb-sep { color: var(--gy-line); font-size: .65rem; }

.gy-page-hero {
    background: linear-gradient(135deg, #0b1220 0%, #152238 70%);
    color: #fff;
    padding: 32px 0 28px;
}

.gy-page-hero-compact { padding: 24px 0 20px; }

.gy-page-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
    margin: 0 0 8px;
}

.gy-page-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.gy-page-meta {
    margin: 12px 0 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gy-page-content { padding: 24px 0 40px; }

.gy-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) { .gy-product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 992px) { .gy-product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .gy-product-grid { grid-template-columns: repeat(5, 1fr); } }

.gy-surface-card {
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius-lg);
    padding: 24px;
    box-shadow: var(--gy-shadow);
}

.gy-prose {
    line-height: 1.9;
    font-size: .92rem;
    color: var(--gy-text);
}

.gy-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--gy-muted);
}

.gy-empty-state i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: .5; }
.gy-empty-state.is-large h1 { font-size: 1.4rem; color: var(--gy-dark); }

/* ── Lazy load ──────────────────────────────────────────── */

.gy-lazy-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: var(--gy-aspect, 3/4);
    overflow: hidden;
    background: #eef2f6;
}

.gy-card-media .gy-lazy-wrap,
.gy-card-media .gy-lazy-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gy-lazy-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
    background-size: 200% 100%;
    animation: gy-shimmer 1.2s ease-in-out infinite;
    z-index: 1;
    transition: opacity .3s;
}

.gy-lazy-wrap.is-loaded .gy-lazy-shimmer { opacity: 0; pointer-events: none; }

.gy-lazy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.02);
    transition: opacity .35s ease, filter .35s ease, transform .35s ease;
    z-index: 2;
    position: relative;
}

.gy-lazy-img.is-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

@keyframes gy-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Search ───────────────────────────────────────────────── */

.gy-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gy-surface);
    border: 1.5px solid var(--gy-line);
    border-radius: var(--gy-radius);
    padding: 8px 8px 8px 16px;
    margin-bottom: 20px;
    box-shadow: var(--gy-shadow);
}

.gy-search-form:focus-within {
    border-color: var(--gy-brand);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, .12);
}

.gy-search-form i { color: var(--gy-muted); font-size: 1.1rem; }

.gy-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .95rem;
    min-width: 0;
    background: transparent;
}

.gy-search-result-meta {
    font-size: .85rem;
    color: var(--gy-muted);
    margin-bottom: 16px;
}

/* ── Product detail ───────────────────────────────────────── */

.gy-detail { padding: 24px 0 40px; }

.gy-gallery-main {
    border-radius: var(--gy-radius-lg);
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid var(--gy-line);
}

.gy-gallery-main .gy-lazy-wrap { aspect-ratio: 4/3; }

.gy-gallery-empty {
    aspect-ratio: 4/3;
    display: grid;
    place-content: center;
    gap: 8px;
    color: var(--gy-muted);
    background: #eef2f6;
    border-radius: var(--gy-radius-lg);
}

.gy-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gy-thumb {
    flex: 0 0 72px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
}

.gy-thumb.active { border-color: var(--gy-brand); }
.gy-thumb .gy-lazy-wrap { aspect-ratio: 1/1; width: 72px; }

.gy-detail-panel {
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius-lg);
    padding: 24px;
    box-shadow: var(--gy-shadow);
    position: sticky;
    top: calc(var(--gy-header-h) + 12px);
}

.gy-detail-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--gy-brand-deep);
    margin-bottom: 10px;
}

.gy-detail-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 16px;
}

.gy-detail-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: .85rem;
    color: var(--gy-muted);
}

.gy-detail-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.gy-btn-call {
    background: var(--gy-brand) !important;
    border: none;
    color: #fff !important;
    font-weight: 800;
    padding: 14px !important;
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.gy-btn-call span { font-size: .9rem; opacity: .9; }

.gy-detail-specs {
    border-top: 1px solid var(--gy-line);
    padding-top: 16px;
    margin-bottom: 16px;
}

.gy-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: .85rem;
    border-bottom: 1px dashed var(--gy-line);
}

.gy-spec-row span { color: var(--gy-muted); }

.gy-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--gy-muted);
}

.gy-share-row a,
.gy-share-row button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gy-line);
    background: var(--gy-bg);
    display: grid;
    place-items: center;
    color: var(--gy-text);
    text-decoration: none;
    cursor: pointer;
}

.gy-copy-link.is-copied { background: rgba(0, 180, 216, .15); color: var(--gy-brand-deep); }

.gy-detail-desc {
    margin-top: 28px;
}

.gy-detail-desc h2,
.gy-related .gy-section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.gy-desc-body {
    line-height: 1.85;
    font-size: .9rem;
    color: var(--gy-text);
}

.gy-related { margin-top: 36px; }

/* ── Contact & new ads ────────────────────────────────────── */

.gy-contact-card {
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius);
    padding: 24px;
    text-align: center;
    height: 100%;
    box-shadow: var(--gy-shadow);
}

.gy-contact-card i {
    font-size: 1.8rem;
    color: var(--gy-brand);
    margin-bottom: 12px;
    display: block;
}

.gy-contact-card h3 {
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.gy-contact-card a {
    color: var(--gy-brand-deep);
    text-decoration: none;
    font-weight: 700;
}

.gy-form-page { max-width: 820px; margin: 0 auto; }

.gy-form-card {
    background: var(--gy-surface);
    border: 1px solid var(--gy-line);
    border-radius: var(--gy-radius-lg);
    padding: 28px;
    box-shadow: var(--gy-shadow);
}

.gy-form-section { margin-bottom: 28px; }

.gy-form-section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gy-dark);
}

.gy-form-section-title i { color: var(--gy-brand); }

.gy-form-hint {
    font-size: .82rem;
    color: var(--gy-muted);
    margin-bottom: 14px;
}

.gy-input {
    border-radius: 10px !important;
    border-color: var(--gy-line) !important;
    padding: 10px 14px !important;
}

.gy-input:focus {
    border-color: var(--gy-brand) !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, .12) !important;
}

.gy-alert {
    border-radius: var(--gy-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gy-rule-check {
    background: var(--gy-bg);
    border-radius: var(--gy-radius);
    padding: 14px 16px;
}

.gy-rule-check a { color: var(--gy-accent); font-weight: 700; }

.gy-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

/* Photo upload */
.gy-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gy-photo-upload {
    width: 110px;
    height: 110px;
    border: 2px dashed var(--gy-line);
    border-radius: var(--gy-radius);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin: 0;
}

.gy-photo-upload:hover {
    border-color: var(--gy-brand);
    background: rgba(0, 180, 216, .04);
}

.gy-photo-input { display: none; }

.gy-photo-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    color: var(--gy-muted);
    font-weight: 700;
}

.gy-photo-upload-inner i { font-size: 1.5rem; color: var(--gy-brand); }

.gy-photo-item {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--gy-radius);
    overflow: hidden;
    border: 1px solid var(--gy-line);
}

.gy-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gy-photo-remove {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* Payment plans */
.gy-pill-success { background: #22c55e; }

.gy-plan-grid { margin-top: 8px; }

.gy-plan-card { display: block; cursor: pointer; margin: 0; }

.gy-plan-radio { position: absolute; opacity: 0; pointer-events: none; }

.gy-plan-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--gy-surface);
    border: 2px solid var(--gy-line);
    border-radius: var(--gy-radius-lg);
    padding: 20px;
    height: 100%;
    transition: border-color .2s, box-shadow .2s;
}

.gy-plan-radio:checked + .gy-plan-card-inner,
.gy-gateway-radio:checked + .gy-plan-card-inner {
    border-color: var(--gy-brand);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, .12);
}

.gy-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: .35rem;
    border-radius: 50%;
    background: var(--gy-brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    vertical-align: middle;
}

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

.gy-gateway-disabled .gy-plan-card-inner {
    border-style: dashed;
}

.gy-plan-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gy-dark);
}

.gy-plan-desc {
    font-size: .85rem;
    color: var(--gy-muted);
    line-height: 1.7;
    flex: 1;
}

.gy-plan-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gy-brand-deep);
    padding-top: 10px;
    border-top: 1px dashed var(--gy-line);
}

.gy-photo-grid.is-invalid {
    outline: 2px solid #dc3545;
    outline-offset: 4px;
    border-radius: var(--gy-radius);
}

.gy-field-error {
    color: #dc3545;
    font-size: .78rem;
    font-weight: 600;
    margin-top: 6px;
}

.gy-input.is-invalid,
.gy-form-card .form-select.is-invalid {
    border-color: #dc3545 !important;
}

.gy-rule-check.is-invalid {
    outline: 1px solid #dc3545;
}

@media (max-width: 991px) {
    .gy-detail-panel { position: static; }
    .gy-form-card { padding: 20px 16px; }
}

