/* assets/css/style.css */
:root {
    --primary-color: #2F80ED;
    --primary-hover: #1b65c9;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #e2e8f0;
    --surface-color: #ffffff;
    --text-color: #2b2b2b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-color);
    background-color: var(--light-color);
    font-size: 14px;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Search bar */
.search-container {
    position: relative;
    width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--light-color);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    background: var(--surface-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item a {
    color: var(--text-color);
    display: block;
}

.search-item:hover {
    background: var(--light-color);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--dark-color);
}

.header-nav a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    padding: 0.5rem;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e11d48;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}

/* Layout */
.main-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* Cards & Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: #a0aec0;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.site-footer span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Profile Layout Modules */
.profile-layout { display: flex; gap: 2rem; align-items: flex-start; }
.profile-nav-menu { width: 260px; flex-shrink: 0; background: white; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border-color); }
.profile-content-area { flex: 1; min-width: 0; }
.profile-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: #475569; text-decoration: none; border-radius: 8px; font-weight: 500; transition: all 0.2s; margin-bottom: 0.25rem; }
.profile-nav-link:hover { background: #f8fafc; color: #0f172a; }
.profile-nav-link.active { background: #f1f5f9; color: #0f172a; font-weight: 600; }
.profile-tab { display: none; background: white; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border-color); }
.profile-tab.active { display: block; }
@media (max-width: 768px) {
    .profile-layout { flex-direction: column; }
    .profile-nav-menu { width: 100%; padding: 1rem; }
    .profile-tab { padding: 1.5rem 1rem; }
}