/* GENERAL - START */
.header {
    position: relative;
    z-index: 1000;
}
/* GENERAL - END */

/* MAIN NAVIGATION BAR - START */
.main-nav {
    display: flex;
    align-items: center;
    background-color: var(--brand-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--nav-shadow);
    padding: 14px 12px;
    --nav-icon-size: 24px;
    --nav-icon-padding: 6px;
}
.nav-left,
.nav-center,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}
.nav-left {
    justify-content: flex-start;
}
.nav-center {
    justify-content: center;
}
.nav-right {
    justify-content: flex-end;
    gap: 20px;
}

.nav-left .menu-icon {
    margin-right: 10px;
}
.nav-left .menu-icon,
.nav-left .search-icon,
.nav-right .cart-icon,
.nav-right .search-icon,
.nav-right .account-icon {
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
    cursor: pointer;
    color: var(--black);
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-left .menu-icon svg,
.nav-left .search-icon svg,
.nav-right .cart-icon svg,
.nav-right .search-icon svg,
.nav-right .account-icon svg,
.search-submit-inline-icon svg,
.search-submit-icon svg,
.category-link-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-left .menu-icon svg *,
.nav-left .search-icon svg *,
.nav-right .cart-icon svg *,
.nav-right .search-icon svg *,
.nav-right .account-icon svg *,
.search-submit-inline-icon svg *,
.search-submit-icon svg * {
    fill: currentColor !important;
}
.nav-right .search-icon {
    margin-right: 0;
}
.nav-center .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: auto;
    max-height: 30px;
}

.nav-center .logo img {
    height: 30px;
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .main-nav {
        --nav-icon-size: 20px;
        --nav-icon-padding: 8px;
    }
}

.nav-right .country-link {
    color: var(--text-body);
    margin-right: 0;
    text-decoration: none;
}
/* MAIN NAVIGATION BAR - END */

/* SEARCH FORM - START */
.search-desktop {
    display: none;
    margin-left: 10px;
    max-height: 30px;
    align-items: center;
}
.search-form-inline {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--cta);
    border-radius: var(--pill-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--field-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-form-inline:focus-within {
    outline: none;
    border-color: var(--focus-border-color);
    box-shadow: var(--field-shadow-focus);
}
.search-field-inline {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: none;
    outline: none;
    width: 200px;
    height: 30px;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
    color: var(--text-body);
}
.search-field-inline:focus-visible {
    outline: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.search-submit-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background-color: var(--cta);
    min-height: 30px;
    height: 30px;
    box-sizing: border-box;
    border-radius: 0;
}
.search-submit-inline-icon {
    width: 16px;
    height: 16px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.search-submit-inline:hover {
    background-color: var(--cta-hover);
}
/* SEARCH FORM - END */

/* CART AND SEARCH CONTAINERS - START */
.cart-container,
.search-container {
    position: relative;
}
.account-container {
    position: relative;
    display: flex;
    align-items: center;
}
.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    padding: var(--nav-icon-padding);
    transition: opacity 0.2s ease;
}
.account-link:hover {
    opacity: 0.8;
}
.menu-button,
.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-icon-padding);
}
.search-icon {
    padding: var(--nav-icon-padding);
    box-sizing: content-box;
}
.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--cta);
    color: var(--white);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    border: none;
    min-width: 15px;
    min-height: 15px;
}
.cart-count.is-empty {
    display: none;
}
/* CART AND SEARCH CONTAINERS - END */

/* CATEGORY BAR - START */
.category-bar {
    background-color: var(--brand-bg);
    position: relative;
    border-bottom: 1px solid var(--border);
}

.nav-category-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 10px 0 5px 0;
    margin: 0;
    list-style: none;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    cursor: grab;
    touch-action: pan-y;
}

.nav-category-list::-webkit-scrollbar {
    height: 8px;
    border-radius: 999px;
}
.nav-category-list::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track);
    border-radius: 999px;
}
.nav-category-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 999px;
}
.nav-category-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.nav-category-list.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.nav-category-item {
    margin: 0 10px;
    text-align: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.category-link {
    color: var(--green);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    padding: 4px 6px;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.category-link-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: currentColor;
    transition: color 0.2s ease;
}

.category-link span {
    font-size: 12px;
    text-align: center;
    color: currentColor;
    transition: color 0.2s ease;
}

.category-link:hover {
    background-color: rgba(var(--brand-primary-rgb), 0.06);
    color: var(--green);
    box-shadow: 0 10px 22px rgba(var(--brand-primary-rgb), 0.08);
}

.category-link.active-category {
    color: var(--green);
    font-weight: 600;
    background-color: rgba(var(--brand-primary-rgb), 0.08);
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.10);
}

@media (max-width: 768px) {
    .category-link-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 5px;
    }
    .category-link span {
        font-size: 12px;
    }
}
/* CATEGORY BAR - END */

/* SUBCATEGORY BAR - FINAL CLEAN VERSION */
.subcategory-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--brand-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--dropdown-shadow);
    overflow: hidden;
    max-height: 0; 
    transition: max-height 0.3s ease;
}

.subcategory-bar.open {
    max-height: 300px;
}

.subcategory-close {
    font-size: 20px;
    color: var(--white);
    cursor: pointer;
    position: absolute;
    top: 3px;
    right: 5px;
    z-index: 1000;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    /* FIXED: Make it focusable */
    outline: none;
    border: none;
}

.subcategory-close:hover {
    background-color: var(--text-body);
}

/* FIXED: Add focus styles for close button */
.subcategory-close:focus-visible,
body.using-keyboard .subcategory-close:focus {
    outline: var(--focus-outline-width, 3px) solid var(--focus-outline-color, var(--secondary)) !important;
    outline-offset: var(--focus-outline-offset, 3px) !important;
    border-radius: 50% !important;
    background-color: var(--black) !important;
    color: var(--white) !important;
}

/* Ensure mouse users don't see outline */
body:not(.using-keyboard) .subcategory-close:focus {
    outline: none !important;
}

.subcategory-content .navigation-categories {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    padding: 12px 0 17px 0;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scrollbar-color: var(--grey) var(--surface-3);
}

.subcategory-content .navigation-categories.is-dragging {
    scroll-behavior: auto;
}

.subcategory-content .category-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    margin-right: 5px;
    margin-left: 5px;
    text-align: center;
}

.subcategory-content .category-item:first-child {
    margin-left: 0;
}

/* CRITICAL: Link element with LOCKED positioning - NEVER changes */
.subcategory-content .category-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transform: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.subcategory-content .category-image-wrapper {
    width: 100%;
    height: 100%;
    background-color: var(--border);
    border-radius: var(--border-radius);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    transform: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.subcategory-content .category-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--border);
    border-radius: var(--border-radius);
}

.subcategory-content .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.category-image-loaded {
    opacity: 1;
}

/* CRITICAL: Title position LOCKED - can NEVER move */
.subcategory-content .category-title {
    position: absolute !important;
    font-size: 13px;
    bottom: 5px !important;
    left: 0 !important;
    width: 100% !important;
    color: var(--white);
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
    transform: none !important;
    margin: 0 !important;
    transition: none !important;
    /* Ensure it's never affected by ANY layout changes */
    right: 0 !important;
    z-index: 1;
}

.subcategory-content .category-item-all .category-title {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    color: var(--black);
    text-shadow: none;
}

.subcategory-content .category-item-all a,
.subcategory-content .category-item-all a:hover,
.subcategory-content .category-item-all a:focus,
.subcategory-content .category-item-all a:active {
    transform: none !important;
    transition: none !important;
}

.subcategory-content .category-item-all .category-title,
.subcategory-content .category-item-all a:hover .category-title,
.subcategory-content .category-item-all a:focus .category-title,
.subcategory-content .category-item-all a:active .category-title {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    transition: none !important;
}

.subcategory-content .category-item-all .category-image-wrapper,
.subcategory-content .category-item-all a:hover .category-image-wrapper,
.subcategory-content .category-item-all a:focus .category-image-wrapper,
.subcategory-content .category-item-all a:active .category-image-wrapper {
    background-color: transparent !important;
}

.subcategory-content .category-item-all a:hover .category-title,
.subcategory-content .category-item-all a:focus .category-title,
.subcategory-content .category-item-all a:active .category-title {
    color: var(--black);
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
}

/* REMOVE ALL OUTLINES AND FOCUS EFFECTS - except keyboard tab navigation */
.subcategory-content .category-item a {
    outline: none !important;
}

.subcategory-content .category-item a:focus,
.subcategory-content .category-item a:focus-visible,
.subcategory-content .category-item a:hover,
.subcategory-content .category-item a:active,
.subcategory-content .category-item a.keyboard-active {
    /* NO outlines, NO position changes, NO layout changes */
    outline: none !important;
    position: relative !important; /* Keep consistent */
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important; /* Don't change z-index */
}

/* ONLY show outline for keyboard navigation (Tab key) */
body.using-keyboard .subcategory-content .category-item a:focus {
    outline: var(--focus-outline-width, 3px) solid var(--focus-outline-color, var(--secondary)) !important;
    outline-offset: var(--focus-outline-offset, 3px) !important;
    /* CRITICAL: NO other properties that could cause movement */
}

/* ENSURE title NEVER moves in ANY circumstance */
.subcategory-content .category-item:not(.category-item-all) a:focus .category-title,
.subcategory-content .category-item:not(.category-item-all) a:focus-visible .category-title,
.subcategory-content .category-item:not(.category-item-all) a:hover .category-title,
.subcategory-content .category-item:not(.category-item-all) a:active .category-title,
.subcategory-content .category-item:not(.category-item-all) a.keyboard-active .category-title {
    position: absolute !important;
    bottom: 5px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    transition: none !important;
    z-index: 1 !important;
}

/* Override any global focus styles that might interfere */
.subcategory-content .category-item a:not(.using-keyboard-focus) {
    outline: none !important;
}

/* Override any accessibility styles that might cause issues */
.subcategory-content .category-item a:focus:not(:focus-visible) {
    outline: none !important;
}

/* Ensure mouse users never see outline */
body:not(.using-keyboard) .subcategory-content .category-item a:focus,
body:not(.using-keyboard) .subcategory-content .category-item a:focus-visible {
    outline: none !important;
}

/* Horizontal scrollbar styles - white indicator always visible */
.subcategory-content .navigation-categories::-webkit-scrollbar {
    -webkit-appearance: none;
    height: 8px;
}

.subcategory-content .navigation-categories::-webkit-scrollbar-track {
    background-color: var(--surface-3);
    border-radius: 999px;
}

.subcategory-content .navigation-categories::-webkit-scrollbar-thumb {
    background-color: var(--grey);
    border-radius: 999px;
    min-width: 60px;
    border: 1px solid var(--surface-2);
}

.subcategory-content .navigation-categories::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

.subcategory-content .navigation-categories::-webkit-scrollbar-corner {
    background: transparent;
}

.subcategory-content .navigation-categories.scrolling {
    cursor: grabbing;
}

/* SUBCATEGORY BAR - END */

/* HAMBURGER MENU OVERLAY - START */
.menu-overlay {
    position: fixed;
    left: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background-color: var(--surface-1);
    overflow-y: scroll;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: var(--dropdown-shadow);
    scrollbar-gutter: stable;
}
.menu-overlay.active {
    left: 0;
}

/* Permanent black scrollbar for menu - always visible on Mac */
.menu-overlay {
    scrollbar-width: thin;
    scrollbar-color: var(--black) var(--background-grey);
}

.menu-overlay::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.menu-overlay::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

.menu-overlay::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    min-height: 40px;
    border: 2px solid var(--surface-2);
}

.menu-overlay::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.menu-overlay::-webkit-scrollbar-corner {
    background: var(--background-grey);
}

/* Account for WordPress admin bar */
.admin-bar .menu-overlay {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .menu-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}
.menu-overlay-content {
    padding: 20px;
}
.menu-close {
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--white);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    border-radius: 50%;
    border: none;
    transition: background-color 0.3s ease;
}
.menu-close:hover {
    background-color: var(--primary);
}
.overlay-menu,
.overlay-category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.overlay-menu li {
    margin: 6px 0;
}
.overlay-category-item {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}
.overlay-menu li a {
    color: var(--black);
    text-decoration: none;
    font-size: 18px;
}
.overlay-category-item > a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--black) !important;
    text-decoration: none;
    font-weight: 800;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.overlay-category-item > a:hover {
    background-color: var(--panel-hover);
}

.overlay-category-item.active > a {
    color: var(--secondary) !important;
    background-color: var(--background-grey);
}
.overlay-category-item > a img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.overlay-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.overlay-subcategory-list li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
}
.overlay-subcategory-list li a {
    display: flex;
    align-items: center;
    padding: 6px 15px 6px 45px;
    color: var(--black) !important;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.overlay-subcategory-list li a:hover {
    background-color: var(--surface-hover);
}

.overlay-subcategory-list li.active a {
    color: var(--secondary) !important;
    background-color: var(--background-grey);
}
.overlay-subcategory-list .sub-sub-item {
    padding-left: 0;
}
.overlay-subcategory-list .sub-sub-item a {
    padding-left: 65px;
    font-weight: 600;
    font-size: 14px;
    color: var(--black) !important;
    position: relative;
}
.overlay-subcategory-list .sub-sub-item a:before {
    content: '- ';
    position: absolute;
    left: 50px;
    color: var(--muted);
}
/* HAMBURGER MENU OVERLAY - END */

/* CART SIDEBAR - START */
.cart-dropdown {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background-color: var(--surface-1);
    z-index: 999;
    box-shadow: var(--dropdown-shadow);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-dropdown.active {
    right: 0;
}

/* Account for WordPress admin bar */
.admin-bar .cart-dropdown {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .cart-dropdown {
        top: 46px;
        height: calc(100% - 46px);
    }
}
/* Scrollable cart items container - now includes header */
.cart-items {
    flex: 1 1 auto;
    overflow-y: scroll;
    padding: 0;
    scrollbar-gutter: stable;
}

/* Cart header with item count and close button - now scrollable */
.cart-items .cart-header {
    padding: 10px 10px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.cart-header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.cart-close {
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--white);
    border: none;
    flex-shrink: 0;
}
.cart-close:hover {
    background-color: var(--primary);
}

/* Cart items content area */
#cartItemsContent {
    padding: 0 10px 10px 10px;
}

/* Permanent black scrollbar for cart - always visible on Mac */
.cart-items {
    scrollbar-width: thin;
    scrollbar-color: var(--black) var(--background-grey);
}

.cart-items::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    min-height: 40px;
    border: 2px solid var(--surface-2);
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.cart-items::-webkit-scrollbar-corner {
    background: var(--background-grey);
}
/* Base .cart-item styles for cart sidebar */
.cart-dropdown .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    padding: 8px;
    background-color: var(--background-grey);
    border-radius: var(--border-radius);
}
.cart-item-thumbnail {
    flex: 0 0 50px;
    margin-right: 10px;
}
.cart-item-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.cart-item-details {
    flex: 1;
    padding-right: 30px;
}
.cart-item-name {
    display: block;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
}
.cart-item-quantity-price {
    color: var(--muted);
    font-size: 12px;
}
.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--black);
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    font-size: 16px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}
.cart-item-remove:hover {
    background-color: var(--primary);
}
/* Sticky footer container */
.cart-footer {
    flex: 0 0 auto;
    padding: 10px 10px 20px 10px;
    background-color: var(--white);
    border-top: 1px solid var(--border);
}

.cart-total {
    font-weight: bold;
    text-align: right;
    margin: 0 0 10px 0;
    padding: 10px;
    background-color: var(--background-grey);
    border-radius: var(--border-radius);
}

.go-to-cart-button {
    display: block;
    background-color: var(--cta);
    color: var(--white);
    text-align: center;
    padding: 12px;
    text-decoration: none;
    margin: 0;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.go-to-cart-button:hover {
    background-color: var(--tertiary);
}

/* Make cart items and buttons consistent width */
.cart-items .cart-item,
.cart-footer .cart-total,
.cart-footer .go-to-cart-button {
    width: 100%;
    box-sizing: border-box;
}

/* Additional cart item styling to match cart page styles */
.cart-dropdown .cart-item {
    background-color: var(--background-grey);
}

.cart-dropdown .cart-item:hover {
    background-color: var(--surface-hover);
}

.cart-dropdown .cart-item-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-dropdown .cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.cart-dropdown .cart-item-name:hover {
    color: var(--secondary);
}

.cart-dropdown .cart-item-quantity-price {
    font-size: 12px;
    color: var(--muted);
}

/* Ensure all buttons in cart footer have same width */
.cart-footer > * {
    width: 100%;
    box-sizing: border-box;
}
/* CART SIDEBAR - END */

/* SEARCH DROPDOWN - START */
.search-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-width: 300px;
    background-color: var(--surface-1);
    border: 1px solid var(--border);
    z-index: 999;
    box-shadow: var(--dropdown-shadow);
    padding: 10px;
    border-radius: var(--border-radius);
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    scrollbar-color: var(--grey) var(--surface-2);
}
.search-dropdown.active {
    display: block;
}

.search-dropdown::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: var(--surface-3);
    border-radius: 999px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 999px;
    min-height: 40px;
    border: 2px solid var(--surface-2);
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.search-close {
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cta);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    color: var(--white);
}
.search-close:hover {
    background-color: var(--cta-hover);
}
.search-form-container {
    padding-top: 35px;
}
.search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--cta);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--field-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-form:focus-within {
    outline: none;
    border-color: var(--focus-border-color);
    box-shadow: var(--field-shadow-focus);
}
.search-field {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    outline: none;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
    color: var(--text-body);
}
.search-field:focus-visible {
    outline: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 16px;
    background-color: var(--cta);
    color: var(--white);
    border: none;
    cursor: pointer;
    min-width: 50px;
    border-radius: 0;
}
.search-submit:hover {
    background-color: var(--cta-hover);
}
.search-submit-icon {
    width: 20px;
    height: 20px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
/* SEARCH DROPDOWN - END */

/* NAVIGATION ACCESSIBILITY - START */
.menu-button {
    background: transparent;
    border: none;
    padding: var(--nav-icon-padding);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* For screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.menu-overlay[aria-hidden="true"] {
    visibility: hidden;
}

.menu-overlay[aria-hidden="false"] {
    visibility: visible;
}

/* Focus styles for navigation elements - EXCLUDING subcategory items */
.menu-button:focus-visible,
.menu-close:focus-visible,
.cart-close:focus-visible,
.search-close:focus-visible,
.subcategory-close:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-radius: 50%;
    z-index: 10;
}

/* Navigation category focus styles - EXCLUDING subcategory items */
.nav-category-list .category-link:focus-visible,
.category-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), 0 10px 22px rgba(var(--brand-primary-rgb), 0.08);
    border-radius: var(--border-radius);
    position: relative;
    z-index: 5;
}

/* Active keyboard focus state - EXCLUDING subcategory items */
.keyboard-active:not(.subcategory-content .category-item a) {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-radius: var(--border-radius);
    position: relative;
    z-index: 5;
}
/* NAVIGATION ACCESSIBILITY - END */

/* RESPONSIVE STYLES - START */
@media (max-width: 768px) {
    .nav-left {
        flex: 1;
        justify-content: flex-start;
    }
    .nav-center {
        flex: 1;
        justify-content: center;
    }
    .nav-right {
        flex: 1;
        justify-content: flex-end;
    }

    /* Hamburger menu and cart same width on mobile - 80% but max 400px */
    .menu-overlay {
        width: 80%;
        max-width: 400px;
        left: -80%;
    }

    .menu-overlay.active {
        left: 0;
    }

    .cart-dropdown {
        width: 80%;
        max-width: 400px;
        right: -80%;
    }

    .cart-dropdown.active {
        right: 0;
    }

    .search-dropdown.active {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        top: 60px;
        max-height: calc(100vh - 70px);
        overflow-y: scroll;
        margin: 0 auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        border: 1px solid var(--border);
        background-color: var(--white);
        z-index: 9999;
        max-width: none;
        padding: 10px;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-field {
        flex: 1;
        font-size: 16px;
    }
    
    .search-submit {
        min-width: 50px;
    }

    /* Cart sidebar remains the same on mobile - slides from right */

    .cart-close,
    .search-close {
        top: 5px;
        right: 5px;
    }
}

@media (min-width: 769px) {
    .search-desktop {
        display: flex;
    }
    .search-container {
        display: none;
    }
}
/* RESPONSIVE STYLES - END */

/* ENHANCED LANGUAGE SWITCHER WITH SMART FALLBACK INDICATORS */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.lang-current {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--black);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    min-height: 32px;
}

.lang-current:hover {
    background-color: var(--surface-2);
}

.lang-current:focus-visible {
    outline: var(--focus-outline-width, 1px) solid var(--focus-outline-color, var(--secondary));
    outline-offset: var(--focus-outline-offset, 2px);
    box-shadow: var(--focus-ring);
}

.lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.lang-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--black);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
}

.lang-current[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--dropdown-shadow);
    display: none;
    z-index: 1000;
    min-width: 160px;
    max-width: 220px;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown .lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.lang-dropdown .lang-option:hover {
    background-color: var(--surface-3);
}

.lang-dropdown .lang-option:focus-visible {
    background-color: var(--surface-4);
    color: var(--black);
    outline: 1px solid var(--focus-outline-color);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-cta-rgb), 0.08);
}

/* ENHANCED: Fallback language styling */
.lang-dropdown .lang-option.lang-fallback {
    background-color: var(--surface-2);
    border-left: 3px solid var(--cta);
}

.lang-dropdown .lang-option.lang-fallback:hover {
    background-color: var(--surface-3);
}

.lang-dropdown .lang-option.lang-fallback:focus-visible {
    background-color: var(--surface-4);
    color: var(--black);
}

/* Fallback indicator styling */
.lang-fallback-indicator {
    font-size: 0.75rem;
    color: var(--cta);
    margin-left: auto;
    opacity: 0.8;
    font-weight: bold;
}

.lang-dropdown .lang-option:focus-visible .lang-fallback-indicator {
    color: var(--cta);
}

.lang-dropdown .lang-flag {
    width: 18px;
    height: 12px;
    flex-shrink: 0;
}

.lang-dropdown .lang-name {
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none;
    flex: 1;
}

/* Language switcher states for different scenarios */
.language-switcher-empty,
.language-switcher-disabled,
.language-switcher-single {
    margin-right: 1rem;
}

.language-fallback {
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 12px;
    opacity: 0.7;
    cursor: default;
    border-radius: var(--border-radius);
}

.language-switcher-empty .language-fallback {
    opacity: 0.5;
    background-color: rgba(var(--brand-bg-rgb), 0.22);
}

.language-switcher-disabled .language-fallback {
    opacity: 0.6;
}

.language-switcher-single .language-fallback {
    opacity: 0.8;
    background-color: rgba(var(--brand-bg-rgb), 0.3);
}

/* Tooltip for fallback languages */
.lang-option.lang-fallback::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(var(--brand-ink-rgb), 0.92);
    color: var(--white);
    padding: 5px 8px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    white-space: normal;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
    line-height: 1.2;
}

.lang-option.lang-fallback:hover::after {
    opacity: 1;
}

/* Hide any WPML footer language elements */
.wpml-ls-statics-footer,
.wpml-ls-footer,
.footer .wpml-ls,
#footer .wpml-ls,
footer .wpml-ls,
.site-footer .wpml-ls {
    display: none !important;
}

/* Mobile adjustments for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0.5rem;
    }
    
    .lang-current {
        padding: 6px 8px;
        font-size: 0.8rem;
        gap: 0.25rem;
        min-height: 28px;
    }
    
    .lang-flag {
        width: 16px;
        height: 11px;
    }
    
    .lang-name {
        font-size: 0.8rem;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .lang-dropdown {
        right: -10px;
        min-width: 130px;
        max-width: 170px;
    }
    
    .lang-dropdown .lang-option {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .lang-dropdown .lang-flag {
        width: 16px;
        height: 11px;
    }
    
    .lang-dropdown .lang-name {
        font-size: 0.8rem;
    }
    
    .lang-fallback-indicator {
        font-size: 0.7rem;
    }
    
    /* Hide tooltips on mobile */
    .lang-option.lang-fallback::after {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .lang-current {
        padding: 7px 10px;
    }
    
    .lang-name {
        max-width: 100px;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lang-current {
        border: 1px solid var(--white);
    }
    
    .lang-dropdown {
        border: 2px solid var(--black);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .lang-dropdown .lang-option:hover {
        background-color: var(--primary);
        color: var(--white);
    }
    
    .lang-dropdown .lang-option.lang-fallback {
        border-left-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lang-current,
    .lang-arrow,
    .lang-dropdown .lang-option,
    .lang-fallback-indicator {
        transition: none;
    }
    
    .lang-option.lang-fallback::after {
        transition: none;
    }
}

/* RTL Language Support */
.rtl-language .language-switcher {
    margin-left: 1rem;
    margin-right: 0;
}

.rtl-language .lang-current {
    flex-direction: row-reverse;
}

.rtl-language .lang-dropdown {
    left: 0;
    right: auto;
}

.rtl-language .lang-dropdown .lang-option {
    flex-direction: row-reverse;
}

.rtl-language .lang-dropdown .lang-option.lang-fallback {
    border-left: none;
    border-right: 3px solid var(--secondary);
}

/* Debug styles (only visible to administrators when WP_DEBUG is true) */
body.wp-debug .language-switcher-empty::after {
    content: " (No languages configured)";
    font-size: 0.7rem;
    opacity: 0.5;
}

body.wp-debug .language-switcher-single::after {
    content: " (Single language)";
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Loading state for language switcher */
.language-switcher.loading .lang-current {
    opacity: 0.7;
    cursor: wait;
}

.language-switcher.loading .lang-dropdown {
    pointer-events: none;
}
/* LANGUAGE SWITCHER - END */
