/* ===========================
   RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff8e1; /* Buğday / sarı ton */
    color: #3a2f1d; /* koyu kahverengi yazı */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   HEADER
=========================== */
header {
    background-color: #f3e6c0; /* Açık buğday */
    color: #3a2f1d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    flex-wrap: wrap;
}

header h1 {
    font-size: 28px;
}

header nav a {
    margin-left: 20px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #e9d7a7; /* biraz koyu buton arka plan */
    transition: background 0.3s;
}

header nav a:hover {
    background-color: #d4c18c;
}

/* ===========================
   CONTAINER & SECTION
=========================== */
.container,
section {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

/* ===========================
   ÜRÜN KARTLARI (INDEX)
=========================== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff9e8;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.card h2 {
    font-size: 20px;
    margin: 15px 0 10px;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* ===========================
   BUTON
=========================== */
.btn {
    display: inline-block;
    background-color: #e9d7a7;
    color: #3a2f1d;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #d4c18c;
}

/* ===========================
   ÜRÜN DETAY SAYFASI
=========================== */
.container h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
}

.container p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ROZET */
.badge {
    display: inline-block;
    background-color: #d4c18c;
    color: #3a2f1d;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* ÜRÜN DETAY TABLOSU */
.details-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    font-size: 14px;
}

.details-table th,
.details-table td {
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #e0d4b2;
}

.details-table th {
    background-color: #f3e6c0;
    color: #3a2f1d;
    width: 220px;
}

.details-table td {
    background-color: #fff9e8;
    color: #3a2f1d;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background-color: #3a2f1d;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media(max-width:768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .container img {
        max-width: 100%;
    }
}
