/* =========================================
   1. საბაზისო სტილები
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #2d3748;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.section-title h2 {
    margin: 0;
    font-size: 22px;
    color: #1a365d;
}

/* =========================================
   2. HEADER (ზედა მენიუ)
   ========================================= */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #1a365d;
    text-decoration: none;
    letter-spacing: -1px;
}

.main-nav a {
    margin-left: 25px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #3182ce;
}

/* =========================================
   3. SLIDER (სლაიდერი)
   ========================================= */
.slider-container {
    margin-bottom: 40px;
}

.swiper {
    width: 100%;
    height: 400px; /* სლაიდერის სიმაღლე */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   4. მანქანების ბადე (GRID)
   ========================================= */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* =========================================
   5. მანქანის ბარათი (CAR CARD)
   ========================================= */
.car-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.car-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #f4f4f4;
}

.car-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.car-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.car-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.car-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.car-title a:hover {
    color: #3182ce;
}

.spec-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.spec-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.spec-badge.blue { background: #3182ce; }
.spec-badge.green { background: #38a169; }
.spec-badge.orange { background: #dd6b20; }
.spec-badge.red { background: #e53e3e; }

.car-pricing {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #edf2f7;
    padding-top: 12px;
    margin-top: auto;
}

.price-block {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.price-value {
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
}

.current-bid .price-value {
    color: #e53e3e;
}

/* =========================================
   6. FOOTER (ძირი)
   ========================================= */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #fff;
}