* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main.container {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 50px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo span {
    color: #ff6000;
}

/* Arama Çubuğu */
.search-form-header {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input-header {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.search-input-header:focus {
    border-color: #ff6000;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 96, 0, 0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

/* Kategori Gezintisi */
.category-bar-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.category-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }

.cat-pill {
    padding: 8px 18px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-pill:hover, .cat-pill.active {
    background: #ff6000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 96, 0, 0.25);
}

/* Ürün Grid ve Kartları */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* BÜYÜK VE NET ÜRÜN GÖRSELİ */
.card-img-wrap {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}

.card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.store-badge-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 6px;
}

.store-badge-multiple {
    background: #dcfce7;
    color: #15803d;
}

.price-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: #16a34a;
    letter-spacing: -0.5px;
}

/* Detay Sayfası Tabloları */
.offers-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-top: 16px;
}

.offers-table th, .offers-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.offers-table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
}

.btn-buy {
    display: inline-block;
    padding: 10px 18px;
    background: #ff6000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: #e05500;
}

.meta-pill {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 4px;
}
.pill-shipping-free { background: #dcfce7; color: #15803d; }
.pill-shipping-paid { background: #f1f5f9; color: #64748b; }
.pill-installment { background: #fef3c7; color: #b45309; }

.multi-store-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #166534;
}

.offer-row-best {
    background-color: #f0fdf4 !important;
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 40px;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 30px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    display: block;
    margin-bottom: 6px;
}

.footer-links a {
    color: #38bdf8;
    text-decoration: none;
    margin-left: 16px;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}