/* FEELINGS NOT MUTUAL — site styles
   Look: black panels over the heart-pattern backdrop, Arial, oblique nav, white text, red accent. */

:root {
    --ink: #000;
    --paper: #fff;
    --red: #ff3b30;
    --panel: rgba(0, 0, 0, 0.9);
    --panel-soft: rgba(0, 0, 0, 0.6);
    --line: rgba(255, 255, 255, 0.16);
    --muted: rgba(255, 255, 255, 0.72);
    --max: 1024px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: #000;
    color: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Backdrop lives on a fixed pseudo-element (background-attachment:fixed is unreliable on phones) */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: #fff url("../images/backdrop.jpg") center / cover no-repeat;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; background: #fff; color: #000;
    padding: 8px 12px; z-index: 2000; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- header / nav ---------- */
header { text-align: center; }
.Mainlogo { margin: 0 auto; width: auto; max-height: 150px; }
header a { display: inline-block; }

nav {
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
nav a {
    text-decoration: none;
    font-size: 18px;
    font-style: oblique;
    padding: 6px 10px;
    transition: transform 120ms ease, font-weight 120ms ease;
}
nav a:hover, nav a:focus-visible { font-weight: 700; transform: scale(1.06); }
nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.nav-spacer { margin-left: auto; }
.nav-user, .nav-cart { display: inline-flex; align-items: center; gap: 8px; }
.nav-user svg { width: 18px; height: 18px; }
.nav-user .user-label { font-size: 13px; font-style: normal; }
.cart-counter {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    background: #fff; color: #000; border-radius: 999px;
    font-size: 13px; font-weight: 700; font-style: normal;
}

/* ---------- main ---------- */
main { background: var(--panel); padding: 12px 20px 32px; text-align: center; }
h1, h2 { font-weight: 700; letter-spacing: 0.06em; text-align: center; }
h2 { font-size: 28px; margin: 22px 0 16px; }
h3 { margin: 0; }
.lede { max-width: 640px; margin: 0 auto 20px; color: var(--muted); }

/* ---------- buttons / inputs ---------- */
.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: 1px solid #fff; border-radius: 6px;
    background: #fff; color: #000; font: inherit; font-weight: 700; font-size: 15px;
    letter-spacing: 0.05em; text-decoration: none; cursor: pointer;
    transition: background 140ms, color 140ms, transform 140ms;
}
.btn:hover { background: #000; color: #fff; }
.btn.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.btn-red:hover { background: #fff; border-color: #fff; color: #000; }
.btn.btn-ghost { background: transparent; color: #fff; }
.btn.btn-ghost:hover { background: #fff; color: #000; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

input, select, textarea {
    font: inherit; color: #fff; background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
input::placeholder { color: rgba(255, 255, 255, 0.5); }
label { font-size: 14px; color: var(--muted); }

/* ---------- home ---------- */
.hero { position: relative; margin: 12px -20px 0; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.hero-cta { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); }
.hero-cta .btn.btn { padding: 14px 44px; font-size: 18px; background: rgba(0, 0, 0, 0.85); color: #fff; }
.hero-cta .btn.btn:hover { background: #fff; color: #000; }

.section-title { font-size: 20px; margin: 36px 0 14px; }
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.collection-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 150px; padding: 18px;
    border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
    background: rgba(255, 255, 255, 0.03); transition: transform 160ms, background 160ms;
}
.collection-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.collection-card img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- product grid ---------- */
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 8px 0 12px; }
.product-grid > .product-card { flex: 0 1 300px; }
.product-grid > .empty-note { flex: 1 1 100%; }
.product-card {
    display: flex; flex-direction: column; text-align: left; text-decoration: none;
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
    background: rgba(255, 255, 255, 0.03); transition: transform 160ms, box-shadow 160ms;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.product-card .thumb { aspect-ratio: 1 / 1; background: #b9b9b9; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .meta { padding: 12px 14px 16px; display: grid; gap: 4px; }
.product-card h3 { font-size: 16px; }
.product-card .price { font-weight: 700; }
.product-card .swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); }
.badge {
    position: absolute; top: 10px; left: 10px; background: #000; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 4px;
}
.empty-note { color: var(--muted); padding: 30px 0; }

/* ---------- product page ---------- */
.product-page { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; text-align: left; margin-top: 18px; }
.product-image { background: #b9b9b9; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: 28px; text-align: left; margin: 0 0 6px; letter-spacing: 0.03em; }
.product-info .price { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.product-info .desc { color: var(--muted); margin-bottom: 18px; }
.opt-label { display: block; margin: 16px 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.opt-label strong { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    min-width: 48px; padding: 10px 14px; text-align: center; cursor: pointer;
    border: 1px solid var(--line); border-radius: 6px; background: transparent; color: #fff; font: inherit;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.chip[disabled] { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row input { width: 76px; }
.form-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; }
.form-msg.error { color: #ff8a80; }
.fine-print { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- cart ---------- */
.cart-page { text-align: left; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 14px; }
.cart-item img { width: 76px; height: 76px; object-fit: contain; background: #b9b9b9; border-radius: 6px; }
.cart-item .variant { font-size: 13px; color: var(--muted); }
.cart-table input[type="number"] { width: 72px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.link-btn:hover { color: #fff; }
.cart-summary { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-total { font-size: 22px; font-weight: 700; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- lookbook / archive ---------- */
.lookbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.look-item { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #111; cursor: zoom-in; }
.look-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.look-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 13px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.year-box {
    display: flex; align-items: center; justify-content: center; min-height: 150px;
    border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
    font-size: 30px; font-weight: 700; letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.03); transition: transform 160ms, background 160ms;
}
.year-box:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }
.gallery-back { display: inline-block; margin-bottom: 12px; }
.lightbox {
    position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.92); padding: 20px; flex-direction: column; gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; object-fit: contain; }
.lightbox p { margin: 0; color: var(--muted); }
.lightbox button { position: absolute; top: 14px; right: 18px; font-size: 32px; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---------- text pages ---------- */
.prose { max-width: 760px; margin: 0 auto; text-align: left; font-size: 17px; }
.prose p { margin: 0 0 1.1em; }
.prose.center { text-align: center; font-style: oblique; }
.legal { font-size: 15px; line-height: 1.65; }
.legal h3 { margin: 26px 0 8px; font-size: 17px; }
.legal ul { padding-left: 22px; }
.legal p { text-align: justify; hyphens: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; text-align: left; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\25BE"; transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- account ---------- */
.card { max-width: 440px; margin: 20px auto; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.card .btn { width: 100%; margin-top: 12px; }

/* ---------- newsletter + footer ---------- */
.newsletter { background: var(--panel); padding: 28px 20px 8px; text-align: center; border-top: 1px solid var(--line); }
.newsletter h2 { font-size: 18px; margin: 0 0 6px; }
.newsletter p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.newsletter form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.newsletter input[type="email"] { width: min(360px, 100%); }
.newsletter .form-msg { text-align: center; }
.hp { position: absolute; left: -9999px; }

footer { margin-top: auto; background: rgba(0, 0, 0, 0.9); text-align: center; padding: 16px 12px 22px; }
footer a { font-size: 14px; padding: 0 6px; }
footer p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- toast ---------- */
.toast-container { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1200; pointer-events: none; }
.toast {
    pointer-events: auto; background: rgba(0, 0, 0, 0.92); color: #fff; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); min-width: 200px; max-width: 320px; font-size: 14px;
    opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .Mainlogo { max-height: 110px; }
    nav { padding: 6px 8px; gap: 0 2px; justify-content: center; }
    nav a { font-size: 15px; padding: 6px 7px; }
    .nav-spacer { margin-left: 0; }
    .nav-user .user-label { display: none; }
    main { padding: 8px 14px 26px; }
    .hero { margin: 10px -14px 0; }
    .collections { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; gap: 18px; }
    .product-grid { gap: 12px; }
    .product-grid > .product-card { flex: 0 1 calc(50% - 6px); }
    .prose { font-size: 16px; }
    .legal p { text-align: left; }

    /* cart table becomes stacked cards */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
    .cart-table td { border: 0; padding: 0; }
    .cart-table td.c-item { grid-column: 1 / -1; }
    .cart-table td.c-price { display: none; }
    .cart-table td.c-sub { text-align: right; font-weight: 700; }
    .cart-table td.c-rm { grid-column: 1 / -1; }
    .cart-summary { flex-direction: column; align-items: stretch; }
    .cart-actions { flex-direction: column; }
    .toast-container { left: 12px; right: 12px; }
    .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
