/* ============================================
   SOLΞ PREMIUM KICKS - MAIN STYLES
   ============================================ */

:root {
    --primary: #1a1a1a;
    --accent: #2ecc71;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background-color: var(--bg); 
    color: var(--primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* ==================== HEADER & NAVIGATION ==================== */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px); 
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(46, 204, 113, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.logo { 
    font-size: 28px; 
    font-weight: 900; 
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    margin-left: 35px; 
    font-weight: 600; 
    font-size: 14px; 
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover { 
    color: var(--accent); 
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://bizweb.dktcdn.net/100/347/092/files/giay-sneaker-la-gi-1.jpg?v=1599104032003');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 5%;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h2 {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.9), 0px 0px 50px rgba(0,0,0,0.5);
}

#searchBar {
    padding: 18px 30px;
    width: 450px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
}

#searchBar:focus {
    background: #ffffff;
    border-color: #2ecc71;
    transform: scale(1.02);
}

/* ==================== CONTAINERS & LAYOUT ==================== */
.container { padding: 60px 8%; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img { width: 100%; height: 250px; object-fit: cover; }

.card h3 {
    padding: 15px 15px 5px;
    font-size: 16px;
    color: var(--primary);
}

.price {
    padding: 5px 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
}

.buy-btn {
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.buy-btn:hover { background: #27ae60; }

/* ==================== FORMS & INPUT ==================== */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.1);
}

.form-submit {
    padding: 14px 30px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.form-submit:hover { background: #27ae60; }

/* ==================== PAGE SECTIONS ==================== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

#home-page { padding: 0; }

#contact-page,
#login-page,
#profile-page,
#cart-page {
    padding: 40px 8%;
}

#contact-page h2,
#login-page h2,
#profile-page h2,
#cart-page h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

#contact-page form,
#login-page form {
    max-width: 500px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ==================== CART MODAL ==================== */
.cart-modal {
    display: none;
    position: fixed;
    right: 0;
    top: 60px;
    width: 350px;
    max-height: calc(100% - 60px);
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-modal h2 { margin-bottom: 15px; }

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.complete-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

/* ==================== PROFILE & LOGIN ==================== */
#profile-info,
#purchase-history {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

#logout-btn { background: #e74c3c !important; margin-top: 12px; }

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #0f0f0f 100%);
    color: #ffffff;
    padding: 60px 8% 20px;
    margin-top: 80px;
    border-top: 2px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 12px; }

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-section ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.3);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    flex: 1;
}

.footer-legal {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--accent); }

@media(max-width: 768px) {
    footer { padding: 40px 6% 20px; margin-top: 50px; }
    .footer-content { gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { gap: 15px; flex-wrap: wrap; }
    #searchBar { width: 100%; }
}
