/*
Theme Name: Aku Pazar Ankara V210
Theme URI: https://akufiyatlariankara.com/
Author: Tekno Guc
Description: Ankara aku satislari icin bagimsiz, katalog ve teklif odakli WordPress/WooCommerce temasi.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ankara-aku-pro
*/

:root {
  --ink: #20262a;
  --muted: #68717a;
  --line: #e1e5e8;
  --paper: #fff;
  --page: #f8f8f5;
  --coal: #20262a;
  --red: #c91f27;
  --yellow: #f0c247;
  --olive: #7c8c20;
  --soft: #f4f5ef;
  --shadow: 0 16px 32px rgba(32, 38, 42, .10);
  --radius: 8px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: var(--coal); }
button, input, select, textarea { font: inherit; }
.akp-container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.akp-topbar {
  background: var(--coal);
  color: #fff;
  font-size: 14px;
}
.akp-topbar .akp-container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.akp-topbar a { color: #fff; font-weight: 800; }
.akp-topbar__right { display: flex; align-items: center; gap: 12px; text-align: right; }

.akp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body.admin-bar .akp-header { top: 32px; }
.akp-header__row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 190px minmax(300px, 1fr) 260px auto;
  align-items: center;
  gap: 16px;
}
.akp-brand { display: inline-flex; grid-column: 1; grid-row: 1; align-items: center; min-width: 0; }
.akp-brand .custom-logo-link { display: inline-flex; align-items: center; max-width: 190px; }
.akp-brand .custom-logo { display: block; width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.akp-brand__title { color: var(--coal); font-size: 24px; font-weight: 900; line-height: 1.05; }
.akp-brand__tagline { display: block; color: var(--muted); font-size: 13px; }

.akp-search {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  width: 260px;
  max-width: 260px;
  justify-self: end;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.akp-search input[type="search"] {
  width: 100%;
  min-height: 36px;
  border: 0;
  padding: 0 12px;
  outline: 0;
  font-size: 14px;
}
.akp-search button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: var(--yellow);
  color: var(--coal);
  font-weight: 900;
  cursor: pointer;
}

.akp-actions { grid-column: 4; grid-row: 1; display: flex; align-items: center; gap: 10px; }
.akp-button, .button, .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}
.akp-button:hover, .button:hover, .wp-element-button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: #a8161d;
  color: #fff;
}
.akp-button--ghost { background: var(--coal); border-color: var(--coal); color: #fff; }
.akp-button--ghost:hover { background: #111; color: #fff; }

.akp-nav {
  grid-column: 2;
  grid-row: 1;
  border-top: 0;
  padding: 0;
  min-width: 0;
}
.akp-menu, .akp-menu ul { margin: 0; padding: 0; list-style: none; }
.akp-menu { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.akp-menu li { position: relative; }
.akp-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.akp-menu a:hover, .akp-menu a:focus, .akp-menu .current-menu-item > a {
  background: var(--soft);
  color: var(--ink);
}
.akp-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
}
.akp-menu li:hover > .sub-menu, .akp-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.akp-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.akp-menu-toggle span, .akp-menu-toggle span::before, .akp-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
}
.akp-menu-toggle span::before { transform: translateY(-7px); }
.akp-menu-toggle span::after { transform: translateY(5px); }

.akp-hero { padding: 34px 0 24px; background: var(--page); }
.akp-hero__grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.akp-hero__panel, .akp-hero__main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.akp-hero__panel { padding: 18px; border-top: 6px solid var(--yellow); }
.akp-hero__panel h2 { margin: 0 0 12px; font-size: 22px; }
.akp-hero__panel p { margin: 0 0 14px; color: var(--muted); }
.akp-hero__main {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background: linear-gradient(110deg, #fff 0%, #fff 56%, #fff0b8 56%, #fff0b8 100%);
}
.akp-hero__main::after {
  position: absolute;
  right: 34px;
  bottom: -30px;
  width: 190px;
  height: 190px;
  border: 18px solid rgba(201,31,39,.14);
  border-radius: 50%;
  content: "";
}
.akp-eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.akp-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}
.akp-hero p { position: relative; z-index: 1; max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.akp-hero__buttons { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.akp-spec-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.akp-spec-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 11px;
  border-radius: 7px;
  background: var(--soft);
}
.akp-spec-list strong { color: var(--red); font-size: 22px; line-height: 1; }
.akp-spec-list span { color: var(--ink); font-size: 14px; }

.akp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(320px, 1.12fr);
  gap: 24px;
  align-items: start;
}
.akp-contact-panel,
.akp-contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}
.akp-contact-panel {
  border-top: 6px solid var(--yellow);
}
.akp-contact-panel h2,
.akp-contact-form h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
}
.akp-contact-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.akp-contact-list li {
  padding: 13px;
  border-radius: 7px;
  background: var(--soft);
}
.akp-contact-list strong {
  display: block;
  margin-bottom: 3px;
}
.akp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.akp-contact-form .wpcf7-form {
  display: grid;
  gap: 12px;
}
.akp-contact-form p {
  margin-top: 0;
}
.akp-map-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.akp-map-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.akp-map-panel__head h2 {
  margin: 0;
  font-size: 24px;
}
.akp-map-panel iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.akp-section { padding: 50px 0; }
.akp-section--soft { background: #fff; }
.akp-section__head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.akp-section__head h2, .entry-title, .page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}
.akp-section__head p { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.akp-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.akp-cat-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 15px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.akp-cat-card:hover { border-color: var(--yellow); background: #fff; box-shadow: var(--shadow); }
.akp-cat-card strong { font-size: 16px; line-height: 1.2; }
.akp-cat-card span { color: var(--muted); font-size: 13px; }
.akp-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.akp-value-item {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.akp-value-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 18px;
}
.akp-value-item span {
  color: var(--muted);
  font-size: 14px;
}
.akp-main { padding: 50px 0; background: #fff; }
.akp-content { max-width: 860px; }
.akp-content--wide { max-width: none; }

.akp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.akp-post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.akp-post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.akp-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.akp-post-card__body { padding: 17px; }
.akp-post-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.akp-post-card p { margin: 0; color: var(--muted); }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  float: none;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow); border-color: #d5d9dc; }
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border: 1px solid #edf1f3;
  border-radius: 6px;
  padding: 10px;
  margin: 0 0 12px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.28;
}
.woocommerce ul.products li.product .price { margin: 8px 0; color: var(--olive); font-weight: 900; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: auto; min-height: 40px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 22px; }

.akp-home-products .woocommerce ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.akp-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0,0,0,.20);
}
.akp-whatsapp-float:hover,
.akp-whatsapp-float:focus {
  background: #1ebe5d;
  color: #fff;
}
.akp-whatsapp-float__icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], textarea, select,
.woocommerce .woocommerce-ordering select, .woocommerce div.product form.cart .variations select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.entry-content table,
.woocommerce div.product table,
.akp-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td,
.woocommerce div.product th,
.woocommerce div.product td,
.akp-content th,
.akp-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.entry-content,
.woocommerce div.product .summary,
.akp-content {
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .entry-content table,
  .woocommerce div.product table,
  .akp-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
.woocommerce div.product { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 34px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product div.images img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.akp-quote-box { margin-top: 22px; padding: 18px; border-left: 5px solid var(--yellow); border-radius: var(--radius); background: var(--soft); }
.akp-quote-box p { margin: 0 0 12px; color: var(--muted); }

.akp-footer { background: var(--coal); color: rgba(255,255,255,.78); padding: 42px 0 22px; }
.akp-footer a { color: #fff; }
.akp-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.akp-footer h2, .akp-footer h3 { margin: 0 0 12px; color: #fff; }
.akp-footer p { margin: 0; }
.akp-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.akp-footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62); font-size: 14px; }
.akp-footer__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.akp-footer__links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}
.akp-footer__links a::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}
.akp-footer__links a:hover,
.akp-footer__links a:focus {
  color: var(--yellow);
}
.akp-footer__note {
  margin-top: 14px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nav-links a, .nav-links span { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.nav-links .current { background: var(--coal); color: #fff; border-color: var(--coal); }

@media (max-width: 1120px) {
  .akp-header__row {
    grid-template-columns: 180px minmax(220px, 1fr) 220px auto;
    gap: 12px;
  }
  .akp-brand .custom-logo-link,
  .akp-brand .custom-logo {
    max-width: 180px;
  }
  .akp-menu a {
    padding-inline: 8px;
  }
  .akp-search {
    width: 220px;
    max-width: 220px;
  }
  .akp-search input[type="search"] {
    font-size: 13px;
  }
  .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .akp-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .akp-header__row {
    grid-template-columns: 180px minmax(220px, 1fr) auto;
  }
  .akp-search {
    display: none;
  }
  .akp-actions {
    grid-column: 3;
  }
}
@media (max-width: 900px) {
  body.admin-bar .akp-header { top: 46px; }
  .akp-topbar .akp-container { display: grid; justify-content: stretch; gap: 4px; padding: 8px 0; }
  .akp-topbar__right { justify-content: start; text-align: left; flex-wrap: wrap; gap: 8px 12px; }
  .akp-header__row { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; }
  .akp-brand { grid-column: 1; }
  .akp-brand .custom-logo-link, .akp-brand .custom-logo { max-width: 176px; max-height: 52px; }
  .akp-search {
    display: grid;
    grid-column: 1 / -1;
    grid-row: auto;
    order: 3;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-height: 42px;
  }
  .akp-search input[type="search"] {
    min-height: 40px;
    font-size: 15px;
  }
  .akp-search button {
    min-height: 42px;
  }
  .akp-actions .akp-button { display: none; }
  .akp-actions { grid-column: 2; }
  .akp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .akp-nav { grid-column: 1 / -1; grid-row: auto; display: none; padding-bottom: 12px; }
  .akp-nav.is-open { display: block; }
  .akp-menu { display: grid; justify-content: stretch; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .akp-menu a { border-radius: 7px; padding: 12px; }
  .akp-menu .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 12px; background: transparent; }
  .akp-hero__grid, .woocommerce div.product { grid-template-columns: 1fr; }
  .akp-hero__panel { order: 2; }
  .akp-hero__main { padding: 28px; }
  .akp-section__head { display: grid; align-items: start; }
  .akp-cat-grid, .woocommerce ul.products, .akp-home-products .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akp-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akp-contact-grid { grid-template-columns: 1fr; }
  .akp-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .akp-container { width: min(100% - 28px, var(--container)); }
  .akp-hero { padding: 24px 0 16px; }
  .akp-hero h1 { font-size: 30px; }
  .akp-hero p { font-size: 16px; }
  .akp-hero__main { padding: 22px; background: #fff; }
  .akp-hero__buttons { display: grid; }
  .akp-search {
    grid-template-columns: 1fr 64px;
  }
  .akp-search input[type="search"] {
    min-width: 0;
    padding-inline: 10px;
  }
  .akp-search button {
    padding-inline: 10px;
  }
  .akp-section { padding: 38px 0; }
  .akp-cat-grid, .akp-post-grid, .akp-value-grid, .woocommerce ul.products, .akp-home-products .woocommerce ul.products { grid-template-columns: 1fr; }
  .akp-whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 11px 14px;
  }
  .akp-map-panel iframe { height: 300px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 0; }
}
