/* v6 PC Design - Clean & Modern 2025 */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Container */
.v6-container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header Styles */
.v6-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Top Bar */
.v6-top-bar {
    background: #f1f5f9;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.v6-top-bar .v6-container {
    display: flex;
    justify-content: space-between;
}
.v6-top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.v6-top-link:hover, .v6-auth-links a:hover {
    color: #4F46E5;
}
.v6-auth-links .highlight {
    color: #4F46E5;
    font-weight: bold;
}

/* Language Switcher */
.v6-lang-switch {
    position: relative;
    cursor: pointer;
}
.v6-lang-switch:hover .lang-dropdown {
    display: block;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 100px;
}
.lang-dropdown li a {
    display: block;
    padding: 8px 15px;
    color: #334155;
}
.lang-dropdown li a:hover {
    background: #f8fafc;
    color: #4F46E5;
}

/* Main Header */
.v6-main-header {
    padding: 25px 0;
}
.v6-main-header .v6-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v6-logo img {
    height: 50px;
    width: auto;
}

/* Search Box */
.v6-search-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}
.v6-search-box {
    display: flex;
    border: 2px solid #4F46E5;
    border-radius: 50px;
    overflow: hidden;
    height: 44px;
}
.v6-search-box input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    outline: none;
}
.v6-search-btn {
    width: 60px;
    background: #4F46E5;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v6-search-btn:hover {
    background: #4338CA;
}
.v6-hot-keywords {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}
.v6-hot-keywords a {
    margin-right: 10px;
}

/* Cart Button */
.v6-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #4F46E5;
    font-weight: 600;
}
.v6-cart-btn:hover {
    background: #f8fafc;
    border-color: #4F46E5;
}
.cart-count {
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Navigation Bar */
.v6-nav-bar {
    border-top: 1px solid #f1f5f9;
}
.v6-nav-bar .v6-container {
    display: flex;
    align-items: center;
}
.v6-category-btn {
    width: 200px;
    background: #4F46E5;
    color: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: bold;
    font-size: 15px;
    gap: 10px;
}
.v6-nav-list {
    display: flex;
    flex: 1;
}
.v6-nav-list li a {
    display: block;
    padding: 0 25px;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    font-weight: 500;
}
.v6-nav-list li a:hover, .v6-nav-list li a.active {
    color: #4F46E5;
}

/* Hero Section Styles (Used in index.index.html) */
.v6-hero-section {
    margin-top: 20px;
    margin-bottom: 40px;
}
.v6-hero-wrapper {
    display: flex;
    gap: 20px;
    height: 400px;
}
.v6-hero-slider {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.v6-hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v6-hero-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.v6-user-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.v6-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #f1f5f9;
}
.v6-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.v6-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.v6-btn-primary {
    background: #4F46E5;
    color: #fff;
}
.v6-btn-outline {
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Product Grid System */
.v6-section {
    margin-bottom: 40px;
}
.v6-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.v6-section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    padding-left: 15px;
}
.v6-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: #4F46E5;
    border-radius: 10px;
}
.v6-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    gap: 20px;
}
.v6-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
}
.v6-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.v6-card-img {
    height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v6-card-img img {
    max-height: 100%;
    width: auto;
}
.v6-card-body {
    padding: 15px;
}
.v6-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v6-card-price {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 10px;
}
.v6-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}
.v6-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.v6-btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background: #4F46E5;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}
.v6-btn-buy:hover {
    background: #4338CA;
}

/* RTL Support */
body.rtl { direction: rtl; }
body.rtl .v6-search-btn { border-radius: 50px 0 0 50px; }
body.rtl .v6-section-title { padding-left: 0; padding-right: 15px; border-left: none; }
body.rtl .v6-section-title::before { left: auto; right: 0; }
body.rtl .lang-dropdown { right: auto; left: 0; }