:root {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 130px; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }

.header-link {
    font-weight: 600; color: #fff; font-size: 0.95rem;
    padding: 8px 20px; background: rgba(255, 255, 255, 0.1);
    border-radius: 8px; border: 1px solid var(--border-color);
    transition: background 0.3s;
}
.header-link:hover { background: rgba(255, 255, 255, 0.2); }

/* Hero */
.hero { text-align: center; padding: 80px 20px 60px; }
.hero h1 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle { font-size: 1.25rem; margin-bottom: 1rem; color: #cbd5e1; }
.hero .cta-text { font-size: 1rem; color: var(--text-muted); }

/* Gallery */
.gallery { padding-bottom: 100px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: var(--text-muted); }

.card-image-wrap {
    position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
    background: #1e293b; transition: box-shadow 0.3s ease;
    cursor: zoom-in;
}

.card-image { 
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    filter: hue-rotate(var(--card-hue));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.zoom-hint {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 0.85rem; font-weight: 600;
    padding: 6px 12px; border-radius: 6px; pointer-events: none;
    opacity: 0; transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
}
.card-image-wrap:hover .zoom-hint { opacity: 1; transform: translateY(0); }

/* Card Info - Bottom layout */
.card-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-info h3 { margin-bottom: 12px; font-size: 1.1rem; font-weight: 600; }

/* Colors */
.colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: auto; }
.color-swatch {
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.color-swatch:hover, .color-swatch.active { transform: scale(1.2); border-color: #fff; }

.select-btn {
    display: block; width: 100%; text-align: center; font-family: inherit; font-size: 1rem;
    background: var(--primary-color); color: #fff; border: none;
    padding: 12px 0; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: background 0.3s;
    margin-top: 25px; /* Push to bottom */
}
.select-btn:hover { background: #2563eb; }

/* Modal Form */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
    background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-color);
    padding: 40px; border-radius: 20px; width: 90%; max-width: 450px;
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}
.modal-close:hover { color: #fff; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-group input {
    width: 100%; padding: 12px 16px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color);
    color: #fff; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--primary-color); }

.submit-btn {
    width: 100%; background: var(--primary-color); color: #fff; border: none; font-size: 1rem;
    padding: 14px; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: background 0.3s;
}
.submit-btn:hover { background: #2563eb; }
.submit-btn:disabled { background: #475569; cursor: not-allowed; }

.success-message {
    margin-top: 20px; padding: 15px; background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981; color: #10b981; border-radius: 8px; text-align: center;
}

/* Lightbox Modal */
.lightbox {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox img {
    max-width: 90vw; max-height: 90vh; border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    filter: hue-rotate(var(--lightbox-hue));
    transition: filter 0.4s ease;
}

.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: #fff; font-size: 3rem;
    cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 768px) {
    .header-inner { flex-direction: row; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 40px 20px; }
}

/* PROGRESS BAR */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    position: relative;
    padding: 0 20px;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    flex: 1;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Completed Step */
.progress-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
}
.progress-step.completed .step-label {
    color: #10b981;
}
.progress-step.completed::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #10b981;
    z-index: -1;
}

/* Active Step */
.progress-step.active .step-circle {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
.progress-step.active .step-label {
    color: #fff;
    font-weight: 600;
}

/* Hide line after the last step */
.progress-step:last-child::after {
    display: none;
}

@media (max-width: 600px) {
    .step-label {
        font-size: 0.7rem;
        white-space: normal;
        max-width: 60px;
    }
    .checkout-progress {
        padding: 0 10px;
    }
}
