/* RESET & VARIABLES */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --font-mono: 'IBM Plex Mono', monospace;
    --border-style: 1px solid var(--border-color);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    text-transform: uppercase;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

button {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-mono);
    cursor: pointer;
    text-transform: uppercase;
}

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-color);
    border-bottom: var(--border-style);
}

.header-left, .header-center, .header-right {
    flex: 1;
}

.header-center {
    text-align: center;
}

.header-right {
    text-align: right;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.menu-btn:hover, .header-right a:hover {
    color: #aaaaaa;
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-color);
    border-right: var(--border-style);
    z-index: 1000;
    padding: 5rem 2rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin-bottom: 2rem;
}

.side-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.side-menu a:hover {
    color: #666666;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* HERO BANNER */
.hero-banner {
    padding: 3rem 2rem;
    border-bottom: var(--border-style);
    text-align: center;
}

.hero-banner h1 {
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 400;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    border-bottom: var(--border-style);
    border-right: var(--border-style);
    position: relative;
}

/* Remove right border for last item in row */
.product-card:nth-child(2n) {
    border-right: none;
}
@media (min-width: 1024px) {
    .product-card:nth-child(2n) {
        border-right: var(--border-style);
    }
    .product-card:nth-child(4n) {
        border-right: none;
    }
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #111;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.img-back {
    opacity: 0;
}

.product-card:hover .img-back {
    opacity: 1;
}

.product-card:hover .img-front {
    opacity: 0;
}

.quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-image-container:hover .quick-add {
    transform: translateY(0);
}

.quick-add:hover {
    background-color: #dddddd;
}

.product-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 400;
    max-width: 70%;
}

/* FOOTER */
.main-footer {
    display: grid;
    grid-template-columns: 1fr;
    border-top: var(--border-style);
}

@media (min-width: 768px) {
    .main-footer {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col {
    padding: 2rem;
    border-bottom: var(--border-style);
}

@media (min-width: 768px) {
    .footer-col {
        border-bottom: none;
        border-right: var(--border-style);
    }
    .footer-col:last-child {
        border-right: none;
    }
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.footer-col a:hover {
    color: var(--text-color);
}

.subscribe-box {
    display: flex;
    border: var(--border-style);
}

.subscribe-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0.8rem;
    font-family: var(--font-mono);
    outline: none;
}

.subscribe-box button {
    padding: 0.8rem 1.5rem;
    border-left: var(--border-style);
    background-color: var(--text-color);
    color: var(--bg-color);
    font-weight: 600;
}

.subscribe-box button:hover {
    background-color: #dddddd;
}
