/* Aevoria - Main Stylesheet */

:root { 
    --bg-color: #F5F5F7; 
    --card-bg: #FFFFFF; 
    --text-main: #1D1D1F; 
    --text-secondary: #86868b; 
    --accent: #0071E3; 
    --accent-hover: #0077ED; 
    --footer-bg: #F5F5F7; 
    --border: #d2d2d7;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { 
    font-family: var(--font-stack); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    margin: 0; 
    padding-top: 48px; /* Fixed Header Height */
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    width: 100%; 
    box-sizing: border-box; 
}

/* HEADER */
.site-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 48px; 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    z-index: 1000; 
    padding: 0 max(20px, calc(50% - 600px)); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-weight: 600; 
    font-size: 16px; 
    text-decoration: none; 
    color: var(--text-main); 
    min-width: 100px; 
    display: flex;
    align-items: center;
}

.nav-links { 
    display: flex; 
    justify-content: center; 
    flex-grow: 1; 
    gap: 20px; 
}

.nav-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 12px; 
    margin: 0; 
    opacity: 0.8; 
    transition: opacity 0.2s; 
}
.nav-links a:hover { opacity: 1; }

.header-icons { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    min-width: 100px; 
    justify-content: flex-end; 
}

.icon-btn { 
    color: var(--text-main); 
    opacity: 0.8; 
    text-decoration: none; 
    position: relative; 
    transition: opacity 0.2s;
}
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

.cart-badge { 
    position: absolute; 
    top: -5px; 
    right: -8px; 
    background: var(--accent); 
    color: white; 
    font-size: 10px; 
    font-weight: bold; 
    border-radius: 50%; 
    width: 15px; 
    height: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* GENERAL UI */
.btn-link { 
    color: var(--accent); 
    text-decoration: none; 
    font-size: 14px; 
}

.btn-apple-primary { 
    background: var(--accent); 
    color: white; 
    border: none; 
    border-radius: 980px; 
    padding: 10px 20px; 
    font-size: 15px; 
    cursor: pointer; 
    transition: background 0.3s;
}
.btn-apple-primary:hover { background: var(--accent-hover); }

.input-apple { 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid var(--border); 
    font-size: 16px; 
    width: 100%; 
    box-sizing: border-box; 
    transition: border-color 0.2s; 
}
.input-apple:focus { border-color: var(--accent); outline: none; }

/* GRID SYSTEM */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    padding: 40px 0; 
}

.product-card { 
    background: var(--card-bg); 
    border-radius: 18px; 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
}
.product-card:hover { transform: scale(1.02); }

.product-image-wrapper { 
    width: 100%; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
}
.product-image-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* CHECKOUT SPECIFIC */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; padding: 60px 0; }
.order-summary { background: white; padding: 30px; border-radius: 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

/* SUCCESS PAGE */
.success-page { text-align: center; padding: 100px 20px; flex-grow: 1; }
.success-icon { width: 80px; height: 80px; background: #E6F4EA; color: #1E8E3E; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.success-icon svg { width: 40px; height: 40px; fill: currentColor; }

/* HERO */
.hero-section { background-color: #000; color: white; text-align: center; padding: 80px 20px 0; height: 500px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }

/* NEWSLETTER & FOOTER */
.newsletter-section { background-color: #fff; padding: 80px 20px; text-align: center; margin-top: auto; }
.newsletter-form { display: inline-flex; gap: 10px; max-width: 500px; width: 100%; }

.site-footer { background-color: var(--footer-bg); padding: 50px 20px 30px; font-size: 12px; color: var(--text-secondary); border-top: 1px solid var(--border); margin-top: auto; }
.footer-content { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { color: var(--text-main); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom { max-width: 980px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }

/* MOBILE MENU */
#mobile-menu-overlay { display: none; position: fixed; top: 48px; left: 0; width: 100%; height: 100vh; background: #fff; padding: 20px; z-index: 999; flex-direction: column; }
#mobile-menu-overlay.active { display: flex; }
.mobile-link { font-size: 18px; padding: 15px 0; border-bottom: 1px solid #eee; text-decoration: none; color: #1d1d1f; display: block; }
.mobile-toggle-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: #1d1d1f; margin-left: 10px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header { padding: 0 15px; }
    .nav-links { display: none; }
    .mobile-toggle-btn { display: block; }
    .header-icons { gap: 15px; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    
    .hero-section { height: 400px; padding-top: 60px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
}
@media (max-width: 480px) { 
    .product-grid { grid-template-columns: 1fr; } 
    .footer-content { grid-template-columns: 1fr; } 
}