:root {
    --vfs-bg: #ffffff;
    --vfs-accent: #1a5f4a;
    --vfs-text: #1a1a1a;
    --vfs-muted: #5c5c5c;
    --vfs-border: #e2e8e4;
    --vfs-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body.vfs-page {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--vfs-text);
    background: var(--vfs-bg);
    line-height: 1.5;
}

body.vfs-page.vfs-embed {
    padding: 0;
}

.vfs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

body.vfs-embed .vfs-container {
    padding: 1rem;
}

.vfs-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
    color: var(--vfs-accent);
}

.vfs-header p {
    margin: 0 0 1rem;
    color: var(--vfs-muted);
}

.vfs-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--vfs-border);
    border-radius: 8px;
    background: #fafcfb;
}

.vfs-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--vfs-muted);
}

.vfs-filters input,
.vfs-filters select {
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--vfs-border);
    border-radius: 4px;
    font: inherit;
}

.vfs-filters-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.vfs-btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--vfs-accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.vfs-btn-secondary {
    background: #fff;
    color: var(--vfs-accent);
    border: 1px solid var(--vfs-accent);
}

.vfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.vfs-card {
    border: 1px solid var(--vfs-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--vfs-card-shadow);
    transition: transform 0.15s ease;
}

.vfs-card:hover {
    transform: translateY(-2px);
}

.vfs-card a {
    color: inherit;
    text-decoration: none;
}

.vfs-card-image {
    aspect-ratio: 4 / 3;
    background: #f0f4f2;
    overflow: hidden;
}

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

.vfs-card-body {
    padding: 0.9rem 1rem 1rem;
}

.vfs-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.vfs-card-meta {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--vfs-muted);
}

.vfs-card-price {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vfs-accent);
}

.vfs-card-bullets {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: var(--vfs-muted);
}

.vfs-card-bullets li {
    margin-bottom: 0.2rem;
}

.vfs-badge-sold {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #6b7280;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.vfs-empty {
    padding: 2rem;
    text-align: center;
    color: var(--vfs-muted);
}

.vfs-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 800px) {
    .vfs-detail {
        grid-template-columns: 1fr;
    }
}

.vfs-gallery-main {
    aspect-ratio: 4 / 3;
    background: #f0f4f2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.vfs-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vfs-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vfs-gallery-thumbs button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    width: 72px;
    height: 54px;
    overflow: hidden;
}

.vfs-gallery-thumbs button.active {
    border-color: var(--vfs-accent);
}

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

.vfs-title {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.vfs-subline {
    margin: 0 0 0.75rem;
    color: var(--vfs-muted);
}

.vfs-price {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vfs-accent);
}

.vfs-bullets {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.vfs-contact {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f5faf8;
    border: 1px solid var(--vfs-border);
}

.vfs-contact a {
    color: var(--vfs-accent);
    font-weight: 600;
}

.vfs-inquiry label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.vfs-inquiry input,
.vfs-inquiry textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--vfs-border);
    border-radius: 4px;
    font: inherit;
}

.vfs-inquiry input[readonly] {
    background: #f3f6f4;
}

.vfs-inquiry .account-login-note {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.vfs-inquiry-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.vfs-inquiry-status.ok {
    color: var(--vfs-accent);
}

.vfs-inquiry-status.error {
    color: #b91c1c;
}

.vfs-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--vfs-accent);
    text-decoration: none;
}

.vfs-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .vfs-admin-grid {
        grid-template-columns: 1fr;
    }
}

.vfs-preview-panel {
    padding: 1rem;
    border: 1px solid var(--vfs-border);
    border-radius: 8px;
    background: #fafcfb;
}

.vfs-preview-text,
.vfs-raw-desc {
    white-space: pre-wrap;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid var(--vfs-border);
    padding: 0.75rem;
    border-radius: 4px;
    overflow: auto;
}
