/* =====================================================
   İş Makina Yedek Parçası - Ana Stylesheet
   Domain: ismakinayedekparcasi.com
   Design: Clean, Professional B2B Industrial
   ===================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #2C2C2C; background: #FAFAF8; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0A5F5F; text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::placeholder { color: #CCCCCC; }

/* --- LAYOUT --- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.site-main { flex: 1; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* --- HEADER --- */
.site-header { position: sticky; top: 0; z-index: 100; background: #FFFFFF; border-bottom: 1px solid #E5E5E5; }
.header-inner { max-width: 1320px; margin: 0 auto; padding: 16px clamp(20px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo:hover { text-decoration: none; }
.logo-icon { width: 38px; height: 38px; border-radius: 6px; background: #36454F; display: flex; align-items: center; justify-content: center; font-family: monospace; font-size: 10px; color: #FFFFFF; text-align: center; line-height: 1.2; flex-shrink: 0; font-weight: 700; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-size: 17px; font-weight: 800; color: #2C2C2C; }
.logo-sub { font-size: 10px; font-weight: 500; color: #0A5F5F; letter-spacing: 0.3px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { color: #2C2C2C; font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.nav-active { color: #36454F; font-weight: 700; text-decoration: none; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: #2C2C2C; font-weight: 600; font-size: 14px; text-decoration: none; }
.header-phone:hover { text-decoration: none; color: #36454F; }
.phone-icon { width: 32px; height: 32px; border-radius: 50%; background: #EEEEEE; display: flex; align-items: center; justify-content: center; color: #36454F; font-size: 15px; }

/* Hamburger */
.hamburger { display: none; width: 40px; height: 40px; border-radius: 4px; border: 1px solid #E5E5E5; background: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; flex-direction: column; gap: 4px; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; background: #2C2C2C; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav { display: none; flex-direction: column; background: #FFFFFF; border-bottom: 1px solid #E5E5E5; padding: 8px 20px 20px; }
.mobile-nav.open { display: flex; }
.mobile-nav-link { color: #2C2C2C; font-size: 15px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid #F0F0F0; text-decoration: none; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link.nav-active { color: #36454F; font-weight: 700; }
.mobile-nav-phone { color: #36454F; font-weight: 700; }

/* --- HERO --- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px); max-width: 1320px; margin: 0 auto; }
.hero-text { flex: 1 1 420px; min-width: 300px; }
.hero-eyebrow { font-size: 13px; font-weight: 700; color: #0A5F5F; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #2C2C2C; line-height: 1.2; margin: 0 0 20px; }
.hero-desc { font-size: 16px; color: #555555; line-height: 1.6; margin: 0 0 32px; max-width: 480px; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-image { flex: 1 1 420px; min-width: 300px; position: relative; }
.hero-image-placeholder { width: 100%; aspect-ratio: 6/4; border-radius: 8px; overflow: hidden; background: #EEEEEE; display: flex; align-items: center; justify-content: center; }
.hero-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 14px 28px; border-radius: 4px; text-decoration: none; font-size: 14px; border: none; cursor: pointer; transition: all 0.2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: #36454F; color: #FFFFFF; }
.btn-primary:hover { background: #2A353D; }
.btn-whatsapp { background: #25D366; color: #FFFFFF; }
.btn-whatsapp:hover { background: #1DA851; }
.btn-outline { background: transparent; color: #36454F; border: 1px solid #36454F; }
.btn-outline:hover { background: #36454F; color: #FFFFFF; }
.btn-link { color: #0A5F5F; font-size: 15px; font-weight: 600; background: none; padding: 0; text-transform: none; letter-spacing: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; text-align: center; }

/* --- SECTIONS --- */
.section { padding: 56px clamp(20px, 4vw, 40px); max-width: 1320px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: 24px; font-weight: 800; color: #36454F; margin: 0; }
.section-link { color: #0A5F5F; font-size: 14px; font-weight: 700; }

/* --- CARDS --- */
.card { background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* Why Us Cards */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card { padding: 24px; }
.why-card:hover { transform: none; }
.why-icon { width: 44px; height: 44px; border-radius: 8px; background: #EEEEEE; display: flex; align-items: center; justify-content: center; color: #36454F; font-size: 20px; margin-bottom: 16px; }
.why-title { font-size: 16px; font-weight: 700; color: #2C2C2C; margin-bottom: 8px; }
.why-desc { font-size: 14px; color: #555555; line-height: 1.6; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product-card:hover { text-decoration: none; }
.product-card-img { width: 100%; aspect-ratio: 1/1; background: #F0F0F0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-stock { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; align-self: flex-start; }
.stok-var { color: #0A5F5F; background: #E8F5F5; }
.stok-siparis { color: #B87333; background: #FFF3E0; }
.stok-yok { color: #CC0000; background: #FFE0E0; }
.product-card-name { font-size: 14px; font-weight: 700; color: #2C2C2C; line-height: 1.3; margin-top: 6px; }
.product-card-name a { color: #2C2C2C; }
.product-card-name a:hover { color: #0A5F5F; text-decoration: none; }
.product-card-meta { font-size: 12px; color: #999999; }
.product-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.product-card-actions .btn { padding: 11px; font-size: 12px; }

/* Category Cards */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.category-card { background: #EEEEEE; border-radius: 6px; padding: 24px 16px; text-align: center; cursor: pointer; text-decoration: none; color: inherit; transition: background 0.2s; display: block; }
.category-card:hover { background: #E0E0E0; text-decoration: none; }
.category-icon { width: 44px; height: 44px; border-radius: 8px; background: #36454F; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 auto 12px; }
.category-name { font-size: 14px; font-weight: 700; color: #2C2C2C; }
.category-count { font-size: 12px; color: #999999; margin-top: 4px; }

/* --- CTA BANNER --- */
.cta-banner { background: #EEEEEE; padding: 56px clamp(20px, 4vw, 40px); text-align: center; }
.cta-banner h2 { font-size: 26px; font-weight: 800; color: #36454F; margin: 0 0 12px; }
.cta-banner p { font-size: 16px; color: #555555; margin: 0 0 28px; }

/* --- BREADCRUMB --- */
.breadcrumb-nav { max-width: 1320px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 40px) 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #999999; }
.breadcrumb-item a { color: #999999; }
.breadcrumb-item a:hover { color: #555555; }
.breadcrumb-item.active { color: #555555; font-weight: 600; }
.breadcrumb-sep { color: #CCCCCC; }

/* --- PRODUCTS PAGE --- */
.products-layout { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 64px; display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.page-heading { max-width: 1320px; margin: 0 auto; padding: 12px clamp(20px, 4vw, 40px) 20px; }
.page-heading h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: #36454F; margin: 0 0 8px; }
.page-heading p { font-size: 14px; color: #555555; margin: 0; max-width: 760px; line-height: 1.6; }

/* Sidebar Filters */
.sidebar { flex: 1 1 240px; min-width: 220px; max-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.filter-box { background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 4px; padding: 18px; }
.filter-box h2, .filter-box label.filter-label { font-size: 13px; font-weight: 700; color: #2C2C2C; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.3px; display: block; }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555555; cursor: pointer; }
.filter-list input[type="checkbox"] { accent-color: #36454F; }
.filter-count { color: #999999; font-size: 12px; margin-left: auto; }
.search-input { width: 100%; box-sizing: border-box; background: #FAFAF8; border: 1px solid #E5E5E5; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: #2C2C2C; transition: border-color 0.2s; }
.search-input:focus { border-color: #36454F; outline: none; }

/* Product List Area */
.products-main { flex: 3 1 520px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 4px; padding: 14px 18px; }
.products-count { font-size: 14px; color: #555555; }
.products-count strong { color: #2C2C2C; }
.sort-select { background: #FAFAF8; border: 1px solid #E5E5E5; border-radius: 4px; padding: 8px 10px; font-size: 13px; color: #2C2C2C; }

/* SEO Text Block */
.seo-text-block { background: #EEEEEE; border-radius: 6px; padding: 28px clamp(20px, 4vw, 32px); max-width: 1320px; margin: 0 auto; }
.seo-text-block h2 { font-size: 16px; font-weight: 800; color: #36454F; margin: 0 0 12px; }
.seo-text-block p { font-size: 14px; color: #555555; line-height: 1.7; margin: 0; }

/* --- PRODUCT DETAIL --- */
.product-detail { max-width: 1320px; margin: 0 auto; padding: 20px clamp(20px, 4vw, 40px) 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.product-gallery { flex: 1 1 380px; min-width: 280px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.product-main-image { width: 100%; aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; background: #F0F0F0; display: flex; align-items: center; justify-content: center; }
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-thumb { aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; border: 1px solid #E5E5E5; cursor: pointer; transition: border-color 0.2s; }
.product-thumb:hover, .product-thumb.active { border-color: #36454F; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { flex: 1 1 360px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.product-info h1 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: #2C2C2C; margin: 0; line-height: 1.25; }
.product-meta-line { font-size: 14px; color: #555555; }
.product-meta-line strong { color: #2C2C2C; }
.product-desc { font-size: 15px; color: #555555; line-height: 1.7; margin: 0; }
.product-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.product-buttons .btn { flex: 1; min-width: 180px; }

/* Specs Table */
.specs-table { border: 1px solid #E5E5E5; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.specs-row { display: flex; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #E5E5E5; }
.specs-row:last-child { border-bottom: none; }
.specs-label { flex: 0 0 150px; color: #999999; }
.specs-value { color: #2C2C2C; font-weight: 600; }

/* Description Block */
.product-description { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 48px; }
.description-box { background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 6px; padding: 28px clamp(20px, 4vw, 32px); }
.description-box h2 { font-size: 18px; font-weight: 800; color: #36454F; margin: 0 0 14px; }
.description-box p { font-size: 14px; color: #555555; line-height: 1.75; margin: 0 0 12px; }
.description-box p:last-child { margin-bottom: 0; }

/* Related Products */
.related-section { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 56px; }
.related-section h2 { font-size: 20px; font-weight: 800; color: #36454F; margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.related-card { background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 4px; padding: 14px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: box-shadow 0.2s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-decoration: none; }
.related-card-img { width: 100%; aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: #F0F0F0; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-name { font-size: 13px; font-weight: 700; color: #2C2C2C; }
.related-card-code { font-size: 12px; color: #999999; }

/* --- NEDEN BİZ PAGE --- */
.neden-header { padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) 24px; max-width: 900px; margin: 0 auto; text-align: center; }
.neden-eyebrow { font-size: 13px; font-weight: 700; color: #0A5F5F; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.neden-header h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: #2C2C2C; line-height: 1.2; margin: 0; }
.neden-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; padding: 32px clamp(20px, 4vw, 40px) 64px; max-width: 1100px; margin: 0 auto; }
.neden-card { padding: 28px; }
.neden-card:hover { transform: none; }
.neden-icon { width: 48px; height: 48px; border-radius: 8px; background: #EEEEEE; display: flex; align-items: center; justify-content: center; color: #36454F; font-size: 22px; margin-bottom: 18px; }
.neden-title { font-size: 18px; font-weight: 700; color: #2C2C2C; margin-bottom: 10px; }
.neden-desc { font-size: 14px; color: #555555; line-height: 1.7; }

/* --- CONTACT PAGE --- */
.contact-section { padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) 72px; max-width: 1320px; margin: 0 auto; }
.contact-section h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: #36454F; text-align: center; margin: 0 0 8px; }
.contact-subtitle { font-size: 16px; color: #555555; text-align: center; margin: 0 0 40px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-form { flex: 1 1 480px; min-width: 300px; background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea { background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 4px; padding: 12px 14px; font-size: 14px; color: #2C2C2C; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #36454F; outline: none; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-info { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #2C2C2C; font-weight: 600; }
.contact-icon { width: 36px; height: 36px; border-radius: 50%; background: #EEEEEE; display: flex; align-items: center; justify-content: center; color: #36454F; flex-shrink: 0; }
.contact-note { margin-top: 8px; font-size: 13px; color: #0A5F5F; font-weight: 700; }

/* --- PAGINATION --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0; flex-wrap: wrap; }
.page-link { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid #E5E5E5; border-radius: 4px; color: #555555; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.page-link:hover { background: #EEEEEE; text-decoration: none; }
.page-link.page-active { background: #36454F; color: #FFFFFF; border-color: #36454F; }
.page-link[rel="prev"], .page-link[rel="next"] { width: auto; padding: 0 12px; }
.page-dots { color: #999999; font-size: 13px; }

/* --- FLASH MESSAGES --- */
.flash-message { padding: 14px 20px; border-radius: 4px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.flash-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.flash-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.flash-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* --- FOOTER --- */
.site-footer { background: #FAFAF8; border-top: 1px solid #E5E5E5; padding: 48px clamp(20px, 4vw, 40px) 24px; }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 24px; }
.footer-logo-text { font-size: 18px; font-weight: 800; color: #2C2C2C; margin-bottom: 8px; }
.footer-desc { font-size: 14px; color: #555555; line-height: 1.6; }
.footer-heading { font-size: 14px; font-weight: 700; color: #2C2C2C; margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: #555555; font-size: 14px; text-decoration: none; }
.footer-link:hover { color: #0A5F5F; }
.footer-contact { font-size: 14px; color: #555555; }
.footer-bottom { padding-top: 20px; border-top: 1px solid #E5E5E5; font-size: 13px; color: #999999; text-align: center; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,211,102,0.4); transition: transform 0.2s, box-shadow 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(37,211,102,0.5); }

/* --- NO IMAGE SVG PLACEHOLDER --- */
.no-image { background: #F0F0F0; display: flex; align-items: center; justify-content: center; color: #CCCCCC; font-size: 12px; font-family: monospace; }

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone .phone-text { display: none; }
  .hamburger { display: flex; }
  
  .hero { gap: 32px; }
  .hero-image { max-width: 100%; }
  
  .sidebar { max-width: 100%; min-width: 100%; }
  .products-layout { flex-direction: column; }
  
  .product-detail { flex-direction: column; }
  .product-gallery { max-width: 100%; }
  
  .contact-grid { flex-direction: column; }
  
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-buttons { flex-direction: column; }
  .product-buttons .btn { min-width: auto; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
