:root {
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #718096;
    --line: #e5eaf1;
    --blue: #1976d2;
    --blue-dark: #125fb0;
    --green: #18a957;
    --danger: #d92d20;
    --soft-blue: #eef5ff;
    --soft-yellow: #fff8e8;
    --yellow-line: #f0d58a;
    --shadow: 0 8px 30px rgba(15, 23, 42, .06);
    --radius: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
}

body {
    padding-bottom: 92px;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 900;
    font-size: 21px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 21px;
    flex: 0 0 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.header-btn.primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.chips-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 16px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: #fff;
    border: 1px solid var(--line);
    color: #4a5568;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

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

.content-card {
    padding: 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.breadcrumbs a {
    color: var(--blue);
    font-weight: 700;
}

.post-title {
    margin: 0;
    font-size: 31px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -.2px;
}

.meta-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c9d2dd;
    display: inline-block;
}

.seller-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 19px;
}

.seller-text {
    min-width: 0;
}

.seller-name {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
}

.seller-user {
    margin-top: 3px;
    font-size: 13px;
    color: var(--muted);
}

.price-box {
    margin-top: 18px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price {
    font-size: 35px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.price small {
    font-size: 18px;
    color: var(--muted);
    font-weight: 700;
}

.price-side-note {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.description {
    margin-top: 18px;
    font-size: 17px;
    line-height: 2;
    color: #1f2937;
}

.description-line {
    margin-bottom: 2px;
}

.gallery-card {
    margin-top: 16px;
    padding: 14px;
}


.stacked-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stacked-image-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid var(--line);
}

.stacked-image {
    width: 100%;
    height: 720px;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}





.admin-actions {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    display: flex;
    gap: 4px;
}

.mini-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: #111827;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.mini-btn.danger {
    color: var(--danger);
}

.section-card {
    margin-top: 16px;
    padding: 18px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

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

.action-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #111827;
    border-radius: 15px;
    padding: 14px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.action-btn.primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.warning {
    background: var(--soft-yellow);
    border: 1px solid var(--yellow-line);
    color: #8a5a00;
    border-radius: 16px;
    padding: 15px;
    line-height: 1.9;
    font-size: 14px;
}

.review {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.review:last-child {
    border-bottom: none;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.review-name {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
}

.review-date {
    font-size: 13px;
    color: var(--muted);
}

.stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 17px;
    margin-bottom: 8px;
}

.review-text {
    color: #334155;
    font-size: 15px;
    line-height: 1.9;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.similar-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: .18s ease;
}

.similar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.similar-item img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    background: #f3f4f6;
}

.similar-body {
    padding: 10px;
}

.similar-title {
    min-height: 48px;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    font-weight: 800;
}

.similar-price {
    margin-top: 6px;
    font-size: 15px;
    color: var(--blue);
    font-weight: 900;
}

.sidebar-card {
    position: sticky;
    top: 86px;
    padding: 18px;
}

.sidebar-price {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.sidebar-price span {
    font-size: 18px;
    color: var(--muted);
    font-weight: 700;
}

.sidebar-city {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

.sidebar-seller {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.sidebar-buttons {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.sidebar-btn {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.sidebar-btn.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.sidebar-btn.whatsapp {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.empty-box {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    line-height: 1.9;
    font-size: 15px;
}

.mobile-bottom-bar {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
}

.mobile-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.mobile-price {
    min-width: 104px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.mobile-price small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.mobile-contact {
    flex: 1;
    min-height: 52px;
    border: none;
    background: #22c55e;
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .main-image {
        height: 620px;
    }
}

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

    .desktop-sidebar {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .main-image {
        height: 520px;
    }

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .site-header-inner {
        padding: 10px 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 18px;
        border-radius: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .chips-wrap {
        padding: 8px 12px 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .chip {
        flex: 0 0 auto;
    }

    .page {
        padding: 10px;
    }

    .content-card,
    .gallery-card,
    .section-card {
        padding: 14px;
        border-radius: 16px;
    }

    .post-title {
        font-size: 23px;
        line-height: 1.5;
    }

    .meta-row {
        font-size: 13px;
        gap: 8px;
    }

    .seller-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 16px;
    }

    .price-box {
        margin-top: 14px;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .price {
        font-size: 28px;
    }

    .price small {
        font-size: 15px;
    }

    .price-side-note {
        font-size: 12px;
    }

    .description {
        margin-top: 14px;
        font-size: 15px;
        line-height: 2;
    }



    .stacked-image-item {
        border-radius: 15px;
    }

    .stacked-image {
        height: 340px;
    }





    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .similar-item {
        border-radius: 14px;
    }

    .similar-item img {
        height: 120px;
    }

    .similar-title {
        font-size: 13px;
        min-height: 44px;
    }

    .similar-price {
        font-size: 14px;
    }

    .review-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .review-name {
        font-size: 14px;
    }

    .review-text {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .thumb {
        height: 68px;
    }

    .main-image {
        height: 300px;
    }

    .mobile-price {
        min-width: 95px;
        font-size: 16px;
    }

    .mobile-contact {
        font-size: 16px;
    }
}