/* ==========================================================================
   Fidelizacion Clientes - Public/Frontend Styles
   Marketplace elegante con estilo premium
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables CSS - Sistema de Diseño
   -------------------------------------------------------------------------- */
.vg-fc-scope {
    --vg-fc-bg: #f4f1ea;
    --vg-fc-ink: #1f1b16;
    --vg-fc-muted: #6b635a;
    --vg-fc-accent: #1f6f5c;
    --vg-fc-accent-hover: #185a4a;
    --vg-fc-accent-2: #d28b2d;
    --vg-fc-accent-2-hover: #b87520;
    --vg-fc-card: #fffaf2;
    --vg-fc-border: #e3d9c9;
    --vg-fc-header-bg: #11100f;
    --vg-fc-header-bg-end: #11100f;
    --vg-fc-header-ink: #f7f1e6;
    --vg-fc-nav: #f7f1e6;
    --vg-fc-nav-hover: #ffffff;
    --vg-fc-nav-cta: #1f1b16;
    --vg-fc-footer-bg: #11100f;
    --vg-fc-footer-bg-end: #11100f;
    --vg-fc-header-text-size: 12px;
    --vg-fc-logo-height: 28px;
    --vg-fc-shadow: 0 24px 60px rgba(27, 23, 18, 0.16);
    --vg-fc-shadow-sm: 0 4px 12px rgba(27, 23, 18, 0.08);
    --vg-fc-shadow-hover: 0 32px 80px rgba(27, 23, 18, 0.22);
    --vg-fc-radius: 22px;
    --vg-fc-radius-sm: 12px;
    --vg-fc-font: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    --vg-fc-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --vg-fc-transition-fast: 0.15s ease;
    color: var(--vg-fc-ink);
    font-family: inherit;
}

.vg-fc-site-font .vg-fc-scope {
    font-family: inherit;
}

.vg-fc-custom-font .vg-fc-scope {
    font-family: var(--vg-fc-font-custom);
}

/* --------------------------------------------------------------------------
   Reset y Base
   -------------------------------------------------------------------------- */
.vg-fc-scope *,
.vg-fc-scope *::before,
.vg-fc-scope *::after {
    box-sizing: border-box;
}

.vg-fc-frontend {
    background: var(--vg-fc-bg, #efebe1);
}

/* --------------------------------------------------------------------------
   Shell Layout
   -------------------------------------------------------------------------- */
.vg-fc-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.vg-fc-header {
    background: linear-gradient(180deg, var(--vg-fc-header-bg) 0%, var(--vg-fc-header-bg-end) 100%);
    color: var(--vg-fc-header-ink, #f7f1e6);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.vg-fc-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vg-fc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vg-fc-logo span {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
}

.vg-fc-logo img {
    height: var(--vg-fc-logo-height);
    width: auto;
    display: block;
}

.vg-fc-header-tagline {
    font-size: var(--vg-fc-header-text-size);
    color: var(--vg-fc-header-ink, rgba(247, 241, 230, 0.75));
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.vg-fc-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.vg-fc-nav a {
    color: var(--vg-fc-nav, rgba(247, 241, 230, 0.85));
    text-decoration: none;
    font-weight: 500;
    transition: color var(--vg-fc-transition-fast);
    position: relative;
}

.vg-fc-nav a:hover {
    color: var(--vg-fc-nav-hover, #ffffff);
}

.vg-fc-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vg-fc-accent);
    transition: width var(--vg-fc-transition);
}

.vg-fc-nav a:hover::after {
    width: 100%;
}

.vg-fc-nav-cta {
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7f1e6 0%, #ebe5d9 100%);
    color: var(--vg-fc-nav-cta, #11100f) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--vg-fc-transition-fast), box-shadow var(--vg-fc-transition-fast);
}

.vg-fc-nav-cta::after {
    display: none;
}

.vg-fc-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
.vg-fc-main {
    flex: 1;
    padding: 36px 20px 60px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.vg-fc-footer {
    padding: 24px 20px 32px;
    background: linear-gradient(180deg, var(--vg-fc-footer-bg) 0%, var(--vg-fc-footer-bg-end) 100%);
    color: rgba(247, 241, 230, 0.7);
    font-size: 12px;
    margin-top: auto;
}

.vg-fc-footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.vg-fc-footer-brand {
    font-weight: 600;
    color: rgba(247, 241, 230, 0.9);
}

.vg-fc-footer-tagline {
    font-style: italic;
    color: rgba(247, 241, 230, 0.75);
}

.vg-fc-footer-privacy {
    color: rgba(247, 241, 230, 0.6);
    font-size: 11px;
    margin-top: 4px;
}

.vg-fc-footer-dev {
    color: rgba(247, 241, 230, 0.5);
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.vg-fc-divider {
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent 0%, var(--vg-fc-border) 50%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Section Backgrounds
   -------------------------------------------------------------------------- */
.vg-fc-login,
.vg-fc-market,
.vg-fc-dashboard,
.vg-fc-redemptions {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 245, 225, 0.8) 0%, rgba(255, 245, 225, 0.3) 35%, transparent 60%),
        radial-gradient(circle at 90% 90%, rgba(31, 111, 92, 0.08) 0%, transparent 40%),
        linear-gradient(120deg, #f6f0e6 0%, #eef2ed 55%, #f4f1ea 100%);
    padding: 48px 24px 72px;
    border-radius: calc(var(--vg-fc-radius) + 6px);
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.vg-fc-login-panel,
.vg-fc-market {
    max-width: 1100px;
    margin: 0 auto;
}

.vg-fc-login-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px);
    gap: 48px;
    align-items: center;
}

.vg-fc-login-panel > * {
    min-width: 0;
}

.vg-fc-login-brand h2,
.vg-fc-market h2,
.vg-fc-dashboard h2,
.vg-fc-redemptions h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Chip/Badge
   -------------------------------------------------------------------------- */
.vg-fc-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--vg-fc-login-chip-bg, rgba(31, 111, 92, 0.12));
    color: var(--vg-fc-accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: var(--vg-fc-login-chip-size, 11px);
    margin-bottom: 16px;
    border: 1px solid rgba(31, 111, 92, 0.2);
}

/* --------------------------------------------------------------------------
   Cards Base
   -------------------------------------------------------------------------- */
.vg-fc-login-card,
.vg-fc-panel,
.vg-fc-points-card,
.vg-fc-product-card,
.vg-fc-table,
.vg-fc-empty {
    background: var(--vg-fc-card);
    border: 1px solid var(--vg-fc-border);
    border-radius: var(--vg-fc-radius);
    box-shadow: var(--vg-fc-shadow);
}

.vg-fc-login-card,
.vg-fc-points-card,
.vg-fc-product-card,
.vg-fc-panel {
    animation: vg-fc-rise 0.5s ease both;
}

.vg-fc-panel {
    padding: 28px;
}

/* --------------------------------------------------------------------------
   Login Card
   -------------------------------------------------------------------------- */
.vg-fc-login-card {
    padding: 32px;
    width: 100%;
    justify-self: end;
}

.vg-fc-login-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--vg-fc-ink);
}

.vg-fc-login-card form {
    display: grid;
    gap: 16px;
}

.vg-fc-login-card label {
    font-size: 13px;
    color: var(--vg-fc-muted);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.vg-fc-login-card input {
    padding: 14px 16px;
    border: 1px solid var(--vg-fc-border);
    border-radius: var(--vg-fc-radius-sm);
    font-family: var(--vg-fc-font);
    font-size: 16px;
    transition: border-color var(--vg-fc-transition-fast), box-shadow var(--vg-fc-transition-fast);
    width: 100%;
}

.vg-fc-login-card input:focus {
    outline: none;
    border-color: var(--vg-fc-accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.12);
}

.vg-fc-login-microcopy {
    font-size: 12px;
    color: var(--vg-fc-muted);
    text-align: center;
    margin: 8px 0 0;
}

.vg-fc-login-privacy {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(31, 111, 92, 0.06);
    border-radius: var(--vg-fc-radius-sm);
    border: 1px solid rgba(31, 111, 92, 0.12);
}

.vg-fc-login-privacy p {
    font-size: 13px;
    color: var(--vg-fc-muted);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.vg-fc-panel-section {
    margin-bottom: 16px;
}

.vg-fc-panel-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vg-fc-muted);
    margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   Login Highlights
   -------------------------------------------------------------------------- */
.vg-fc-login-highlights {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    color: var(--vg-fc-muted);
}

.vg-fc-login-highlights > div {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.vg-fc-login-highlights strong {
    display: block;
    color: var(--vg-fc-ink);
    font-size: 16px;
    margin-bottom: 4px;
}

.vg-fc-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(31, 111, 92, 0.4);
    position: relative;
    margin-top: 2px;
}

.vg-fc-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border-right: 2px solid var(--vg-fc-accent);
    border-bottom: 2px solid var(--vg-fc-accent);
    transform: rotate(45deg);
}

.vg-fc-login-highlights span {
    font-size: 14px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Market Hero
   -------------------------------------------------------------------------- */
.vg-fc-market-hero {
    margin-bottom: 32px;
}

.vg-fc-header-search {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    max-width: 260px;
    flex: 1;
}

.vg-fc-market-search {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    max-width: 320px;
}

.vg-fc-market-search-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vg-fc-muted);
    font-weight: 600;
}

.vg-fc-market-search-input {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--vg-fc-border);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--vg-fc-transition-fast), box-shadow var(--vg-fc-transition-fast);
}

.vg-fc-market-search-input:focus {
    outline: none;
    border-color: var(--vg-fc-accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.12);
}

.vg-fc-market-hero p {
    font-size: 16px;
    color: var(--vg-fc-muted);
    max-width: 500px;
    line-height: 1.6;
}

.vg-fc-market-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--vg-fc-muted);
}

/* --------------------------------------------------------------------------
   Points Card
   -------------------------------------------------------------------------- */
.vg-fc-points-card {
    padding: 28px;
}

.vg-fc-points-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.vg-fc-points-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vg-fc-muted);
    margin: 0;
}

.vg-fc-kpi {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vg-fc-accent);
}

.vg-fc-kpi-label {
    display: block;
    font-size: 12px;
    color: var(--vg-fc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.vg-fc-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 16px;
}

.vg-fc-points-grid > div {
    text-align: center;
    padding: 12px 8px;
    background: rgba(31, 111, 92, 0.04);
    border-radius: var(--vg-fc-radius-sm);
    transition: background var(--vg-fc-transition-fast);
}

.vg-fc-points-grid > div:hover {
    background: rgba(31, 111, 92, 0.08);
}

/* --------------------------------------------------------------------------
   Products Grid
   -------------------------------------------------------------------------- */
.vg-fc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* --------------------------------------------------------------------------
   Product Card
   -------------------------------------------------------------------------- */
.vg-fc-product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--vg-fc-transition), box-shadow var(--vg-fc-transition);
}

.vg-fc-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--vg-fc-shadow-hover);
}

.vg-fc-product-media {
    background: #ffffff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vg-fc-muted);
    overflow: hidden;
    position: relative;
    border-radius: var(--vg-fc-radius-sm);
}

.vg-fc-product-placeholder {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.vg-fc-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: #ffffff;
    display: block;
    transition: transform var(--vg-fc-transition);
}

.vg-fc-product-card:hover .vg-fc-product-media img {
    transform: scale(1.02);
}

.vg-fc-product-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vg-fc-product-body h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--vg-fc-ink);
    line-height: 1.3;
}

.vg-fc-product-desc {
    color: var(--vg-fc-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* --------------------------------------------------------------------------
   Product Meta Pills
   -------------------------------------------------------------------------- */
.vg-fc-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vg-fc-pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(31, 111, 92, 0.12) 0%, rgba(31, 111, 92, 0.06) 100%);
    color: var(--vg-fc-accent);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(31, 111, 92, 0.15);
}

.vg-fc-pill:nth-child(2) {
    background: linear-gradient(135deg, rgba(210, 139, 45, 0.15) 0%, rgba(210, 139, 45, 0.08) 100%);
    color: var(--vg-fc-accent-2);
    border-color: rgba(210, 139, 45, 0.2);
}

/* --------------------------------------------------------------------------
   Product Actions
   -------------------------------------------------------------------------- */
.vg-fc-product-actions {
    margin-top: auto;
}

.vg-fc-quantity {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.vg-fc-quantity label {
    font-size: 11px;
    color: var(--vg-fc-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.vg-fc-quantity input {
    max-width: 100px;
    padding: 10px 12px;
    border-radius: var(--vg-fc-radius-sm);
    border: 1px solid var(--vg-fc-border);
    font-family: var(--vg-fc-font);
    font-size: 15px;
    text-align: center;
    transition: border-color var(--vg-fc-transition-fast);
}

.vg-fc-quantity input:focus {
    outline: none;
    border-color: var(--vg-fc-accent);
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.vg-fc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--vg-fc-accent) 0%, var(--vg-fc-accent-hover) 100%);
    color: #fff;
    font-weight: 600;
    font-family: var(--vg-fc-font);
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--vg-fc-transition-fast), box-shadow var(--vg-fc-transition-fast);
    box-shadow: 0 8px 24px rgba(31, 111, 92, 0.35);
    width: 100%;
}

.vg-fc-button:disabled {
    background: linear-gradient(135deg, #b9b1a6 0%, #a19a90 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.8;
}

.vg-fc-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(31, 111, 92, 0.45);
}

.vg-fc-button:active:not(:disabled) {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */
.vg-fc-alert {
    padding: 14px 18px;
    border-radius: var(--vg-fc-radius-sm);
    background: linear-gradient(135deg, rgba(210, 139, 45, 0.18) 0%, rgba(210, 139, 45, 0.1) 100%);
    border: 1px solid rgba(210, 139, 45, 0.35);
    color: #6a3f0f;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Muted/Subtle Text
   -------------------------------------------------------------------------- */
.vg-fc-subtle,
.vg-fc-muted {
    color: var(--vg-fc-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.vg-fc-empty {
    padding: 48px 32px;
    text-align: center;
}

.vg-fc-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--vg-fc-ink);
}

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

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */
.vg-fc-table {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Market Layout
   -------------------------------------------------------------------------- */
.vg-fc-market-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.3fr);
    gap: 32px;
    align-items: start;
}

.vg-fc-market-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 20px;
}

.vg-fc-points-compact {
    padding: 20px;
}

.vg-fc-points-compact .vg-fc-kpi {
    font-size: 24px;
}

.vg-fc-points-compact .vg-fc-points-grid {
    gap: 12px;
}

.vg-fc-market-products {
    order: 1;
}

.vg-fc-market-sidebar {
    order: 2;
}

/* --------------------------------------------------------------------------
   Card Note
   -------------------------------------------------------------------------- */
.vg-fc-card-note {
    padding: 20px;
    border-radius: var(--vg-fc-radius-sm);
    border: 1px dashed var(--vg-fc-border);
    color: var(--vg-fc-muted);
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.vg-fc-card-note p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Table Rows
   -------------------------------------------------------------------------- */
.vg-fc-table-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1fr 1.2fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--vg-fc-border);
    align-items: center;
    transition: background var(--vg-fc-transition-fast);
}

.vg-fc-table-row:last-child {
    border-bottom: none;
}

.vg-fc-table-row:not(.vg-fc-table-head):hover {
    background: rgba(31, 111, 92, 0.04);
}

.vg-fc-table-head {
    font-weight: 600;
    background: linear-gradient(135deg, rgba(31, 111, 92, 0.1) 0%, rgba(31, 111, 92, 0.05) 100%);
    color: var(--vg-fc-ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Status Badge
   -------------------------------------------------------------------------- */
.vg-fc-status {
    font-weight: 600;
    color: var(--vg-fc-accent);
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(31, 111, 92, 0.1);
    border-radius: 999px;
    display: inline-block;
    text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes vg-fc-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animacion principal de entrada - fade + slide up */
@keyframes vg-fc-fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vg-fc-animate-in {
    animation: vg-fc-fade-slide-in 450ms ease-out both;
}

/* Staggered animation for product cards */
.vg-fc-product-card:nth-child(1) { animation-delay: 0.05s; }
.vg-fc-product-card:nth-child(2) { animation-delay: 0.1s; }
.vg-fc-product-card:nth-child(3) { animation-delay: 0.15s; }
.vg-fc-product-card:nth-child(4) { animation-delay: 0.2s; }
.vg-fc-product-card:nth-child(5) { animation-delay: 0.25s; }
.vg-fc-product-card:nth-child(6) { animation-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .vg-fc-market-layout {
        grid-template-columns: 1fr;
    }

    .vg-fc-market-sidebar {
        position: static;
        order: -1;
    }

    .vg-fc-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 780px) {
    .vg-fc-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .vg-fc-nav {
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
    }

    .vg-fc-nav-cta {
        margin-left: auto;
    }

    .vg-fc-login,
    .vg-fc-market,
    .vg-fc-dashboard,
    .vg-fc-redemptions {
        padding: 32px 16px 48px;
    }

    .vg-fc-login-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vg-fc-login-brand h2,
    .vg-fc-market h2,
    .vg-fc-dashboard h2 {
        font-size: 26px;
    }

.vg-fc-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.vg-fc-site-font {
    font-family: inherit;
}
}

@media (max-width: 720px) {
    .vg-fc-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .vg-fc-table-head {
        display: none;
    }

    .vg-fc-table-row > div::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--vg-fc-muted);
        margin-bottom: 4px;
    }

    .vg-fc-products-grid {
        grid-template-columns: 1fr;
    }

    .vg-fc-product-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .vg-fc-header,
    .vg-fc-footer,
    .vg-fc-button,
    .vg-fc-nav {
        display: none !important;
    }

    .vg-fc-login,
    .vg-fc-market,
    .vg-fc-dashboard {
        background: none;
        padding: 20px 0;
    }

    .vg-fc-product-card,
    .vg-fc-panel,
    .vg-fc-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* --------------------------------------------------------------------------
   Accessibility - Focus States
   -------------------------------------------------------------------------- */
.vg-fc-scope a:focus-visible,
.vg-fc-scope button:focus-visible,
.vg-fc-scope input:focus-visible {
    outline: 2px solid var(--vg-fc-accent);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .vg-fc-login-card,
    .vg-fc-points-card,
    .vg-fc-product-card,
    .vg-fc-panel,
    .vg-fc-animate-in {
        animation: none;
    }

    .vg-fc-product-card:hover {
        transform: none;
    }

    .vg-fc-product-card:hover .vg-fc-product-media img {
        transform: none;
    }
}
