:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

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

.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img { height: 40px; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    transition: background 0.3s;
    background: transparent;
}

.main-nav a:hover { 
    color: #fff; 
    background: linear-gradient(to bottom, var(--primary-color), #1e40af); 
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); }

.page-header {
    background: var(--bg-light);
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header h1 { font-size: 2rem; margin-bottom: 10px; }

.breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-slider { position: relative; overflow: hidden; }

.slider-container { position: relative; height: 500px; }

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    padding: 20px;
    color: #fff;
    text-align: center;
}

.slide-content h1 { font-size: 2.5rem; margin-bottom: 15px; }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover { background: #1d4ed8; }
.btn-primary { background: var(--primary-color); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

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

.product-card, .news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover, .news-card:hover { transform: translateY(-5px); }

.product-card a, .news-card a { text-decoration: none; color: inherit; }

.product-image, .news-image {
    height: 200px;
    overflow: hidden;
}

.product-image img, .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info, .news-info { padding: 20px; }
.product-info h3, .news-info h3 { margin-bottom: 10px; color: var(--text-color); }

.news-date { color: var(--text-light); font-size: 0.9rem; }

.price { color: var(--primary-color); font-size: 1.2rem; font-weight: bold; }

.no-data { text-align: center; color: var(--text-light); padding: 40px; grid-column: 1 / -1; }

.section-footer { text-align: center; margin-top: 40px; }

.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }

.products-sidebar { background: var(--bg-light); padding: 20px; border-radius: 10px; height: fit-content; }

.category-list { list-style: none; }
.category-list li { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.category-list li:last-child { border-bottom: none; }
.category-list a { color: var(--text-color); text-decoration: none; }
.category-list li.active a, .category-list a:hover { color: var(--primary-color); font-weight: 500; }

.product-detail-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.main-image img { width: 100%; border-radius: 10px; }
.product-info h2 { font-size: 1.8rem; margin-bottom: 15px; }
.product-info .price { font-size: 1.5rem; display: block; margin: 15px 0; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

.category-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.tab-item { padding: 8px 20px; background: var(--bg-light); color: var(--text-color); text-decoration: none; border-radius: 20px; font-size: 0.95rem; transition: all 0.3s; }
.tab-item:hover, .tab-item.active { background: var(--primary-color); color: #fff; }

.products-row { display: flex; gap: 20px; flex-wrap: wrap; }
.product-card { width: calc(20% - 16px); min-width: 180px; text-decoration: none; color: inherit; }
.product-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: var(--bg-light); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-name { font-size: 0.95rem; color: var(--text-color); text-align: center; transition: color 0.3s; }
.product-card:hover .product-name { color: var(--primary-color); }
.page-link { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 5px; text-decoration: none; color: var(--text-color); }
.page-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2, .contact-form-wrapper h2 { margin-bottom: 20px; }

.info-item { margin-bottom: 20px; }
.info-item strong { display: block; margin-bottom: 5px; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.about-preview { background: var(--bg-light); }
.about-content { text-align: center; max-width: 700px; margin: 0 auto; }
.about-content h2 { font-size: 2rem; margin-bottom: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 30px; background: #fff; border-radius: 10px; }
.feature-icon { font-size: 3rem; margin-bottom: 15px; }

.site-footer { background: #1e293b; color: #fff; padding: 60px 0 20px; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3, .footer-section h4 { margin-bottom: 15px; }
.footer-section ul { list-style: none; }
.footer-section a { color: #94a3b8; text-decoration: none; }
.footer-section a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #334155; }

.flash-messages { position: fixed; top: 80px; right: 20px; z-index: 1000; }
.alert { padding: 15px 20px; border-radius: 5px; margin-bottom: 10px; animation: slideIn 0.3s ease; }
.alert-success { background: var(--success-color); color: #fff; }
.alert-danger { background: var(--danger-color); color: #fff; }
.alert-warning { background: var(--warning-color); color: #fff; }
.alert-info { background: var(--primary-color); color: #fff; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; }
.badge-success { background: var(--success-color); color: #fff; }
.badge-warning { background: var(--warning-color); color: #fff; }
.badge-secondary { background: var(--secondary-color); color: #fff; }

.related-products { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-color); }

.quick-links { padding: 40px 0; }
.links-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.link-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; width: 300px; }
.link-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.12); transition: transform 0.3s, box-shadow 0.3s; }
.link-item:hover img { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.18); }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .products-layout { grid-template-columns: 1fr; }
    .product-detail-wrapper { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
