/* SweetAlert2 + form overlay — YarnArt marka renkleri */
:root {
    --yarnart-primary: #dc2626;
    --yarnart-primary-dark: #b91c1c;
    --yarnart-success: #16a34a;
    --yarnart-error: #dc2626;
    --yarnart-warning: #ca8a04;
    --yarnart-text: #101828;
    --yarnart-bg: #fff;
}

.swal2-yarnart.popup-class {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.15);
    padding: 2rem;
    border: 1px solid rgba(220, 38, 38, 0.12);
}

.swal2-yarnart .swal2-title {
    color: var(--yarnart-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.swal2-yarnart .swal2-html-container {
    color: #4a5565;
    font-size: 1rem;
    line-height: 1.5;
}

.swal2-yarnart .swal2-success-ring { border-color: var(--yarnart-primary) !important; }
.swal2-yarnart .swal2-success-line-tip,
.swal2-yarnart .swal2-success-line-long { background-color: var(--yarnart-primary) !important; }

.swal2-yarnart .btn-confirm {
    background: var(--yarnart-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.swal2-yarnart .btn-confirm:hover {
    background: var(--yarnart-primary-dark) !important;
}

.contact-form-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(16, 24, 40, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-overlay-inner {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 3px solid #f3f4f6;
    border-top-color: var(--yarnart-primary);
    border-radius: 50%;
    animation: yarnart-spin 0.8s linear infinite;
}

@keyframes yarnart-spin {
    to { transform: rotate(360deg); }
}

.cms-footer-blocks:empty {
    display: none;
}

/* —— Unified page hero (desenler standardı — tüm site) —— */

.ya-unified-hero--strip {
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.ya-unified-hero__strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 22, 63, 0.72) 0%, rgba(11, 22, 63, 0.2) 45%, transparent 100%);
    pointer-events: none;
}

.ya-unified-hero__strip-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
}

.ya-unified-hero__strip-title {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.ya-unified-hero__strip-content nav,
.ya-unified-hero__strip-content a,
.ya-unified-hero__strip-content span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ya-unified-hero__strip-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 7.5rem;
    max-height: 14rem;
    object-fit: cover;
    object-position: center center;
}

@media (min-width: 640px) {
    .ya-unified-hero__strip-img {
        min-height: 9rem;
        max-height: 16rem;
    }
}

.ya-unified-hero__content--on-image nav,
.ya-unified-hero__content--on-image h1,
.ya-unified-hero__content--on-image p,
.ya-unified-hero__content--on-image span {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* —— Site search modal —— */

body.ya-search-modal-open {
    overflow: hidden;
}

.ya-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    padding-top: max(1rem, 10vh);
}

.ya-search-modal.hidden {
    display: none;
}

.ya-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.62);
    backdrop-filter: blur(4px);
}

.ya-search-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
}

.ya-search-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ya-search-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--yarnart-text);
}

.ya-search-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #364153;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ya-search-modal__close:hover {
    background: #e5e7eb;
}

.ya-search-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ya-search-modal__field,
.ya-search-results__field {
    position: relative;
}

.ya-search-modal__icon,
.ya-search-results__icon {
    pointer-events: none;
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    color: #6a7282;
}

.ya-search-modal__input,
.ya-search-results__input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f7faf8;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 1rem;
    color: var(--yarnart-text);
}

.ya-search-modal__input:focus,
.ya-search-results__input:focus {
    outline: none;
    border-color: var(--yarnart-primary);
    box-shadow: 0 0 0 1px var(--yarnart-primary);
}

.ya-search-modal__submit,
.ya-search-results__submit {
    border: 0;
    border-radius: 999px;
    background: var(--yarnart-primary);
    color: #fff;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ya-search-modal__submit:hover,
.ya-search-results__submit:hover {
    background: var(--yarnart-primary-dark);
}

.ya-search-modal__popular {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.ya-search-modal__popular-label {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6a7282;
}

.ya-search-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ya-search-modal__tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--yarnart-text);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.ya-search-modal__tag:hover {
    border-color: var(--yarnart-primary);
    color: var(--yarnart-primary);
}

/* —— Search results page —— */

.ya-search-results {
    padding: 2.5rem 0 4rem;
}

.ya-search-results__inner {
    width: min(100%, 48rem);
    margin: 0 auto;
    padding: 0 1rem;
}

.ya-search-results__head {
    margin-bottom: 1.5rem;
}

.ya-search-results__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--yarnart-text);
}

.ya-search-results__count {
    margin: 0;
    color: #6a7282;
}

.ya-search-results__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ya-search-results__empty {
    margin: 0;
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
    background: #f7faf8;
    color: #4a5565;
}

.ya-search-results__section + .ya-search-results__section {
    margin-top: 2rem;
}

.ya-search-results__section-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--yarnart-text);
}

.ya-search-results__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #eef2f7;
    border-radius: 0.75rem;
    overflow: hidden;
}

.ya-search-results__list li + li {
    border-top: 1px solid #eef2f7;
}

.ya-search-results__link {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.ya-search-results__link:hover {
    background: #f7faf8;
}

.ya-search-results__link-title {
    font-weight: 500;
    color: var(--yarnart-text);
}

.ya-search-results__link-meta {
    font-size: 0.875rem;
    color: #6a7282;
}

@media (min-width: 640px) {
    .ya-search-modal__form,
    .ya-search-results__form {
        flex-direction: row;
        align-items: stretch;
    }

    .ya-search-modal__field,
    .ya-search-results__field {
        flex: 1 1 auto;
    }

    .ya-search-modal__submit,
    .ya-search-results__submit {
        flex: 0 0 auto;
        align-self: stretch;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* —— Third-party float widget ([item] bubble, e.g. chat / WhatsApp) —— */

#o34q38draces1780474032503[item],
div[item][id^="o"][id*="races"],
#tawk-bubble-container,
.tawk-min-container {
    outline: none !important;
    visibility: visible !important;
    resize: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: none !important;
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important;
    -moz-opacity: 1 !important;
    -khtml-opacity: 1 !important;
    top: auto !important;
    right: auto !important;
    bottom: 80px !important;
    left: 10px !important;
    position: fixed !important;
    border: 0 !important;
    min-height: 60px !important;
    min-width: 64px !important;
    max-height: 60px !important;
    max-width: 64px !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-transition-property: none !important;
    -webkit-transition-property: none !important;
    -o-transition-property: none !important;
    transition-property: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    width: 64px !important;
    height: 60px !important;
    display: block !important;
    z-index: 1000003 !important;
    background-color: transparent !important;
    cursor: none !important;
    float: none !important;
    border-radius: unset !important;
    pointer-events: auto !important;
    clip: auto !important;
    color-scheme: light !important;
}

/* —— Mega menü ——————————————————————————————
   DİKKAT: Bu blok catalog.css'te duruyordu, ama catalog.css yalnızca
   ürün/kategori sayfalarında yükleniyor (config/yarnart_theme.php →
   page_extra_css). Mega menü ise HER sayfanın header'ında olduğu için
   anasayfada ve diğer sayfalarda tamamen stilsiz kalıyordu. Burası her
   sayfada yüklendiği için doğru yer.
   —————————————————————————————————————————— */
/* Tetikleyici tam yukseklik olsun: aksi halde link ile panel arasindaki
   bosluga gelince :hover kopuyor ve menu kapaniyor. */
.ya-mega-trigger {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ya-megamenu {
  /* Tetikleyicinin altina yaslanir ve genisligi icerige gore belirlenir;
     eskiden ekran boyu sabit bir seritti ve 6 linklik bir menude bile
     1280px genislik + 340px yukseklik bos duruyordu. */
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 49;
  padding-top: 10px;              /* fare kopruu: panelle link arasi bosluk */
  transition: opacity .18s ease, visibility .18s ease;
}
.ya-megamenu__inner {
  display: flex;
  align-items: stretch;
  width: max-content;
  max-width: min(68rem, calc(100vw - 3rem));
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .14);
  overflow: hidden;
}

/* Link izgarasi — kolon oncelikli: satir sayisi sabitlendigi icin
   sutunlar esit doluyor ve liste yukaridan asagi okunuyor. */
.ya-megamenu__links {
  flex: 1 1 auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--ymm-rows, 6), auto);
  grid-template-columns: repeat(var(--ymm-cols, 3), minmax(11.5rem, 1fr));
  align-content: start;
  gap: 2px 1.25rem;
  padding: .85rem 1rem;
}
.ya-megamenu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: .3rem .55rem;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: #364153;
  border-radius: 7px;
  text-decoration: none;
  transition: color .14s, background .14s;
}
.ya-megamenu__item:hover,
.ya-megamenu__item.is-active {
  color: var(--ya-red, #c9373a);
  background: rgba(201, 55, 58, .07);
}
.ya-megamenu__item-arrow {
  flex-shrink: 0;
  opacity: 0;
  color: var(--ya-red, #c9373a);
  transition: opacity .14s, transform .14s;
  transform: translateX(-3px);
  display: flex;
  align-items: center;
}
.ya-megamenu__item:hover .ya-megamenu__item-arrow,
.ya-megamenu__item.is-active .ya-megamenu__item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Gorsel paneli */
.ya-megamenu__panel {
  flex: 0 0 15rem;
  position: relative;
  overflow: hidden;
  border-left: 1px solid #f3f4f6;
}
.ya-megamenu__img {
  width: 100%;
  height: 100%;
  min-height: 13rem;
  object-fit: cover;
  display: block;
  transition: opacity .14s ease;
}

/* Gorselsiz mega menu: panel hic basilmadigi icin linkler tum genisligi
   kullanir; ayrica tek satirlik bir menu gereksiz yuksek durmasin. */
.ya-megamenu__inner--noimg .ya-megamenu__links {
  padding: .85rem 1rem;
}

@media (max-width: 1279px) {
  .ya-megamenu__panel { flex: 0 0 12rem; }
  .ya-megamenu__links { grid-template-columns: repeat(var(--ymm-cols, 3), minmax(10rem, 1fr)); }
}
@media (max-width: 1023px) {
  .ya-megamenu { display: none !important; }
}

/* —— Header altı arama çubuğu ——————————————————————
   Sağdaki büyüteç ikonu fark edilmiyordu; bu çubuk aramayı doğrudan
   görünür kılıyor. Header sticky olduğu için çubuk da onunla birlikte
   kayar — ayrı bir sticky katmanı yok. */
.ya-searchbar {
  border-top: 1px solid #f1f2f4;
  background: linear-gradient(180deg, #fcfcfd 0%, #fff 100%);
}
.ya-searchbar__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.ya-searchbar__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: .28rem .28rem .28rem 0;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -14px rgba(16, 24, 40, .22);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ya-searchbar__form:hover {
  border-color: #d7dbe3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -14px rgba(16, 24, 40, .3);
}
.ya-searchbar__form:focus-within {
  border-color: var(--ya-red, #c9373a);
  box-shadow: 0 0 0 4px rgba(201, 55, 58, .1), 0 12px 30px -14px rgba(201, 55, 58, .45);
}
.ya-searchbar__icon {
  position: absolute;
  left: 1.05rem;
  width: 19px;
  height: 19px;
  color: #a4abb8;
  pointer-events: none;
  transition: color .18s ease;
}
.ya-searchbar__form:focus-within .ya-searchbar__icon { color: var(--ya-red, #c9373a); }
.ya-searchbar__icon svg { width: 100%; height: 100%; }
.ya-searchbar__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .22rem 1rem .22rem 2.85rem;
  font-size: .95rem;
  color: #26303f;
  border-radius: 999px;
}
.ya-searchbar__input::placeholder { color: #a4abb8; }
.ya-searchbar__input:focus { outline: none; }
.ya-searchbar__input::-webkit-search-cancel-button { cursor: pointer; }
.ya-searchbar__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: .58rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--ya-red, #c9373a);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(201, 55, 58, .3);
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.ya-searchbar__submit:hover {
  background: #b22f32;
  box-shadow: 0 4px 12px -2px rgba(201, 55, 58, .45);
}
.ya-searchbar__submit:active { transform: translateY(1px); }

.ya-searchbar__popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem;
}
.ya-searchbar__chip {
  font-size: .76rem;
  font-weight: 500;
  color: #5d6675;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: .26rem .75rem;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.ya-searchbar__chip:hover {
  background: var(--ya-red, #c9373a);
  border-color: var(--ya-red, #c9373a);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 639px) {
  .ya-searchbar__inner { padding: .85rem .9rem 1rem; gap: .55rem; }
  .ya-searchbar__input { font-size: .9rem; padding-left: 2.65rem; }
  .ya-searchbar__submit { padding: .55rem 1.05rem; font-size: .82rem; }
  .ya-searchbar__popular { gap: .3rem; }
  .ya-searchbar__chip { font-size: .72rem; padding: .22rem .6rem; }
}

/* —— Arama çubuğu bloğu (blok editöründen yerleştirilen) —————— */
.ya-searchbar--blok { border-top: 0; }
.ya-searchbar--bg-soft { background: linear-gradient(180deg, #fbfbfd 0%, #fff 100%); }
.ya-searchbar--bg-white { background: #fff; }
.ya-searchbar--bg-none { background: transparent; }
.ya-searchbar__title {
  margin: 0 0 .1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #101828;
  text-align: center;
}
.ya-searchbar__form--narrow { max-width: 28rem; }
.ya-searchbar__form--normal { max-width: 36rem; }
.ya-searchbar__form--wide { max-width: 48rem; }
