/* Header Menu Block Styles */
.header-menu-wrapper {
    position: relative;
    width: 100%;
    z-index: 999;
    --transition: all 0.3s ease;
}

/* Main Header */
.header-menu-main {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-menu-container {
    max-width: var(--header-max-width, 1200px);
    margin: 0 auto;
    padding-left: var(--header-container-padding, 1.25rem);
    padding-right: var(--header-container-padding, 1.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px; /* Minimum height for when no logo is set */
}

/* Logo */
.header-menu-logo {
    flex-shrink: 0;
    z-index: 10;
    padding: 5px 0; /* Small padding to give breathing room */
    position: relative;
}

.header-menu-logo img {
    height: auto;
    display: block;
    max-height: none; /* Remove max-height restriction */
    width: auto;
    max-width: 100%;
}

.header-logo-link {
    display: block;
    text-decoration: none;
    position: relative;
}

/* Responsive logo display - Desktop (default) */
.header-menu-wrapper .header-menu-logo .header-logo-desktop {
    display: block;
}

.header-menu-wrapper .header-menu-logo .header-logo-mobile {
    display: none !important;
}

.header-menu-logo .logo-text {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    padding: 10px 0; /* Padding for text logos */
}

/* Desktop Navigation */
.header-menu-nav {
    display: flex;
    flex: 1;
    margin: 0 40px;
}

/* Menu Alignment Classes */
.header-menu-wrapper.menu-align-left .header-menu-nav {
    justify-content: flex-start;
}

.header-menu-wrapper.menu-align-center .header-menu-nav {
    justify-content: center;
}

.header-menu-wrapper.menu-align-right .header-menu-nav {
    justify-content: flex-end;
}

.header-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.header-menu-item {
    position: relative;
}

.header-menu-link {
    display: flex;
    align-items: center;
    padding: 20px 0;
    text-decoration: none;
    color: var(--menu-text-color, inherit);
    font-family: var(--font-body, Arial, sans-serif);
    font-weight: 500;
    font-size: var(--menu-font-size, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    gap: 5px;
}

.header-menu-link:hover {
    color: var(--link-hover-color, #db5526);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.header-menu-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop Dropdown */
.header-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    min-width: 300px;
}

/* Dynamic width based on number of columns */
.header-menu-dropdown .dropdown-columns[data-columns="1"] {
    min-width: 250px;
}

.header-menu-dropdown .dropdown-columns[data-columns="2"] {
    min-width: 500px; /* Increased for nested sub-columns */
}

.header-menu-dropdown .dropdown-columns[data-columns="3"] {
    min-width: 750px; /* Increased for nested sub-columns */
}

.header-menu-dropdown .dropdown-columns[data-columns="4"] {
    min-width: 900px;
}

.header-menu-dropdown .dropdown-columns[data-columns="5"],
.header-menu-dropdown .dropdown-columns[data-columns="6"] {
    min-width: 1100px;
}

.header-menu-item:hover .header-menu-dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    background: var(--header-bg-color, #ffffff); /* Use header background color */
    border-radius: 0; /* Remove rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 10px;
}

.dropdown-columns {
    display: flex;
    gap: 30px; /* Increased gap between main sections */
    min-width: 200px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 180px; /* Increased for better spacing */
}

/* Responsive dropdown behavior */
@media (max-width: 768px) {
    .dropdown-columns {
        flex-direction: column;
        gap: 10px;
        min-width: 180px;
    }
    
    .dropdown-column {
        min-width: auto;
    }
    
    .dropdown-content {
        padding: 15px;
    }
    
    /* Reset dropdown widths on mobile */
    .header-menu-dropdown .dropdown-columns[data-columns="1"],
    .header-menu-dropdown .dropdown-columns[data-columns="2"],
    .header-menu-dropdown .dropdown-columns[data-columns="3"],
    .header-menu-dropdown .dropdown-columns[data-columns="4"],
    .header-menu-dropdown .dropdown-columns[data-columns="5"],
    .header-menu-dropdown .dropdown-columns[data-columns="6"] {
        min-width: 280px; /* Slightly wider on mobile too */
        max-width: 90vw;
    }
    
    .header-menu-dropdown {
        left: 0;
        transform: none;
        min-width: 250px;
        max-width: 90vw;
    }
}

/* Prevent very large dropdowns from exceeding viewport */
@media (max-width: 1200px) {
    .header-menu-dropdown .dropdown-columns[data-columns="5"],
    .header-menu-dropdown .dropdown-columns[data-columns="6"] {
        min-width: 600px;
        max-width: 90vw;
    }
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    transition: var(--transition);
    font-size: var(--menu-font-size, 0.9rem);
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-link:hover {
    color: var(--link-hover-color, #db5526);
}

/* Dropdown Headings */
.dropdown-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--link-hover-color, #db5526);
    margin: 10px 15px 10px 15px;
    padding: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--link-hover-color, #db5526);
    width: 100%;
    display: block;
    clear: both;
}

.dropdown-heading:first-child {
    margin-top: 10px;
}

/* Ensure dropdown columns stack vertically */
.dropdown-column {
    display: flex;
    flex-direction: column;
}

/* Dropdown with headings wrapper */
.dropdown-with-headings .dropdown-columns {
    margin-bottom: 0;
}

.dropdown-with-headings .dropdown-column {
    min-width: 180px;
    flex: 1;
}

/* Section separation */
.dropdown-with-headings .dropdown-column.section-start {
    margin-left: 20px;
    position: relative;
}

.dropdown-with-headings .dropdown-column.section-start:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.dropdown-with-headings .dropdown-column:first-child.section-start {
    margin-left: 0;
}

.dropdown-with-headings .dropdown-column:first-child.section-start:before {
    display: none;
}

/* Tag images in dropdown links */
.dropdown-link.has-tag-image {
    gap: 10px;
}

.dropdown-link .tag-image {
    width: 42px;
    height: 42px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-link .link-text {
    flex: 1;
}

/* User Actions */
.header-menu-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    color: inherit; /* Use main text color, not menu text color */
}

.header-menu-account {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    text-decoration: none;
    color: inherit; /* Use main text color, not menu text color */
    transition: var(--transition);
    background: transparent;
}

.header-menu-account:hover {
    transform: scale(1.05);
}

/* Account Icons */
.header-menu-account .account-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit; /* Use parent color, not menu text color */
}

.header-menu-account .account-icon-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Search Icon */
.header-menu-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    transition: var(--transition);
}

.header-menu-search:hover {
    transform: scale(1.05);
}

.header-menu-search svg {
    width: 20px;
    height: 20px;
}

.header-menu-search .search-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Search Modal Overlay */
.header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.header-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.header-search-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: #F5F4EB; /* updated background color */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header-search-overlay.is-open .header-search-content {
    transform: translateY(0);
}

.header-search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 0;
    padding: 12px 20px;
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-family: 'PT Mono', monospace;
    padding: 0;
    margin: 0;
    outline: none;
    color: #333;
}

.header-search-input::placeholder {
    color: #999;
    font-family: 'PT Mono', monospace;
}

.header-search-submit {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 10px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-search-submit:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.header-search-close {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 10px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-search-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Search Suggestions */
.header-search-suggestions,
.search-suggestions,
.search-results,
.search-dropdown {
    font-family: 'PT Mono', monospace;
}

.header-search-suggestions li,
.search-suggestions li,
.search-results li,
.search-dropdown li {
    font-family: 'PT Mono', monospace;
}

/* Additional search result elements that might appear */
.search-suggestion-item,
.search-result-item,
.autocomplete-suggestion {
    font-family: 'PT Mono', monospace;
}

/* Sidebar Account Icons */
.sidebar-account-link .account-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: white; /* Keep white for sidebar */
}

.sidebar-account-link .account-icon-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Custom Block Area */
.header-menu-custom-blocks {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit; /* Use main text color, not menu text color */
}

.header-menu-custom-blocks > * {
    margin: 0;
}

.header-menu-custom-blocks .wp-block {
    margin: 0;
}

/* Ensure custom mini cart integrates well */
.header-menu-custom-blocks .wp-block-cakeclub-custom-mini-cart {
    margin: 0;
}

.header-menu-custom-blocks .custom-mini-cart-wrapper {
    margin: 0;
    color: inherit; /* Use main text color, not menu text color */
}

/* Ensure mini cart elements maintain their own styling */
.header-menu-custom-blocks .custom-mini-cart-wrapper * {
    color: inherit; /* Prevent menu color from bleeding in */
}

/* Enhanced dropdown structure with spanning headings */
.dropdown-section {
    display: flex;
    flex-direction: column;
    flex: 1; /* Default flex grow */
    min-width: 180px; /* Base section width */
}

/* Sections with sub-columns need proportionally more space */
.dropdown-section:has(.dropdown-sub-columns) {
    flex: 2; /* Take twice the space of regular sections */
    min-width: 320px; /* Enough for 2 sub-columns: (140px + 25px gap + 140px) + padding */
}

/* Alternative fallback for browsers that don't support :has() */
.dropdown-section.has-sub-columns {
    flex: 2;
    min-width: 320px;
}

/* Dynamic sizing based on number of sub-columns */
.dropdown-section[data-sub-columns="2"] {
    flex: 2;
    min-width: 320px; /* 2 × 140px + 1 × 25px gap + padding */
}

.dropdown-section[data-sub-columns="3"] {
    flex: 3;
    min-width: 470px; /* 3 × 140px + 2 × 25px gaps + padding */
}

.dropdown-section[data-sub-columns="4"] {
    flex: 4;
    min-width: 620px; /* 4 × 140px + 3 × 25px gaps + padding */
}

.dropdown-section .section-heading {
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem; /* Match the original dropdown-heading size */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--link-hover-color, #db5526); /* Match the original color */
}

/* Sub-columns within a section */
.dropdown-sub-columns {
    display: flex;
    gap: 25px; /* More space between sub-columns */
    width: 100%;
}

.dropdown-sub-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px; /* Ensure minimum width for readability */
}

/* Single column items (when no sub-columns needed) */
.dropdown-section-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Editor specific styles for custom block area */
.header-menu-custom-blocks-editor {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit; /* Use main text color, not menu text color */
}

.header-menu-custom-blocks-editor .wp-block {
    margin: 0;
}

.header-menu-custom-blocks-editor .block-list-appender {
    margin: 0;
}

/* Mobile Hamburger */
.header-menu-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: var(--transition);
}

.header-menu-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-menu-hamburger span {
    width: 24px;
    height: 3px;
    background: currentColor;
    transition: var(--transition);
    border-radius: 2px;
}

.header-menu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header-menu-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header-menu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Sidebar */
.header-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.header-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ff0000; /* Red background like in screenshot */
    color: white;
    z-index: 999;
    transition: var(--transition);
    overflow-y: auto;
}

.header-menu-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-item {
    margin-bottom: 5px;
}

.sidebar-menu-item a,
.sidebar-menu-toggle {
    display: block;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    font-family: var(--font-body, Arial, sans-serif);
    font-size: var(--menu-font-size, 1.1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu-item a:hover,
.sidebar-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    padding-right: 24px; /* 20px default + 4px extra spacing */
}

.sidebar-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-submenu.active {
    max-height: 500px;
    padding: 10px 0;
}

.sidebar-submenu li a {
    padding: 10px 20px;
    font-size: 0.95rem;
    text-transform: none;
    border-bottom: none;
}

/* Mobile Sidebar Headings */
.sidebar-heading h4 {
    margin: 15px 20px 5px 20px;
    padding: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-heading:first-child h4 {
    margin-top: 5px;
}

.sidebar-sub-item a {
    padding: 8px 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile sidebar tag images */
.sidebar-submenu a.has-tag-image,
.sidebar-sub-item a.has-tag-image {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-submenu .tag-image,
.sidebar-sub-item .tag-image {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-submenu .link-text,
.sidebar-sub-item .link-text {
    flex: 1;
}

.sidebar-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-account-link,
.sidebar-register-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-account-link:hover,
.sidebar-register-link:hover {
    padding-left: 10px;
    padding-right: 24px; /* Extra spacing for consistency */
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .header-menu-nav {
        display: none;
    }
    
    .header-menu-hamburger {
        display: flex;
        order: -1;
    }
    
    .header-menu-main {
        padding: 10px 0; /* Slightly smaller padding on mobile */
    }
    
    .header-menu-container {
        padding-left: var(--header-container-padding, 1.25rem);
        padding-right: var(--header-container-padding, 1.25rem);
        min-height: 50px; /* Smaller minimum height on mobile */
    }
    
    .header-menu-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Switch to mobile logo */
    .header-menu-wrapper .header-menu-logo .header-logo-desktop {
        display: none !important;
    }
    
    .header-menu-wrapper .header-menu-logo .header-logo-mobile {
        display: block !important;
    }
    
    .header-menu-actions {
        margin-left: auto;
    }
    
    /* Hide user account icon on mobile */
    .header-menu-account {
        display: none !important;
    }
    
    /* Hide search icon on mobile */
    .header-menu-search {
        display: none !important;
    }
    
    /* Mobile search modal adjustments (if accessed via other means) */
    .header-search-container {
        padding: 0 15px;
    }
    
    .header-search-form {
        padding: 10px 15px;
    }
    
    .header-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        font-family: 'PT Mono', monospace;
    }
    
    /* Ensure custom blocks work well on mobile */
    .header-menu-custom-blocks {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-menu-container {
        padding-left: var(--header-container-padding, 1.25rem);
        padding-right: var(--header-container-padding, 1.25rem);
    }
    
    .header-menu-actions {
        gap: 8px;
    }
    
    .header-menu-account {
        width: 35px;
        height: 35px;
    }
    
    .header-menu-account .account-icon {
        font-size: 14px;
    }
    
    .header-menu-account .account-icon-img {
        width: 18px;
        height: 18px;
    }
    
    .header-menu-custom-blocks {
        gap: 5px;
    }
    
    /* Stack sub-columns on mobile */
    .dropdown-sub-columns {
        flex-direction: column;
        gap: 12px;
    }
    
    .dropdown-section .section-heading {
        font-size: 1rem; /* Slightly smaller on mobile but still readable */
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
}

/* Body scroll lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Editor specific overrides */
.wp-block-cakeclub-header-menu {
    margin: 20px 0;
}

.wp-block-cakeclub-header-menu .header-menu-wrapper {
    position: relative;
    z-index: 1;
}

/* Ensure proper color inheritance in editor */
.header-menu-editor-preview {
    font-family: var(--font-body, Arial, sans-serif);
}

.header-menu-editor-preview .header-menu-main {
    background: inherit;
    color: inherit;
}

/* Color picker preview adjustments */
.components-base-control .components-color-picker {
    margin-top: 8px;
} 

/* Product images in dropdown links (Bake of the Week) */
.dropdown-link.has-product-image {
    gap: 15px;
    padding: 12px 15px;
}

.dropdown-link .product-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bake of the Week special styling - larger image, no text */
.dropdown-link.bake-of-week-item {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.dropdown-link .bake-of-week-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.dropdown-link.bake-of-week-item:hover .bake-of-week-image {
    transform: scale(1.05);
}

/* Ensure product images take precedence over tag images */
.dropdown-link.has-product-image .product-image {
    width: 80px;
    height: 80px;
}

/* Keep tag images smaller */
.dropdown-link .tag-image {
    width: 42px;
    height: 42px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
} 