/* 
 * Theme: Premium Light Tech Store
 * Font: Inter
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Glassmorphism / Clean Card Utilities */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Header Classes extracted from Inline styles */
header.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    flex: 1;
    display: flex;
    align-items: center;
    order: 1;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 4px;
}

.main-nav-container {
    display: flex;
    justify-content: center;
    flex: 2;
    order: 2;
}

.header-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    order: 3;
}

.header-wa-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: nowrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

nav ul li a {
    color: #4b5563; /* Darker grey non-active menu line per user feedback replacing plain blue */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: underline transparent 3px; 
    text-underline-offset: 6px;
    transition: all 0.2s ease;
    padding: 8px 12px;
}

nav ul li a:hover, nav ul li a.active {
    color: #1e3a8a; /* Much darker blue */
    text-decoration: underline solid #1e3a8a 3px; /* Highly visible thicker underline */
    background-color: rgba(30, 58, 138, 0.05);
    border-radius: 6px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f0f9ff 0%, var(--bg-color) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Product Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-img {
    height: 220px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.product-img i {
    font-size: 4.5rem;
    color: #9ca3af;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #374151;
    color: #fff;
}

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

.btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-img {
    height: 480px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
}

.product-detail-img i {
    font-size: 12rem;
    color: #d1d5db;
}

/* Refined Footer */
footer {
    background-color: #111827;
    color: #f3f4f6;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    header.main-header {
        flex-direction: row; /* Keep logo and hamburger inline */
        flex-wrap: wrap;
        padding: 15px 5%;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        order: 3;
    }

    .header-logo {
        order: 1;
    }
    
    .main-nav-container {
        display: none; /* Hide standard nav on mobile */
        flex: 100%;
        margin-top: 15px;
        order: 4;
    }

    .main-nav-container.nav-active {
        display: flex; 
        flex-direction: column;
        align-items: center;
        background: #fff;
        padding: 20px 0;
        border-radius: 8px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        width: 100%;
    }

    .main-nav-container.nav-active ul#main-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
    }

    .header-action {
        display: block !important;
        flex: none;
        margin-right: 15px; /* Add margin between wa button and hamburger menu */
        order: 2;
        margin-left: auto;
    }
    .hero h1 { font-size: 2.5rem; }
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-detail-img {
        height: 300px;
    }
    .product-detail-img i {
        font-size: 8rem;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .product-img {
        height: 180px;
    }
    .product-img i {
        font-size: 3.5rem;
    }
}
