/* === style.css === */
:root {
    --bg:       #161618;
    --bg2:      #1e1e21;
    --bg3:      #252528;
    --accent:   #d90429;
    --accent2:  #ff2442;
    --text:     #e8e6e1;
    --muted:    #888884;
    --border:   rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; transition: 0.3s ease; }

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    padding-bottom: 90px;
}

a { text-decoration: none; color: inherit; }

/* ──────────────────────────────────────────
   HEADER
────────────────────────────────────────── */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%;
    background-color: #0d0d0f !important;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.logo img { height: 32px; width: auto; display: block; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }

.header-right { display: flex; align-items: center; gap: 20px; }
.auth-links { display: flex; align-items: center; }
.auth-links a { font-size: 13px; font-weight: 600; color: #aaaaaa; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-links a:hover { color: #ffffff; }
.auth-divider { margin: 0 8px; color: #333; }

.header-shop-btn { display: flex; align-items: center; color: #ffffff; }
.header-shop-btn:hover { color: var(--accent); transform: scale(1.1); }
.header-shop-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lang-flags { display: flex; gap: 8px; font-size: 18px; cursor: pointer; user-select: none; }
.lang-flags span { opacity: 0.4; filter: grayscale(100%); transition: 0.3s; }
.lang-flags span.active, .lang-flags span:hover { opacity: 1; filter: none; }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer {
    background-color: #0d0d0f !important;
    border-top: 1px solid var(--border);
    padding: 12px 5%;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
    position: relative; z-index: 10;
}
.footer-copy { color: #666; font-size: 12px; font-weight: 500; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; font-weight: bold; text-transform: uppercase; color: #888; transition: 0.3s; }
.footer-links a:hover { color: #ffffff; }

/* ──────────────────────────────────────────
   DOCK
────────────────────────────────────────── */
#dockWrapper {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.mac-dock {
    display: flex; align-items: center; gap: 15px;
    background: transparent !important;
    border: none; box-shadow: none; backdrop-filter: none;
}
.dock-divider {
    width: 2px; height: 24px; background-color: #444;
    border-radius: 2px; margin: 0 5px; opacity: 0.6;
}
.dock-icon {
    width: 38px; height: 38px;
    background: transparent; border: none; border-radius: 0;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1.5, 0.5, 1); position: relative;
}
.dock-icon svg { width: 24px; height: 24px; stroke: #cccccc; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: 0.3s; }
.dock-icon:hover { transform: scale(1.3) translateY(-6px); }
.dock-icon:hover svg { stroke: var(--accent); }
.dock-icon::after { content: attr(data-tooltip); position: absolute; top: -30px; background: rgba(0,0,0,0.85); color: white; font-size: 11px; padding: 4px 10px; border-radius: 6px; opacity: 0; pointer-events: none; transition: 0.3s; white-space: nowrap; font-weight: 500; }
.dock-icon:hover::after { opacity: 1; top: -38px; }

/* ──────────────────────────────────────────
   AUTH MODAL
────────────────────────────────────────── */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(5px); transition: none !important; }
.modal-content { background-color: #ffffff !important; width: 90%; max-width: 380px; padding: 35px 30px; position: relative; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; color: #666; cursor: pointer; }
.auth-form-container { display: none; }
.auth-form-container h2 { margin-bottom: 25px; text-align: center; font-weight: 500; color: #111; }
.auth-form-group { margin-bottom: 15px; }
.auth-form-group label { display: block; margin-bottom: 5px; color: #666; font-size: 14px; font-weight: 500; }
.auth-form-group input { width: 100%; padding: 12px; background: #f9f9f9; border: 1px solid #ccc; color: #111; outline: none; font-weight: 400; font-family: inherit; font-size: 14px; border-radius: 4px; }
.auth-form-group input:focus { border-color: var(--accent); background: #fff; }
.btn-auth { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; font-weight: bold; font-family: inherit; cursor: pointer; text-transform: uppercase; margin-top: 10px; border-radius: 4px; }
.btn-auth:hover { background-color: #b00320; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: #666; font-weight: 500; }
.auth-switch a { color: var(--accent); font-weight: bold; }

/* ──────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────── */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-bottom: 1px solid var(--border);
}

.hero-left {
    padding: 60px 6% 60px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: var(--accent);
}

.hero-heading {
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.hero-heading em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 13px 30px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-ghost {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: #666; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-right {
    position: relative;
    overflow: hidden;
    background: var(--bg2);
}
.hero-right-img {
    width: 100%; height: 100%;
    background-image: url('images/minigt.webp');
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.hero-right:hover .hero-right-img { transform: scale(1.04); }
.hero-right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22,22,24,0.5) 0%, transparent 60%);
}
.hero-badge {
    position: absolute;
    bottom: 24px; right: 24px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 3px;
}

/* ──────────────────────────────────────────
   TRUST BAR
────────────────────────────────────────── */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 18px 5%;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 28px;
    flex: 1;
    min-width: 170px;
    max-width: 250px;
}
.trust-item svg { flex-shrink: 0; color: var(--accent); }
.trust-label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.trust-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.trust-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ──────────────────────────────────────────
   BRANDS GRID
────────────────────────────────────────── */
.brands-section {
    padding: 52px 7% 60px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    line-height: 1;
}
.section-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.brand-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg2);
    cursor: pointer;
    display: block;
    transition: border-color 0.3s, transform 0.3s;
}
.brand-card:hover {
    border-color: rgba(217,4,41,0.5);
    transform: translateY(-3px);
}
.brand-card-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.brand-card:hover .brand-card-img { transform: scale(1.07); }

.brand-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 14px 12px;
}
.brand-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    text-transform: uppercase;
}

/* ──────────────────────────────────────────
   PROMO STRIP
────────────────────────────────────────── */
.promo-strip {
    margin: 0 7% 56px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.promo-strip::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 8px 0 0 8px;
}
.promo-text-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.promo-text-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.promo-text-title span { color: var(--accent); }
.promo-text-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

/* ──────────────────────────────────────────
   PRODUCT PAGES (shop.html etc.)
────────────────────────────────────────── */
.main-image-container { background: transparent !important; }
.main-image-container img { object-fit: contain !important; max-height: 400px; }
.view-toggles { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 15px; padding: 0 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.view-btn { background: none; border: 1px solid #333; padding: 5px 10px; border-radius: 6px; cursor: pointer; color: #888; font-size: 18px; }
.view-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ──────────────────────────────────────────
   MOBILE
────────────────────────────────────────── */
@media (max-width: 768px) {
    header { flex-direction: row; flex-wrap: nowrap; padding: 10px 4%; gap: 10px; }
    .logo img { height: 22px; }
    .header-right { gap: 12px; }
    .auth-links a { font-size: 11px; }
    .auth-divider { margin: 0 4px; }
    .header-shop-btn svg { width: 20px; height: 20px; }
    .lang-flags { font-size: 16px; gap: 4px; }

    footer { padding: 10px 5%; flex-direction: column; gap: 8px; text-align: center; }
    .footer-links { justify-content: center; gap: 15px; }

    .hero-section { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 40px 6%; }
    .hero-right { height: 220px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 22px; }

    .trust-bar { padding: 12px 4%; }
    .trust-item { min-width: 140px; padding: 8px 14px; }
    .trust-divider { display: none; }

    .brands-section { padding: 36px 5% 44px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    /* 5th brand wraps — hide it or let it wrap */
    .brands-grid .brand-card:nth-child(4),
    .brands-grid .brand-card:nth-child(5) { display: none; }

    .promo-strip { margin: 0 5% 44px; padding: 24px 24px; flex-direction: column; align-items: flex-start; }
    .promo-text-title { font-size: 18px; }

    .mac-dock { gap: 10px; }
    .dock-icon { width: 34px; height: 34px; }
    .dock-icon svg { width: 22px; height: 22px; }
    #dockWrapper { bottom: 15px; }

    /* shop page */
    .products-grid { grid-template-columns: 1fr !important; padding: 10px; }
    .product-card { display: flex !important; flex-direction: row !important; align-items: center; padding: 10px !important; gap: 15px; }
    .product-image { width: 100px !important; height: 100px !important; object-fit: contain !important; background: transparent; }
    .product-info { flex: 1; margin-top: 0 !important; }
    .product-title { font-size: 14px !important; margin-bottom: 5px !important; }
    .action-buttons { display: flex !important; flex-direction: column !important; gap: 8px !important; margin-left: auto !important; margin-top: 0 !important; min-width: 90px; }
    .action-buttons button { padding: 8px !important; font-size: 11px !important; width: 100%; }
    .product-page-container { flex-direction: column !important; padding: 10px !important; }
    .products-grid.grid-view { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .products-grid.grid-view .product-card { flex-direction: column !important; height: auto !important; padding: 10px !important; }
    .products-grid.grid-view .card-left { width: 100% !important; height: 120px !important; }
    .products-grid.grid-view .action-buttons button { padding: 6px !important; font-size: 10px !important; }
}
/* === Modern Hero Section === */
.modern-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 5%;
    min-height: 60vh;
    background: radial-gradient(circle at 80% 50%, rgba(217, 4, 41, 0.15) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(217, 4, 41, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(217, 4, 41, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
}

.text-accent {
    color: var(--accent-color);
}

.hero-content p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4); /* წითელი ნათება */
}

.btn-primary:hover {
    background: #b80323;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: #555;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.floating-car {
    max-width: 100%;
    width: 500px;
    border-radius: 12px;
    /* მანქანის მსუბუქი მოძრაობის ანიმაცია */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* მობილური ვერსიისთვის */
@media (max-width: 768px) {
    .modern-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-visual { margin-top: 40px; }
}
/* =========================================
   პროდუქტის დეტალური გვერდის (product.html) შესწორებები
   ========================================= */

/* 1. უკან დასაბრუნებელი ლინკის/ღილაკის გათეთრება */
.product-page-container a, 
.back-btn, 
.back-link {
    color: #ffffff !important; /* მუქი ლურჯის ნაცვლად იქნება თეთრი */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 20px;
    transition: 0.3s;
}

/* მაუსის მიტანისას გაწითლდება */
.product-page-container a:hover, 
.back-btn:hover, 
.back-link:hover {
    color: #d90429 !important; 
}

/* 2. ფასის გამოჩენა (მკვეთრი წითელი ფერით) */
.product-price, 
.price, 
.product-details h2 {
    color: #d90429 !important; /* შენი საფირმო წითელი ფერი */
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 15px 0 !important;
}

/* 3. პროდუქტის ფოტოს თეთრი ფონი შავ საიტზე */
.product-page-container img,
.product-gallery img,
.main-product-image {
    background-color: #ffffff !important; /* თეთრი ფონი უშუალოდ მანქანის უკან */
    padding: 25px !important; /* სივრცე, რომ მანქანა ჩარჩოს არ მიედოს */
    border-radius: 12px !important; /* მომრგვალებული კუთხეები */
    object-fit: contain !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important; /* ოდნავი ჩრდილი მოცულობისთვის */
}

/* თუ მობილურზეც გინდა, რომ ფოტოებს თეთრი ფონი ჰქონდეთ კატალოგში (shop.html) */
.product-image {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 10px;
}