:root {
    --black: #000000;
    --white: #ffffff;
    --border: 2px solid var(--black);
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* --- Header --- */
header {
    border-bottom: var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.brand {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -3px;
    text-transform: uppercase;
    line-height: 0.9;
}

.year-stamp {
    font-family: var(--font-mono);
    font-weight: bold;
    background: var(--black);
    color: var(--white);
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- Navigation --- */
.nav-home {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 0 20px 5px 20px;
}

.nav-btn {
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.top-nav {
    padding: 20px;
    border-bottom: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link { font-weight: 900; font-size: 1.2rem; text-transform: uppercase; }

/* --- Grid & Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
    flex: 1;
}

.card { border: 1px solid #eee; cursor: pointer; transition: transform 0.2s; }
.card:hover { border: 1px solid var(--black); transform: translateY(-3px); box-shadow: 4px 4px 0px var(--black); }
.img-wrapper { aspect-ratio: 1/1; overflow: hidden; border-bottom: 1px solid var(--black); position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.card-details { padding: 15px; }
.card-title { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 5px; }
.card-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.85rem; color: #555; margin-top: 10px; }
.price { color: var(--black); font-weight: bold; }
.sold-out { text-decoration: line-through; opacity: 0.5; }

/* --- Product Page Specifics --- */
.p-container { display: flex; flex: 1; }
.image-stack { flex: 1.5; border-right: var(--border); background: #f4f4f4; height: calc(100vh - 70px); overflow-y: auto; padding-bottom: 50px; }
.img-box { width: 100%; padding: 40px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #ddd; background: #fff; }
.img-box img { max-width: 90%; max-height: 80vh; object-fit: contain; display: block; }
.info-section { flex: 1; padding: 40px; display: flex; flex-direction: column; height: calc(100vh - 70px); overflow-y: auto; }

h1 { font-size: 3.5rem; line-height: 0.9; text-transform: uppercase; margin-bottom: 30px; letter-spacing: -2px; }
.meta-table { border-top: 1px solid #ccc; font-family: var(--font-mono); margin-bottom: 30px; }
.row { display: flex; justify-content: space-between; border-bottom: 1px solid #ccc; padding: 15px 0; font-size: 0.9rem; }
.price-tag { font-size: 3rem; font-weight: 900; display: block; margin-top: auto; margin-bottom: 20px; }

.action-btn { width: 100%; padding: 20px; font-size: 1.2rem; font-weight: bold; text-transform: uppercase; border: 2px solid var(--black); background: var(--black); color: var(--white); cursor: pointer; transition: 0.2s; margin-bottom: 10px; }
.action-btn:hover { opacity: 0.9; }
.action-btn:disabled { background: #ccc; border-color: #ccc; cursor: default; }

/* --- Footer --- */
footer {
    margin-top: 60px;
    border-top: var(--border);
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--white);
}

.footer-links a { margin-right: 25px; text-decoration: underline; cursor: pointer; }
.footer-links a:hover { background: var(--black); color: var(--white); text-decoration: none; }

/* --- Cart UI --- */
.cart-float { position: fixed; bottom: 30px; right: 30px; background: var(--black); color: var(--white); padding: 15px 25px; font-family: var(--font-mono); font-weight: bold; cursor: pointer; box-shadow: 5px 5px 0px rgba(0,0,0,0.2); z-index: 100; }
.cart-sidebar { position: fixed; top: 0; right: -400px; width: 350px; height: 100vh; background: var(--white); border-left: var(--border); z-index: 200; transition: 0.3s; display: flex; flex-direction: column; padding: 20px; box-shadow: -100px 0 100px rgba(0,0,0,0.1); }
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; border-bottom: var(--border); padding-bottom: 10px; margin-bottom: 20px; font-weight: 900; font-size: 1.5rem; }
.close-cart { cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; font-family: var(--font-mono); font-size: 0.9rem; }
.remove-item { cursor: pointer; font-weight: bold; font-size: 1.2rem; padding-left: 10px; }
.remove-item:hover { color: red; }
.cart-total { border-top: var(--border); padding-top: 20px; margin-top: 20px; font-size: 1.2rem; font-weight: bold; display: flex; justify-content: space-between; }
.checkout-btn { width: 100%; background: var(--black); color: var(--white); border: none; padding: 15px; margin-top: 15px; font-weight: bold; text-transform: uppercase; cursor: pointer; }
.cart-status { font-family: var(--font-mono); font-weight: bold; cursor: pointer; }

/* --- Text Pages (Privacy, Terms, Refund) --- */
.text-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
    width: 100%;
}

.text-container h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    border-bottom: var(--border);
    padding-bottom: 20px;
}

.text-container h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 5px solid var(--black);
    padding-left: 15px;
}

.text-container p, .text-container li {
    font-family: var(--font-mono);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.text-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .brand { font-size: 3rem; }
    .cart-sidebar { width: 100%; right: -100%; }
    .p-container { flex-direction: column; height: auto; }
    .image-stack { height: auto; border-right: none; border-bottom: var(--border); }
    .info-section { height: auto; padding: 20px; }
    h1 { font-size: 2.5rem; }
    .text-container { padding: 30px 20px; }
    .text-container h1 { font-size: 2.5rem; }
}