/* --- CORE SYSTEM SETTINGS --- */
:root {
    --bg-color: #f6f6f6;
    --text-color: #000;
    --font-family: 'Courier New', Courier, monospace;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 11px;
    letter-spacing: 0.5px;
}

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

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-color);
    z-index: 600;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.nav-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 14px;
}

.nav-links a.active {
    color: #000;
}

.nav-links a.inactive {
    color: #888;
}

.cart-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #000;
    color: #fff;
    font-size: 9px;
    border-radius: 50%;
    padding: 2px 5px;
    display: none;
}

.plus-icon {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

/* --- GRID LAYOUT --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.grid-container.large-items {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-container.large-items {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-container.large-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: height 0.3s ease;
}

.grid-container.large-items .product-image {
    height: 350px;
}

.product-placeholder {
    width: 80%;
    background-color: #000;
    transition: transform 0.2s ease;
}

.product-item:hover .product-placeholder {
    transform: scale(1.02);
}

.product-label {
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 5px;
}

/* --- AUTHENTICATION --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.auth-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 5px;
    font-family: var(--font-family);
    font-size: 11px;
    outline: none;
}

.auth-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-family: var(--font-family);
    font-size: 11px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-form button:hover {
    background: #333;
}

.error-msg {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.admin-header {
    position: absolute;
    left: 20px;
    top: 20px;
    font-weight: bold;
}

/* --- PRODUCT DETAIL PAGE (PDP) --- */
.pdp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
}

.pdp-image-container {
    width: 50vw;
    height: 50vh;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pdp-image-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    color: #000;
}

.carousel-nav.left {
    left: 0;
}

.carousel-nav.right {
    right: 0;
}

.pdp-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    height: 10px;
}

.pdp-dot {
    width: 4px;
    height: 4px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.pdp-dot.active {
    background-color: #000;
}

.pdp-code {
    font-size: 12px;
    margin-bottom: 10px;
}

.pdp-price {
    font-size: 12px;
    margin-bottom: 20px;
}

.pdp-add-btn {
    font-size: 28px;
    background: none;
    color: #000;
    cursor: pointer;
    border: none;
}

.pdp-add-btn:hover {
    opacity: 0.5;
}

.pdp-back-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 20px;
    cursor: pointer;
}

.size-selector {
    display: none;
    gap: 15px;
    justify-content: center;
}

.size-selector.active {
    display: flex;
}

.size-btn {
    font-family: var(--font-family);
    font-size: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.size-btn:hover {
    opacity: 0.5;
}

/* --- FOOTER --- */
.newsletter-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    z-index: 500;
    box-sizing: border-box;
}

/* --- NEWSLETTER MODAL --- */
.newsletter-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 40px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    box-sizing: border-box;
    display: none;
}

.newsletter-modal-content {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.newsletter-modal-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #000;
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.newsletter-modal-input::placeholder {
    color: #999;
}

.newsletter-consent {
    font-size: 9px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.newsletter-modal-btn {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
}

.newsletter-modal-btn:hover {
    background-color: #333;
}

.yeezy-footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
}

.yeezy-footer-links a {
    color: #000;
}
