:root {
    --yn-brand-600: #c2410c;
    --yn-brand-500: #f97316;
    --yn-brand-100: #ffedd5;
    --yn-ink-900: #111827;
    --yn-ink-700: #374151;
    --yn-ink-500: #6b7280;
    --yn-line: #e5e7eb;
    --yn-surface: #ffffff;
    --yn-canvas: #f8fafc;
    --yn-focus: #2563eb;
    --yn-radius-sm: 10px;
    --yn-radius-md: 14px;
    --yn-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--yn-ink-900);
    background: var(--yn-canvas);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 10px 14px;
    color: #fff;
    background: var(--yn-ink-900);
    border-radius: 8px;
    box-shadow: var(--yn-shadow-sm);
    transform: translateY(-160%);
    transition: transform .16s ease;
}

.skip-link:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(0);
}

#global-feedback-stack {
    position: fixed;
    z-index: 10020;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    display: grid;
    width: min(430px, calc(100vw - 36px));
    gap: 10px;
    pointer-events: none;
}

#global-notification-region,
#global-alert-region {
    display: grid;
    gap: 10px;
}

.notification {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 11px;
    align-items: center;
    min-height: 62px;
    padding: 12px 12px 12px 14px;
    border: 1px solid #dbe3ec;
    border-left: 4px solid #2563eb;
    border-radius: var(--yn-radius-md);
    background: var(--yn-surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    color: var(--yn-ink-900);
    pointer-events: auto;
    animation: ynNotificationIn .2s ease-out both;
}

.notification--success {
    border-left-color: #15803d;
}

.notification--warning {
    border-left-color: var(--yn-brand-600);
}

.notification--error {
    border-left-color: #b91c1c;
}

.notification__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: var(--yn-radius-sm);
    background: #eff6ff;
    color: #1d4ed8;
}

.notification--success .notification__icon {
    background: #dcfce7;
    color: #15803d;
}

.notification--warning .notification__icon {
    background: var(--yn-brand-100);
    color: var(--yn-brand-600);
}

.notification--error .notification__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.notification__message {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.notification__close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--yn-ink-500);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.notification__close:hover {
    color: var(--yn-ink-900);
    background: #f1f5f9;
}

.notification__close:active {
    transform: translateY(1px);
}

.notification.is-leaving {
    animation: ynNotificationOut .16s ease-in both;
}

@keyframes ynNotificationIn {
    from {
        opacity: 0;
        transform: translate3d(16px, -4px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes ynNotificationOut {
    to {
        opacity: 0;
        transform: translate3d(12px, 0, 0);
    }
}

@media (max-width: 575.98px) {
    #global-feedback-stack {
        top: max(10px, env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        width: auto;
    }

    .notification {
        grid-template-columns: 32px minmax(0, 1fr) 28px;
        min-height: 58px;
        padding: 10px 10px 10px 12px;
    }

    .notification__icon {
        width: 32px;
        height: 32px;
    }
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: var(--yn-focus-width, 3px) solid var(--yn-focus) !important;
    outline-offset: var(--yn-focus-offset, 3px) !important;
}

#main-content:focus {
    outline: none !important;
}

#main-content {
    flex: 1 0 auto;
    min-width: 0;
}

.site__body {
    min-height: 50vh;
    background: var(--yn-canvas);
}

.section-header__title,
.block-header__title,
.card-title {
    color: var(--yn-ink-900);
    letter-spacing: -.015em;
}

.account-page-heading {
    margin: 0 0 20px;
    color: var(--yn-ink-900);
    font-size: clamp(1.65rem, 2.5vw, 2.1rem);
    font-weight: 750;
    letter-spacing: -.02em;
}

.form-control,
.form-control-select2,
.select2-container--default .select2-selection--single {
    border-color: #d1d5db;
    border-radius: var(--yn-radius-sm);
}

.form-control:focus,
.select2-container--focus .select2-selection--single {
    border-color: var(--yn-brand-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .16);
}

.btn {
    border-radius: var(--yn-radius-sm);
    font-weight: 600;
}

.btn-primary {
    color: #fff;
    background: var(--yn-brand-600);
    border-color: var(--yn-brand-600);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: #9a3412;
    border-color: #9a3412;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--yn-radius-md);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.modal-header,
.modal-footer {
    border-color: var(--yn-line);
}

.modal-header .close {
    width: 40px;
    height: 40px;
    margin: -8px -8px -8px auto;
    padding: 0;
    border-radius: 10px;
}

.modal .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-dropdown {
    z-index: 1065;
    border-color: #d1d5db;
    border-radius: var(--yn-radius-sm);
    box-shadow: var(--yn-shadow-sm);
}

.select2-results__options {
    overscroll-behavior: contain;
}

.search__dropdown--vehicle-picker {
    z-index: 10020;
    max-height: min(560px, calc(100vh - 150px));
    max-height: min(560px, calc(100dvh - 150px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.search__dropdown--vehicle-picker .select2-container {
    width: 100% !important;
}

.vehicles-list__item-main {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.indicator--trigger--click .indicator__content,
.mobile-indicator--trigger--click .mobile-indicator__content {
    z-index: 10020;
}

.indicator--trigger--click .dropcart,
.mobile-indicator--trigger--click .dropcart {
    max-height: min(620px, calc(100vh - 110px));
    max-height: min(620px, calc(100dvh - 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.quickview-summary {
    max-width: 680px;
}

.quickview-summary__body {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
}

.quickview-summary__image {
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--yn-line);
    border-radius: var(--yn-radius-md);
    background: #fff;
}

.quickview-summary__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.quickview-summary__name {
    margin: 0;
    color: var(--yn-ink-900);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.3;
}

.quickview-summary__price {
    margin: 14px 0 20px;
    color: var(--yn-brand-600);
    font-size: 1.2rem;
    font-weight: 800;
}

.search__dropdown--suggestions {
    max-height: min(480px, calc(100vh - 160px));
    max-height: min(480px, calc(100dvh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.suggestions__item--keyboard-active,
.suggestions__item[aria-selected="true"] {
    background: #fff7ed;
    box-shadow: inset 3px 0 0 var(--yn-brand-600);
}

@media (min-width: 1200px) {
    .main-menu__item--a11y-open > .main-menu__submenu {
        visibility: visible;
        opacity: 1;
        transform: rotateX(0);
    }

    .main-menu__item--submenu--menu.main-menu__item--align-end > .main-menu__submenu {
        right: 0;
        left: auto;
    }

    .menu__item--a11y-open > .menu__submenu {
        visibility: visible;
        opacity: 1;
    }

    [dir="ltr"] .menu__item--open-left > .menu__submenu {
        right: 100%;
        left: auto;
    }

    [dir="rtl"] .menu__item--open-left > .menu__submenu {
        right: auto;
        left: 100%;
    }

    .main-menu__submenu,
    .menu__submenu {
        max-width: calc(100vw - 24px);
    }
}

/* Bootstrap 5 yönlü boşluk sınıflarını Bootstrap 4 kabuğunda da tutarlı kıl. */
.me-1 { margin-inline-end: .25rem !important; }
.me-2 { margin-inline-end: .5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.ms-1 { margin-inline-start: .25rem !important; }
.ms-2 { margin-inline-start: .5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.text-end { text-align: right !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.product-card {
    overflow: hidden;
    background: var(--yn-surface);
    border: 1px solid var(--yn-line);
    border-radius: var(--yn-radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover,
.product-card:focus-within {
    border-color: #fdba74;
    box-shadow: var(--yn-shadow-sm);
    transform: translateY(-2px);
}

.product-card__name a {
    color: var(--yn-ink-900);
    line-height: 1.45;
}

.product-card__price--current,
.product__price--current {
    display: inline !important;
    padding: 0 !important;
    color: var(--yn-ink-900) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
}

.card,
.cart__totals .card {
    background: var(--yn-surface);
    border: 1px solid var(--yn-line);
    border-radius: var(--yn-radius-md);
    box-shadow: var(--yn-shadow-sm);
}

.breadcrumb__item-link {
    color: var(--yn-ink-500);
}

#support-toggle {
    min-height: 46px;
}

#support-toggle,
.support-send-btn,
.support-tab-btn.active,
.support-tab-btn[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, #9a3412, #c2410c);
}

#support-box {
    max-height: calc(100vh - 100px);
}

.support-body {
    overscroll-behavior: contain;
}

.support-tab-btn[aria-selected="true"] {
    color: #fff;
}

@media (max-width: 767.98px) {
    .block-header__title {
        font-size: 26px;
    }

    .section-header__title {
        font-size: 21px;
        line-height: 1.25;
    }

    .product-card:hover,
    .product-card:focus-within {
        transform: none;
    }

    #support-box {
        max-height: calc(100dvh - 86px);
    }

    .support-body {
        max-height: calc(100dvh - 235px);
    }

    .modal-dialog {
        margin: .75rem;
    }

    .quickview-summary__body {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .quickview-summary__image {
        width: min(100%, 260px);
        margin-inline: auto;
    }

    .quickview-summary__link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* Homepage product empty state */
.yn-empty-products-column {
    width: 100%;
}

.yn-empty-products {
    display: flex;
    min-height: 260px;
    padding: 40px 24px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    color: #475569;
    text-align: center;
}

.yn-empty-products__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: #fff1e8;
    color: var(--yn-brand-600);
}

.yn-empty-products h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: clamp(18px, 2vw, 23px);
}

.yn-empty-products p {
    max-width: 520px;
    margin: 0 0 20px;
    line-height: 1.6;
}


/* ---------------------------------------------------------------------------
   Okunabilirlik tabanı

   `small` boyutunu `em` ile aldığı için kapsayıcı küçüldükçe onunla birlikte
   küçülüyordu: 13px'lik bir form etiketinin içinde 10.4px'e iniyordu. Oran
   korunuyor, yalnızca 12px'in altına inmesi engelleniyor.
--------------------------------------------------------------------------- */
.site small {
    font-size: max(12px, 0.8em);
}

/* ---------------------------------------------------------------------------
   Tema override: ürün formu etiketleri

   Satın alınan tema `.product-form__title` için 11px veriyor; büyük harf ve
   soluk gri (#6c7177) ile birlikte okunabilirlik tabanının altında kalıyor.
   Vendor dosyası (assets/css/style.css) düzenlenmiyor — tema güncellemesinde
   kaybolur. Bu dosya tema CSS'inden SONRA yüklendiği için burası kazanır.
--------------------------------------------------------------------------- */
.product-form__title {
    font-size: 12px;
}
