/**
 * Odakon Account Header Styles
 * Minimal, clean design matching site theme
 * 
 * @package DJI_Market
 * @version 1.0.0
 */

/* ==========================================================================
   Account Header - Minimal Light Design
   ========================================================================== */

:root {
    /* Always 0 for normal users; becomes 32/46 when WP admin bar is present */
    --odakon-adminbar-height: 0px;
}

body.admin-bar {
    --odakon-adminbar-height: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --odakon-adminbar-height: var(--wp-admin--admin-bar--height, 46px);
    }
}

.odakon-account-header {
    background: #ffffff;
    position: sticky;
    top: var(--odakon-adminbar-height);
    z-index: 10000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.odakon-account-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
    gap: 32px;
}

/* Logo */
.odakon-account-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.odakon-account-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.odakon-account-logo-text {
    display: flex;
    flex-direction: column;
}

.odakon-account-logo-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.odakon-account-logo-tagline {
    font-size: 11px;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Navigation */
.odakon-account-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.odakon-account-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Nav dropdown (Servis) */
.odakon-account-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.odakon-account-nav-dropdown-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.odakon-account-nav-dropdown-arrow {
    opacity: 0.8;
}

.odakon-account-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10003;
}

/* Prevent hover drop-down from collapsing while moving cursor into the menu (gap bridge) */
.odakon-account-nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.odakon-account-nav-dropdown:hover .odakon-account-nav-dropdown-menu,
.odakon-account-nav-dropdown:focus-within .odakon-account-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.odakon-account-nav-dropdown-item {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.odakon-account-nav-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    color: #6b7280;
    flex-shrink: 0;
}

.odakon-account-nav-dropdown-item:hover,
.odakon-account-nav-dropdown-item:focus {
    background: #f9fafb;
    border-color: #e5e7eb;
    outline: none;
}

.odakon-account-nav-dropdown-item:hover svg,
.odakon-account-nav-dropdown-item:focus svg {
    color: #1f2937;
}

.odakon-account-nav-link:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.odakon-account-nav-link.active {
    color: #3b82f6;
    background: #eff6ff;
}

.odakon-account-nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}

/* Search Box */
.odakon-account-search {
    flex: 1;
    max-width: 520px;
    margin: 0 0 0 12px;
    position: relative;
}

.odakon-search-form {
    position: relative;
    width: 100%;
}

.odakon-search-wrapper {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    height: 38px;
    transition: all 0.2s ease;
}

.odakon-search-wrapper:focus-within {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.odakon-search-icon {
    color: #9ca3af;
    flex-shrink: 0;
    margin-right: 8px;
}

.odakon-search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #1f2937;
    outline: none;
    min-width: 0;
}

.odakon-search-field::placeholder {
    color: #9ca3af;
}

/* Search Results Dropdown */
.odakon-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 10002;
}

.odakon-search-results.active {
    display: block;
}

.odakon-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.15s ease;
}

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

.odakon-search-result-item:hover {
    background: #f9fafb;
}

.odakon-search-result-image {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.odakon-search-result-info {
    flex: 1;
    min-width: 0;
}

.odakon-search-result-title {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odakon-search-result-price {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

.odakon-search-no-results {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

/* Mobile Search Toggle */
.odakon-mobile-search-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.odakon-mobile-search-toggle:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Actions */
.odakon-account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Cart Button */
.odakon-account-cart {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.odakon-account-cart:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

.odakon-account-cart svg {
    width: 20px;
    height: 20px;
}

.odakon-account-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #16436f 0%, #6366f1 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* WhatsApp CTA */
.odakon-account-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.odakon-account-cta:hover {
    background: #059669;
    color: #fff;
}

.odakon-account-cta svg {
    width: 16px;
    height: 16px;
}

/* User Menu */
.odakon-account-user-wrapper {
    position: relative;
}

.odakon-account-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.odakon-account-user:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.odakon-account-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #16436f 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.odakon-account-user-avatar.is-guest {
    background: #e5e7eb;
    color: #6b7280;
}

.odakon-account-user-avatar.is-guest svg {
    width: 18px;
    height: 18px;
}

.odakon-account-user-info {
    display: flex;
    flex-direction: column;
}

.odakon-account-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.odakon-account-user-role {
    font-size: 11px;
    color: #6b7280;
}

.odakon-account-user-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.odakon-account-user-wrapper.open .odakon-account-user-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.odakon-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10003;
    padding: 8px;
    display: none !important;
}

.odakon-account-user-wrapper.open .odakon-user-dropdown {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.odakon-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.odakon-user-dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.odakon-user-dropdown-item svg {
    color: #6b7280;
    flex-shrink: 0;
}

.odakon-user-dropdown-item:hover svg {
    color: #3b82f6;
}

.odakon-user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.odakon-user-dropdown-logout {
    color: #dc2626;
}

.odakon-user-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.odakon-user-dropdown-logout svg {
    color: #dc2626;
}

.odakon-user-dropdown-logout:hover svg {
    color: #dc2626;
}

/* Mobile Toggle */
.odakon-account-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.odakon-account-mobile-toggle:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Site-wide Mobile Menu Toggle */
.odakon-mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.odakon-mobile-menu-toggle:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #1f2937;
}

.odakon-mobile-menu-toggle:active {
    background: #e5e7eb;
}

/* ==========================================================================
   Mobile Navigation Drawer (Right Side)
   ========================================================================== */

.odakon-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.odakon-mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.odakon-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    z-index: 10011;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

.odakon-mobile-nav.active {
    transform: translateX(0);
}

.odakon-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.odakon-mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
}

.odakon-mobile-nav-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.odakon-mobile-nav-logo span {
    font-size: 16px;
    font-weight: 600;
    color: #16436f;
}

.odakon-mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.odakon-mobile-nav-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.odakon-mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.odakon-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.odakon-mobile-nav-item:hover,
.odakon-mobile-nav-item:active {
    background: #f3f4f6;
    color: #16436f;
}

.odakon-mobile-nav-item svg {
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.odakon-mobile-nav-item:hover svg {
    color: #16436f;
}

.odakon-mobile-nav-item--sub {
    padding: 1px 16px 1px 20px;
    font-size: 14px;
}

.odakon-mobile-nav-item--sub svg {
    width: 18px;
    height: 18px;
}

.odakon-mobile-nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.odakon-mobile-nav-label {
    display: block;
    padding: 8px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.odakon-mobile-nav-footer {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.odakon-mobile-nav-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.odakon-mobile-nav-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   Mobile Profile Drawer (Left Side)
   ========================================================================== */

.odakon-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.odakon-profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.odakon-profile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 10011;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
}

.odakon-profile-drawer.active {
    transform: translateX(0);
}

.odakon-profile-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #16436f 0%, #1e3a5f 100%);
    color: #fff;
}

.odakon-profile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.odakon-profile-drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.odakon-profile-drawer-avatar.is-guest {
    background: rgba(255, 255, 255, 0.15);
}

.odakon-profile-drawer-avatar svg {
    color: rgba(255, 255, 255, 0.8);
}

.odakon-profile-drawer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.odakon-profile-drawer-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odakon-profile-drawer-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.odakon-profile-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.odakon-profile-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.odakon-profile-drawer-links {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.odakon-profile-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.odakon-profile-drawer-item:hover,
.odakon-profile-drawer-item:active {
    background: #f3f4f6;
    color: #16436f;
}

.odakon-profile-drawer-item svg {
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.odakon-profile-drawer-item:hover svg {
    color: #16436f;
}

.odakon-profile-drawer-item--primary {
    background: linear-gradient(135deg, #16436f 0%, #1e3a5f 100%);
    color: #fff;
}

.odakon-profile-drawer-item--primary:hover {
    background: linear-gradient(135deg, #1e4a7a 0%, #234b6e 100%);
    color: #fff;
    transform: translateY(-1px);
}

.odakon-profile-drawer-item--primary svg {
    color: rgba(255, 255, 255, 0.9);
}

.odakon-profile-drawer-item--primary:hover svg {
    color: #fff;
}

.odakon-profile-drawer-item--logout {
    color: #dc2626;
}

.odakon-profile-drawer-item--logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.odakon-profile-drawer-item--logout svg {
    color: #dc2626;
}

.odakon-profile-drawer-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

/* ==========================================================================
   Breadcrumb Bar (for view-order page)
   ========================================================================== */

.odakon-account-breadcrumb-bar {
    background: #f9fafb;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}

.odakon-account-breadcrumb-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.odakon-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.odakon-account-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.odakon-account-breadcrumb a:hover {
    color: #3b82f6;
}

.odakon-account-breadcrumb-sep {
    color: #d1d5db;
}

.odakon-account-breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

/* Order Info Pills */
.odakon-account-order-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.odakon-account-order-number {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
}

.odakon-account-order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.odakon-account-order-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .odakon-account-nav {
        display: none;
    }
    
    .odakon-account-mobile-toggle {
        display: flex;
    }
    
    .odakon-mobile-menu-toggle {
        display: flex;
    }
    
    .odakon-account-search {
        display: none;
    }
    
    .odakon-mobile-search-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .odakon-account-header-inner {
        padding: 0 12px;
        gap: 8px;
        height: 52px;
    }
    
    /* Smaller logo on mobile */
    .odakon-account-logo img {
        width: 28px;
        height: 28px;
    }
    
    .odakon-account-logo {
        gap: 8px;
    }
    
    .odakon-account-logo-text {
        display: flex;
    }
    
    .odakon-account-logo-brand {
        font-size: 14px;
    }
    
    .odakon-account-logo-tagline {
        display: none;
    }
    
    /* Hide WhatsApp on mobile */
    .odakon-account-cta {
        display: none !important;
    }
    
    .odakon-account-user-info {
        display: none;
    }
    
    .odakon-account-user-arrow {
        display: none;
    }
    
    .odakon-account-user {
        padding: 3px;
        border-radius: 50%;
    }
    
    .odakon-account-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    /* Cart button smaller */
    .odakon-account-cart {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .odakon-account-cart svg {
        width: 18px;
        height: 18px;
    }
    
    /* Notification toggle smaller on mobile */
    .odakon-notification-toggle {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .odakon-notification-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .odakon-notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    /* Mobile toggle smaller */
    .odakon-account-mobile-toggle {
        width: 34px;
        height: 34px;
    }
    
    .odakon-account-mobile-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Site-wide mobile menu toggle */
    .odakon-mobile-menu-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .odakon-mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Search toggle button */
    .odakon-mobile-search-toggle {
        width: 34px;
        height: 34px;
        order: -1;
    }
    
    .odakon-mobile-search-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .odakon-account-breadcrumb-bar {
        padding: 10px 0;
    }
    
    .odakon-account-breadcrumb-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 0 16px;
    }
    
    .odakon-account-order-info {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Dropdown on mobile */
    .odakon-user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 10005;
    }
    
    .odakon-account-user-wrapper.open .odakon-user-dropdown {
        transform: translateY(0);
    }
    
    .odakon-user-dropdown-item {
        padding: 16px;
        font-size: 16px;
    }
    
    .odakon-user-dropdown-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .odakon-account-cart {
        width: 36px;
        height: 36px;
    }
    
    .odakon-account-cta {
        padding: 8px;
    }
    
    .odakon-account-user {
        padding: 4px;
    }
    
    .odakon-account-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Google Sign-In (Site Kit) credential picker should overlay header */
#credential_picker_container {
    z-index: 2147483647 !important;
}

#credential_picker_container iframe {
    z-index: 2147483647 !important;
}

/* ==========================================================================
   iOS Safari Safe Area Support
   ========================================================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .odakon-account-header {
        padding-top: env(safe-area-inset-top, 0px);
    }
    
    .odakon-user-dropdown {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    .odakon-mobile-nav {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .odakon-mobile-nav-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    .odakon-profile-drawer {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .odakon-profile-drawer-links {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* Dropdown Overlay for Mobile */
.odakon-dropdown-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Must stay BELOW the sticky header stacking context, otherwise it blocks clicks on the dropdown menu */
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.odakon-dropdown-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Search Fullscreen */
.odakon-mobile-search-fullscreen {
    /* Never show on desktop; enabled only via mobile media query below */
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 10015;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
}

.odakon-mobile-search-fullscreen.active {
    display: none;
}

/* Enable fullscreen search only on mobile */
@media (max-width: 768px) {
    .odakon-mobile-search-fullscreen.active {
        display: flex !important;
    }
}

.odakon-mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.odakon-mobile-search-form {
    flex: 1;
    display: flex;
}

.odakon-mobile-search-header .odakon-search-wrapper {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.odakon-mobile-search-submit {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.odakon-mobile-search-submit:active {
    background: rgba(0, 0, 0, 0.06);
    color: #1f2937;
}

.odakon-mobile-search-header .odakon-search-wrapper:focus-within {
    border-color: #3b82f6;
    background: #fff;
}

.odakon-mobile-search-header .odakon-search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1f2937;
    outline: none;
}

.odakon-mobile-search-header .odakon-search-icon {
    color: #9ca3af;
    margin-right: 10px;
    flex-shrink: 0;
}

.odakon-mobile-search-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.odakon-mobile-search-close:active {
    background: #e5e7eb;
}

.odakon-mobile-search-results-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.odakon-mobile-search-results-container .odakon-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.15s;
}

.odakon-mobile-search-results-container .odakon-search-result-item:active {
    background: #f3f4f6;
}

.odakon-mobile-search-results-container .odakon-search-result-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.odakon-mobile-search-results-container .odakon-search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.odakon-mobile-search-results-container .odakon-search-result-price {
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
}

.odakon-mobile-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.odakon-mobile-search-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.odakon-mobile-search-empty p {
    font-size: 14px;
    margin: 0;
}
