@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #111111;
    --primary-dark: #000000;
    --primary-light: #e0e0e0;
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #888888;
    --card-bg: #f5f6f8;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --dark-section: #1c1c1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

a:hover {
    color: var(--text-muted);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background-color: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover, nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
    background: var(--card-bg);
    font-size: 0.9rem;
    font-family: inherit;
    width: 250px;
}

.search-bar input:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.search-bar button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--text-main);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.lang-currency select {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    outline: none;
    background: var(--card-bg);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.85rem;
}

.btn-login {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: #e8e8e8;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* --- Hero Banner --- */
.hero {
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
}

.hero-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: -60px;
}

.hero-header h1 {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -3px;
    color: var(--bg-color);
    text-shadow: 0px 10px 30px rgba(0,0,0,0.15);
    line-height: 1;
}

.hero-subtitle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.hero-subtitle-bar h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 450px;
    position: relative;
}

/* --- Sidebar Categories --- */
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-cats li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.sidebar-cats li a:hover, .sidebar-cats li a.active {
    background-color: var(--card-bg);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-cats li a i {
    font-size: 1.1rem;
}

.sidebar-badge {
    margin-left: auto;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* --- Products Section --- */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.5px;
}

.section-title a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    position: relative;
    transition: transform 0.3s;
}

.product-img-wrapper:hover {
    transform: translateY(-5px);
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
    color: var(--primary);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    color: #f5c518;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background-color: white;
    color: var(--primary);
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-add-cart:hover {
    border-color: var(--primary);
}

.btn-buy-now {
    flex: 1;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-buy-now:hover {
    background-color: black;
}

/* --- Dark CTA Section --- */
.dark-cta {
    background-color: var(--dark-section);
    border-radius: var(--border-radius);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 60px;
}

.dark-cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.dark-cta-content p {
    color: #aaa;
    max-width: 400px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 40px;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form button {
    background: var(--dark-section);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-color);
    padding: 60px 0 30px;
    border-top: 1px solid #f0f0f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 700;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Forms & Auth --- */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: var(--bg-color);
}

.form-control:focus {
    border-color: var(--primary);
}

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

/* --- Dashboard --- */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: var(--bg-color);
    border-right: 1px solid #f0f0f0;
    padding: 30px 20px;
}

.sidebar ul li {
    margin-bottom: 5px;
}

.sidebar ul li a {
    display: block;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: var(--card-bg);
    color: var(--primary);
    font-weight: 600;
}

.dashboard-content {
    flex: 1;
    padding: 40px;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-header h1 {
        font-size: 4rem;
    }
    .hero-subtitle-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .dark-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }
}
