@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;400;700;900&display=swap');

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

:root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #666666;
    --muted2: #888888;
    --light-bg: #f7f7f7;
    --light-bg2: #f9f9f9;
    --border: #eeeeee;
    --accent: #ff0000;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: 'Inter', sans-serif; cursor: pointer; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.header-right { justify-content: flex-end; }

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-logo {
    flex: 1;
    text-align: center;
    font-size: 22px;
}

.header-logo .zine-heavy { font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; }
.header-logo .zine-thin { font-weight: 100; letter-spacing: 0.02em; }
.header-logo .zine-final-dot { font-weight: 900; }

.icon-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cart-count {
    background: #000;
    color: #fff;
    font-size: 9px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}
.hamburger span { width: 20px; height: 2px; background: #000; }

@media (max-width: 768px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .header-left { flex: 0; }
    .icon-btn span.label { display: none; }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 900;
    display: none;
    flex-direction: column;
    padding: 30px 5%;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close { align-self: flex-end; background: none; border: none; font-size: 24px; }
.mobile-menu nav { margin-top: 60px; display: flex; flex-direction: column; gap: 30px; }
.mobile-menu nav a { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }

/* ===== HERO (film grain overlay) ===== */
.zine-fixed-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 400;
    background: #fff;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .3s ease-out;
}
.zine-fixed-overlay img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.8) contrast(1.1);
}
.film-grain-layer {
    position: absolute; inset: 0;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Grain.vis.png');
    opacity: .06;
    animation: grain-jump .7s steps(6) infinite;
    z-index: 401;
}
.lens-vignette-layer {
    position: absolute; inset: 0;
    box-shadow: inset 0 0 15vw rgba(0,0,0,.4);
    z-index: 402;
}
@keyframes grain-jump {
    0% { transform: translate(0,0); }
    50% { transform: translate(-1%,2%); }
    100% { transform: translate(1%,-1%); }
}
.scroll-trigger-gap { height: 100vh; width: 100%; }

.zine-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}
.zine-status {
    font-size: 10px;
    letter-spacing: 5px;
    color: #888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.zine-dot-pulse {
    width: 7px; height: 7px;
    background: #000;
    border-radius: 50%;
    animation: zine-blink 1.5s infinite;
}
@keyframes zine-blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
.zine-logo {
    font-size: clamp(40px, 8vw, 100px);
    line-height: 1;
    margin-bottom: 40px;
}
.zine-heavy { font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; }
.zine-thin { font-weight: 100; letter-spacing: 0.02em; }
.zine-final-dot { font-weight: 900; font-size: 1.2em; }
.zine-btns { display: flex; gap: 15px; justify-content: center; }
.zine-btn {
    background: #000; color: #fff; border: 1px solid #000;
    padding: 15px 35px; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; transition: .3s;
}
.zine-btn-outline { background: transparent; color: #000; }
.zine-btn:hover { opacity: .7; }

/* ===== PRODUCT GRID (home featured) ===== */
.zine-products {
    padding: 80px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.product-card { position: relative; transition: opacity .4s ease; }
.product-card:hover { opacity: .8; }
.image-wrapper {
    background: var(--light-bg);
    aspect-ratio: 3/4;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 20px;
}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 10px; }
.product-title { font-weight: 900; font-size: 14px; letter-spacing: -0.02em; text-transform: uppercase; }
.product-title span { font-weight: 100; text-transform: none; }
.product-price { font-weight: 400; font-size: 12px; color: var(--muted); }
.tag-premium {
    position: absolute; top: 20px; left: 20px;
    background: #000; color: #fff; padding: 5px 10px;
    font-size: 8px; font-weight: 700; letter-spacing: 2px;
}
@media (max-width: 768px) { .zine-products { grid-template-columns: 1fr; } }

/* ===== FULL COLLECTION GRID ===== */
.collection-header { padding: 60px 5% 20px; max-width: 1400px; margin: 0 auto; }
.collection-header h1 { font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: -0.02em; }
.zine-products.all { grid-template-columns: repeat(4, 1fr); padding-top: 40px; }
@media (max-width: 900px) { .zine-products.all { grid-template-columns: repeat(2, 1fr); } }

/* ===== DETAIL / TECHNICAL SPECS SECTION ===== */
.zine-detail-section {
    display: flex; align-items: center;
    padding: 120px 8%; gap: 100px;
    max-width: 1400px; margin: 0 auto;
}
.zine-detail-image {
    flex: 1; background: var(--light-bg2);
    aspect-ratio: 1/1; position: relative; overflow: hidden;
}
.zine-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.zine-detail-image::after {
    content: "MACRO_SHOT_001";
    position: absolute; bottom: 20px; right: 20px;
    font-size: 8px; letter-spacing: 3px; color: #bbb;
}
.zine-detail-content { flex: 1; max-width: 450px; }
.zine-detail-content .eyebrow { font-size: 9px; letter-spacing: 5px; color: var(--accent); margin-bottom: 15px; }
.zine-detail-content h2 { font-weight: 900; font-size: 24px; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 30px; }
.zine-detail-content h2 span { font-weight: 100; text-transform: none; }
.zine-specs { list-style: none; padding: 0; }
.zine-spec-item { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.zine-spec-item b { font-weight: 700; }
.zine-spec-item:last-child { border-bottom: 1px solid var(--border); }
.zine-description { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 40px; }
@media (max-width: 900px) { .zine-detail-section { flex-direction: column; padding: 60px 20px; gap: 40px; } }

/* ===== ARCHIVE GRID ===== */
.zine-archive-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.archive-header { margin-bottom: 60px; }
.archive-header h3 { font-weight: 900; font-size: 14px; letter-spacing: 5px; text-transform: uppercase; }
.archive-header span { font-weight: 100; color: var(--muted2); letter-spacing: 2px; text-transform: none; }
.archive-wrapper { position: relative; }
.archive-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-gap: 20px; }
.archive-item { background: #ffffff; overflow: hidden; position: relative; }
.archive-item img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%); transition: filter .5s ease; }
.archive-item:hover img { filter: grayscale(0%); }
.archive-nav-arrow { display: none; }
.img-1 { grid-column: span 8; aspect-ratio: 16/9; }
.img-2 { grid-column: span 4; aspect-ratio: 1/1; margin-top: 50px; }
.img-3 { grid-column: span 3; aspect-ratio: 3/4; }
.img-4 { grid-column: span 5; aspect-ratio: 1/1; margin-top: -80px; }
.img-5 { grid-column: span 4; aspect-ratio: 4/5; }
@media (max-width: 768px) {
    .zine-archive-section { padding: 60px 0 60px 5%; overflow: hidden; }
    .archive-grid { display: flex; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 12px; padding-right: 5%; scrollbar-width: none; }
    .archive-grid::-webkit-scrollbar { display: none; }
    .archive-item { flex: 0 0 50vw; scroll-snap-align: start; aspect-ratio: 3/4 !important; margin-top: 0 !important; }
    .archive-nav-arrow { display: flex; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #000; color: #fff; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; font-size: 16px; z-index: 10; border: none; opacity: .85; }
    .img-1, .img-2, .img-3, .img-4, .img-5 { grid-column: unset; aspect-ratio: 3/4; margin-top: 0; }
}

/* ===== FOOTER ===== */
.zine-footer {
    padding: 120px 5% 50px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.footer-newsletter { max-width: 500px; width: 100%; margin-bottom: 80px; }
.footer-newsletter h4 { font-weight: 900; font-size: 11px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 25px; }
.newsletter-form { display: flex; border-bottom: 1px solid #000; padding-bottom: 10px; }
.newsletter-form input { background: transparent; border: none; flex: 1; font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 2px; outline: none; text-transform: uppercase; }
.newsletter-form button { background: transparent; border: none; font-weight: 900; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.footer-logo-wrap { margin-bottom: 60px; }
.footer-logo { font-size: 2.5rem; line-height: 1; }
.footer-links { display: flex; gap: 30px; margin-bottom: 50px; }
.footer-link { color: var(--muted2); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; transition: color .3s; }
.footer-link:hover { color: #000; }
.legal-credits { font-size: 8px; color: #bbb; letter-spacing: 3px; text-transform: uppercase; }
@media (max-width: 600px) { .footer-links { flex-direction: column; gap: 15px; } }

/* ===== PRODUCT PAGE ===== */
.product-page { display: flex; gap: 80px; padding: 60px 5%; max-width: 1400px; margin: 0 auto; }
.product-gallery { flex: 1.1; }
.product-gallery .main-image { background: var(--light-bg); aspect-ratio: 3/4; overflow: hidden; }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-main { flex: 1; max-width: 420px; padding-top: 20px; }
.product-main .breadcrumb { font-size: 10px; letter-spacing: 2px; color: var(--muted2); text-transform: uppercase; margin-bottom: 20px; }
.product-main h1 { font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 12px; }
.product-main .price { font-size: 16px; color: var(--muted); margin-bottom: 30px; }
.option-group { margin-bottom: 30px; }
.option-group .option-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.swatches { display: flex; gap: 10px; }
.swatch { border: 1px solid #ccc; padding: 10px 18px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: #fff; }
.swatch.active { border-color: #000; background: #000; color: #fff; }
.qty-row { display: flex; align-items: center; border: 1px solid #ccc; width: fit-content; margin-bottom: 20px; }
.qty-row button { background: none; border: none; width: 40px; height: 40px; font-size: 16px; }
.qty-row span { width: 40px; text-align: center; font-size: 13px; }
.add-to-cart-btn { width: 100%; background: #000; color: #fff; border: none; padding: 18px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; }
.add-to-cart-btn:hover { opacity: .8; }
.product-description { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 30px; }
.product-description p { margin-bottom: 14px; }
.accordion-item { border-top: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: none; border: none; width: 100%; text-align: left; }
.accordion-body { display: none; padding: 0 0 20px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.accordion-body ul { padding-left: 18px; list-style: disc; }
.accordion-item.open .accordion-body { display: block; }
@media (max-width: 900px) { .product-page { flex-direction: column; gap: 30px; padding: 30px 5%; } .product-main { max-width: 100%; } }

/* ===== CART DRAWER ===== */
.overlay-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 800; display: none; }
.overlay-backdrop.open { display: block; }
.cart-drawer {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 850; display: flex; flex-direction: column;
    transition: right .35s ease; padding: 30px;
}
.cart-drawer.open { right: 0; }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.cart-drawer-head h3 { font-weight: 900; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.cart-drawer-head button { background: none; border: none; font-size: 20px; }
.cart-empty { font-size: 13px; color: var(--muted); text-align: center; margin-top: 60px; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.cart-item { display: flex; gap: 15px; }
.cart-item img { width: 70px; height: 90px; object-fit: cover; background: var(--light-bg); }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.cart-item-info .variant { font-size: 10px; color: var(--muted2); margin-bottom: 8px; text-transform: uppercase; }
.cart-item-info .price { font-size: 12px; color: var(--muted); }
.cart-item-remove { background: none; border: none; font-size: 10px; letter-spacing: 1px; text-decoration: underline; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.cart-drawer-foot { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.checkout-btn { width: 100%; background: #000; color: #fff; border: none; padding: 16px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

/* ===== SEARCH MODAL ===== */
.search-modal { position: fixed; top: 0; left: 0; right: 0; background: #fff; z-index: 850; padding: 30px 5%; transform: translateY(-100%); transition: transform .3s ease; border-bottom: 1px solid var(--border); }
.search-modal.open { transform: translateY(0); }
.search-modal-head { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.search-modal input { flex: 1; border: none; border-bottom: 1px solid #000; padding: 10px 0; font-size: 16px; outline: none; font-family: 'Inter', sans-serif; }
.search-modal-head button { background: none; border: none; font-size: 20px; }
.search-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-height: 60vh; overflow-y: auto; }
.search-results a { font-size: 11px; text-transform: uppercase; }
.search-results .image-wrapper { aspect-ratio: 3/4; margin-bottom: 8px; }
@media (max-width: 768px) { .search-results { grid-template-columns: repeat(2, 1fr); } }

/* ===== SIMPLE PAGE ===== */
.simple-page { padding: 100px 5%; max-width: 800px; margin: 0 auto; min-height: 40vh; }
.simple-page h1 { font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 30px; }
.simple-page p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; max-width: 480px; }
.contact-form input, .contact-form textarea { border: none; border-bottom: 1px solid #000; padding: 12px 0; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; }
.contact-form button { align-self: flex-start; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #000; color: #fff; padding: 14px 28px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; z-index: 999; transition: transform .3s ease; }
.toast.show { transform: translateX(-50%) translateY(0); }
