﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --text-color: #333;
    --light-text: #666;
    --background: #f5f5f5;
    --card-background: #fff;
    --header-background: #1a1a1a;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.5;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: var(--header-background);
    color: white;
    padding: 0.5rem; /* padding'i küçülttüm */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.header h1 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem; /* gap'i küçülttüm */
    justify-content: center;
    flex-wrap: nowrap; /* butonların alt alta düşmesini engelledim */
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* iç gap'i küçülttüm */
    padding: 0.35rem 0.75rem; /* padding'i küçülttüm */
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.9rem; /* font boyutunu küçülttüm */
}

    .contact-btn:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
    }

/* Categories Grid */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.category {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .category:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

    .category img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .category:hover img {
        transform: scale(1.05);
    }

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    backdrop-filter: blur(4px);
    font-weight: 500;
    text-align: center;
}

/* Products Grid */
.products-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.product {
    background: var(--card-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

    .product:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
}

.product-content {
    padding: 1rem;
}

.product h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: auto;
    z-index: 1001;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .modal-content img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
    }

.modal-details {
    padding: 1.5rem;
}

    .modal-details h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        color: var(--text-color);
    }

    .modal-details p {
        font-size: 1rem;
        color: var(--light-text);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .modal-details .price {
        font-size: 1.25rem;
        color: var(--primary-color);
        font-weight: 600;
    }

/* Back Button */
.back-to-categories {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 90;
}

    .back-to-categories:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
    }


/* Loader Styles */
.loader {
    position: fixed;
    inset: 0;
    background: var(--header-background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-text {
    display: flex;
    gap: 0.5rem;
}

    .loader-text span {
        color: white;
        font-size: 2rem;
        font-weight: 600;
        animation: fadeInOut 1.5s infinite;
    }

        .loader-text span:nth-child(2) {
            animation-delay: 0.1s;
        }

        .loader-text span:nth-child(3) {
            animation-delay: 0.2s;
        }

        .loader-text span:nth-child(4) {
            animation-delay: 0.3s;
        }

        .loader-text span:nth-child(5) {
            animation-delay: 0.4s;
        }

        .loader-text span:nth-child(6) {
            animation-delay: 0.5s;
        }

        .loader-text span:nth-child(7) {
            animation-delay: 0.6s;
        }

        .loader-text span:nth-child(8) {
            animation-delay: 0.7s;
        }

        .loader-text span:nth-child(9) {
            animation-delay: 0.8s;
        }

        .loader-text span:nth-child(10) {
            animation-delay: 0.9s;
        }

        .loader-text span:nth-child(11) {
            animation-delay: 1s;
        }

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Footer Styles */
.footer {
    background: var(--header-background);
    color: white;
    padding: 0.7rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.copyright-link {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-block;
}

    .copyright-link:hover {
        color: var(--primary-color);
        transform: translateY(-2px);
    }

/* Modal Image Styles Update */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    z-index: 1001;
}

.modal-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-image {
    width: 100%;
    position: relative;
    background: #f8f8f8;
}

    .modal-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        display: block;
    }

.modal-details {
    padding: 1.5rem;
    text-align: left;
}

    .modal-details h3 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.75rem;
    }

    .modal-details p {
        font-size: 1rem;
        line-height: 1.6;
        color: #666;
        margin-bottom: 1rem;
    }

    .modal-details .price {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

.modal-close-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

    .modal-close-btn:hover {
        background: var(--secondary-color);
    }

@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
    }

    .modal-details {
        padding: 1rem;
    }

        .modal-details h3 {
            font-size: 1.2rem;
        }

        .modal-details p {
            font-size: 0.95rem;
        }

        .modal-details .price {
            font-size: 1.3rem;
        }
}
/* Product Image Update */
.product-image {
    aspect-ratio: 1;
    width: 100%;
    background-size: cover;
    background-position: center;
}