/**
 * MEZATIKA CUSTOM HEADER
 * Modern, responsive header with brand colors
 * 
 * Colors:
 * Primary Orange: #F2A900
 * Dark Text: #2C2C2C
 * Light Gray: #F8F9FA
 * Border: #E9ECEF
 */

/* ========================================
   HIDE ORIGINAL THEME HEADER
   ======================================== */
   .site-header,
   .header-wrapper,
   .main-header,
   #masthead,
   .top-header,
   .header-container,
   /* iBid header templates (v1..v9) */
   header[class^="header-v"],
   header[class*=" header-v"],
   /* One-page and section headers */
   header#one-page-header,
   header.section-header,
   /* Misc header containers used by iBid */
   .mt-header,
   #ibid-main-head {
       display: none !important;
   }
   
   /* ========================================
      MEZATIKA CUSTOM HEADER CONTAINER
      ======================================== */
   .mezatika-custom-header {
       position: sticky;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 10000;
       background: #fff;
       /* iPhone notch / status bar: white band + inset (needs viewport-fit=cover in header.php) */
       padding-top: constant(safe-area-inset-top);
       padding-top: env(safe-area-inset-top, 0px);
       box-sizing: border-box;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
       font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   }
   
   /* Topbar */
   .mezatika-topbar {
       height: 32px;
       background: #fff;
       color: #000;
       font-size: 13px;
   }
   .mezatika-topbar .container {
       width: 100%;
       height: 30px;
       line-height: 30px;
       margin: 0 auto;
       padding: 0 20px;
       display: flex;
       align-items: center;
       justify-content: space-between;
   }
   .mezatika-topbar .topbar-left {
       display: inline-flex;
       align-items: center;
       gap: 8px;
   }
   .mezatika-topbar .live-dot {
       width: 8px;
       height: 8px;
       border-radius: 50%;
       background: #F2A900;
       box-shadow: 0 0 0 0 rgba(242,169,0,0.8);
       animation: pulseDot 1.6s infinite;
   }
   @keyframes pulseDot {
       0% { box-shadow: 0 0 0 0 rgba(242,169,0,0.8); }
       70% { box-shadow: 0 0 0 8px rgba(242,169,0,0); }
       100% { box-shadow: 0 0 0 0 rgba(242,169,0,0); }
   }
   .mezatika-topbar .topbar-right {
       display: inline-flex;
       align-items: center;
       gap: 18px;
   }
   .mezatika-topbar .topbar-link {
       color: #000;
       text-decoration: none;
       opacity: 0.9;
       transition: color .15s ease, opacity .15s ease, text-decoration-color .15s ease;
       background: transparent !important;
   }
   .mezatika-topbar .topbar-right {
       background: transparent !important;
   }
   .mezatika-topbar .topbar-right .topbar-link,
   .mezatika-topbar .topbar-right .topbar-link:link,
   .mezatika-topbar .topbar-right .topbar-link:visited,
   .mezatika-topbar .topbar-right .topbar-link:hover,
   .mezatika-topbar .topbar-right .topbar-link:focus,
   .mezatika-topbar .topbar-right .topbar-link:active {
       background: transparent !important;
       background-color: transparent !important;
       background-image: none !important;
       box-shadow: none !important;
       border: none !important;
   }
   .mezatika-topbar .topbar-link:hover {
       color: #F2A900;
       text-decoration: underline;
       text-decoration-color: #F2A900;
       opacity: 1;
   }
   
   /* Top Header - Logo, Search, User Actions */
   .mezatika-header-top {
       background: #fff;
       border-bottom: 1px solid rgb(233, 236, 239);
       min-height: 80px;
       padding: 0px 0;
       display: flex;
       align-items: center;
   }
   
   .mezatika-header-top .container {
       width: 100%;
       margin: 0 auto;
       padding: 0 20px;
       display: flex;
       align-items: center;
       gap: 30px;
   }
   
   /* Logo */
   .mezatika-logo {
       flex-shrink: 0;
   }
   
   .mezatika-logo a {
       display: flex;
       align-items: center;
       text-decoration: none;
       font-size: 28px;
       font-weight: 700;
       color: #2C2C2C;
       transition: opacity 0.2s;
   }
   
   .mezatika-logo a:hover {
       opacity: 0.8;
   }
   
   .mezatika-logo .logo-text-primary {
       color: #F2A900;
   }
   
   .mezatika-logo .logo-text-secondary {
       color: #2C2C2C;
   }
   
   /* Mobile Icons (Messages & Notifications) - Hidden on desktop */
   .mezatika-mobile-icons {
       display: none;
   }
   
   /* Search Bar */
   .mezatika-search {
       flex: 1;
       max-width: 900px;
   }
   
   .mezatika-search-form {
       position: relative;
       display: flex;
       width: 100%;
   }
   
   .mezatika-search-input {
       flex: 1;
       line-height: 48px;
       height: 48px;
       padding: 0 50px 0 44px;
       border: 1px solid rgba(0,0,0,0.08);
       border-radius: 10px;
       font-size: 15px;
       color: #2C2C2C;
       background: #FAFAFA;
       transition: all 0.2s;
       outline: none;
   }
   
   .mezatika-search-input:focus {
       border-color: #F2A900;
       background: #fff;
       box-shadow: 0 0 0 3px rgba(242,169,0,0.18);
   }
   
   .mezatika-search-input::placeholder {
       color: #999;
   }
   
   .mezatika-search-button {
       position: absolute;
       right: 5px;
       top: 50%;
       transform: translateY(-50%);
       width: 38px;
       height: 38px;
       border: none;
       border-radius: 50%;
       background: #F2A900;
       color: #fff;
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center;
       transition: all 0.2s;
   }
   
   /* =========================================================
      WooCommerce Cart - Hide "You may be interested in…" block
      ========================================================= */
   body.woocommerce-cart .wp-block-woocommerce-product-collection {
       display: none !important;
   }
   
   body.woocommerce-cart .wc-block-components-product-details__vendor,
   body.woocommerce-cart .wc-block-components-product-details__vendor .wc-block-components-product-details__name {
       display: none !important;
   }
   
   .mezatika-search-button:hover {
       background: #d99400;
       transform: translateY(-50%) scale(1.05);
   }
   
   .mezatika-search-button svg {
       width: 18px;
       height: 18px;
   }
   
   /* User Actions */
   .mezatika-user-actions {
       display: flex;
       align-items: center;
       gap: 16px;
       flex-shrink: 0;
       margin-left: auto;
   }
   
   .mezatika-user-icon {
       width: 40px;
       height: 40px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       color: #2C2C2C;
       background: transparent;
       border: 1px solid rgba(0,0,0,0.06);
       text-decoration: none;
       transition: background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
       position: relative;
   }
   .mezatika-user-icon:hover {
       background: rgba(242,169,0,0.10);
       border-color: rgba(242,169,0,0.35);
       transform: translateY(-1px);
   }
   .mezatika-user-icon svg {
       width: 20px;
       height: 20px;
       stroke: currentColor;
   }
   
   .mezatika-auth-link {
       color: #000;
       text-decoration: none;
       font-weight: 500;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       box-sizing: border-box;
       line-height: 1.2;
       min-height: 40px;
       padding: 0 12px;
   }
   .mezatika-auth-link:hover { text-decoration: underline; }
   .mezatika-auth-cta {
       background: #F2A900;
       color: #000;
       border-radius: 8px;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       box-sizing: border-box;
       line-height: 1.2;
       min-height: 40px;
       padding: 0 16px;
       font-weight: 600;
       text-decoration: none;
       border: 1px solid rgba(0,0,0,0.06);
       transition: transform .18s ease, box-shadow .18s ease;
   }
   .mezatika-auth-cta:hover {
       transform: translateY(-1px);
       box-shadow: 0 6px 16px rgba(242,169,0,0.25);
   }
   
   .mezatika-user-action {
       display: flex;
       align-items: center;
       gap: 8px;
       text-decoration: none;
       color: #2C2C2C;
       font-size: 14px;
       font-weight: 500;
       transition: color 0.2s;
       white-space: nowrap;
       background: none;
       border: none;
       cursor: pointer;
       padding: 0;
   }
   
   .mezatika-user-action:hover {
       color: #F2A900;
   }
   
   .mezatika-user-action svg {
       width: 22px;
       height: 22px;
       flex-shrink: 0;
   }
   
   /* User Dropdown */
   .mezatika-user-dropdown {
       position: relative;
   }
   
   .mezatika-user-trigger {
       cursor: pointer;
   }
   
   .mezatika-account-box,
   .mezatika-cart-box {
       display: inline-flex;
       align-items: center;
       gap: 10px;
       height: 48px;
       padding: 0 12px;
       min-width: 160px;
       max-width: 200px;
       background: #F8F8F8;
       border: 1px solid #D0D0D0;
       border-radius: 8px;
       box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
       color: #2C2C2C;
       text-decoration: none;
   }
   
   .mezatika-account-box:focus,
   .mezatika-cart-box:focus {
       outline: 2px solid rgba(242,169,0,0.35);
       outline-offset: 2px;
   }
   
   .mezatika-account-box .account-avatar,
   .mezatika-cart-box .cart-icon {
       width: 20px;
       height: 20px;
       flex-shrink: 0;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       border-radius: 50%;
       overflow: hidden;
   }
   
   .mezatika-account-box .account-avatar img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
   }
   
   .mezatika-cart-box .cart-icon svg {
       width: 100%;
       height: 100%;
   }
   
   .mezatika-account-box .account-text,
   .mezatika-cart-box .cart-text {
       display: flex;
       flex-direction: column;
       justify-content: center;
       min-width: 0;
       line-height: 1.1;
   }
   
   .mezatika-account-box .account-text .line-1,
   .mezatika-cart-box .cart-text .line-1 {
       font-weight: 600;
       color: #333;
       font-size: 13px;
   }
   
   .mezatika-account-box .account-text .line-2,
   .mezatika-cart-box .cart-text .line-2 {
       margin-top: 2px;
       font-size: 11.5px;
       color: #777;
       white-space: nowrap;
       overflow: hidden;
       text-overflow: ellipsis;
   }
   
   .mezatika-account-box .arrow,
   .mezatika-cart-box .arrow {
       margin-left: auto;
       width: 15px;
       height: 12px;
       color: #666;
       flex-shrink: 0;
   }
   
   /* Cart box wrapper & badge */
   .mezatika-cart-wrapper {
       position: relative;
       display: inline-block;
   }
   
   .mezatika-dropdown-menu {
       position: absolute;
       top: calc(100% + 15px);
       right: 0;
       min-width: 260px;
       background: #fff;
       border-radius: 12px;
       box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
       opacity: 0;
       visibility: hidden;
       transform: translateY(-10px);
       transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
       z-index: 10000;
       overflow: hidden;
   }
   
   .mezatika-dropdown-menu::before {
       content: '';
       position: absolute;
       top: -8px;
       right: 20px;
       width: 16px;
       height: 16px;
       background: #fff;
       transform: rotate(45deg);
       box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
   }
   
   .mezatika-dropdown-menu.show {
       opacity: 1;
       visibility: visible;
       transform: translateY(0);
   }
   
   .dropdown-header {
       padding: 16px 20px;
       background: linear-gradient(135deg, #F2A900 0%, #d99400 100%);
       border-bottom: none;
   }
   
   .dropdown-header strong {
       font-size: 14px;
       font-weight: 700;
       color: #fff;
       display: block;
       letter-spacing: 0.5px;
   }
   
   .dropdown-item {
       display: flex;
       align-items: center;
       gap: 12px;
       padding: 14px 20px;
       color: #2C2C2C;
       font-size: 14px;
       font-weight: 500;
       text-decoration: none;
       transition: all 0.25s ease;
       border-left: 3px solid transparent;
       position: relative;
   }
   
   .dropdown-item svg {
       width: 18px;
       height: 18px;
       flex-shrink: 0;
       color: #2C2C2C;
       transition: all 0.25s ease;
   }
   
   .dropdown-item:hover {
       background: linear-gradient(90deg, rgba(242, 169, 0, 0.08) 0%, rgba(242, 169, 0, 0.02) 100%);
       border-left-color: #F2A900;
       color: #F2A900;
       padding-left: 24px;
   }
   
   .dropdown-item:hover svg {
       color: #F2A900;
       transform: translateX(2px);
   }
   
   .dropdown-item:focus {
       outline: 2px solid #F2A900;
       outline-offset: -2px;
       background: rgba(242, 169, 0, 0.05);
   }
   
   .dropdown-divider {
       height: 1px;
       background: linear-gradient(90deg, transparent 0%, #E9ECEF 10%, #E9ECEF 90%, transparent 100%);
       margin: 8px 0;
   }
   
   .dropdown-item-danger {
       color: #2C2C2C;
   }
   
   .dropdown-item-danger svg {
       color: #2C2C2C;
   }
   
   .dropdown-item-danger:hover {
       background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.02) 100%);
       border-left-color: #dc3545;
       color: #dc3545;
       padding-left: 24px;
   }
   
   .dropdown-item-danger:hover svg {
       color: #dc3545;
       transform: translateX(2px);
   }
   
   .mezatika-user-action.cart-action {
       position: relative;
   }
   
   .mezatika-cart-count {
       position: absolute;
       top: -8px;
       right: -8px;
       background: #F2A900;
       color: #fff;
       font-size: 11px;
       font-weight: 700;
       min-width: 18px;
       height: 18px;
       border-radius: 9px;
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 0 5px;
   }
   
   /* Mobile Menu Toggle */
   .mezatika-mobile-toggle {
       display: none;
       background: none;
       border: none;
       cursor: pointer;
       padding: 8px;
       margin-left: auto;
   }
   
   .mezatika-mobile-toggle svg {
       width: 24px;
       height: 24px;
       color: #2C2C2C;
   }
   
   /* ========================================
      BOTTOM HEADER - CATEGORIES
      ======================================== */
   .mezatika-header-bottom {
       display: none !important;
       background: transparent !important;
       border: 0 !important;
   }
   
   .mezatika-header-bottom .container {
       max-width: 100% !important;
       margin: 0 auto;
       padding: 0 20px;
   }
   
   /* Admin bar offset for sticky header */
   .admin-bar .mezatika-custom-header {
       top: 0 !important;
   }
   
   .mezatika-categories-nav {
       display: flex;
       align-items: center;
       gap: 5px;
       overflow-x: auto;
       -webkit-overflow-scrolling: touch;
       scrollbar-width: none;
       padding: 8px 0;
   }
   
   .mezatika-categories-nav::-webkit-scrollbar {
       display: none;
   }
   
   .mezatika-category-link {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       padding: 10px 14px;
       color: #000;
       text-decoration: none;
       font-size: 14px;
       font-weight: 600;
       white-space: nowrap;
       transition: all 0.2s;
       position: relative;
       margin: 0 6px;
   }
   .mezatika-category-link::after {
       content: '';
       position: absolute;
       left: 14px;
       right: 14px;
       bottom: -10px;
       height: 2px;
       background: #F2A900;
       transform: scaleX(0);
       transform-origin: left center;
       transition: transform .2s ease;
   }
   .mezatika-category-link:hover::after { transform: scaleX(1); }
   .mezatika-category-link.active::after { transform: scaleX(1); }
   
   /* ========================================
      MOBILE BOTTOM NAVIGATION (HIDDEN ON DESKTOP)
      ======================================== */
   .mezatika-mobile-bottom-nav {
       display: none;
   }
   
   /* ========================================
      MOBILE RESPONSIVE
      ======================================== */
   @media (max-width: 1024px) {
       .mezatika-header-top .container {
           gap: 15px;
       }
       
       .mezatika-search {
           max-width: none;
       }
       
       .mezatika-user-actions {
           gap: 15px;
       }
       
       .mezatika-user-action span {
           display: none;
       }
       
       /* Dropdown adjustments for tablet */
       .mezatika-dropdown-menu {
           min-width: 240px;
       }
   }
   
   @media (max-width: 768px) {
       /*
        * Alt sabit menü + home indicator: uygulama WebView / iOS’ta içerik en alta kaymıyorsa
        * scroll yüksekliği buradan gelir (mobilde .mezatika-footer gizli).
        * PDP (Framer tek ürün): alt satır sticky — tab menü gizli, boşluk farklı.
        */
       html {
           /* ~82+4: alt bar padding 18→22px (Chrome Android boşluk) */
           --mezatika-bottom-nav-clearance: calc(86px + max(20px, constant(safe-area-inset-bottom)));
           --mezatika-bottom-nav-clearance: calc(86px + max(20px, env(safe-area-inset-bottom, 0px)));
           scroll-padding-bottom: var(--mezatika-bottom-nav-clearance);
       }
       html:has([data-mzt-mob-sticky-always="1"]) {
           --mezatika-bottom-nav-clearance: calc(64px + max(20px, env(safe-area-inset-bottom, 0px)));
       }
       body.single-product:has([data-mzt-mob-sticky-always="1"]) .mezatika-mobile-bottom-nav {
           display: none !important;
       }
       body {
           padding-bottom: var(--mezatika-bottom-nav-clearance) !important;
       }
   
       /* Hide topbar on mobile */
       .mezatika-topbar {
           display: none !important;
       }

       /* Üstte sürekli sabit: gizleme sınıfı + translate burada uygulanmaz (bkz. aşağıdaki desktop kuralı) */
       .mezatika-custom-header {
           position: -webkit-sticky;
           position: sticky;
           top: 0;
           z-index: 10000;
       }
       .mezatika-custom-header.header-hidden {
           transform: none !important;
       }
   
       /* Mobile header adjustments */
       .mezatika-header-top {
           padding: 8px 0;
           min-height: 64px;
       }
       
       .mezatika-header-top .container {
           flex-wrap: wrap;
           gap: 12px;
       }
       
       /* Logo - smaller on mobile */
       .mezatika-logo {
           order: 1;
       }
       
       .mezatika-logo a {
           font-size: 22px;
       }
   
       /* Show mobile icons (Messages & Notifications) */
       .mezatika-mobile-icons {
           display: flex;
           gap: 10px;
           order: 2;
           margin-left: auto;
       }
   
       .mezatika-mobile-icon {
           width: 40px;
           height: 40px;
           border-radius: 50%;
           display: flex;
           align-items: center;
           justify-content: center;
           background: #F8F8F8;
           border: 1px solid #D0D0D0;
           color: #2C2C2C;
           text-decoration: none;
           position: relative;
           transition: all 0.2s;
       }
   
       .mezatika-mobile-icon:active {
           background: #E8E8E8;
           transform: scale(0.95);
       }
   
       .mezatika-mobile-icon svg {
           width: 22px;
           height: 22px;
       }
   
       .mezatika-mobile-icon .notification-badge {
           position: absolute;
           top: -4px;
           right: -4px;
           background: #F2A900;
           color: #fff;
           font-size: 10px;
           font-weight: 700;
           min-width: 16px;
           height: 16px;
           border-radius: 8px;
           display: flex;
           align-items: center;
           justify-content: center;
           padding: 0 4px;
       }
       
       /* Search bar - full width below logo row */
       .mezatika-search {
           order: 3;
           width: 100%;
           max-width: none;
           margin-top: 6px;
           padding-top: 6px;
       }
       
       .mezatika-search-input {
           height: 44px;
           font-size: 14px;
       }
       
       /* Hide desktop user actions on mobile */
       .mezatika-user-actions {
           display: none !important;
       }
       
       .mezatika-mobile-toggle {
           display: none;
       }
       
       /* Hide desktop categories on mobile */
       .mezatika-header-bottom {
           display: none !important;
       }
   
       /* Mobil alt menü — tam genişlik; altta safe-area padding */
       .mezatika-mobile-bottom-nav {
           display: flex;
           position: fixed;
           bottom: 0;
           left: 0;
           right: 0;
           width: 100%;
           min-height: 58px;
           box-sizing: border-box;
           align-items: center;
           background: #fff;
           border-top: 1px solid #E9ECEF;
           box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
           z-index: 9998;
           /* safe-area + ek dolgu: Chrome Android’de altta ince boşluk kapanır */
           padding: 6px 0 calc(10px + max(12px, env(safe-area-inset-bottom, 0px))) 0;
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item,
       .mezatika-mobile-bottom-nav .mobile-nav-item:visited {
           flex: 1;
           display: flex;
           flex-direction: column;
           align-items: center;
           justify-content: center;
           gap: 4px;
           text-decoration: none;
           color: #2d2d2d !important;
           font-size: 11px;
           font-weight: 600;
           transition: color 0.18s ease, stroke 0.18s ease;
           position: relative;
           padding: 6px 4px;
           -webkit-tap-highlight-color: transparent;
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item svg {
           width: 24px;
           height: 24px;
           flex-shrink: 0;
           stroke-width: 2;
           stroke: #2d2d2d !important;
           color: #2d2d2d;
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item span {
           text-align: center;
           line-height: 1.2;
           color: inherit;
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item.active,
       .mezatika-mobile-bottom-nav .mobile-nav-item.active:visited {
           color: #F2A900 !important;
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item.active svg {
           stroke: #F2A900 !important;
       }
   
       @media (hover: hover) and (pointer: fine) {
           .mezatika-mobile-bottom-nav .mobile-nav-item:hover:not(.active),
           .mezatika-mobile-bottom-nav .mobile-nav-item:focus-visible:not(.active) {
               color: #1a1a1a !important;
           }
           .mezatika-mobile-bottom-nav .mobile-nav-item:hover:not(.active) svg,
           .mezatika-mobile-bottom-nav .mobile-nav-item:focus-visible:not(.active) svg {
               stroke: #F2A900 !important;
           }
       }
   
       .mezatika-mobile-bottom-nav .mobile-nav-item:active {
           opacity: 0.92;
       }
   
       /* Cart badge in mobile nav */
       .mobile-nav-icon-wrapper {
           position: relative;
       }
   
       .mobile-nav-badge {
           position: absolute;
           top: -6px;
           right: -6px;
           background: #F2A900;
           color: #fff;
           font-size: 10px;
           font-weight: 700;
           min-width: 16px;
           height: 16px;
           border-radius: 8px;
           display: flex;
           align-items: center;
           justify-content: center;
           padding: 0 4px;
           border: 2px solid #fff;
       }
   }
   
   /* ========================================
      LOADING STATE
      ======================================== */
   .mezatika-custom-header.loading {
       pointer-events: none;
       opacity: 0.6;
   }
   
   /* ========================================
      MODERN OVERRIDES & COMPACT ON SCROLL
      ======================================== */
   .mezatika-custom-header {
       transition: box-shadow 0.2s ease, transform 0.2s ease;
   }
   
   .mezatika-custom-header.stuck {
       box-shadow: 0 8px 24px rgba(0,0,0,0.08);
   }
   
   .mezatika-custom-header.is-compact .mezatika-header-top {
       padding: 0;
       min-height: 66px;
   }
   
   .mezatika-custom-header.is-compact .mezatika-logo a {
       font-size: 24px;
   }
   
   .mezatika-custom-header.is-compact .mezatika-search-input {
       height: 42px;
   }
   
   .mezatika-custom-header.is-compact .mezatika-search-button {
       width: 34px;
       height: 34px;
   }
   
   /* Search input modern look */
   .mezatika-search-input {
       box-shadow: inset 0 1px 0 rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
   }
   
   .mezatika-search-input:focus {
       box-shadow: 0 0 0 3px rgba(242,169,0,0.18);
   }
   
   /* ========================================
      GLOBAL CONTAINER WIDTH (DESKTOP)
      ======================================== */
   @media (min-width: 1024px) {
       .mezatika-topbar .container,
       .mezatika-header-top .container,
       .mezatika-header-bottom .container {
           width: 80% !important;
           max-width: none !important;
           margin-left: auto !important;
           margin-right: auto !important;
       }
   }
   
   /* ========================================
      PRINT - HIDE HEADER
      ======================================== */
   @media print {
       .mezatika-custom-header,
       .mezatika-mobile-bottom-nav {
           display: none !important;
       }
   }
   
   /* ========================================
      HIGH CONTRAST MODE
      ======================================== */
   @media (prefers-contrast: high) {
       .mezatika-search-input {
           border-color: #2C2C2C;
       }
       
       .mezatika-category-link:hover {
           background: #F2A900;
           color: #fff;
       }
   }
   
   /* ========================================
      REDUCE MOTION
      ======================================== */
   @media (prefers-reduced-motion: reduce) {
       .mezatika-custom-header,
       .mezatika-category-link,
       .mezatika-user-action,
       .mezatika-search-input,
       .mezatika-search-button,
       .mobile-nav-item {
           transition: none !important;
       }
   }
   
   /* ========================================
      MEZATIKA CUSTOM FOOTER
      ======================================== */
   .mezatika-page-wrapper {
       flex: 1 0 auto;
       min-height: auto;
   }
   .mezatika-footer {
       background: #F2F2F2;
       color: #222;
       margin-top: 60px;
       clear: both;
       display: block;
       position: static !important;
       z-index: auto !important;
       float: none;
       flex-shrink: 0;
   }
   
   /* Global layout to keep footer at bottom */
   html, body {
       height: 100%;
       background-color: #fff;
   }
   body {
       min-height: 100vh;
       display: flex;
       flex-direction: column;
       margin: 0;
   }
   
   html, body, .mezatika-page-wrapper {
       overflow: visible !important;
   }
   
   .mezatika-footer .mezatika-footer-container {
       width: 80%;
       max-width: none;
       margin: 0 auto;
       padding: 0 20px;
       box-sizing: border-box;
   }
   
   /* Top grid */
   .mezatika-footer-top {
       padding: 36px 0 10px 0;
       border-top: 1px solid rgba(0,0,0,0.06);
       border-bottom: 1px solid rgba(0,0,0,0.06);
       background: #F2F2F2;
   }
   .mezatika-footer-top .mezatika-footer-container {
       display: grid;
       grid-template-columns: repeat(6, minmax(0, 1fr));
       column-gap: 90px;
       row-gap: 24px;
   }
   .mezatika-footer .footer-col .footer-title {
       margin: 0 0 12px 0;
       font-weight: 600;
       color: #222;
       font-size: 16px;
   }
   .mezatika-footer .footer-list {
       list-style: none;
       padding: 0;
       margin: 0;
   }
   .mezatika-footer .footer-list li {
       margin: 0 0 8px 0;
   }
   .mezatika-footer .footer-list a {
       color: #555;
       text-decoration: none;
       font-size: 14px;
       word-break: normal;
       overflow-wrap: normal;
       hyphens: manual;
   }
   .mezatika-footer .footer-list a:hover {
       color: #000;
       text-decoration: underline;
   }
   
   /* Social */
   .mezatika-footer .footer-social {
       display: flex;
       gap: 14px;
       align-items: center;
       flex-wrap: wrap;
   }
   .mezatika-footer .social-circle {
       width: 36px;
       height: 36px;
       border-radius: 50%;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       color: #fff;
   }
   .mezatika-footer .social-circle svg {
       width: 18px;
       height: 18px;
   }
   .mezatika-footer .social-circle.fb { background: #1877F2; }
   .mezatika-footer .social-circle.ig { background: radial-gradient( circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90% ); }
   .mezatika-footer .social-circle.yt { background: #FF0000; }
   .mezatika-footer .social-circle.x { background: #111; }
   
   /* Certificates */
   .mezatika-footer .cert-logos {
       display: flex;
       gap: 12px;
       flex-wrap: wrap;
   }
   .mezatika-footer .cert-box {
       width: 60px;
       height: 38px;
       background: #fff;
       border: 1px solid #DDD;
       border-radius: 8px;
       display: inline-block;
   }
   
   /* Middle rows */
   .mezatika-footer-middle {
       padding: 20px 0 26px 0;
       background: #F2F2F2;
   }
   .mezatika-footer-middle .mezatika-footer-container {
       display: grid;
       grid-template-columns: repeat(2, minmax(0, 1fr));
       gap: 40px;
       align-items: start;
   }
   .mezatika-footer .group-title {
       margin: 0 0 10px 0;
       font-weight: 600;
       color: #222;
       font-size: 15px;
   }
   .mezatika-footer .logo-row {
       display: flex;
       gap: 12px;
       flex-wrap: wrap;
   }
   .mezatika-footer .logo-box {
       width: 70px;
       height: 38px;
       border: 1px solid #DDD;
       border-radius: 8px;
       overflow: hidden;
       display: inline-block;
   }
   .mezatika-footer .logo-box svg {
       width: 100%;
       height: 100%;
       display: block;
   }
   .mezatika-footer .logo-box img {
       width: 100%;
       height: 100%;
       display: block;
       object-fit: contain;
       background: #fff;
       border-radius: 8px;
   }
   
   .mezatika-footer .app-buttons {
       display: flex;
       gap: 16px;
       flex-wrap: wrap;
   }
   .mezatika-footer .app-btn {
       display: inline-flex;
       align-items: center;
       gap: 10px;
       height: 50px;
       padding: 0 18px;
       background: #000;
       color: #fff;
       border-radius: 12px;
       text-decoration: none;
       font-weight: 600;
   }
   .mezatika-footer .app-btn .app-icon {
       font-size: 18px;
       line-height: 1;
   }
   .mezatika-footer .app-btn .app-text {
       font-size: 14px;
   }
   
   /* Bottom legal strip */
   .mezatika-footer-bottom {
       background: #111;
       color: #ccc;
       font-size: 12.5px;
   }
   .mezatika-footer-bottom .mezatika-footer-container {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 16px;
       padding: 12px 0;
       flex-wrap: wrap;
   }
   .mezatika-footer-bottom a {
       color: #ccc;
       text-decoration: none;
   }
   .mezatika-footer-bottom a:hover {
       color: #fff;
       text-decoration: underline;
   }
   .mezatika-footer-bottom .sep {
       margin: 0 8px;
       color: #666;
   }
   
   @media (max-width: 1024px) {
       .mezatika-footer-top .mezatika-footer-container {
           grid-template-columns: repeat(3, minmax(0, 1fr));
           column-gap: 40px;
       }
       .mezatika-footer-middle .mezatika-footer-container {
           grid-template-columns: 1fr;
       }
       .mezatika-footer .footer-col .footer-title {
           font-size: 15px;
       }
       .mezatika-footer .footer-list a {
           font-size: 13px;
       }
   }
   @media (max-width: 768px) {
       /* Adjust footer padding for mobile bottom nav */
       .mezatika-footer {
           margin-bottom: 0;
       }
   
       .mezatika-footer-top .mezatika-footer-container {
           grid-template-columns: repeat(2, minmax(0, 1fr));
           column-gap: 26px;
       }
       .mezatika-footer .footer-col .footer-title {
           font-size: 14px;
       }
       .mezatika-footer .footer-list a {
           font-size: 12.5px;
       }
   }
   @media (max-width: 480px) {
       .mezatika-footer-top .mezatika-footer-container {
           grid-template-columns: 1fr;
           column-gap: 20px;
           row-gap: 24px;
       }
       .mezatika-footer-top {
           padding: 24px 0 8px 0;
       }
       .mezatika-footer .footer-col {
           padding-bottom: 14px;
           border-bottom: 1px solid rgba(0,0,0,0.06);
       }
       .mezatika-footer .footer-col:last-child {
           border-bottom: none;
           padding-bottom: 0;
       }
       .mezatika-footer .footer-col .footer-title {
           font-size: 13px;
           margin-bottom: 8px;
       }
       .mezatika-footer .footer-list a {
           font-size: 12px;
       }
       .mezatika-footer .footer-social,
       .mezatika-footer .app-buttons,
       .mezatika-footer .logo-row {
           justify-content: flex-start;
           gap: 10px;
       }
   }
   
   /* ========================================
   MOBILE - HIDE FOOTER
   ======================================== */
@media (max-width: 768px) {
    .mezatika-footer,
    footer,
    #footer,
    #colophon,
    .site-footer,
    .footer-wrap,
    .ibid-footer {
        display: none !important;
    }
}

/* ========================================
   MOBILE MENU BUTTON (3 LINES) - VISIBLE ONLY ON MOBILE
   ======================================== */
   .mezatika-mobile-menu-btn {
    display: none;
}

/* ========================================
   MOBILE OFFCANVAS MENU (CATEGORIES FROM BOTTOM)
   ======================================== */
.mezatika-mobile-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.mezatika-mobile-offcanvas.active {
    pointer-events: auto;
}

.offcanvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mezatika-mobile-offcanvas.active .offcanvas-overlay {
    opacity: 1;
}

.offcanvas-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mezatika-mobile-offcanvas.active .offcanvas-content {
    transform: translateY(0);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #E9ECEF;
    flex-shrink: 0;
}

.offcanvas-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
}

.offcanvas-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F8F8F8;
    color: #2C2C2C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.offcanvas-close:active {
    background: #E8E8E8;
    transform: scale(0.95);
}

.offcanvas-close svg {
    width: 20px;
    height: 20px;
}

.offcanvas-categories {
    overflow-y: auto;
    padding: 8px 0 20px 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-category-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #2C2C2C;
    transition: background 0.2s;
    border-bottom: 1px solid #F5F5F5;
}

.offcanvas-category-item:active {
    background: #F8F9FA;
}

.offcanvas-category-item.active {
    background: linear-gradient(90deg, rgba(242, 169, 0, 0.08) 0%, rgba(242, 169, 0, 0.02) 100%);
    border-left: 3px solid #F2A900;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F8F8F8;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.category-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F2A900 0%, #FFB84D 100%);
}

.category-icon-placeholder svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.category-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
}

.category-count {
    font-size: 13px;
    color: #999;
    margin-right: 4px;
}

.category-arrow {
    width: 18px;
    height: 18px;
    color: #999;
    flex-shrink: 0;
}

.offcanvas-category-item.active .category-arrow {
    color: #F2A900;
}

/* ========================================
   MOBILE RESPONSIVE - YENI DÜZEN
   ======================================== */
   @media (max-width: 768px) {
    /* Alt menü boşluğu — üst bloktaki html/body ile aynı değişken */
    body {
        padding-bottom: var(--mezatika-bottom-nav-clearance, calc(86px + max(20px, env(safe-area-inset-bottom, 0px)))) !important;
    }

    /* Hide topbar on mobile */
    .mezatika-topbar {
        display: none !important;
    }

    /* Mobile header - tek satır: 3 çizgi + logo + arama */
    .mezatika-header-top {
        padding: 0px 0;
        min-height: 60px;
        border-top: none !important; /* Arama kutusunun üstündeki çizgiyi kaldır */
        border-top: none !important; /* Üst border'ı da kaldır */
    }
    
    .mezatika-header-top .container {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 12px;
        align-items: center; /* DİKEY ORTALAMA - bu zaten var ama emin olmak için */
    }
    
    /* Show mobile menu button (3 lines) */
    .mezatika-mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #F8F8F8;
        border: 1px solid #E5E5E5;
        color: #2C2C2C;
        cursor: pointer;
        transition: all 0.2s;
        grid-column: 1;
        grid-row: 1;
        align-self: center; /* Kendi hücresinde dikey ortalama */
        margin-top: 15px;
    }

    .mezatika-mobile-menu-btn:active {
        background: #E8E8E8;
        transform: scale(0.95);
    }

    .mezatika-mobile-menu-btn svg {
        width: 22px;
        height: 22px;
    }
    
    /* Logo hidden on mobile (only 3 lines + search) */
    .mezatika-logo {
        display: none;
    }

    /* Search - full width next to menu button */
    .mezatika-search {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
        width: 100%;
        align-self: center; /* Kendi hücresinde dikey ortalama */
    }
    
    .mezatika-search-input {
        height: 40px;
        font-size: 14px;
        padding: 0 40px 0 14px;
    }

    .mezatika-search-button {
        width: 32px;
        height: 32px;
        right: 4px;
    }

    .mezatika-search-button svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide desktop user actions */
    .mezatika-user-actions {
        display: none !important;
    }
    
    .mezatika-mobile-toggle {
        display: none;
    }
    
    /* Hide desktop categories */
    .mezatika-header-bottom {
        display: none !important;
    }

    /* Mobil alt menü — tam genişlik; altta safe-area padding */
    .mezatika-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-height: 58px;
        box-sizing: border-box;
        align-items: center;
        background: #fff;
        border-top: 1px solid #E9ECEF;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 9998;
        /* üst 768px bloğu ile aynı: Chrome Android alttaki ince boşluk */
        padding: 6px 0 calc(10px + max(12px, env(safe-area-inset-bottom, 0px))) 0;
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item,
    .mezatika-mobile-bottom-nav .mobile-nav-item:visited {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: #2d2d2d !important;
        font-size: 11px;
        font-weight: 600;
        transition: color 0.18s ease, stroke 0.18s ease;
        position: relative;
        padding: 6px 4px;
        -webkit-tap-highlight-color: transparent;
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        stroke-width: 2;
        stroke: #2d2d2d !important;
        color: #2d2d2d;
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item span {
        text-align: center;
        line-height: 1.2;
        color: inherit;
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item.active,
    .mezatika-mobile-bottom-nav .mobile-nav-item.active:visited {
        color: #F2A900 !important;
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item.active svg {
        stroke: #F2A900 !important;
    }

    @media (hover: hover) and (pointer: fine) {
        .mezatika-mobile-bottom-nav .mobile-nav-item:hover:not(.active),
        .mezatika-mobile-bottom-nav .mobile-nav-item:focus-visible:not(.active) {
            color: #1a1a1a !important;
        }
        .mezatika-mobile-bottom-nav .mobile-nav-item:hover:not(.active) svg,
        .mezatika-mobile-bottom-nav .mobile-nav-item:focus-visible:not(.active) svg {
            stroke: #F2A900 !important;
        }
    }

    .mezatika-mobile-bottom-nav .mobile-nav-item:active {
        opacity: 0.92;
    }

    /* Cart badge in mobile nav */
    .mobile-nav-icon-wrapper {
        position: relative;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #F2A900;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #fff;
    }

    /* Footer spacing adjustment */
    .mezatika-footer {
        margin-bottom: 0;
    }
}

/* Prevent body scroll when offcanvas is open */
body.offcanvas-open {
    overflow: hidden;
}

/* ========================================
   MOBILE - HIDE FOOTER
   ======================================== */
   @media (max-width: 768px) {
    .mezatika-footer,
    footer,
    #footer,
    #colophon,
    .site-footer,
    .footer-wrap,
    .ibid-footer {
        display: none !important;
    }
}

/* ========================================
   SMART HEADER - HIDE ON SCROLL DOWN (yalnızca masaüstü)
   Mobilde header sürekli üstte kalır; header-hidden yok sayılır.
   ======================================== */
@media (min-width: 769px) {
    .mezatika-custom-header {
        transition: transform 0.3s ease, box-shadow 0.2s ease;
    }
    .mezatika-custom-header.header-hidden {
        transform: translateY(-100%);
    }
}