/* ============================================================
   MONALIZA SHOP — Shared Stylesheet (all pages)
   ============================================================ */
:root {
    --bg-color: #050505;
    --text-light: #ffffff;
    --text-dark: #121212;
    --accent-muted: #888888;
    --line: #e5e5e5;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --nav-height: 88px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--text-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: pointer; }

section, footer { scroll-margin-top: var(--nav-height); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.skip-link {
    position: absolute; top: -60px; left: 1rem;
    background: var(--text-dark); color: var(--text-light);
    padding: 0.75rem 1.25rem; z-index: 200;
    font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ Navigation ============ */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; transition: all 0.4s ease;
    color: var(--text-light);
}

/* Inner pages get a light navbar from the start */
nav.nav-solid, nav.scrolled, nav.menu-open {
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    padding: 1.5rem 4rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-links, .nav-icons {
    display: flex; gap: 2rem;
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 600;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

.nav-links a, .nav-icons a { position: relative; padding-bottom: 3px; }
.nav-links a::after, .nav-icons a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1px; background: currentColor; transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-icons a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.menu-toggle {
    display: none; background: none; border: none; color: inherit;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

/* ============ Page shell for inner pages ============ */
.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 4rem) 4rem 6rem;
    min-height: 70vh;
}

.page-head { margin-bottom: 3rem; }
.page-head .eyebrow {
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent-muted); margin-bottom: 0.75rem;
}
.page-head h1 {
    font-size: 3rem; font-weight: 800; letter-spacing: -1px; line-height: 1.05;
    text-transform: uppercase;
}
.page-head p.lede { color: var(--accent-muted); margin-top: 1rem; max-width: 560px; line-height: 1.6; }

/* ============ Buttons ============ */
.btn-brutalist {
    display: inline-block;
    background-color: var(--text-dark); color: var(--text-light);
    padding: 1.1rem 2.75rem;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--text-dark);
}
.btn-brutalist:hover { background-color: transparent; color: var(--text-dark); }

.btn-brutalist.on-dark { background: var(--text-light); color: var(--text-dark); border-color: var(--text-light); }
.btn-brutalist.on-dark:hover { background: transparent; color: var(--text-light); }

.btn-ghost {
    background: none; border: 1px solid var(--text-dark);
    padding: 0.7rem 1.4rem; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    transition: all 0.25s ease;
}
.btn-ghost:hover { background: var(--text-dark); color: var(--text-light); }

/* ============ Hero (home) ============ */
.hero {
    position: relative; height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    text-align: center; background-color: var(--bg-color); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
        url('https://images.unsplash.com/photo-1548036328-c9fa89d128fa?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.1); } }

.hero-content { position: relative; z-index: 10; color: var(--text-light); max-width: 900px; padding: 0 2rem; }
.hero h1 {
    font-size: 5rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 2.5rem; text-shadow: 0 4px 15px rgba(0,0,0,0.6); line-height: 1.1;
}

/* ============ Value proposition (home) ============ */
.value-prop {
    display: flex; justify-content: space-around;
    padding: 6rem 4rem; background-color: var(--text-light); text-align: center;
}
.value-item { flex: 1; padding: 0 2rem; }
.value-item h3 {
    font-size: 1.2rem; margin-bottom: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.value-item p { color: var(--accent-muted); font-size: 1rem; line-height: 1.6; }

/* ============ Collection grid (home) ============ */
.collections {
    padding: 0 4rem 6rem;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 600px 600px; gap: 2rem;
}
.collections-right { grid-column: 2 / 3; grid-row: 1 / 2; display: grid; grid-template-rows: 1fr 1fr; gap: 2rem; }
.collection-block { position: relative; overflow: hidden; background-color: var(--bg-color); cursor: pointer; display: block; }
.block-bg {
    position: absolute; inset: 0;
    background-position: center; background-size: cover;
    transition: transform var(--transition-slow);
}
.bg-bags { background-image: url('https://images.unsplash.com/photo-1590874103328-eac38a683ce7?q=80&w=2076&auto=format&fit=crop'); }
.bg-shoes { background-image: url('https://images.unsplash.com/photo-1549298916-b41d501d3772?q=80&w=2012&auto=format&fit=crop'); }
.bg-watches { background-image: url('https://images.unsplash.com/photo-1523170335258-f5ed11844a49?q=80&w=2080&auto=format&fit=crop'); }
.bg-clothing { background-image: url('https://images.unsplash.com/photo-1445205170230-053b83016050?q=80&w=2071&auto=format&fit=crop'); }
.block-bags { grid-column: 1 / 2; grid-row: 1 / 2; }
.block-clothing { grid-column: 1 / 3; grid-row: 2 / 3; }

.overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.2); transition: background var(--transition-slow);
    display: flex; align-items: center; justify-content: center;
}
.collection-text {
    color: var(--text-light); font-size: 2.5rem; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    opacity: 0; transform: translateY(20px);
    transition: all var(--transition-slow);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.collection-block:hover .block-bg, .collection-block:focus-visible .block-bg { transform: scale(1.08); }
.collection-block:hover .overlay, .collection-block:focus-visible .overlay { background: rgba(0,0,0,0.5); }
.collection-block:hover .collection-text, .collection-block:focus-visible .collection-text { opacity: 1; transform: translateY(0); }

@media (hover: none) {
    .collection-text { opacity: 1; transform: translateY(0); }
    .overlay { background: rgba(0,0,0,0.35); }
}

/* ============ Product grid (shop + search) ============ */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.chip {
    background: none; border: 1px solid var(--line);
    padding: 0.6rem 1.3rem; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    color: var(--accent-muted); transition: all 0.25s ease;
}
.chip:hover { border-color: var(--text-dark); color: var(--text-dark); }
.chip.active { background: var(--text-dark); color: var(--text-light); border-color: var(--text-dark); }

.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.product-card { display: flex; flex-direction: column; }
.product-media {
    position: relative; overflow: hidden; background: #0d0d0d;
    aspect-ratio: 3 / 4;
}
.product-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.product-cat {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(255,255,255,0.92); color: var(--text-dark);
    font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    padding: 0.35rem 0.7rem;
}
.product-info { padding: 1.1rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-name { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-desc { font-size: 0.82rem; color: var(--accent-muted); line-height: 1.5; }
.product-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.9rem; }
.product-price { font-weight: 800; font-size: 1rem; }

.result-count { color: var(--accent-muted); font-size: 0.85rem; margin-bottom: 1.5rem; letter-spacing: 0.5px; }

.empty-state {
    padding: 5rem 2rem; text-align: center; border: 1px solid var(--line);
}
.empty-state h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.empty-state p { color: var(--accent-muted); line-height: 1.6; }

/* ============ Search page ============ */
.search-box {
    display: flex; align-items: center; gap: 1rem;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 0.75rem; margin-bottom: 1rem; max-width: 720px;
}
.search-box input {
    flex: 1; border: none; font-size: 1.6rem; font-weight: 700;
    font-family: var(--font-main); letter-spacing: -0.5px;
    background: transparent; min-width: 0;
}
.search-box input::placeholder { color: #c9c9c9; text-transform: uppercase; letter-spacing: 0; }
.search-box input:focus { outline: none; }
.search-box .clear-btn { background: none; border: none; font-size: 1.4rem; color: var(--accent-muted); display: none; }
.search-box .clear-btn.visible { display: block; }

.popular { margin: 1.5rem 0 3rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.popular span { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-muted); }

/* ============ Cart page ============ */
.cart-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 4rem; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
    display: grid; grid-template-columns: 110px 1fr auto; gap: 1.5rem;
    padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-line img { width: 110px; height: 140px; object-fit: cover; background: #0d0d0d; }
.cart-line-info h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.cart-line-info .cat { color: var(--accent-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 1rem; }
.qty-controls button { background: none; border: none; width: 34px; height: 34px; font-size: 1rem; }
.qty-controls span { min-width: 34px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.remove-btn { background: none; border: none; color: var(--accent-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.75rem; display: block; }
.remove-btn:hover { color: var(--text-dark); text-decoration: underline; }
.cart-line-price { font-weight: 800; text-align: right; }

.summary { border: 1px solid var(--text-dark); padding: 2rem; position: sticky; top: calc(var(--nav-height) + 2rem); }
.summary h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.6rem 0; color: var(--accent-muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 1.25rem; color: var(--text-dark); font-weight: 800; font-size: 1.1rem; }
.summary .btn-brutalist { width: 100%; text-align: center; margin-top: 1.5rem; }
.summary .note { font-size: 0.75rem; color: var(--accent-muted); margin-top: 1rem; line-height: 1.5; }

/* ============ Forms (account, contact, newsletter) ============ */
.form-card { max-width: 480px; border: 1px solid var(--line); padding: 2.5rem; }
.tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tabs button {
    flex: 1; background: none; border: none; padding: 1rem 0;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
    color: var(--accent-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--text-dark); border-bottom-color: var(--text-dark); }

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--line);
    font-family: var(--font-main); font-size: 0.95rem; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--text-dark); outline: none; }
.form-msg { min-height: 1.4em; font-size: 0.85rem; margin-top: 1rem; }
.form-msg.success { color: #1a7f37; }
.form-msg.error { color: #b3261e; }

/* ============ Info page ============ */
.info-section { max-width: 780px; margin-bottom: 4.5rem; }
.info-section h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; font-weight: 800; }
.info-section p, .info-section li { color: #444; line-height: 1.75; font-size: 0.95rem; }
.info-section p + p { margin-top: 1rem; }
.info-section ul { padding-left: 1.25rem; margin-top: 0.75rem; }

details.faq-item { border-bottom: 1px solid var(--line); }
details.faq-item summary {
    padding: 1.25rem 0; cursor: pointer; font-weight: 700;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; }
details[open].faq-item summary::after { content: '\2212'; }
details.faq-item p { padding: 0 0 1.5rem; color: #444; line-height: 1.7; }

/* ============ Footer ============ */
footer { background-color: var(--bg-color); color: var(--text-light); padding: 6rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem; margin-bottom: 4rem; }
.footer-col h4 { margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; font-size: 0.85rem; }
.footer-col ul a { color: var(--accent-muted); transition: color 0.3s; }
.footer-col ul a:hover { color: var(--text-light); }
.footer-note { font-size: 0.85rem; color: #888; margin-bottom: 1rem; line-height: 1.4; }

.newsletter-form { display: flex; border-bottom: 1px solid var(--text-light); max-width: 260px; }
.newsletter-form input {
    flex: 1; background: transparent; border: none; color: var(--text-light);
    font-family: var(--font-main); font-size: 0.85rem; padding: 0.5rem 0; min-width: 0;
}
.newsletter-form input::placeholder { color: var(--accent-muted); }
.newsletter-form button { background: none; border: none; color: var(--text-light); font-size: 1rem; padding: 0.5rem; }
.newsletter-msg { font-size: 0.8rem; margin-top: 0.75rem; min-height: 1.2em; }
.newsletter-msg.success { color: #7fd47f; }
.newsletter-msg.error { color: #e08080; }

.footer-bottom {
    display: flex; justify-content: space-between;
    border-top: 1px solid #222; padding-top: 2rem;
    font-size: 0.8rem; color: var(--accent-muted); flex-wrap: wrap; gap: 0.5rem;
}

/* ============ Toast (add-to-cart feedback) ============ */
.toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translate(-50%, 150%);
    background: var(--text-dark); color: var(--text-light);
    padding: 1rem 2rem; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 300; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .collections { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0 2rem 4rem; }
    .block-bags, .block-clothing { grid-column: 1 / 2; grid-row: auto; height: 460px; }
    .collections-right { grid-column: 1 / 2; grid-row: auto; grid-template-rows: 380px 380px; }
    .hero h1 { font-size: 3.5rem; }
    .value-prop { flex-direction: column; gap: 3rem; padding: 4rem 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cart-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .summary { position: static; }
    .page { padding: calc(var(--nav-height) + 2.5rem) 2rem 4rem; }
}

@media (max-width: 900px) {
    nav, nav.nav-solid, nav.scrolled, nav.menu-open { padding: 1.25rem 1.5rem; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
        background: var(--bg-color); color: var(--text-light);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2.5rem; font-size: 1rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 150;
    }
    .nav-links.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.4); }
    .nav-icons { gap: 1.25rem; font-size: 0.75rem; }
    .nav-icons a:not(.cart-link) { display: none; }
    .close-menu {
        position: absolute; top: 1.5rem; right: 1.5rem;
        background: none; border: none; color: var(--text-light); font-size: 1.5rem;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 901px) {
    .close-menu { display: none; }
    .drawer-only { display: none; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 2.4rem; letter-spacing: 0; }
    .page-head h1 { font-size: 2rem; }
    .btn-brutalist { padding: 1rem 2.25rem; font-size: 0.85rem; }
    .collection-text { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    footer { padding: 4rem 1.5rem 2rem; }
    .logo { font-size: 1.15rem; }
    .product-grid { grid-template-columns: 1fr; }
    .search-box input { font-size: 1.15rem; }
    .cart-line { grid-template-columns: 80px 1fr; }
    .cart-line img { width: 80px; height: 100px; }
    .cart-line-price { grid-column: 2; text-align: left; }
    .form-card { padding: 1.5rem; }
    .page { padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem; }
}
