/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;700&display=swap');

/* Genel Stil Resetleri ve Fontlar */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: #444;
    background-color: #fcf5eb;
    /* YENİ ÖNERİLEN ARKA PLAN RENGİ */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: #222;
    margin-bottom: 0.5em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

/* Header ve Navigasyon */
header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 200px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: color 0.3s ease;
    padding: 5px 0;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #007bff;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* YENİ ANASAYFA TASARIM STİLLERİ */
.homepage-layout {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    height: 650px;
    overflow: hidden;
}

.column-left {
    background-color: #e3f2e8;
    width: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.column-right {
    width: 90%;
    background-color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vertical-text-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vertical-text {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: clamp(1.5em, 3vw, 2.5em);
    font-weight: 600;
    color: #222;
    position: relative;
}

.social-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #555;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff;
}

.main-content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
    /* BOŞLUĞU DOLDURMAK İÇİN GÜNCELLENEN KOD */
}

.promo-box {
    width: calc(33.33% - 14px);
    text-decoration: none;
    color: #222;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.promo-box:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
}

.promo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.promo-beige {
    background-color: #f5e3d7;
}

.promo-pink {
    background-color: #f7d5e4;
}

.promo-blue {
    background-color: #d8e5f2;
}

.promo-green {
    background-color: #e2f7e0;
}

.promo-purple {
    background-color: #e8d7f5;
}

.promo-box h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.promo-images-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
}

.promo-image-group {
    text-align: center;
}

.promo-image-group img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 6px;
}

/* Ürünler Sayfası Stilleri */
#products {
    padding: 50px 0;
    /* Kaydırma boşluğu için eklenen kod */
    scroll-padding-top: 100px;
}

.product-category {
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.category-toggle h2 {
    color: #333;
    font-size: 1.8em;
}

.toggle-icon {
    font-size: 1.5em;
    transition: transform 0.3s ease;
    color: #007bff;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    overflow: hidden;
    max-height: 5000px;
    opacity: 1;
}

.product-gallery.collapsed {
    max-height: 0;
    opacity: 0;
}

.product-item {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #fefefe;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    max-height: none;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 5px;
}

/* Kalemler alt kategorileri için özel stiller */
.kalem-subcategories {
    flex-direction: column;
}

.product-category-sub {
    margin-bottom: 25px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background-color: #fafafa;
}

.product-category-sub h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-top: 0;
}

.product-gallery-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    overflow: hidden;
    max-height: 5000px;
    opacity: 1;
}

.product-gallery-sub.collapsed {
    max-height: 0;
    opacity: 0;
}

/* İletişim Sayfası */
#contact-info {
    padding-top: 50px;
}

.contact-details {
    margin-top: 30px;
    text-align: center;
}

.contact-details h3 {
    color: #007bff;
}

.contact-details p {
    font-size: 1.1em;
}

.contact-form-container {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form-container button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form-container button:hover {
    background: #0056b3;
}

.whatsapp-btn {
    margin-top: 20px;
    text-align: center;
}

.whatsapp-link {
    background-color: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: white;
    font-size: 1em;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}

/* Geri bildirim mesajı stilleri */
#form-message {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lightbox stilleri */
#lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-btn:hover {
    color: #ccc;
}

/* Footer */
footer {
    background: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 40px;
}

/* Mobil Uyumlu Tasarım (Responsive Design) */
@media (max-width: 768px) {
    body {
        background-color: #fff;
        /* Mobil cihazlarda beyaz arka planı korumak daha iyi olabilir. */
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    header nav {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: center;
        transition: all 0.3s ease;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    header nav ul li a {
        font-size: 1.2em;
    }

    .hamburger {
        display: flex;
    }

    .homepage-layout {
        flex-direction: column;
        height: auto;

    }

    .column-left,
    .column-right {
        width: 100%;
        min-height: 200px;
    }

    .column-left {
        padding: 40px 0;
    }

    .vertical-text-container {
        height: auto;
    }

    .vertical-text {
        position: static;
        transform: none;
        font-size: 1em;
        text-align: center;
        white-space: normal;
    }

    .social-icons {
        position: static;
        transform: none;
        margin-top: 20px;
    }

    .main-content-grid {
        flex-direction: column;
    }

    .promo-box {
        width: 100%;
    }

    .promo-images-container {
        flex-direction: row;
    }

    .promo-image-group {
        flex: 1;
        margin: 5px;
    }

    .product-item {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    #hero h1 {
        font-size: 2.5em;
    }

    #hero p {
        font-size: 1.1em;
    }

    .contact-details p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .product-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .promo-images-container {
        flex-direction: column;
    }

    .promo-image-group {
        margin: 10px 0;
    }

    header .logo img {
        height: 100px;
    }

    .contact-form-container {
        padding: 20px;
    }
}