/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg:         #121212;
    --bg-card:    #181614;
    --text:       #f0ede8;
    --text-muted: #6b6762;
    --border:     #2a2825;
    --surface:    #1e1c1a;
    --radius:     2px;
    --font:       "Raleway", sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

html, body { height: 100%; }

img { display: block; }


/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2.5rem;
    border-bottom: 1px solid #e4e2dc;
    height: 56px;
}

.header h1 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    color: #111010;
}

.header h1 a {
    color: inherit;
    text-decoration: none;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header nav a {
    color: #a09e98;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.15s;
}

.header nav a:hover { color: #111010; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111010;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Animate to X when open */
.header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
    .nav-toggle { display: flex; }

    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 0.9rem 1.25rem;
        position: relative;
    }

    .header nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        border-top: 1px solid #e4e2dc;
        padding: 0.5rem 0 0.75rem;
        margin-top: 0.5rem;
    }

    .header.nav-open nav { display: flex; }

    .header nav a {
        padding: 0.6rem 0;
        font-size: 0.8rem;
        width: 100%;
    }
}

.header-banner {
    width: 100%;
    height: 200px;
    background: url('../assets/images/header.jpg') center / cover no-repeat;
}


/* ========== Footer ========== */
.footer {
    border-top: 1px solid #e4e2dc;
    background: #ffffff;
    padding: 2.5rem 2.5rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0;
    flex-direction: column;
    align-items: center;
}

.footer-nav a {
    color: #a09e98;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 0.2rem 0;
    transition: color 0.15s;
}

.footer-nav a:hover { color: #111010; }

.footer-copy {
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8c5bf;
    margin: 0;
}


/* ========== Site Hero (index) ========== */
.site-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 56px);
    border-bottom: 1px solid var(--border);
}

.site-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem 5rem;
    border-right: 1px solid var(--border);
}

.site-hero-accent {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-hero-accent-words {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 0.6rem 1.25rem;
    padding: 3rem 2.5rem;
    overflow: hidden;
}

.site-hero-accent-words span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.45;
    white-space: nowrap;
}

.site-hero-accent-text {
    position: relative;
    z-index: 1;
    font-size: clamp(5rem, 14vw, 18rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    user-select: none;
    white-space: nowrap;
}

.site-hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-hero-eyebrow::after {
    content: '';
    display: block;
    flex: 0 0 48px;
    height: 1px;
    background: var(--border);
}

.site-hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -3px;
    margin: 0 0 3rem;
    color: var(--text);
}

.site-hero-title .prefix {
    display: block;
    font-weight: 300;
    font-size: 0.38em;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.3em;
}


/* ========== Category Tiles (index) ========== */
.categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.category-tile {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    background: var(--surface);
}

.category-tile:first-child {
    border-right: 1px solid var(--border);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.category-tile:hover img {
    transform: scale(1.04);
    opacity: 0.8;
}

.category-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem 2rem;
    background: linear-gradient(to top, rgba(10,9,8,0.65) 0%, transparent 100%);
    color: white;
}

.category-label-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.category-label-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    display: block;
}


/* ========== Button ========== */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
}

.btn--white {
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn--white:hover {
    background: white;
    color: var(--text);
    border-color: white;
}

/* Used inside light-background contexts (modal, cart drawer) */
.btn--dark {
    color: #111010;
    border-color: #111010;
}

.btn--dark:hover {
    background: #111010;
    color: #f5f4f1;
}

.btn--primary {
    padding: 0.75rem 5.25rem;
    font-size: 1.25rem;
}

.btn--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}


/* ========== Page Subheader ========== */
.page-subheader {
    background: #1e1c1a;
    border-bottom: 1px solid var(--border);
    padding: 3rem 2.5rem 2.5rem;
}

.page-subheader-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-subheader-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.page-subheader-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.page-subheader-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.5px;
}


/* ========== Gallery page ========== */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    background: #f5f4f1;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e4e2dc;
}

.gallery-header h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    color: #111010;
}

.gallery-header p {
    color: #a09e98;
    font-size: 0.75rem;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    background: #ffffff;
    border: 1px solid #e4e2dc;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #eeece8;
    transition: opacity 0.2s;
}

.gallery-item:hover img { opacity: 0.88; }

.gallery-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e4e2dc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.gallery-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111010;
}

.gallery-price {
    font-size: 0.85rem;
    color: #a09e98;
    letter-spacing: 1px;
}


/* ========== Filter Tabs ========== */
.filter-tabs {
    display: flex;
    align-items: baseline;
}

.filter-btn {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: #a09e98;
    padding: 0.25rem 0;
    margin: 0 1.5rem 0 0;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s;
}

.filter-btn:hover { color: #111010; }

.filter-btn.active {
    color: #111010;
    border-bottom-color: #111010;
}


/* ========== Cart Toggle ========== */
.cart-toggle {
    background: none;
    border: 1px solid #e4e2dc;
    color: #111010;
    padding: 0.38rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cart-toggle:hover { border-color: #111010; }

.cart-toggle.cart-added {
    background: #111010;
    color: #f5f4f1;
    border-color: #111010;
}

.cart-badge {
    display: inline-block;
    background: #111010;
    color: #f5f4f1;
    border-radius: 10px;
    padding: 0.05rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 0.35rem;
    transition: background 0.15s, color 0.15s;
}

.cart-toggle.cart-added .cart-badge {
    background: #f5f4f1;
    color: #111010;
}


/* ========== Modal ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.8);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(6px);
}

.modal-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1001;
    transition: color 0.15s;
    user-select: none;
    font-weight: 300;
}

.modal-close:hover { color: white; }

.modal-content {
    background: #ffffff;
    border-radius: var(--radius);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-img {
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
    background: #eeece8;
    display: block;
}

.modal-details {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-top: 1px solid #e4e2dc;
}

.modal-details h2 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111010;
}

.modal-details p {
    margin: 0;
    color: #a09e98;
    font-size: 0.95rem;
}

.modal-meta {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a09e98;
    margin-top: 0.1rem;
}

.modal-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #111010 !important;
    margin-top: 0.2rem !important;
    letter-spacing: -0.5px !important;
}

.modal-add-btn {
    margin-top: 0.75rem;
    align-self: flex-start;
}


/* ========== Cart Drawer ========== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 900;
}

.cart-overlay.open { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 92vw;
    background: #ffffff;
    border-left: 1px solid #e4e2dc;
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e4e2dc;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #111010;
}

.cart-drawer-close {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.15s;
    font-weight: 300;
}

.cart-drawer-close:hover { color: var(--text); }

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-empty {
    color: var(--text-muted);
    text-align: center;
    margin-top: 3rem;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e4e2dc;
}

.cart-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #eeece8;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111010;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #a09e98;
    margin-top: 0.15rem;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--border);
    padding: 0.2rem;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}

.cart-item-remove:hover { color: var(--text); }

.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e4e2dc;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #a09e98;
    margin-bottom: 1rem;
}

.cart-total-row strong {
    color: #111010;
    font-weight: 700;
}

.cart-checkout-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.75rem;
}


/* ========== About Page ========== */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem 5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    border-color: var(--text-muted);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.about-card-num {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.25px;
    margin: 0;
    color: var(--text);
}

.about-card-body {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.about-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    background: var(--surface);
    gap: 1rem;
}

.about-contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}


/* ========== Legal Pages ========== */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2.5rem 6rem;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-section h2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section p,
.legal-section ul {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin: 0 0 0.5rem;
    opacity: 0.75;
}

.legal-section ul {
    padding-left: 1.25rem;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

.legal-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.legal-section a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .legal-page { padding: 2.5rem 1.25rem 4rem; }
}


/* ========== Status Pages ========== */
.status-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    min-height: calc(100vh - 56px);
}

.status-box { text-align: center; max-width: 380px; }

.status-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    font-size: 1.1rem;
    border: 1px solid #1e3d20;
    background: #0f1f10;
    color: #4caf50;
    margin: 0 auto 2.5rem;
}

.status-icon--cancel {
    border-color: #3d1a1a;
    background: #1f0f0f;
    color: #e57373;
}

.status-box h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-box p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}


/* ========== Responsive ========== */
@media (max-width: 768px) {
    .site-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .site-hero-text {
        padding: 3.5rem 1.5rem 3rem;
        border-right: none;
    }
    .site-hero-accent {
        display: none;
    }
    .categories { grid-template-columns: 1fr; }
    .category-tile:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .header { padding: 0.9rem 1.25rem; }
    .gallery-container { padding: 2rem 1.25rem; }
    .gallery-header { flex-direction: column; gap: 1rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .about-page { padding: 2.5rem 1.25rem 4rem; }
    .about-contact-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .site-hero-title { letter-spacing: -1px; }
    .site-hero-text { padding: 2.5rem 1.25rem 2rem; }
}
