:root {
    --yd-brand: #176b3a;
    --yd-brand-dark: #0f4d2a;
    --yd-focus: #ffbf47;
    --yd-surface: #ffffff;
    --yd-page: #f6f8f7;
    --yd-text: #17221c;
    --yd-muted: #607067;
    --yd-radius: 0.85rem;
    --yd-shadow: 0 0.75rem 2rem rgba(25, 57, 39, 0.09);
}

html { scroll-behavior: smooth; }

body {
    color: var(--yd-text);
    background: var(--yd-page);
    text-rendering: optimizeLegibility;
}

.yd-skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--yd-brand-dark);
    border-radius: 0.5rem;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.yd-skip-link:focus { transform: translateY(0); }

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

.yd-site-header {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(23, 107, 58, 0.14);
    border-top: 3px solid var(--yd-brand);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(25, 57, 39, 0.07);
}

.yd-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
}

.yd-header-brands {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.yd-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.yd-brand-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.yd-brand-divider {
    width: 1px;
    height: 32px;
    background: rgba(23, 107, 58, 0.16);
    display: inline-block;
}

.navbar-logo-responsive {
    display: block;
    width: auto;
    object-fit: contain;
}

.yd-logo-main {
    height: 52px;
    max-width: 165px;
}

.yd-logo-sub {
    height: 42px;
    max-width: 120px;
}

.yd-header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1 1 auto;
}

.yd-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2f4036;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.yd-nav-link:hover {
    background-color: rgba(23, 107, 58, 0.08);
    color: var(--yd-brand-dark);
}

.yd-nav-link.is-active {
    background-color: rgba(23, 107, 58, 0.12);
    color: var(--yd-brand-dark);
}

.yd-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.yd-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.48rem 0.95rem;
    border-radius: 0.65rem;
}

.yd-login-btn {
    box-shadow: 0 4px 12px rgba(23, 107, 58, 0.22);
}

.card { border-color: rgba(23, 107, 58, 0.12); border-radius: var(--yd-radius); }
.btn { border-radius: 0.65rem; }
.btn-primary { background-color: var(--yd-brand); border-color: var(--yd-brand); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--yd-brand-dark); border-color: var(--yd-brand-dark); }

@media (max-width: 991.98px) {
    .yd-header-nav {
        order: 3;
        flex-basis: 100%;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(23, 107, 58, 0.1);
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767.98px) {
    .yd-site-header { padding: 0.75rem 0.9rem; }
    .yd-header-brands { gap: 0.65rem; }
    .yd-logo-main { height: 42px; max-width: 132px; }
    .yd-logo-sub { height: 34px; max-width: 96px; }
    .yd-brand-divider { height: 24px; }
    .yd-header-actions .btn { padding: 0.42rem 0.78rem; font-size: 0.82rem; }
    .container { --bs-gutter-x: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================================
   Site Footer (.yd-site-footer)
   ========================================================================== */
.yd-site-footer {
    margin-top: 3.5rem;
    background: var(--yd-surface);
    border-top: 3px solid var(--yd-brand);
    box-shadow: 0 -6px 24px rgba(25, 57, 39, 0.05);
    color: var(--yd-text);
}

.yd-footer-main {
    padding: 3rem 0 2.25rem;
}

.yd-footer-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    margin-bottom: 0.9rem;
}

.yd-footer-tagline {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--yd-muted);
    margin-bottom: 1.1rem;
    max-width: 34ch;
}

.yd-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.86rem;
    color: var(--yd-text);
}

.yd-footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.yd-footer-contact-list i {
    width: 18px;
    text-align: center;
    color: var(--yd-brand);
    flex-shrink: 0;
}

.yd-footer-contact-list a {
    color: var(--yd-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.yd-footer-contact-list a:hover {
    color: var(--yd-brand);
}

.yd-footer-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yd-brand-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(23, 107, 58, 0.12);
    display: inline-block;
}

/* Mağazalarımız Kart Listesi */
.yd-footer-stores {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.yd-store-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.48rem 0.75rem;
    background: #f8fbf9;
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: 0.7rem;
    text-decoration: none;
    color: var(--yd-text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.yd-store-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

.yd-store-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.3rem;
}

.yd-store-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.yd-store-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yd-text);
}

.yd-store-sub {
    font-size: 0.72rem;
    color: var(--yd-muted);
}

.yd-store-arrow {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--yd-muted);
    opacity: 0.55;
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.yd-store-card:hover {
    background: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(23, 57, 39, 0.08);
    color: var(--yd-text);
}

.yd-store-card:hover .yd-store-arrow {
    opacity: 1;
    transform: translate(2px, -1px);
}

.yd-store-trendyol:hover { border-color: rgba(242, 122, 26, 0.55); }
.yd-store-trendyol:hover .yd-store-arrow { color: #f27a1a; }

.yd-store-hb:hover { border-color: rgba(255, 96, 0, 0.55); }
.yd-store-hb:hover .yd-store-arrow { color: #ff6000; }

.yd-store-n11:hover { border-color: rgba(93, 62, 188, 0.5); }
.yd-store-n11:hover .yd-store-arrow { color: #5d3ebc; }

.yd-store-pr:hover { border-color: rgba(235, 91, 28, 0.55); }
.yd-store-pr:hover .yd-store-arrow { color: #eb5b1c; }

/* Markalarımız Listesi */
.yd-footer-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.yd-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yd-text);
    background: #f6f9f7;
    border: 1px solid rgba(23, 107, 58, 0.14);
    border-radius: 0.55rem;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.yd-brand-pill i {
    font-size: 0.7rem;
    color: var(--yd-brand);
    opacity: 0.75;
    transition: transform 0.16s ease, color 0.16s ease;
}

.yd-brand-pill:hover {
    background: var(--yd-brand);
    border-color: var(--yd-brand);
    color: #ffffff;
    transform: translateY(-1px);
}

.yd-brand-pill:hover i {
    color: #ffffff;
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Kurumsal Linkler */
.yd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.yd-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--yd-muted);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.yd-footer-links a i {
    font-size: 0.68rem;
    color: var(--yd-brand);
    opacity: 0.65;
}

.yd-footer-links a:hover {
    color: var(--yd-brand);
    transform: translateX(3px);
}

/* Alt Telif Şeridi */
.yd-footer-bottom {
    background: #f3f7f4;
    border-top: 1px solid rgba(23, 107, 58, 0.1);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--yd-muted);
}

.yd-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--yd-brand-dark);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(23, 107, 58, 0.08);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.yd-back-to-top:hover {
    background: var(--yd-brand);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .yd-footer-main {
        padding: 2.25rem 0 1.75rem;
    }
}


/* ==========================================================================
   B2B Bayi Toptan Satış Özel Header (.yd-b2b-header)
   ========================================================================== */
.yd-b2b-header {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2e1c 0%, #104529 58%, #165d37 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-top: 3px solid #fbbf24;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(10, 46, 28, 0.22);
}

.yd-b2b-infobar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.42rem 1.25rem;
    background: rgba(5, 24, 14, 0.42);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(236, 253, 245, 0.85);
}

.yd-b2b-infobar strong {
    color: #fde68a;
}

.yd-b2b-infobar i {
    color: #fde68a;
    margin-right: 0.25rem;
}

.yd-b2b-info-sep {
    opacity: 0.45;
}

.yd-b2b-wa-link {
    color: #fde68a;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.yd-b2b-wa-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.yd-b2b-header .yd-header-inner {
    padding: 0.8rem 1.25rem;
}

.yd-b2b-logo-wrap {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 0.65rem;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(5, 24, 14, 0.26);
    text-decoration: none;
}

.yd-b2b-logo {
    height: 36px;
    max-width: 124px;
}

.yd-b2b-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.42);
    color: #fde68a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.yd-b2b-link {
    color: rgba(236, 253, 245, 0.9);
}

.yd-b2b-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.yd-b2b-link.is-active {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.yd-b2b-btn-gold {
    background: #fbbf24;
    border: 1px solid #fbbf24;
    color: #0a2e1c;
    font-weight: 700;
}

.yd-b2b-btn-gold:hover {
    background: #fcd34d;
    border-color: #fcd34d;
    color: #0a2e1c;
}

.yd-b2b-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.yd-b2b-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.yd-b2b-btn-logout {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.yd-b2b-btn-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .yd-b2b-header .yd-b2b-nav {
        border-top-color: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 767.98px) {
    .yd-b2b-infobar {
        padding: 0.4rem 0.9rem;
    }

    .yd-b2b-header .yd-header-inner {
        padding: 0.7rem 0.9rem;
    }

    .yd-b2b-badge {
        display: none;
    }
}
