/* Kier / Ahmetoğlu inspired product catalog */
:root {
    --color-primary: #1a4720;
    --color-primary-dark: #0f2d14;
    --color-accent: #c9a227;
    --color-text: #2d3748;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-soft: #f8faf8;
    --color-bg-hero: #f0f7f0;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(26, 71, 32, .08);
    --shadow-hover: 0 16px 48px rgba(26, 71, 32, .12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}
.site-logo img { height: 48px; width: auto; display: block; }
.site-logo span { margin-left: 0.5rem; }
.back-to-website {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.back-to-website:hover {
    background: var(--color-primary);
    color: #fff;
}
.header-search {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.95rem;
    background: var(--color-bg-soft);
}
.header-search input::placeholder { color: var(--color-text-muted); }
.header-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
}
.lang-switch {
    display: flex;
    gap: 0.25rem;
}
.lang-switch a {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    background: transparent;
}
.lang-switch a:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.lang-switch a.active { color: var(--color-primary); background: rgba(26, 71, 32, .1); }

/* Main content */
.main-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }

/* ---------- Ana sayfa (home) ---------- */
.home-hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    background: linear-gradient(180deg, var(--color-bg-hero) 0%, var(--color-bg) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 -2rem 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.hero-tagline {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.hero-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.hero-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.home-intro {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 2rem 2rem 2rem 0;
}
.home-intro-inner {
    max-width: 680px;
    position: relative;
    z-index: 1;
}
.home-intro-text {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}
.home-contact-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.home-contact-details {
    margin: 0;
    font-size: 1rem;
}
.home-contact-link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}
.home-contact-link:hover { text-decoration: underline; }
.home-contact-sep { margin: 0 0.5rem; color: var(--color-text-muted); }
.home-intro-accent {
    position: absolute;
    top: -1rem;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(26, 71, 32, .06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-categories { margin-top: 0.5rem; }
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.home-category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--color-bg);
    position: relative;
}
.home-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.home-category-card-bg {
    position: absolute;
    inset: 0;
    background: var(--card-bg, #2d5a27);
    opacity: 0.92;
    z-index: 0;
}
.home-category-card-content {
    position: relative;
    z-index: 1;
    min-height: 240px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.home-category-card-img {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    max-height: 150px;
    max-width: 52%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.2));
}
.home-category-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
    letter-spacing: 0.01em;
}

/* Diğer sayfalar için page-hero (kategori/ürün) */
.page-hero {
    margin-bottom: 2rem;
    position: relative;
}
.page-hero h1 { margin: 0 0 0.25rem; font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.page-hero .subtitle { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.page-hero .intro { max-width: 720px; color: var(--color-text); margin-bottom: 1rem; }
.page-hero .contact-info { font-size: 0.9rem; color: var(--color-text-muted); }
.page-hero .contact-info a { color: var(--color-primary); }

/* Eski kategori grid (iç sayfalarda kullanılmıyorsa bırakılabilir) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--color-bg);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card-inner {
    position: relative;
    min-height: 220px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.category-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-bg, #2d5a27);
    opacity: 0.85;
    z-index: 0;
}
.category-card img {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    max-height: 140px;
    max-width: 55%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255,255,255,.5);
}

/* Product grid (category page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.product-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card-image {
    aspect-ratio: 1;
    background: var(--color-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.product-card-image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    line-height: 1.3;
}
.product-card-body .specs {
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    flex: 1;
}
.product-card-body .specs p { margin: 0.25rem 0; }
.product-card-actions { margin-top: auto; }
.product-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.product-card-actions a:hover { background: var(--color-primary-dark); transform: translateX(2px); }

/* Breadcrumb */
.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

/* Product detail (single) */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}
.product-detail-image {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: 1rem;
}
.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.product-detail-info h1 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}
.product-detail-info .spec-line { margin-bottom: 0.5rem; font-size: 1rem; }
.product-detail-info .spec-line strong { display: inline-block; min-width: 140px; }
.product-detail-info .ingredients { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }

/* CC seçenekleri (tıklanabilir) */
.cc-options { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.cc-option-btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cc-option-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(26, 71, 32, 0.06);
}
.cc-option-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

/* Ürün galerisi (ana görsel altında) */
.product-gallery-wrap { margin-top: 1.25rem; }
.product-gallery-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.product-gallery-thumbs button {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-soft);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.product-gallery-thumbs button:hover { border-color: var(--color-primary); box-shadow: var(--shadow); }
.product-gallery-thumbs button.active { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }
.product-gallery-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    border: 1px solid rgba(26, 71, 32, 0.08);
}
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.65rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none !important;
    background: #fff;
    border: 1px solid rgba(26, 71, 32, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.pagination-link:hover {
    background: #fff;
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(26, 71, 32, 0.15);
}
.pagination-link.active {
    background: var(--color-primary);
    color: #fff !important;
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(26, 71, 32, 0.3);
    pointer-events: none;
}
.pagination-link.pagination-prev,
.pagination-link.pagination-next {
    min-width: auto;
    padding: 0 1rem;
    font-weight: 600;
}
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 0.35rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.empty-state a { color: var(--color-primary); }

/* Footer */
.site-footer {
    margin-top: 3.5rem;
    padding: 2rem 2rem 2.5rem;
    background: var(--color-bg-soft);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.site-footer a { color: var(--color-primary); }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.scroll-top:hover { opacity: 1; }
.scroll-top svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .main-content { padding: 0 1.25rem 3rem; }
    .home-hero { margin: 0 -1.25rem 1.5rem; padding: 2rem 1.25rem; }
    .home-intro { padding: 1.5rem 0; }
    .home-intro-accent { width: 80px; height: 80px; top: 0; right: -0.5rem; }
    .home-categories-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .home-category-card-content { min-height: 200px; }
    .site-header { padding: 1rem 1.25rem; }
}
