:root {
    --brand: #2563eb;
    --brand-light: #3b82f6;
    --brand-dark: #1d4ed8;
    --accent: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --purple: #7c3aed;
    --gold: #d4af37;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    font-size: 14px;
}

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

a:hover {
    color: var(--brand-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--gray-900);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon{
    width: 40px;
    height: 40px;
    background: var(--brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-menu{
    display: flex;
    gap: 32px;
}

.nav-link{
    color: var(--gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active{
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.header-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn{
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    border: none;
}

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

.btn-primary:hover{
    background: var(--brand-dark);
}

.btn-outline{
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover{
    border-color: var(--brand);
    color: var(--brand);
}

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

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

.btn-sm{
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg{
    padding: 14px 28px;
    font-size: 16px;
}

.main{
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - 200px);
}

.section-card{
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.section-title{
    font-size: 18px;
    font-weight: 600;
}

.section-body{
    padding: 24px;
}

.section-footer{
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.footer{
    background: var(--gray-900);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.footer-title{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links{
    list-style: none;
}

.footer-links li{
    margin-bottom: 8px;
}

.footer-links a{
    color: var(--gray-400);
    text-decoration: none;
}

.footer-links a:hover{
    color: white;
}

.footer-bottom{
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

.product-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card{
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover{
    border-color: var(--brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-image{
    height: 180px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
}

.product-badge{
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.product-info{
    padding: 16px;
}

.product-title{
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.product-price{
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current{
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}

.price-original{
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

.tech-tag{
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--gray-500);
}

.status-badge{
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending{ background: #fffbeb; color: var(--accent); }
.status-active{ background: #ecfdf5; color: var(--success); }
.status-completed{ background: #eff6ff; color: var(--brand); }
.status-cancelled{ background: var(--gray-100); color: var(--gray-500); }

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

.form-label{
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-input{
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

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

.form-select{
    appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding-right: 36px;
}

.form-textarea{
    min-height: 100px;
    resize: vertical;
}

.alert{
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.alert-success{
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #d1fae5;
}

.alert-danger{
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-warning{
    background: #fffbeb;
    color: var(--accent);
    border: 1px solid #fde68a;
}

.alert-info{
    background: #eff6ff;
    color: var(--brand);
    border: 1px solid #bfdbfe;
}

.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.page-link{
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active{
    border-color: var(--brand);
    color: var(--brand);
}

.page-link.active{
    background: var(--brand);
    color: white;
}

.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal{
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title{
    font-size: 18px;
    font-weight: 600;
}

.modal-close{
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
}

.modal-body{
    padding: 24px;
}

.modal-footer{
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.sidebar{
    width: 240px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 16px 0;
}

.sidebar-menu{
    display: flex;
    flex-direction: column;
}

.menu-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover{
    background: var(--gray-50);
    color: var(--gray-800);
}

.menu-item.active{
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand);
    border-left-color: var(--brand);
}

.menu-icon{
    font-size: 16px;
}

.menu-badge{
    margin-left: auto;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    border-radius: 10px;
}

.tabs{
    display: flex;
    gap: 8px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius);
}

.tab-btn{
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-btn:hover{
    color: var(--gray-800);
}

.tab-btn.active{
    background: white;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.tab-content{
    display: none;
}

.tab-content.active{
    display: block;
}

@media (max-width: 1200px) {
    .product-grid{
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu{
        display: none;
    }
}

@media (max-width: 768px) {
    .product-grid{
        grid-template-columns: 1fr;
    }
    
    .header-main{
        flex-wrap: wrap;
    }
    
    .footer-grid{
        grid-template-columns: 1fr;
    }
}
