/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background: #f0f2f5; color: #1e272e; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; width: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
a { text-decoration: none; color: inherit; }

/* Header */
header { background: #1b2631; color: white; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.logo { font-size: 26px; font-weight: 900; text-transform: uppercase; color: white; cursor: pointer; }
.logo span { color: #e74c3c; }
.header-info { display: flex; align-items: center; gap: 20px; }
.phone-link { color: white; font-weight: bold; border: 1.5px solid #e74c3c; padding: 8px 15px; border-radius: 5px; font-size: 14px; transition: 0.3s; }
.phone-link:hover { background: #e74c3c; box-shadow: 0 0 10px rgba(231, 76, 60, 0.4); color: white; }

/* Layout */
.main-layout { display: flex; gap: 30px; margin-top: 30px; margin-bottom: 50px; flex: 1; align-items: flex-start; }
.sidebar { width: 280px; background: white; border-radius: 8px; border: 1px solid #ddd; overflow: hidden; flex-shrink: 0; }
.sidebar h3 { background: #1b2631; color: white; padding: 12px 15px; font-size: 16px; text-transform: uppercase; }
.sidebar ul { list-style: none; }
.sidebar li { border-bottom: 1px solid #eee; transition: 0.2s; }
.sidebar li a { display: block; padding: 10px 15px; color: #333; font-size: 14px; transition: 0.3s; }
.sidebar li:hover { background: #f8f9fa; padding-left: 5px; }
.sidebar li:hover a { color: #e74c3c; font-weight: bold; }
.sidebar li.active { border-left: 4px solid #e74c3c; background: #f8f9fa; }
.sidebar li.active a { color: #e74c3c; font-weight: bold; }

/* Content Areas */
.content { flex: 1; min-width: 0; }
.banner { background: #1b2631; color: white; padding: 45px 35px; border-radius: 8px; margin-bottom: 25px; }
.banner h1 { font-size: 28px; margin-bottom: 8px; }

/* Main Page Grid (index.html) */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 15px; }
.cat-card { background: white; padding: 25px 10px; border-radius: 8px; text-align: center; border: 1px solid #ddd; transition: 0.3s; height: 145px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.cat-card:hover { border-color: #e74c3c; transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cat-card i { font-size: 38px; color: #e74c3c; margin-bottom: 12px; }
.cat-card h4 { font-size: 14px; color: #1b2631; font-weight: 600; line-height: 1.2; }

/* Gallery Header & Buttons */
.gallery-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-left: 5px solid #e74c3c; padding-left: 15px; }
.btn-back { background: #1b2631; color: white; padding: 8px 15px; border-radius: 4px; font-size: 13px; font-weight: bold; transition: 0.3s; display: inline-block; border: none; cursor: pointer; }
.btn-back:hover { background: #e74c3c; transform: scale(1.05); }

/* Gallery Grid (category pages) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-card { background: white; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; transition: 0.3s; cursor: pointer; }
.gallery-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: #e74c3c; }
.gallery-card img { width: 100%; height: 220px; object-fit: cover; display: block; background: #eee; transition: 0.3s; }
.gallery-card:hover img { opacity: 0.9; transform: scale(1.03); }

/* Image Labels */
.p-10 { padding: 10px; text-align: center; font-size: 14px; font-weight: 500; transition: color 0.3s ease; }
.gallery-card:hover .p-10 { color: #e74c3c; }

/* Footer - Single Line */
.footer { background: #1b2631; color: #d2dae2; padding: 25px 0; margin-top: auto; width: 100%; border-top: 1px solid #2c3e50; }
.footer-content { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; font-size: 14px; }
.footer-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-item i { color: #e74c3c; font-size: 16px; }
.footer-item.brand { color: white; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.footer-bottom { text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #2c3e50; font-size: 12px; opacity: 0.5; }

/* Lightbox */
#lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
#lightbox img { max-width: 90%; max-height: 90%; border: 3px solid white; border-radius: 5px; }

@media (max-width: 950px) {
    .main-layout { flex-direction: column; }
    .sidebar { display: none; }
    .footer-content { gap: 15px; flex-direction: column; text-align: center; }
}

/* სოციალური ლინკების კონტეინერი */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ხატულების ზოგადი სტილი */
.social-link {
    color: white;
    font-size: 24px;
    transition: 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Facebook-ის ჰოვერ ეფექტი */
.social-link.fb:hover {
    color: #1877F2;
    transform: scale(1.1);
}

/* Instagram-ის ჰოვერ ეფექტი */
.social-link.ig:hover {
    color: #E1306C;
    transform: scale(1.1);
}

/* მობილურისთვის პატარა შესწორება */
@media (max-width: 600px) {
    .header-info {
        gap: 10px;
    }
    .social-link {
        font-size: 20px;
    }
}