:root {
    --bg: #0f1220;
    --card: #191c2f;
    --muted: #aab0c5;
    --txt: #eef1ff;
    --accent: #7c8cff;
    --accent-2: #54d3a9;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif
}

.site-header {
    text-align: center;
    padding: 2.25rem 1rem 1rem;
}

.site-header h1 {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    margin: 0 0 .25rem;
    font-size: 2.2rem;
    letter-spacing: .5px
}

.tagline {
    margin: 0;
    color: var(--muted)
}

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

.filters {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    animation: fadeIn .6s ease both;
}

.filter-row {
    display: grid;
    gap: .75rem;
    margin: .5rem 0
}

.filter-row:first-child {
    grid-template-columns: 1fr 1fr 1fr
}

.filter-row:last-child {
    grid-template-columns: repeat(4, 1fr)
}

.filter label {
    display: block;
    margin: 0 0 .35rem;
    color: var(--muted);
    font-size: .9rem
}

.filter input,
.filter select {
    width: 100%;
    padding: .65rem .75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0b0e1c;
    color: var(--txt);
    outline: none
}

.filter input:focus,
.filter select:focus {
    border-color: var(--accent)
}

.btn {
    padding: .7rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    font-weight: 600;
    box-shadow: var(--shadow)
}

.btn:hover {
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.btn.secondary {
    background: #2a2f4a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .1)
}

.results-bar {
    display: flex;
    justify-content: flex-end;
    margin: .75rem 0;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0 2rem;
}
/* 
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(6px);
    opacity: 0;
    animation: slideUp .4s ease forwards;
} */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(6px);
    opacity: 0;
    animation: slideUp .4s ease forwards;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(124, 140, 255, 0.3), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.card:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(84, 211, 169, 0.4);
}

.card:nth-child(odd) {
    animation-delay: .05s
}

.card:nth-child(even) {
    animation-delay: .1s
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #0b0e1c
}

.card-body {
    padding: .9rem
}
/* 
.card h3 {
    margin: .2rem 0 .3rem;
    font-size: 1.05rem
} */
.card h3 {
    margin: .2rem 0 .3rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--accent-2);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 140, 255, 0.4);
}

.card p {
    margin: .2rem 0;
    color: var(--muted);
    font-size: .95rem
}

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

.card .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .6rem
}

.card .quick-view {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    padding: .5rem .7rem;
    border-radius: 10px;
    cursor: pointer
}

.card:hover {
    transform: translateY(-4px);
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover img {
    filter: contrast(1.05) saturate(1.05)
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    z-index: 20;
    opacity: 0;
    transition: opacity .2s ease
}

.modal-backdrop.show {
    opacity: 1
}

.hidden {
    display: none
}

.modal {
    width: min(900px, 92vw);
    border: none;
    border-radius: 18px;
    padding: 0;
    background: var(--card);
    color: var(--txt);
    box-shadow: var(--shadow);
    z-index: 30
}

.modal::backdrop {
    background: transparent
}

.modal .modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #2a2f4a;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer
}

.modal-body {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 1rem;
    padding: 1rem
}

.modal-body img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 14px
}

.modal-info h2 {
    margin: .2rem 0
}

.modal-info p {
    margin: .25rem 0;
    color: var(--muted)
}

.modal-info .price {
    font-size: 1.1rem;
    margin-top: .5rem
}

.modal-actions {
    display: flex;
    gap: .5rem;
    margin-top: 1rem
}

.site-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    color: var(--muted)
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(6px)
    }
}

/* Responsive */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .filter-row:first-child,
    .filter-row:last-child {
        grid-template-columns: repeat(2, 1fr)
    }
}

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

    .modal-body {
        grid-template-columns: 1fr
    }
}

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