/* Storefront overrides that used to be inlined in base.html.
   Inlined on every page they cost ~5.7 KB of uncacheable HTML; as a file
   they are fetched once and served from cache thereafter. */

/* Wishlist button styling */
.product-cart-wrap .product-action-1 button.action-btn.wishlist-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.product-cart-wrap .product-action-1 button.action-btn.wishlist-toggle-btn[data-in-wishlist="true"] i.fi-filled,
.product-cart-wrap .product-action-1 button.action-btn.wishlist-toggle-btn[data-in-wishlist="true"]:hover i.fi-filled {
    color: var(--color-primary);
}
.product-cart-wrap .product-action-1 button.action-btn.wishlist-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mega menu height limit and scrolling */
.main-menu > nav > ul > li ul.mega-menu {
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 0;
}
.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22 {
    float: none;
    flex: 0 0 22%;
}
.main-menu > nav > ul > li ul.mega-menu::-webkit-scrollbar {
    width: 6px;
}
.main-menu > nav > ul > li ul.mega-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.main-menu > nav > ul > li ul.mega-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.main-menu > nav > ul > li ul.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Language Selector - Desktop */
.language-selector-desktop {
    margin-left: 15px;
}
.language-dropdown {
    position: relative;
    display: inline-block;
}
.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #ececec;
    border-radius: 4px;
    background: #fff;
    color: #253D4E;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.language-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.language-toggle .language-label {
    min-width: 30px;
    text-align: center;
}
.language-toggle i {
    font-size: 10px;
}
.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.language-dropdown:hover .language-dropdown-menu,
.language-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-dropdown-menu form {
    padding: 0;
    margin: 0;
}
.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    color: #253D4E;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.language-option:first-child {
    border-radius: 4px 4px 0 0;
}
.language-option:last-child {
    border-radius: 0 0 4px 4px;
}
.language-option:hover {
    background: #f7f7f7;
    color: var(--color-primary);
}
.language-option.active {
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-weight: 600;
}
.language-option span {
    font-weight: 600;
    min-width: 25px;
}

/* Mobile Language Switcher */
.mobile-language-selector {
    border-bottom: 1px solid #ececec;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.mobile-language-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.mobile-language-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 80px;
    border: 2px solid #ececec;
    border-radius: 6px;
    background: #fff;
    color: #253D4E;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
}
.mobile-language-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.mobile-language-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.mobile-language-divider {
    color: #ececec;
    font-size: 18px;
    font-weight: 300;
}
