*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-1: #f8f7f4;
    --gray-2: #e8e6e1;
    --gray-3: #9a9690;
    --gold: #c9a84c;
    --gold-light: #e8c96d;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo span { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.nav-links a {
    color: var(--gray-3);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-search input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    width: 220px;
    transition: all 0.2s;
}

.nav-search input::placeholder { color: var(--gray-3); }
.nav-search input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.09);
}

/* HERO */
.hero {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 64px;
    background: linear-gradient(180deg, #1a1508 0%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero-text { position: relative; z-index: 1; }

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: var(--gray-3);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 560px;
}

/* FILTERS */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gray-3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 500;
}

/* GALLERY */
.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    columns: 4 280px;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.gallery-overlay .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-overlay .category {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-overlay .price {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-light);
}

/* LOADING */
.loading {
    width: 100%;
    text-align: center;
    padding: 4rem;
    color: var(--gray-3);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.page-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gray-3);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.page-btn.active, .page-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--gray-3);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-3);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy p {
    color: var(--gray-3);
    font-size: 0.75rem;
}

/* IMAGE DETAIL PAGE */
.photo-page {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
}

.photo-main img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.photo-sidebar {}

.photo-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.photo-category {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.photo-description {
    color: var(--gray-3);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-3);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
}

.price-box {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

.price-label {
    color: var(--gray-3);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.btn-buy {
    width: 100%;
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.btn-buy:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-contact {
    width: 100%;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.btn-contact:hover { border-color: var(--white); }

/* EXIF TABLE */
.exif-section {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

.exif-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-3);
    margin-bottom: 1rem;
}

.exif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.exif-item {}

.exif-key {
    font-size: 0.7rem;
    color: var(--gray-3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.exif-val {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 400;
}

/* CHECKOUT MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

.modal h2 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pay-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    padding: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all 0.2s;
    text-align: center;
}

.pay-btn:hover, .pay-btn.selected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.wallet-display {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    word-break: break-all;
    font-size: 0.8rem;
    color: var(--gray-3);
    display: none;
}

.wallet-display.show { display: block; }
.wallet-address { color: var(--gold); font-weight: 500; margin-top: 0.5rem; }

.modal-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gray-3);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    float: right;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .photo-page { grid-template-columns: 1fr; }
    .gallery { columns: 2 200px; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .gallery { columns: 2 150px; }
    .hero-text h1 { font-size: 2rem; }
}
