/* Kars Kahvaltısı UX Pack - front-end only */
:root {
  --kk-green: #294c36;
  --kk-green-2: #3d6848;
  --kk-ink: #1f2922;
  --kk-muted: #6f746f;
  --kk-cream: #f6f1e8;
  --kk-card: #ffffff;
  --kk-line: #e8e2d8;
  --kk-accent: #b9783b;
  --kk-accent-soft: #f1e3d3;
  --kk-danger: #a44d3f;
  --kk-shadow: 0 12px 36px rgba(31, 41, 34, .08);
  --kk-radius: 18px;
}

body.kk-ux-active {
  color: var(--kk-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.kk-ux-active :where(button, input, select, textarea, a.button, .button, .wp-element-button) {
  border-radius: 12px;
}

body.kk-ux-active :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea) {
  min-height: 46px;
  border: 1px solid #d9d8d2;
  background: #fff;
  padding: 10px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body.kk-ux-active :where(input, select, textarea):focus {
  outline: 0;
  border-color: var(--kk-green-2);
  box-shadow: 0 0 0 3px rgba(61, 104, 72, .14);
}

body.kk-ux-active :where(.button, button, input[type="submit"], .wp-element-button) {
  min-height: 44px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.kk-ux-active :where(.button, button, input[type="submit"], .wp-element-button):hover {
  transform: translateY(-1px);
}

/* WooCommerce product cards */
body.kk-ux-active .woocommerce ul.products li.product,
body.kk-ux-active .wc-block-grid__product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 12px 12px 14px !important;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius);
  background: var(--kk-card);
  box-shadow: 0 6px 20px rgba(31, 41, 34, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.kk-ux-active .woocommerce ul.products li.product:hover,
body.kk-ux-active .wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: #d9d1c5;
  box-shadow: var(--kk-shadow);
}

body.kk-ux-active .woocommerce ul.products li.product a img,
body.kk-ux-active .wc-block-grid__product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--kk-cream);
  transition: transform .28s ease;
}

body.kk-ux-active .woocommerce ul.products li.product:hover a img {
  transform: scale(1.025);
}

body.kk-ux-active .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.kk-ux-active .woocommerce ul.products li.product h2,
body.kk-ux-active .wc-block-grid__product-title {
  min-height: 2.9em;
  margin: 12px 0 6px !important;
  color: var(--kk-ink);
  font-size: 15px !important;
  font-weight: 760 !important;
  line-height: 1.42;
}

body.kk-ux-active .woocommerce ul.products li.product .price,
body.kk-ux-active .wc-block-grid__product-price {
  margin: 0 0 12px !important;
  color: var(--kk-green) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

body.kk-ux-active .woocommerce ul.products li.product .price del {
  color: #969a96;
  font-size: 13px;
  opacity: 1;
}

body.kk-ux-active .woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

body.kk-ux-active .woocommerce ul.products li.product .button,
body.kk-ux-active .wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100%;
  margin-top: auto !important;
  padding: 12px 14px !important;
  color: #fff !important;
  border: 1px solid var(--kk-green) !important;
  background: var(--kk-green) !important;
  text-align: center;
  box-shadow: none;
}

body.kk-ux-active .woocommerce ul.products li.product .button:hover,
body.kk-ux-active .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
  background: var(--kk-green-2) !important;
  border-color: var(--kk-green-2) !important;
  box-shadow: 0 8px 20px rgba(41, 76, 54, .18);
}

body.kk-ux-active .woocommerce span.onsale,
body.kk-ux-active .kk-sale-badge {
  top: 22px !important;
  left: 22px !important;
  right: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: var(--kk-danger) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* Archive/category navigation */
.kk-category-chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 4px 1px 8px;
  scrollbar-width: thin;
}

.kk-category-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--kk-line);
  border-radius: 999px;
  background: #fff;
  color: var(--kk-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all .18s ease;
}

.kk-category-chip:hover {
  border-color: var(--kk-green);
  background: var(--kk-green);
  color: #fff;
}

body.kk-ux-active .woocommerce .woocommerce-ordering select {
  min-width: 210px;
}

/* Single product */
body.kk-ux-active.single-product div.product {
  margin-top: 14px;
}

body.kk-ux-active.single-product .woocommerce-product-gallery,
body.kk-ux-active.single-product .summary {
  margin-bottom: 28px !important;
}

body.kk-ux-active.single-product .woocommerce-product-gallery__image img {
  border-radius: var(--kk-radius);
  background: var(--kk-cream);
}

body.kk-ux-active.single-product .summary h1.product_title {
  margin-bottom: 10px;
  color: var(--kk-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

body.kk-ux-active.single-product .summary .price {
  margin: 8px 0 12px;
  color: var(--kk-green) !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
  font-weight: 820;
}

body.kk-ux-active.single-product .summary .price del {
  color: #969a96;
  font-size: .62em;
}

body.kk-ux-active.single-product .summary .price ins {
  text-decoration: none;
}

.kk-product-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 14px;
  color: var(--kk-green);
  font-size: 13px;
  font-weight: 700;
}

.kk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2f8d55;
  box-shadow: 0 0 0 4px rgba(47, 141, 85, .11);
}

.kk-kicker-sep { color: #aaa; }

.kk-short-description {
  margin: 12px 0 16px;
  color: #515951;
  font-size: 15px;
  line-height: 1.75;
}

.kk-short-description p { margin-bottom: 6px; }

.kk-detail-link {
  color: var(--kk-green) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

body.kk-ux-active.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 4px;
}

body.kk-ux-active.single-product form.cart .quantity input.qty {
  width: 74px;
  min-height: 50px;
  border-radius: 12px;
}

body.kk-ux-active.single-product form.cart .single_add_to_cart_button {
  min-height: 50px;
  padding: 0 22px !important;
  background: var(--kk-green) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 9px 22px rgba(41, 76, 54, .2);
}

body.kk-ux-active.single-product form.cart .single_add_to_cart_button:hover {
  background: var(--kk-green-2) !important;
}

.kk-assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.kk-assurance-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--kk-line);
  border-radius: 14px;
  background: #fff;
}

.kk-assurance-item strong,
.kk-assurance-item span {
  display: block;
}

.kk-assurance-item strong {
  margin-bottom: 2px;
  color: var(--kk-ink);
  font-size: 13px;
}

.kk-assurance-item > div > span {
  color: var(--kk-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.kk-svg {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--kk-green);
}

.kk-svg svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.kk-ux-active.single-product .product_meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--kk-line);
  color: var(--kk-muted);
  font-size: 12px;
}

body.kk-ux-active.single-product .woocommerce-tabs {
  margin-top: 26px;
}

body.kk-ux-active.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

body.kk-ux-active.single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--kk-cream) !important;
}
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li::before,
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li a {
  padding: 10px 15px !important;
  color: var(--kk-muted) !important;
  font-size: 13px;
}
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li.active {
  background: var(--kk-green) !important;
}
body.kk-ux-active.single-product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
body.kk-ux-active.single-product .woocommerce-tabs .panel {
  padding: 22px 0;
  color: #4f574f;
  font-size: 15px;
  line-height: 1.8;
}
body.kk-ux-active.single-product .related.products { margin-top: 34px; }
body.kk-ux-active.single-product .related.products > h2 { font-size: clamp(24px, 3vw, 34px); }

/* Home enhancement sections */
.kk-home-enhancements {
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 0 20px 70px;
}

.kk-category-section { margin: 0 0 42px; }
.kk-section-head { max-width: 660px; margin-bottom: 20px; }
.kk-section-head > span,
.kk-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--kk-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.kk-section-head h2,
.kk-story-copy h2 {
  margin: 0 0 8px;
  color: var(--kk-ink);
  font-size: clamp(27px, 3.3vw, 42px);
  line-height: 1.1;
}
.kk-section-head p,
.kk-story-copy p { color: var(--kk-muted); line-height: 1.7; }

.kk-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.kk-category-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius);
  background: linear-gradient(160deg, #fff 0%, #fbf7f0 100%);
  color: var(--kk-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(31, 41, 34, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kk-category-card:hover {
  transform: translateY(-4px);
  border-color: #d5c8b6;
  box-shadow: var(--kk-shadow);
}
.kk-category-card > span:not(.kk-category-icon) {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
}
.kk-category-card small {
  display: block;
  margin-top: 5px;
  color: var(--kk-green);
  font-size: 11px;
  font-weight: 750;
}
.kk-category-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--kk-accent-soft);
  color: var(--kk-green);
}
.kk-category-icon .kk-svg { width: 25px; height: 25px; }

.kk-trust-section {
  margin: 0 0 42px;
  padding: 18px;
  border-radius: 22px;
  background: var(--kk-green);
}
.kk-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.kk-trust-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: #fff;
}
.kk-trust-card .kk-svg { color: #e6c398; }
.kk-trust-card strong,
.kk-trust-card span { display: block; }
.kk-trust-card strong { margin: 12px 0 3px; font-size: 14px; }
.kk-trust-card > span:not(.kk-svg) { color: rgba(255,255,255,.74); font-size: 12px; line-height: 1.5; }

.kk-story-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--kk-line);
  border-radius: 24px;
  background: var(--kk-cream);
}
.kk-story-copy { align-self: center; }
.kk-story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.kk-primary-link,
.kk-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.kk-primary-link { background: var(--kk-green); color: #fff !important; }
.kk-secondary-link { border: 1px solid #cfc6b8; background: transparent; color: var(--kk-ink) !important; }
.kk-story-steps { display: grid; gap: 10px; }
.kk-story-steps > div {
  position: relative;
  padding: 18px 18px 18px 64px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31,41,34,.05);
}
.kk-story-steps b {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--kk-accent);
  font-size: 12px;
  letter-spacing: .08em;
}
.kk-story-steps strong,
.kk-story-steps span { display: block; }
.kk-story-steps strong { margin-bottom: 4px; color: var(--kk-ink); font-size: 14px; }
.kk-story-steps span { color: var(--kk-muted); font-size: 12px; line-height: 1.5; }

/* Cart, checkout, account and forms */
body.kk-ux-active .woocommerce-message,
body.kk-ux-active .woocommerce-info,
body.kk-ux-active .woocommerce-error {
  border: 1px solid var(--kk-line);
  border-top: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 41, 34, .04);
}
body.kk-ux-active .woocommerce-message::before,
body.kk-ux-active .woocommerce-info::before { color: var(--kk-green); }

body.kk-ux-active .woocommerce table.shop_table {
  overflow: hidden;
  border: 1px solid var(--kk-line);
  border-radius: 16px;
  background: #fff;
}
body.kk-ux-active .woocommerce table.shop_table th,
body.kk-ux-active .woocommerce table.shop_table td { padding: 14px 12px; }
body.kk-ux-active .cart_totals,
body.kk-ux-active .woocommerce-checkout-review-order,
body.kk-ux-active .woocommerce form.checkout,
body.kk-ux-active .woocommerce form.login,
body.kk-ux-active .woocommerce form.register,
body.kk-ux-active .woocommerce form.track_order {
  border-color: var(--kk-line) !important;
  border-radius: var(--kk-radius) !important;
}

body.kk-ux-active .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.kk-ux-active #place_order {
  background: var(--kk-green) !important;
  color: #fff !important;
  border: 0 !important;
}

.kk-checkout-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe0d2;
  border-radius: 14px;
  background: #f4faf5;
}
.kk-checkout-note strong,
.kk-checkout-note span { display: block; }
.kk-checkout-note strong { color: var(--kk-green); font-size: 14px; }
.kk-checkout-note span { color: #657167; font-size: 12px; line-height: 1.45; }

/* Breadcrumbs, review cards, misc */
body.kk-ux-active .woocommerce-breadcrumb {
  margin-bottom: 22px !important;
  color: var(--kk-muted);
  font-size: 12px;
}
body.kk-ux-active .woocommerce-breadcrumb a { color: var(--kk-green); }
body.kk-ux-active .comment_container,
body.kk-ux-active #review_form_wrapper {
  padding: 16px;
  border: 1px solid var(--kk-line);
  border-radius: 16px;
  background: #fff;
}

/* Mobile bottom navigation */
.kk-mobile-nav { display: none; }

@media (max-width: 1100px) {
  .kk-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kk-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.kk-ux-active { padding-bottom: 76px; }

  .kk-mobile-nav {
    position: fixed;
    z-index: 99980;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(41, 76, 54, .14);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 44px rgba(21, 33, 24, .18);
    backdrop-filter: blur(15px);
  }

  .kk-mobile-nav a {
    position: relative;
    display: flex;
    min-width: 56px;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    border-radius: 12px;
    color: var(--kk-ink) !important;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none !important;
  }
  .kk-mobile-nav a:hover,
  .kk-mobile-nav a:focus { background: var(--kk-cream); }
  .kk-mobile-nav .kk-svg { width: 21px; height: 21px; }
  .kk-mobile-whatsapp .kk-svg { color: #24854a; }
  .kk-cart-count {
    position: absolute;
    top: 1px;
    right: 12px;
    display: inline-flex !important;
    min-width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--kk-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
  }

  .kk-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kk-trust-grid { grid-template-columns: 1fr 1fr; }
  .kk-story-section { grid-template-columns: 1fr; gap: 24px; }
  .kk-home-enhancements { margin-top: 40px; padding: 0 14px 48px; }

  .kk-assurance-grid { grid-template-columns: 1fr; }

  body.kk-ux-active .woocommerce ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.kk-ux-active .woocommerce ul.products[class*="columns-"] li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }
  body.kk-ux-active .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.kk-ux-active .woocommerce ul.products li.product h2 { font-size: 13px !important; }
  body.kk-ux-active .woocommerce ul.products li.product .price { font-size: 16px !important; }
  body.kk-ux-active .woocommerce ul.products li.product .button { font-size: 12px; padding: 10px 8px !important; }

  body.kk-ux-active.single-product .summary h1.product_title { font-size: 28px; }
  body.kk-ux-active.single-product form.cart { display: grid; grid-template-columns: 74px 1fr; }
  body.kk-ux-active.single-product form.cart .single_add_to_cart_button { width: 100%; }

  body.kk-ux-active .woocommerce .woocommerce-ordering,
  body.kk-ux-active .woocommerce .woocommerce-result-count { float: none; }
  body.kk-ux-active .woocommerce .woocommerce-ordering select { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .kk-category-card { min-height: 132px; padding: 15px; }
  .kk-trust-grid { grid-template-columns: 1fr; }
  .kk-trust-card { min-height: 0; }
  .kk-story-section { padding: 22px 16px; }
  .kk-section-head h2, .kk-story-copy h2 { font-size: 27px; }
  .kk-assurance-item > div > span { font-size: 11px; }
  .kk-mobile-nav { right: 6px; bottom: 6px; left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  body.kk-ux-active *,
  body.kk-ux-active *::before,
  body.kk-ux-active *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Existing WordPress page-based category landings */
.kk-page-category-rail {
  max-width: 1240px;
  margin: 14px auto 10px;
  padding: 0 20px;
}

/* About / contact / order tracking readability */
body.kk-info-page .entry-content,
body.kk-info-page .site-main article .entry-content {
  line-height: 1.75;
}
body.kk-info-page .entry-content > h1,
body.kk-info-page .entry-content > h2,
body.kk-info-page .entry-content > h3 {
  color: var(--kk-ink);
  line-height: 1.2;
}
body.kk-info-page .entry-content form {
  padding: 18px;
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31,41,34,.05);
}

/* Long legal pages: improve scanning without altering legal text */
body.kk-legal-page .entry-content {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  color: #444b45;
  font-size: 15px;
  line-height: 1.8;
}
body.kk-legal-page .entry-content h1,
body.kk-legal-page .entry-content h2,
body.kk-legal-page .entry-content h3,
body.kk-legal-page .entry-content h4 {
  margin-top: 1.5em;
  color: var(--kk-ink);
  line-height: 1.25;
}
body.kk-legal-page .entry-content a { color: var(--kk-green); }

.woocommerce ul.products li.product.kk-focus-within {
  border-color: var(--kk-green-2) !important;
  box-shadow: 0 0 0 3px rgba(61,104,72,.11), var(--kk-shadow) !important;
}
