.opsim-header {
    --header-bg: var(--opsim-bg-primary);
    --header-border: var(--opsim-border);
    --search-border: var(--opsim-brand);
    --accent-color: var(--opsim-brand);
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 15px;
}
.mobile-menu-toggle {
    display: flex;
}
.mobile-menu-toggle .action-icon svg {
    color: var(--opsim-brand);
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.opsim-logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.7rem;
}
.opsim-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-top { font-family: var(--opsim-font-primary); font-size: 0.65rem; }
.logo-main { font-weight: 900; font-size: 0.95rem; letter-spacing: -0.5px; }
.logo-bottom { font-family: var(--opsim-font-primary); font-size: 0.6rem; align-self: flex-end; }
.header-search-container {
    flex-grow: 1;
    max-width: 1000px;
    margin: 0 40px;
}
.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-field {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border: 1px solid var(--opsim-border);
    border-radius: 8px;
    font-size: 0.85rem;
    height: 40px;
}
.search-field:focus {
    outline: none;
    border-color: var(--search-border);
}
.search-submit {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--opsim-brand);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 20px;
    height: 20px;
}
.search-submit svg {
    width: 18px;
    height: 18px;
    display: block;
}
.header-actions {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}
.header-action-item {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #374151;
    text-decoration: none;
}
.action-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.action-icon svg { 
    width: 30px; 
    height: 30px; 
    color: var(--opsim-brand);
}
.action-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #111827;
}
.cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--opsim-brand);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid white;
}
.header-nav-row {
    border-top: 1px solid var(--opsim-border);
    border-bottom: 1px solid var(--opsim-border);
    padding: 6px 0;
    background: white;
    box-shadow: var(--opsim-shadow-sm);
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.main-navigation li {
    position: relative;
    padding: 4px 0;
}
.main-navigation a {
    text-decoration: none;
    color: #111827;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-navigation li.menu-item-has-children > a::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 15L5 9' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}
.main-navigation a:hover {
    color: var(--opsim-brand);
}
.main-navigation li.menu-item-has-children > a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 15L5 9' stroke='%23355872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Sub-menu (Asso Menu) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 10px 0;
    z-index: 100;
    flex-direction: column;
    gap: 0;
}
.main-navigation li:hover > ul {
    display: block;
}
.main-navigation ul ul li {
    padding: 0;
    width: 100%;
}
.main-navigation ul ul a {
    display: block;
    padding: 10px 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
}
.main-navigation ul ul a:hover {
    background-color: rgba(var(--opsim-brand-rgb), 0.05);
    color: var(--opsim-brand);
}
/* No Hover Zoom / No Animation as requested */
.main-navigation li:hover > a {
    transform: none !important;
}


@media (max-width: 1023px) {
    .header-nav-row, .header-search-container { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-main-row { 
        padding: 4px 0; /* Ultra-compact */
        border-bottom: 1px solid var(--opsim-border);
        box-shadow: var(--opsim-shadow-sm);
    }
    .action-label { display: none; }
    .action-icon svg { 
        width: 32px; /* Enlarge icons as requested */
        height: 32px; 
    }
}
@media (max-width: 767px) {
    .header-container-full { padding: 0 10px; }
    .header-main-row { 
        gap: 6px;
        padding: 2px 0; /* Minimal padding */
    }
    .site-branding { gap: 4px; }
    .opsim-logo-placeholder { 
        width: 28px; /* Smaller logo as requested */
        height: 28px; 
        font-size: 0.55rem;
    }
    .logo-main { font-size: 0.8rem; }
    .header-actions { gap: 10px; }
    .action-icon svg { 
        width: 30px; /* Larger icons for touchability */
        height: 30px; 
    }
    .cart-count { min-width: 14px; height: 14px; font-size: 8px; right: -4px; top: -1px; }
}

/* Search Results Dropdown */
.header-search-container {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Increased gap from input */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--opsim-border);
    border-radius: 12px; /* Standalone card with full radius */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
}

.search-results-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--opsim-border);
    border-left: 1px solid var(--opsim-border);
    transform: rotate(45deg);
}

.search-results-dropdown.is-active {
    display: block;
}

.search-results-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: #f9fafb;
    border-color: rgba(var(--opsim-brand-rgb), 0.1);
}

.result-image {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #f0f0f0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.result-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-price del {
    font-size: 0.65rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 300;
    opacity: 0.6;
    margin-right: 4px;
}

.result-price ins, 
.result-price > .amount,
.result-price ins .amount {
    font-size: 0.85rem;
    color: #111827 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.search-results-footer {
    padding: 12px;
    border-top: 1px solid var(--opsim-border);
    text-align: center;
    background: #fcfcfc;
    border-radius: 0 0 12px 12px;
}

.view-all-results {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--opsim-brand);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.search-results-dropdown.is-loading .search-results-content {
    opacity: 0.5;
}

@media (max-width: 1023px) {
    .search-results-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        border-radius: 12px;
        border: 1px solid var(--opsim-border);
    }
}
