/* Terabanyo - Sukar benzeri kurumsal tema */
:root {
  --primary: #0d47a1;
  --primary-dark: #002171;
  --secondary: #1976d2;
  --light: #e3f2fd;
  --white: #fff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --dark: #212529;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; flex-wrap: wrap; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo img { max-height: 48px; }
.nav-main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.nav-main a { padding: 0.5rem 0.75rem; color: var(--gray-800); font-weight: 500; }
.nav-main a:hover { color: var(--primary); text-decoration: none; }
.cart-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.75rem; background: var(--light); border-radius: 6px; font-weight: 500; }
.cart-link:hover { background: var(--secondary); color: var(--white); text-decoration: none; }
.cart-count { background: var(--primary); color: var(--white); font-size: 0.75rem; padding: 0.15rem 0.4rem; border-radius: 10px; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .submenu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: 6px; padding: 0.5rem 0; display: none; z-index: 50; }
.nav-dropdown:hover .submenu { display: block; }
.nav-dropdown .submenu a { display: block; padding: 0.5rem 1rem; }

/* Hero / Slider */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: var(--white); padding: 4rem 0; text-align: center; }
.hero h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.hero p { font-size: 1.1rem; opacity: .95; margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .btn { display: inline-block; margin-top: 1rem; padding: 0.6rem 1.5rem; background: var(--white); color: var(--primary); border-radius: 6px; font-weight: 600; }
.hero .btn:hover { text-decoration: none; opacity: .9; }

/* Hero Carousel - yana kaydırmalı slider */
.hero-carousel { position: relative; overflow: hidden; min-height: 380px; touch-action: pan-y pinch-zoom; width: 100%; }
.hero-carousel-track { display: flex; flex-wrap: nowrap; transition: transform 0.4s ease-out; height: 100%; will-change: transform; }
.hero-slide { min-height: 380px; position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-slide-bg--gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.hero-slide-content { position: relative; z-index: 2; width: 100%; color: var(--white); text-align: center; padding: 2rem 1rem; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.hero-slide-content h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.hero-slide-subtitle { font-size: 1.05rem; opacity: .95; margin: 0 auto; max-width: 560px; }
.btn-hero { display: inline-block; margin-top: 1rem; padding: 0.6rem 1.5rem; background: var(--white); color: var(--primary); border-radius: 6px; font-weight: 600; }
.btn-hero:hover { text-decoration: none; opacity: .9; color: var(--primary); }
.hero-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--primary); font-size: 1.5rem; cursor: pointer; line-height: 1; transition: background .2s; }
.hero-carousel-btn:hover { background: var(--white); }
.hero-carousel-prev { left: 1rem; }
.hero-carousel-next { right: 1rem; }
.hero-carousel-dots { position: absolute; bottom: 1rem; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 0.5rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .2s; }
.hero-dot:hover, .hero-dot.active { background: var(--white); }
@media (min-width: 768px) {
  .hero-carousel { min-height: 420px; }
  .hero-slide { min-height: 420px; }
  .hero-slide-content h1 { font-size: 2.25rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--gray-800); }
.section-subtitle { color: var(--gray-600); margin-bottom: 2rem; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.product-card .img-wrap { aspect-ratio: 4/3; background: var(--gray-100); overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1rem; }
.product-card .title { font-weight: 600; margin-bottom: 0.25rem; }
.product-card .price { color: var(--primary); font-weight: 700; }
.product-card .btn { display: inline-block; margin-top: 0.5rem; padding: 0.4rem 0.8rem; font-size: 0.9rem; background: var(--primary); color: var(--white); border-radius: 6px; border: none; cursor: pointer; }
.product-card .btn:hover { text-decoration: none; background: var(--primary-dark); color: var(--white); }

/* Buttons */
.btn { display: inline-block; padding: 0.6rem 1.25rem; border-radius: 6px; font-weight: 500; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* Footer */
.site-footer { background: var(--gray-800); color: var(--gray-200); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: var(--gray-200); }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; font-size: 0.9rem; color: var(--gray-600); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.form-control { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,71,161,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
th { background: var(--gray-100); font-weight: 600; }

/* Utilities */
.text-center { text-align: center; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1rem; }

/* Mobile menu */
@media (max-width: 768px) {
  .nav-main { width: 100%; }
  .nav-dropdown .submenu { position: static; box-shadow: none; display: none; padding-left: 1rem; }
  .nav-dropdown.active .submenu { display: block; }
}
