/**
 * Header, Navbars, Drawers & Search CSS
 *
 * @package ViralFlowers
 */

/* 1. ÜST ÇUBUK (TOPBAR) */
.vf-topbar {
    background-color: var(--vf-primary);
    color: var(--vf-white);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vf-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vf-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-topbar-notice {
    font-weight: 500;
}

.vf-topbar-notice i {
    color: var(--vf-accent);
    margin-right: 4px;
}

.vf-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.vf-topbar-menu {
    display: flex;
    gap: 16px;
}

.vf-topbar-menu li a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.vf-topbar-menu li a:hover {
    color: var(--vf-accent);
}

/* 2. ANA HEADER */
.vf-header {
    background-color: var(--vf-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--vf-border);
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.vf-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: var(--vf-shadow);
    padding: 10px 0;
}

.vf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.vf-logo-area {
    flex-shrink: 0;
}

.vf-text-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-logo-icon {
    font-size: 1.8rem;
}

.vf-logo-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--vf-primary);
    letter-spacing: -0.5px;
}

.vf-logo-tagline {
    font-size: 0.72rem;
    color: var(--vf-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 4px;
}

/* Arama Çubuğu */
.vf-search-area {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.vf-search-input-wrap {
    display: flex;
    align-items: center;
    background-color: var(--vf-gray-50);
    border: 1.5px solid var(--vf-gray-200);
    border-radius: var(--vf-radius-full);
    padding: 4px 6px 4px 18px;
    transition: all 0.25s ease;
}

.vf-search-input-wrap:focus-within {
    border-color: var(--vf-primary);
    background-color: var(--vf-white);
    box-shadow: 0 0 0 3px rgba(30, 58, 41, 0.1);
}

.vf-search-field {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    color: var(--vf-dark);
}

.vf-search-submit {
    width: 38px;
    height: 38px;
    background-color: var(--vf-primary);
    color: var(--vf-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.vf-search-submit:hover {
    background-color: var(--vf-accent);
}

/* Arama Sonuç Açılır Listesi */
.vf-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--vf-white);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-lg);
    border: 1px solid var(--vf-border);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
}

.vf-search-loading,
.vf-search-no-result,
.vf-search-error {
    padding: 20px;
    text-align: center;
    color: var(--vf-gray-500);
    font-size: 0.9rem;
}

.vf-search-list {
    padding: 8px 0;
}

.vf-search-item {
    border-bottom: 1px solid var(--vf-gray-100);
}

.vf-search-item:last-child {
    border-bottom: none;
}

.vf-search-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
}

.vf-search-link:hover {
    background-color: var(--vf-gray-50);
}

.vf-search-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--vf-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.vf-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-search-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--vf-dark);
    margin-bottom: 2px;
}

.vf-search-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--vf-primary);
}

.vf-search-view-all {
    padding: 12px;
    text-align: center;
    background-color: var(--vf-gray-50);
    border-top: 1px solid var(--vf-border);
    font-size: 0.85rem;
    font-weight: 600;
}

.vf-search-view-all a {
    color: var(--vf-primary);
}

/* Header Sağ Aksiyonlar */
.vf-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* WhatsApp İletişim Kutusu */
.vf-header-contact-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid #e1efe6;
    background-color: #f7fbf8;
    border-radius: var(--vf-radius);
    transition: all 0.2s ease;
}

.vf-header-contact-box:hover {
    background-color: #eaf5ed;
    border-color: #25d366;
}

.vf-contact-icon {
    font-size: 1.4rem;
    color: #25d366;
}

.vf-contact-label {
    display: block;
    font-size: 0.7rem;
    color: var(--vf-gray-500);
    text-transform: uppercase;
    font-weight: 600;
}

.vf-contact-phone {
    font-size: 0.85rem;
    color: var(--vf-dark);
    font-weight: 700;
}

/* Aksiyon Butonları (Hesap, Sepet) */
.vf-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--vf-radius-sm);
    color: var(--vf-dark);
    transition: background 0.2s ease;
}

.vf-action-btn:hover {
    background-color: var(--vf-gray-100);
}

.vf-cart-icon-wrap {
    position: relative;
    font-size: 1.35rem;
    color: var(--vf-primary);
}

.vf-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--vf-secondary);
    color: var(--vf-white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--vf-white);
}

.vf-cart-total-text {
    text-align: left;
}

.vf-cart-label {
    display: block;
    font-size: 0.7rem;
    color: var(--vf-gray-500);
    font-weight: 600;
    text-transform: uppercase;
}

.vf-cart-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vf-primary);
}

.vf-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--vf-dark);
}

/* ====================================================
   3. KATEGORİ MENÜ BARI (TEMİZ VE KAYDIRMA ÇUBUĞU OLMADAN)
==================================================== */
.vf-category-navbar {
    background-color: var(--vf-white);
    border-bottom: 1.5px solid var(--vf-border);
    position: relative;
    overflow: hidden;
}

.vf-category-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox: Scrollbar gizleme */
    -ms-overflow-style: none; /* IE/Edge: Scrollbar gizleme */
    -webkit-overflow-scrolling: touch;
    padding: 6px 0;
    margin: 0;
    list-style: none;
}

.vf-category-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera: Scrollbar gizleme */
}

.vf-category-menu li {
    flex-shrink: 0;
}

.vf-category-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--vf-dark);
    position: relative;
    border-radius: var(--vf-radius-full);
    transition: all 0.2s ease;
}

.vf-category-menu li a i {
    color: var(--vf-accent);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.vf-category-menu li a:hover {
    color: var(--vf-primary);
    background-color: var(--vf-primary-light);
}

.vf-category-menu li a:hover i {
    transform: scale(1.15);
}

.vf-menu-highlight {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fee2e2 !important;
}

.vf-menu-highlight i {
    color: #dc2626 !important;
}

.vf-menu-highlight:hover {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

/* 4. MOBİL VE SEPET ÇEKMECELERİ (DRAWERS) */
.vf-mobile-drawer,
.vf-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.vf-mobile-drawer.is-active,
.vf-cart-drawer.is-active {
    visibility: visible;
}

.vf-drawer-backdrop,
.vf-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vf-mobile-drawer.is-active .vf-drawer-backdrop,
.vf-cart-drawer.is-active .vf-cart-backdrop {
    opacity: 1;
}

.vf-drawer-content,
.vf-cart-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 360px;
    max-width: 85%;
    background-color: var(--vf-white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--vf-shadow-lg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vf-drawer-content {
    left: 0;
    transform: translateX(-100%);
}

.vf-cart-panel {
    right: 0;
    transform: translateX(100%);
}

.vf-mobile-drawer.is-active .vf-drawer-content,
.vf-cart-drawer.is-active .vf-cart-panel {
    transform: translateX(0);
}

.vf-drawer-header,
.vf-cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--vf-border);
}

.vf-drawer-title,
.vf-cart-panel-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-drawer-close,
.vf-cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    color: var(--vf-gray-500);
}

.vf-drawer-body,
.vf-cart-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.vf-mobile-nav-list li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--vf-gray-100);
}

.vf-mobile-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed var(--vf-border);
}
