/*
Theme Name: QR Menu Organik
Author: Cline Software
Description: Organik ürünler için QR Menü teması.
Version: 1.0
*/

/* ----------------------------------------------------------------
    [Table of contents]
    1.  Global & Variables
    2.  Typography
    3.  Layout & Container
    4.  Header
    5.  Footer
    6.  Main Content & Sections
    7.  Components (Buttons, Cards, Forms)
    8.  Responsive Design
-----------------------------------------------------------------*/

/* 1. Global & Variables
-----------------------------------------------------------------*/
:root {
    --primary-color: #4CAF50; /* Kurulumda ayarlanacak */
    --secondary-color: #8BC34A;
    --text-color: #333;
    --heading-color: #2c3e50;
    --background-color: #fdfdfd;
    --white-color: #fff;
    --border-color: #eee;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazyload placeholder */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.lazyloaded {
    opacity: 1;
}


/* 2. Typography
-----------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }


/* 3. Layout & Container
-----------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-main {
    padding: 60px 0;
}


/* 4. Header
-----------------------------------------------------------------*/
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--heading-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav .active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}


/* 5. Footer
-----------------------------------------------------------------*/
.site-footer {
    background-color: #2c3e50;
    color: #f4f7f9;
    padding: 60px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.widget-title {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-nav ul, .contact-info {
    list-style: none;
}

.footer-nav a {
    color: #bdc3c7;
}

.footer-nav a:hover {
    color: var(--white-color);
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.social-links a {
    color: #bdc3c7;
    margin-left: 15px;
    font-size: 20px;
}

.social-links a:hover {
    color: var(--white-color);
}


/* 7. Components
-----------------------------------------------------------------*/
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Product Card */
.product-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* 8. Responsive Design
-----------------------------------------------------------------*/
@media (max-width: 768px) {
    .main-nav {
        display: none; /* JS ile açılıp kapanacak */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 15px;
    }
}
