/*
Theme Name: Kargül Lokum
Theme URI: https://kargul.com.tr
Description: Kargül Lokum için özel tema.
Version: 1.0
Author: Rahmi Atilla Avcı
Text Domain: kargul-lokum
*/

/* ========== GENEL STILLER ========== */
/* ========== GENEL STILLER ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========== STICKY HEADER ========== */
.site-header {
    background: linear-gradient(135deg, #c41e3a 0%, #a01728 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.site-header.scrolled .site-logo img {
    max-height: 50px;
}

.site-header.scrolled .site-title {
    font-size: 1.5rem;
}

.site-header.scrolled .main-navigation a {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.site-title a {
    color: #fff;
}

/* ========== HAMBURGER MENU ========== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== NAVIGATION ========== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

.social-links a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* Mobil sosyal linkler başlangıçta gizli */
.mobile-social {
    display: none !important;
}

/* Desktop sosyal linkler görünür */
.desktop-social {
    display: flex !important;
}

/* ========== ANASAYFA - ÜRÜNLER ========== */
.page-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color, #c41e3a);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.category-btn:hover {
    border-color: var(--primary-color, #c41e3a);
    color: var(--primary-color, #c41e3a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196,30,58,0.2);
}

.category-btn.active {
    background: var(--primary-color, #c41e3a);
    border-color: var(--primary-color, #c41e3a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(196,30,58,0.3);
}

/* 4 SÜTUN GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem 0 3rem;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.product-card.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(196,30,58,0.2);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 1.5rem;
}

.product-category-badge {
    display: inline-block;
    background: var(--primary-color, #c41e3a);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 0.5rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.2rem;
}

/* ========== HAKKIMIZDA SAYFASI ========== */
.about-section {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-section h2 {
    color: var(--primary-color, #c41e3a);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary-color, #8b4513);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========== İLETİŞİM SAYFASI ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color, #c41e3a);
    min-width: 40px;
}

.contact-details h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
    color: #666;
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--primary-color, #c41e3a);
}

.contact-map {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    margin-top: 4rem;
}

.footer-content {
    padding: 3rem 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--primary-color, #c41e3a);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE TASARIM ========== */

/* Tablet - 3 Sütun */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .container {
        max-width: 1100px;
    }
}

/* Tablet - 2 Sütun */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBİL MENÜ - 768px ve altı */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        position: relative;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: linear-gradient(180deg, #c41e3a 0%, #8b1a2d 100%);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 80px 0 30px;
        gap: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation a {
        width: 100%;
        padding: 1.2rem 2rem;
        border-radius: 0;
        font-size: 1.05rem;
        transform: none;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item a {
        background: rgba(255,255,255,0.15);
        padding-left: 2.5rem;
        transform: none;
    }
    
    .mobile-social {
        display: flex;
        width: 100%;
        padding: 2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        justify-content: center;
        gap: 1.5rem;
    }
    
    .mobile-social a {
        width: 48px;
        height: 48px;
        background: rgba(255,255,255,0.2);
    }
    
    .mobile-social a:hover {
        background: rgba(255,255,255,0.35);
        transform: scale(1.1);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Masaüstü sosyal linkler mobilde gizle */
    .header-content > .social-links {
        display: none;
    }
    
    /* Mobil menü içindeki sosyal linkler */
    .mobile-social {
        display: flex !important;
    }
}

/* Mobil - 1 Sütun */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-header.scrolled {
        padding: 0.5rem 0;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    .site-header.scrolled .site-logo img {
        max-height: 45px;
    }
    
    .about-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        padding: 1.5rem 0;
    }
    
    .category-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* ========== ANIMASYONLAR ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }