/* Dye Candy - Midnight Canvas Theme */

/* ================================
   CSS VARIABLES - MIDNIGHT CANVAS THEME
================================ */
:root {
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-card: #252525;
    --accent-primary: #D4886F;
    --accent-secondary: #B87A5E;
    --text-primary: #EFEFEF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B6B6B;
    --border: #333333;
}

/* ================================
   GLOBAL RESET & BASE STYLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   STICKY FOOTER FIX
   Ensures footer sticks to bottom of viewport when content is short
================================ */

/* Make body a flex container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content area grows to fill available space */
body > *:not(footer):not(header) {
    flex: 1 0 auto;
}

/* Alternatively, if you have a main wrapper div: */
.main-content,
.container,
.product-detail-container,
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Header stays at top */
header {
    flex-shrink: 0;
}

/* ================================
   HEADER & NAVIGATION
================================ */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Righteous', cursive;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ================================
   MAIN CONTAINER
================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* ================================
   BUTTONS
================================ */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 136, 111, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* ================================
   PRODUCT CARDS
================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.product-image {
    width: 100%;
    height: 320px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ================================
   FOOTER
================================ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .container {
        padding: 40px 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}
