/* Base layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0f0f10;
    color: #f6f3ee;
}

a {
    color: inherit;
    text-decoration: none;
}

.fd-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top left, #222 0, #0f0f10 55%);
}

.fd-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fd-brand {
    text-decoration: none;
    color: inherit;
}

.fd-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #f6f3ee;
    cursor: pointer;
    border-radius: 8px;
}
.fd-burger:hover { background: rgba(255,255,255,0.06); }
.fd-burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.fd-nav {
    display: flex;
    align-items: center;
}
.fd-nav-filters {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.fd-nav .fd-control-group {
    margin: 0;
}
.fd-nav .fd-control-group label {
    margin-bottom: 4px;
}
.fd-nav .fd-control-group select {
    min-width: 120px;
}

@media (max-width: 768px) {
    .fd-burger { display: flex; }
    .fd-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f0f10;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        display: none;
        box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    }
    .fd-nav.is-open { display: flex; }
    .fd-nav-filters {
        flex-direction: column;
        gap: 12px;
    }
    .fd-nav .fd-control-group select { min-width: 0; width: 100%; }
}
.fd-header { position: relative; }

.fd-brand-title {
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.fd-brand-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #b9b4aa;
}

.fd-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 72px;
}

.fd-control-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b9b4aa;
}

.fd-control-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #141417;
    color: #f6f3ee;
}

.fd-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .fd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .fd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .fd-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fd-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #151515;
    cursor: pointer;
}

.fd-card-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.fd-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 280ms ease-out;
}

.fd-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.05));
    opacity: 0;
    transition: opacity 260ms ease-out;
}

.fd-card:hover img {
    transform: scale(1.04);
}

.fd-card:hover .fd-card-overlay {
    opacity: 1;
}

.fd-card-meta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fd-card-category {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d7d0c2;
}

.fd-card-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.fd-card-price {
    font-size: 0.85rem;
    color: #e9d29b;
}

.fd-card-actions {
    display: flex;
    justify-content: flex-end;
}

.fd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background-color: #e9d29b;
    color: #191715;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}

.fd-button:hover {
    background-color: #f1dfb6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.fd-status {
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #b9b4aa;
}

.fd-status--error {
    color: #ffb3b3;
}

.fd-load-more {
    margin: 32px auto 0;
    min-width: 220px;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #f6f3ee;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.fd-load-more::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(233, 210, 155, 0.8);
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg);
    transition: transform 200ms ease-out, border-color 200ms ease-out;
}

.fd-load-more:hover {
    background-color: rgba(233, 210, 155, 0.09);
    border-color: rgba(233, 210, 155, 0.9);
}

.fd-load-more:hover::after {
    transform: translateX(3px) rotate(45deg);
    border-color: rgba(233, 210, 155, 0.9);
    border-top-color: transparent;
    border-left-color: transparent;
}

/* Lightbox */
.fd-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.fd-lightbox.is-open {
    display: flex;
}

.fd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.78);
}

.fd-lightbox-content {
    position: relative;
    max-width: 960px;
    margin: 16px;
    background-color: #111113;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    overflow: hidden;
}

.fd-lightbox-prev,
.fd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #f6f3ee;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.fd-lightbox-prev:hover,
.fd-lightbox-next:hover {
    background: rgba(233, 210, 155, 0.4);
}
.fd-lightbox-prev {
    left: 12px;
}
.fd-lightbox-next {
    right: 12px;
}
.fd-lightbox-counter {
    margin: 0;
    font-size: 0.8rem;
    color: #b9b4aa;
}

@media (max-width: 768px) {
    .fd-lightbox-content {
        grid-template-columns: 1fr;
    }
}

.fd-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fd-lightbox-meta {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fd-lightbox-meta h2 {
    margin: 0;
    font-size: 1.2rem;
}

.fd-lightbox-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: #c8c2b6;
}

.fd-lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #f6f3ee;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Footer */
.fd-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 48px;
    padding: 24px 16px;
    background: rgba(0,0,0,0.2);
}
.fd-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}
.fd-footer-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b9b4aa;
}
.fd-footer-link:hover { color: #e9d29b; }

/* About page */
.fd-about { padding-bottom: 72px; }
.fd-about-article {
    max-width: 720px;
    margin: 0 auto;
}
.fd-about-image-wrap {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    background: #151515;
}
.fd-about-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
}
.fd-about-heading {
    margin: 0 0 16px;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    line-height: 1.25;
}
.fd-about-body {
    font-size: 1rem;
    line-height: 1.65;
    color: #d7d0c2;
}
.fd-about-body p { margin: 0 0 1em; }
.fd-about-social {
    margin: 24px 0 0;
    font-size: 0.9rem;
}
.fd-about-social .fd-footer-link { color: #e9d29b; }

