/* --- 1. ზოგადი სტილები და CSS ცვლადები --- */
:root {
    /* ფერები ლოგოს ფერთა სქემასთან სრულ შესაბამისობაში */
    --primary-text-color: #333333; /* ძირითადი ტექსტის მუქი ფერი */
    --secondary-text-color: #555555; /* მეორადი ტექსტის რუხი ფერი */
    --background-light: #F8F4ED; /* ღია ფონის ფერი (კრემისფერი) */
    --background-dark: #EAE3D2;  /* შედარებით მუქი ფონის ფერი (კრემისფერი) */
    --accent-color: #4CAF50; /* ✅ ახალი აქცენტის ფერი: ლოგოს მწვანე (#4CAF50) */
    --call-to-action-color: #759B40; /* ✅ ახალი CTA ფერი: ლოგოს მწვანესთან შეხამებული, თბილი მუქი მწვანე */
    --white-color: #ffffff; /* თეთრი ფერი */
    --light-gray-border: #dddddd; /* ღია რუხი ბორდერის ფერი */

    --font-heading: 'Lora', serif; /* სათაურების შრიფტი */
    --font-body: 'Montserrat', sans-serif; /* ძირითადი ტექსტის შრიფტი */

    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08); /* ღია ჩრდილი */
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12); /* საშუალო ჩრდილი */
    --transition-speed-fast: 0.2s; /* სწრაფი გადასვლის სიჩქარე */
    --transition-speed-normal: 0.4s; /* ნორმალური გადასვლის სიჩქარე */
}

/* --- DARK MODE STYLES --- */
body.dark-mode {
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #B0B0B0;
    --background-light: #2A2A2A;
    --background-dark: #3A3A3A;
    --white-color: #3A3A3A; /* Modal background, card background */
    --light-gray-border: #555555;
    --shadow-light: 0 4px 15px rgba(255, 255, 255, 0.08);
    --shadow-medium: 0 8px 25px rgba(255, 255, 255, 0.12);
}

body.dark-mode .header {
    background-color: rgba(42, 42, 42, 0.9);
}

body.dark-mode .nav-menu a {
    color: var(--primary-text-color);
}
body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu a.active {
    color: var(--accent-color);
}

body.dark-mode .lang-btn,
body.dark-mode .filter-btn,
body.dark-mode .faq-option-btn,
body.dark-mode .filter-option-checkbox {
    background: var(--background-dark);
    border-color: var(--light-gray-border);
    color: var(--primary-text-color);
}

body.dark-mode .lang-btn.active,
body.dark-mode .lang-btn:hover,
body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover,
body.dark-mode .faq-option-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

body.dark-mode .product-card,
body.dark-mode .modal-content,
body.dark-mode .faq-chat-content,
body.dark-mode .filter-modal-content,
body.dark-mode .faq-answer-bubble,
body.dark-mode .media-item,
body.dark-mode .how-it-works-item,
body.dark-mode .philosophy-item {
    background-color: var(--white-color);
}

body.dark-mode .product-card img,
body.dark-mode .modal-image img {
    filter: brightness(0.9);
}

body.dark-mode .free-delivery-text {
    background-color: var(--background-dark);
    border-color: var(--accent-color);
    color: var(--primary-text-color);
}

body.dark-mode .footer {
    background-color: #202020;
    border-top-color: var(--accent-color);
}

body.dark-mode .footer-col h4 {
    color: var(--primary-text-color);
}
body.dark-mode .footer-col ul a {
    color: var(--secondary-text-color);
}
body.dark-mode .footer-col ul a:hover {
    color: var(--primary-text-color);
}
/* New: Dark mode for social icons */
body.dark-mode .social-links a {
    color: var(--primary-text-color);
    border-color: var(--primary-text-color);
}
body.dark-mode .social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}


body.dark-mode .modal-close {
    color: var(--secondary-text-color);
}
body.dark-mode .modal-close:hover {
    color: var(--primary-text-color);
}
body.dark-mode .filter-option-checkbox input[type="checkbox"]:checked + span::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}


/* ბრაუზერის ნაგულისხმევი სტილების გადატვირთვა */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--secondary-text-color);
    background-color: var(--background-light);
    font-size: 1.1rem;
    line-height: 1.7;
    transition: background-color var(--transition-speed-normal), color var(--transition-speed-normal);
    overflow-x: hidden;
}
body.loading { overflow: hidden; }
body.modal-open { overflow: hidden; }


.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-text-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-align: center; margin-bottom: 40px; }
p { font-size: 1.1rem; line-height: 1.7; }
section { padding: 90px 0; position: relative; overflow: hidden; }

/* --- 2. დამხმარე კლასები --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ღილაკების ზოგადი სტილები */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(145deg, var(--call-to-action-color), #927a61);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all var(--transition-speed-normal) ease;
    border: 2px solid var(--call-to-action-color);
    box-shadow: var(--shadow-light);
    text-align: center;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--white-color);
    color: var(--call-to-action-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: var(--white-color);
}

/* --- 3. Preloader (ჩატვირთვის ანიმაცია) --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--background-light);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader img { height: 120px; animation: pulse 1.8s infinite ease-in-out; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
body.loaded #preloader { opacity: 0; visibility: hidden; }

/* --- 4. Header & Navigation (ზედა ნავიგაცია) --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    position: relative;
}
.logo img { height: 65px; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.03); }

.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-menu li { margin-left: 40px; }
.nav-menu a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-speed-fast) ease;
    font-size: 1.05rem;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 3px; background-color: var(--accent-color);
    transition: width var(--transition-speed-normal) ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-color); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* Desktop Language Switcher and Dark Mode Toggle */
.nav-controls-desktop {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
}
.lang-btn {
    background: none; border: 1px solid var(--primary-text-color);
    color: var(--primary-text-color); padding: 6px 12px;
    border-radius: 4px; cursor: pointer; font-weight: 600;
    transition: all var(--transition-speed-fast) ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}
.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.2s ease;
    pointer-events: none;
}
.lang-btn:focus-visible::before {
    box-shadow: 0 0 0 2px var(--accent-color);
    outline: none;
}

.lang-btn.active, .lang-btn:hover { background: var(--accent-color); color: var(--white-color); border-color: var(--accent-color); }

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--primary-text-color);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color var(--transition-speed-fast) ease;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark-mode-toggle:hover {
    color: var(--accent-color);
}
.dark-mode-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
body.dark-mode .dark-mode-toggle {
    color: var(--primary-text-color);
}

/* Mobile-specific controls (language switcher & dark mode toggle in navbar) */
.mobile-navbar-controls {
    display: none;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
}
.mobile-navbar-controls .lang-switcher {
    margin-left: 0;
}
.mobile-navbar-controls .dark-mode-toggle {
    font-size: 1.2rem;
}


.hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: var(--primary-text-color);
    z-index: 1001;
    margin-left: auto;
}

/* --- 5. Hero Slider (მისასალმებელი სლაიდერი) --- */
#hero-slider {
    position: relative; width: 100%; height: 100vh; overflow: hidden;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--background-dark);
}
.slider-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    background-attachment: scroll;
    display: flex; justify-content: center; align-items: center;
    text-align: center; color: var(--white-color);
    opacity: 0; transition: opacity 1s ease-in-out;
    filter: brightness(0.7);
}
.slider-slide.active { opacity: 1; }

.slider-content {
    position: relative; z-index: 10; max-width: 900px; padding: 25px;
    transform: translateY(20px); opacity: 0;
    transition: transform 0.8s ease-out 0.4s, opacity 0.8s ease-out 0.4s;
}
.slider-slide.active .slider-content { transform: translateY(0); opacity: 1; }
.slider-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--white-color);
    margin-bottom: 25px; line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}
.slider-content p {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    margin-bottom: 45px;
    font-family: var(--font-body); font-weight: 400;
    max-width: 700px; margin-left: auto; margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Slider Arrows & Dots (სლაიდერის ისრები და წერტილები) */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.25); color: white; border: none;
    padding: 12px 18px; cursor: pointer; z-index: 20;
    font-size: 2rem; border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}
.slider-arrow:hover { background: rgba(0,0,0,0.5); transform: translateY(-50%) scale(1.05); }
.slider-arrow.left { left: 25px; }
.slider-arrow.right { right: 25px; }

.slider-nav-dots {
    position: absolute; bottom: 30px; display: flex; gap: 10px; z-index: 20;
}
.dot {
    width: 13px; height: 13px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%; cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.dot.active, .dot:hover { background: var(--call-to-action-color); transform: scale(1.2); }
.dot.active { width: 25px; border-radius: 6.5px; }

/* --- 6. Product Section (პროდუქციის სექცია) --- */
#all-products { background-color: var(--background-light); }

/* ფილტრაციის ღილაკები */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px; margin-bottom: 50px; flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray-border);
    padding-bottom: 30px;
}
.filter-btn {
    background: var(--white-color); border: 1px solid var(--light-gray-border);
    color: var(--primary-text-color); padding: 10px 22px;
    border-radius: 30px; cursor: pointer; font-weight: 500;
    transition: all var(--transition-speed-fast) ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-light);
}
.filter-btn.active {
    background: var(--accent-color); color: var(--white-color); border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.filter-btn:not(.active):hover {
     border-color: var(--accent-color);
     color: var(--accent-color);
}

/* პროდუქტის ბადე (Grid) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}
.product-card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease, opacity var(--transition-speed-normal) ease;
    display: flex;
    flex-direction: column;
}
.product-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
}
.product-card.d-none { display: none; }

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.product-image-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--light-gray-border);
}
.product-card img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.05); }

.product-info {
    padding: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-text-color);
    line-height: 1.3;
}
.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
}
.product-price del {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-right: 10px;
    text-decoration: line-through;
    font-weight: 400;
}

/* უფასო მიწოდების ტექსტი */
.free-delivery-text {
    text-align: center;
    margin-top: 70px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text-color);
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px dashed var(--accent-color);
}
.free-delivery-text i { color: var(--accent-color); margin-right: 12px; font-size: 1.4em; }

/* --- 7. Product Modal (პროდუქტის დეტალების მოდალური ფანჯარა) --- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--white-color);
    border-radius: 15px;
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    box-shadow: var(--shadow-medium);
    animation: slideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
}
@keyframes slideIn { from { transform: translateY(50px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* სურათის კონტეინერების ზოგადი სტილები */
.modal-image {
    /* NEW: გრადიენტული ფონი ბრენდის ფერებში */
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    /* ან შეგიძლიათ გამოიყენოთ ტექსტურა: */
    /* background-image: url('https://www.transparenttextures.com/patterns/clean-textile.png'); */
    /* background-color: var(--background-dark); */ /* ძველი ფონი, ახლა გრადიენტი ან ტექსტურა გადაფარავს */

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.modal-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    border-radius: 10px;
    /* NEW: object-fit for full coverage - Choose 'contain' to show full image on gradient, or 'cover' to fill completely */
    object-fit: contain; /* Keeping 'contain' to show full image without cropping, on top of the gradient */
    /* If you prefer to crop and fill the space: object-fit: cover; */
}

/* დესკტოპის/პლანშეტის სურათის კონტეინერი (ნაგულისმევად ხილული) */
.modal-image.desktop-image {
    flex: 1;
    min-width: 50%;
    /* NEW: Adjusted padding for image to allow more of the gradient/texture to show */
    padding: 20px; /* Reduced from 30px, to let background show more */
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* მობილური სურათის კონტეინერი (ნაგულისმევად დამალულია) */
.modal-image.mobile-image {
    display: none;
}

.modal-info {
    flex: 1.2; padding: 40px; overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* Enhanced Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}
.modal-close:hover {
    background-color: #d32f2f;
    transform: scale(1.1);
}
body.dark-mode .modal-close {
    background-color: #d32f2f;
}
body.dark-mode .modal-close:hover {
    background-color: #ac2626;
}


.modal-info h2 { font-size: 2.2rem; text-align: left; line-height: 1.2; margin-bottom: 15px; }
.modal-price-display {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 25px;
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray-border);
}
.modal-price-display del {
    font-size: 0.8em;
    color: var(--secondary-text-color);
    margin-right: 10px;
    text-decoration: line-through;
    font-weight: 400;
}
.modal-description {
    margin-bottom: 30px;
    flex-grow: 1;
    white-space: pre-wrap;
    font-size: 1.05rem;
    line-height: 1.7;
}

.order-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 30px;
}
.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}
.order-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}
.order-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-whatsapp { background: #25D366; }
.btn-viber { background: #7360F2; }
.btn-messenger { background: #0084FF; }
.btn-call { background: var(--call-to-action-color); }


/* --- 8. FAQ Section (ხშირად დასმული კითხვების სექცია) --- */
#faq-section { background-color: var(--background-dark); text-align: center;}
#faq-section .btn { margin-top: 30px;}

/* --- 9. FAQ Chat Modal (FAQ ჩატის მოდალური ფანჯარა) --- */
.faq-chat-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); animation: fadeIn 0.3s ease-out;
    padding: 20px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.faq-chat-content {
    background: var(--white-color); border-radius: 15px;
    max-width: 600px; width: 100%; height: 80vh;
    box-shadow: var(--shadow-medium); animation: slideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; position: relative;
    overflow: hidden;
}
@keyframes slideIn { from { transform: translateY(50px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

.faq-chat-header {
    background-color: var(--accent-color); color: var(--white-color);
    padding: 20px; border-radius: 15px 15px 0 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.3rem; font-weight: 600;
    position: relative;
}
.faq-chat-header .modal-close {
    position: static; color: var(--white-color); font-size: 1.8rem;
    background-color: transparent;
    box-shadow: none;
    transition: transform 0.3s, color 0.3s;
}
.faq-chat-header .modal-close:hover {
    color: rgba(255,255,255,0.8);
    transform: rotate(90deg) scale(1.1);
    background-color: transparent;
}

.faq-chat-body {
    flex-grow: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 15px;
    background-color: var(--background-light);
    background-image: url('https://www.transparenttextures.com/patterns/clean-textile.png');
}
.faq-message {
    max-width: 85%; padding: 12px 18px; border-radius: 20px;
    position: relative; line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}
.faq-question-bubble {
    background-color: var(--call-to-action-color); color: var(--white-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
.faq-answer-bubble {
    background-color: var(--white-color); color: var(--primary-text-color);
    align-self: flex-start;
    border: 1px solid var(--light-gray-border);
    border-bottom-left-radius: 5px;
}
.faq-answer-bubble strong {
    color: var(--accent-color);
    font-weight: 700;
}
.faq-answer-bubble a {
    color: var(--call-to-action-color);
    text-decoration: underline;
}

.faq-chat-options {
    padding: 15px 20px; background-color: var(--white-color);
    border-top: 1px solid var(--light-gray-border);
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
}
.faq-option-btn {
    background: var(--background-dark); border: 1px solid var(--light-gray-border);
    color: var(--primary-text-color); padding: 8px 15px;
    border-radius: 20px; cursor: pointer; font-size: 0.85rem;
    transition: all var(--transition-speed-fast) ease;
}
.faq-option-btn:hover { background: var(--accent-color); color: var(--white-color); border-color: var(--accent-color); }

/* --- Filter Modal (ფილტრების მოდალური ფანჯარა) --- */
.filter-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.filter-modal-content {
    background: var(--white-color);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
    animation: slideIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
}

.filter-modal-header {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
}
.filter-modal-header .modal-close {
    position: static;
    color: var(--white-color);
    font-size: 1.8rem;
    background-color: transparent;
    box-shadow: none;
    transition: transform 0.3s, color 0.3s;
}
.filter-modal-header .modal-close:hover {
    color: rgba(255,255,255,0.8);
    transform: rotate(90deg) scale(1.1);
}

.filter-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--background-light);
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.filter-option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--background-dark);
    border: 1px solid var(--light-gray-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: var(--primary-text-color);
    user-select: none;
}

.filter-option-checkbox:hover {
    border-color: var(--accent-color);
    background-color: var(--background-light);
}

.filter-option-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-text-color);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-option-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-option-checkbox input[type="checkbox"]::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white-color);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.filter-option-checkbox input[type="checkbox"]:checked::after {
    display: block;
}

.filter-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray-border);
    background-color: var(--white-color);
    text-align: center;
}
.filter-modal-footer .btn {
    width: 100%;
    max-width: 250px;
}


/* --- 10. Footer (ქვედა კოლონტიტული) --- */
.footer {
    background-color: var(--primary-text-color);
    color: #E0E0E0; padding: 80px 0 25px 0;
    border-top: 5px solid var(--accent-color);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: left; /* Default to left for desktop */
}
.footer-col h4 {
    font-family: var(--font-body);
    color: var(--white-color); font-size: 1.1rem;
    margin-bottom: 25px; position: relative; padding-bottom: 10px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px; background-color: var(--accent-color);
    border-radius: 2px;
}
.footer-col p, .footer-col ul li { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.6;}
.footer-col ul { list-style: none; }
.footer-col ul a { color: #E0E0E0; text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-col ul a:hover { color: var(--white-color); padding-left: 8px; }

/* New: Social Links in Footer */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: flex-start; /* Default to start for desktop */
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    color: #E0E0E0;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}
/* Specific colors for social icons if desired */
.social-links a.facebook:hover { background-color: #3b5998; color: white; border-color: #3b5998;}
.social-links a.whatsapp:hover { background-color: #25D366; color: white; border-color: #25D366;}
.social-links a.viber:hover { background-color: #7360F2; color: white; border-color: #7360F2;}
.social-links a.messenger:hover { background-color: #0084FF; color: white; border-color: #0084FF;}
.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white; border-color: transparent; /* Remove border for gradient */
}


.footer-bottom {
    text-align: center; padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem; color: #B0B0B0;
}

/* --- 11. Back to Top Button (გვერდის თავში ასასვლელი ღილაკი) --- */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent-color); color: white;
    width: 55px; height: 55px; border-radius: 50%;
    border: none; cursor: pointer; z-index: 999;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.7rem; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: var(--shadow-light);
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px) scale(1.05); background-color: #5a7d1e; }


/* --- 12. Responsive Design (ადაპტური დიზაინი) --- */
/* საშუალო ეკრანები (ტაბლეტები, პატარა ლეპტოპები) */
@media (max-width: 992px) {
    .navbar { height: 75px; }
    .logo img { height: 55px; }
    .nav-menu li { margin-left: 25px; }
    .nav-menu a { font-size: 0.95rem; }
    /* Hide desktop nav controls */
    .nav-controls-desktop {
        display: none;
    }
    /* Show mobile navbar controls */
    .mobile-navbar-controls {
        display: flex;
    }
    .hamburger {
        margin-left: 15px;
    }
    h2 { margin-bottom: 30px; }
    section { padding: 70px 0; }

    /* Filter Modal responsive adjustments */
    .filter-modal-content {
        max-width: 90%; /* Make modal slightly wider on tablets */
    }

    /* Product Modal - Responsive adjustments for tablet */
    .modal-content {
        flex-direction: row; /* Keep row direction for tablets */
        max-width: 800px; /* Adjust max-width for tablet landscape */
        max-height: 85vh; /* Adjust max-height for tablet */
    }
    .modal-image.desktop-image {
        display: flex; /* Ensure it's visible on tablets */
        min-width: 45%; /* Adjust width for image on tablet */
        padding: 25px; /* Slightly reduce padding from desktop to fit better */
    }
    .modal-image.mobile-image {
        display: none; /* Hide mobile image on tablet */
    }
    .modal-info {
        padding: 30px; /* Adjust padding for info on tablet */
        align-items: flex-start; /* Align text to start on tablets */
    }
    .modal-info h2,
    .modal-price-display,
    .modal-description {
        text-align: left; /* Align text to left on tablets */
    }
    .order-buttons {
        grid-template-columns: repeat(2, 1fr); /* Two columns for buttons on tablets */
        max-width: none; /* Remove max-width constraint */
        margin-left: 0;
        margin-right: 0;
    }
}

/* პატარა ეკრანები (მობილურები) */
@media (max-width: 768px) {
    .container { padding: 0 15px; } /* გაზრდილი padding მობილურზე */
    .navbar { padding: 0 15px; }
    .hamburger { display: block; }
    .nav-menu {
        flex-direction: column; justify-content: center; align-items: center;
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--background-light);
        transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 25px 0; }
    .nav-menu a { font-size: 1.7rem; }

    /* Hide language switcher and dark mode toggle from main nav-menu on mobile (they are in mobile-navbar-controls now) */
    .nav-menu .lang-switcher,
    .nav-menu .dark-mode-toggle {
        display: none;
    }

    #hero-slider { height: 70vh; }
    .slider-content { padding: 20px; }
    .slider-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 15px; }
    .slider-content p { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 30px; }
    .btn { padding: 12px 25px; font-size: 0.95rem; }
    .slider-arrow { font-size: 1.7rem; padding: 10px 15px; width: 45px; height: 45px; }
    .slider-arrow.left { left: 15px; }
    .slider-arrow.right { right: 15px; }
    .slider-nav-dots { bottom: 20px; }
    .dot { width: 10px; height: 10px; }
    .dot.active { width: 20px; }

    /* Product Modal - Responsive adjustments for mobile (override tablet settings) */
    .modal-content {
        flex-direction: column; /* Stack vertically on mobile */
        max-height: 95vh;
        max-width: 95%; /* Adjust max-width for mobile */
    }
    .modal-image.desktop-image {
        display: none; /* Hide desktop image on mobile */
    }
    .modal-image.mobile-image {
        display: block; /* Show mobile image on mobile */
        position: relative;
        width: 100%;
        padding-bottom: 75%; /* Aspect ratio for mobile image container */
        border-radius: 15px 15px 0 0;
        background-color: var(--background-dark);
    }
    .modal-image.mobile-image img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain; /* Ensure image fits mobile container */
        object-position: center;
        border-radius: 10px;
        padding: 15px;
    }
    .modal-info {
        padding: 25px;
        align-items: center; /* Center content horizontally in modal on mobile */
    }
    .modal-info h2,
    .modal-price-display,
    .modal-description {
        text-align: center; /* Center text in modal on mobile */
    }
    .order-buttons {
        grid-template-columns: 1fr; /* Stack order buttons on mobile */
        max-width: 300px; /* Limit width to make them not too wide */
        margin-left: auto;
        margin-right: auto;
    }
    /* Ensuring section paragraphs wrap nicely */
    section p {
        font-size: 1rem; /* Slightly smaller font for mobile paragraphs */
        line-height: 1.6;
        text-align: center; /* Center align paragraphs in sections on mobile */
        max-width: 90%; /* Limit width for better readability */
        margin-left: auto;
        margin-right: auto;
    }

    /* FAQ Chat Modal - Responsive adjustments */
    .faq-chat-content { max-width: 95%; height: 90vh; }
    .faq-chat-header { font-size: 1.1rem; padding: 15px; }
    .faq-chat-header .modal-close { font-size: 1.5rem; }
    .faq-chat-body { padding: 15px; gap: 10px; }
    .faq-message { padding: 10px 15px; font-size: 0.95rem; }
    .faq-chat-options { padding: 10px 15px; }
    .faq-option-btn { padding: 6px 12px; font-size: 0.75rem; }

    /* Footer - Responsive adjustments */
    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns on mobile */
        text-align: center; /* Center align footer content */
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline for h4 */
    }
    .social-links {
        justify-content: center; /* Center social icons on mobile */
    }
    .free-delivery-text { font-size: 1.1rem; padding: 20px; margin-top: 50px; }
    .free-delivery-text i { font-size: 1.2em; margin-right: 8px; }

}

/* --- New: Media Section styles (Always Carousel) --- */
#media-section .container {
    position: relative; /* For arrows positioning */
}
/* Hide the grid version completely */
/* .media-grid.desktop-media-grid {  ეს სტილი აღარ გვჭირდება, რადგან HTML-დან მოვხსენით ეს DIV
    display: none; 
} */
/* Always show the carousel container */
.media-carousel-container { 
    display: block; /* Ensure it's always block level */
    position: relative; /* For arrows positioning */
    padding: 0 20px; /* Space for arrows */
}
.media-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 20px; /* Space between items */
    padding-bottom: 10px; /* Space for potential scrollbar area */
}
.media-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.media-carousel > .media-item { 
    flex: 0 0 calc(33.33% - 13.33px); /* 3 items per view on large screens */
    scroll-snap-align: start; /* Snap to the start of each item */
}
.carousel-arrows {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px); /* Account for container padding */
    position: absolute;
    top: 50%;
    left: 20px; /* Align with container padding */
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks to pass through to items */
    z-index: 10; /* Ensure arrows are above carousel items */
}
.carousel-arrow {
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: all; /* Make arrows clickable */
    box-shadow: var(--shadow-light);
}
.carousel-arrow:hover {
    background: rgba(0,0,0,0.5);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive adjustments for media carousel */
@media (max-width: 992px) { /* On tablets, show 2 items */
    .media-carousel > .media-item {
        flex: 0 0 calc(50% - 10px); /* 2 items per view */
    }
}

@media (max-width: 768px) { /* On mobiles, show 1 item, adjust width slightly */
    .media-carousel > .media-item { 
        flex: 0 0 calc(90% - 10px); /* 90% width for each item on small screens */
    }
}

@media (max-width: 480px) { /* On very small phones, adjust width slightly more */
    .media-carousel > .media-item {
        flex: 0 0 calc(95% - 10px);
    }
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* ძალიან პატარა ეკრანები (მაგ., ძველი მობილურები) */
@media (max-width: 480px) {
    .filter-buttons {
        gap: 8px;
        padding-bottom: 20px; /* Adjust padding for better spacing */
    }
    .filter-btn {
        padding: 8px 15px; /* Slightly smaller padding for buttons */
        font-size: 0.85rem;
    }
    .filter-options-grid {
        grid-template-columns: 1fr; /* Stack filter options on very small screens */
    }
    .footer-container {
        gap: 20px; /* Reduce gap in footer on very small screens */
    }
    .social-links {
        justify-content: center; /* Center social icons on mobile */
    }
}

/* --- New Sections Styles --- */
/* How It Works Section */
#how-it-works-section {
    background-color: var(--background-dark);
    text-align: center;
}
#how-it-works-section h2 {
    margin-bottom: 50px;
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.how-it-works-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
}
.how-it-works-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.how-it-works-item .icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}
.how-it-works-item h3 {
    font-size: 1.4rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}
.how-it-works-item p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* Our Philosophy Section */
#our-philosophy-section {
    background-color: var(--background-light);
    text-align: center;
}
#our-philosophy-section h2 {
    margin-bottom: 50px;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.philosophy-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
}
.philosophy-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.philosophy-item .icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--call-to-action-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--white-color);
    box-shadow: var(--shadow-light);
}
.philosophy-item h3 {
    font-size: 1.4rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}
.philosophy-item p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* Media Section - Specific Styles for Cards */
.media-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content and link apart */
    align-items: center;
    text-align: center;
    transition: transform var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
    height: 400px; /* FIXED HEIGHT FOR ALL CARDS */
    overflow: hidden; /* Hide overflow content if text is too long */
}
.media-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.media-item img {
    max-width: 120px;
    height: auto;
    max-height: 80px; /* Limit image height */
    object-fit: contain;
    margin-bottom: 15px;
}
.media-item h3 {
    font-size: 1.2rem;
    color: var(--primary-text-color);
    margin-bottom: 10px;
    flex-grow: 0; /* Prevent title from growing excessively */
    flex-shrink: 0; /* Prevent title from shrinking too much */
    min-height: 3em; /* Ensure at least 2 lines for title */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.media-item p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Limit description to 5 lines */
    -webkit-box-orient: vertical;
}
.media-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-speed-fast) ease;
    border: 2px solid var(--accent-color);
    flex-shrink: 0; /* Prevent link from shrinking */
}
.media-link:hover {
    background-color: var(--white-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}
.media-link i {
    margin-left: 8px;
}