/**
* Theme Name:        avanam-cosmika
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-cosmika
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/

/* Product categories widget: highlight the category currently being viewed. */
.tmcore-wp-widget-product-categories-layered-nav li.current-cat > a.item-link {
    font-weight: 600;
}

/* Live search grid in the search drawer (#search-drawer), under the search field. */
#search-drawer .drawer-content {
    flex-wrap: wrap;
}
.cosmika-live-search {
    flex: 0 0 100%;
    width: 100%;
    max-width: 1200px;
    margin: 1.25em auto 0;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.cosmika-live-search.is-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.15s;
}
.cosmika-live-search__loader {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    margin-top: 1em;
}
.cosmika-live-search__loader[hidden] {
    display: none;
}
.cosmika-live-search__loader + .cosmika-live-search {
    margin-top: 0.5em;
}
.cosmika-live-search__spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--global-palette1, #000);
    border-radius: 50%;
    animation: cosmika-live-search-spin 0.7s linear infinite;
}
@keyframes cosmika-live-search-spin {
    to { transform: rotate(360deg); }
}
.cosmika-live-search__status {
    margin: 0 0 0.75em;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.75;
}
.cosmika-live-search__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cosmika-live-search__item {
    margin: 0;
}
.cosmika-live-search__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cosmika-live-search__link:hover,
.cosmika-live-search__link:focus-visible {
    border-color: #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.cosmika-live-search__thumb {
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 8px;
}
.cosmika-live-search__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cosmika-live-search__name {
    font-size: 0.85em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cosmika-live-search__sku {
    margin-top: 4px;
    font-size: 0.75em;
    opacity: 0.6;
}
.cosmika-live-search__price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.9em;
    font-weight: 600;
}
.cosmika-live-search__price del {
    font-weight: 400;
    opacity: 0.6;
    margin-right: 4px;
}
@media (max-width: 1024px) {
    .cosmika-live-search__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .cosmika-live-search {
        max-height: calc(100vh - 150px);
        max-height: calc(100dvh - 150px);
    }
    .cosmika-live-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Single product: SKU line below the price. */
.single-product .cosmika-product-sku {
    margin: 0 0 1em;
    padding: 0;
    border: 0;
    font-size: 0.9em;
}

/* Price filter widget: Min / Max input fields. */
.cosmika-price-filter__fields {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.cosmika-price-filter__field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
.cosmika-price-filter__label {
    display: block;
    font-size: 0.85em;
    margin-bottom: 4px;
}
.cosmika-price-filter__field input[type="number"] {
    width: 100%;
    padding: 8px 10px;
}
.cosmika-price-filter__sep {
    padding-bottom: 10px;
}
.cosmika-price-filter__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.cosmika-price-filter__clear {
    font-size: 0.9em;
    text-decoration: underline;
}

/* Mobile menu drawer: highlight the category being viewed (and its parent when inside a subcategory). */
body .mobile-navigation ul li.current-menu-item > a,
body .mobile-navigation ul li.current-menu-ancestor > a,
body .mobile-navigation ul li.current-menu-item > .drawer-nav-drop-wrap,
body .mobile-navigation ul li.current-menu-ancestor > .drawer-nav-drop-wrap,
body .mobile-navigation ul li.current-menu-item > .drawer-nav-drop-wrap > a,
body .mobile-navigation ul li.current-menu-ancestor > .drawer-nav-drop-wrap > a,
body .mobile-navigation ul li.current-menu-item > .drawer-nav-drop-wrap .drawer-sub-toggle,
body .mobile-navigation ul li.current-menu-ancestor > .drawer-nav-drop-wrap .drawer-sub-toggle {
    color: var(--global-palette1);
    font-weight: 600;
}

/* Mobile menu drawer: nested sub-menus get a tinted background, indent and side line so it's clear which parent they belong to. */
body .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:has(> .drawer-sub-toggle[aria-expanded="true"]) {
    background: #f4f4f4;
}
body .mobile-navigation ul.sub-menu {
    background: #f4f4f4;
    padding-left: 14px;
    border-left: 2px solid #dcdcdc;
}
body .mobile-navigation ul.sub-menu li.menu-item-has-children > .drawer-nav-drop-wrap:has(> .drawer-sub-toggle[aria-expanded="true"]),
body .mobile-navigation ul.sub-menu ul.sub-menu {
    background: #e9e9e9;
}
body .mobile-navigation ul.sub-menu ul.sub-menu {
    border-left-color: #c8c8c8;
}

/* Mobile menu drawer: slim borders so each row and its chevron toggle read as separate tap targets. */
body .mobile-navigation ul li:not(.menu-item-has-children) > a,
body .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
    border-bottom: 1px solid #e5e5e5;
}
body .mobile-navigation:not(.drawer-navigation-parent-toggle-true) ul li.menu-item-has-children .drawer-nav-drop-wrap button.drawer-sub-toggle {
    border-left: 1px solid #e5e5e5;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Manrope (self-hosted, variable weight 200-800) – global font
   ========================================================================== */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('fonts/manrope-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme (Avanam) + Elementor global font variables. */
:root,
body,
body[class*="elementor-kit"] {
    --global-body-font-family: 'Manrope', sans-serif !important;
    --global-heading-font-family: 'Manrope', sans-serif !important;
    --global-primary-nav-font-family: 'Manrope', sans-serif !important;
    --e-global-typography-primary-font-family: 'Manrope' !important;
    --e-global-typography-secondary-font-family: 'Manrope' !important;
    --e-global-typography-text-font-family: 'Manrope' !important;
    --e-global-typography-accent-font-family: 'Manrope' !important;
}

/* Elements that don't always inherit the body font. Icon fonts are left untouched. */
body,
button,
input,
select,
textarea,
optgroup,
h1, h2, h3, h4, h5, h6,
.alpha, .beta, .gamma, .delta, .epsilon, .zeta,
.widget-title,
.woocommerce-loop-product__title,
.menu a,
.elementor-widget .elementor-heading-title,
.elementor-widget .elementor-button,
.elementor-widget .elementor-tab-title,
.elementor-widget .elementor-icon-box-title,
.elementor-widget .elementor-icon-box-description,
.select2-container,
.select2-results__option {
    font-family: 'Manrope', sans-serif !important;
}

/* ==========================================================================
   Out of stock badge: black circle with a zigzag (starburst) edge
   ========================================================================== */
.woocommerce ul.products li.product .cosmika-out-of-stock-badge,
.cosmika-out-of-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0 8px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .4px;
    text-align: center;
    text-transform: uppercase;
    clip-path: polygon(50.0% 0.0%, 56.3% 6.0%, 64.1% 2.0%, 68.5% 9.5%, 77.0% 7.9%, 79.1% 16.4%, 87.8% 17.3%, 87.4% 25.9%, 95.5% 29.2%, 92.7% 37.5%, 99.5% 42.9%, 94.5% 50.0%, 99.5% 57.1%, 92.7% 62.5%, 95.5% 70.8%, 87.4% 74.1%, 87.8% 82.7%, 79.1% 83.6%, 77.0% 92.1%, 68.5% 90.5%, 64.1% 98.0%, 56.3% 94.0%, 50.0% 100.0%, 43.7% 94.0%, 35.9% 98.0%, 31.5% 90.5%, 23.0% 92.1%, 20.9% 83.6%, 12.2% 82.7%, 12.6% 74.1%, 4.5% 70.8%, 7.3% 62.5%, 0.5% 57.1%, 5.5% 50.0%, 0.5% 42.9%, 7.3% 37.5%, 4.5% 29.2%, 12.6% 25.9%, 12.2% 17.3%, 20.9% 16.4%, 23.0% 7.9%, 31.5% 9.5%, 35.9% 2.0%, 43.7% 6.0%);
    pointer-events: none;
}

/* Sit below the sale badge when a product is both on sale and out of stock. */
.woocommerce ul.products li.product .cosmika-out-of-stock-badge.has-sale-badge {
    top: 44px;
}

.woocommerce ul.products li.product .product-thumbnail {
    position: relative;
}

/* Single product: badge sits on the main gallery image. */
.single-product .base-product-gallery-main .splide__slide a.bt-image-slide {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.single-product .cosmika-out-of-stock-badge {
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 84px;
    height: 84px;
    font-size: 12px;
}

/* Fallback when the badge is rendered in the summary instead of the gallery. */
.single-product div.summary .cosmika-out-of-stock-badge {
    position: static;
    margin-bottom: 10px;
}

/* ==========================================================================
   Product card "Add to cart" button: white, black border/text, icon + label,
   full width of the card.
   ========================================================================== */
.woocommerce ul.products li.product .product-action-wrap a.button:not(.kb-button) {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    width: 100%;
    min-height: 40px;
    padding: 8px 16px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: center;
    transition: background-color .2s ease, color .2s ease;
}

.woocommerce ul.products li.product .product-action-wrap a.button:not(.kb-button):hover,
.woocommerce ul.products li.product .product-action-wrap a.button:not(.kb-button):focus {
    background: #000;
    color: #fff;
    border-color: #000;
}

.woocommerce ul.products li.product .product-action-wrap a.button .cart-text {
    margin: 0;
    white-space: nowrap;
}

/* Icon always visible; spinner/check/arrow wrappers must not take up space. */
.woocommerce ul.products li.product .product-action-wrap a.button .add-to-cart-icon {
    display: flex !important;
    align-items: center;
    margin: 0 8px 0 0;
}

.woocommerce ul.products li.product .product-action-wrap a.button .add-to-cart-icon svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

.woocommerce ul.products li.product .product-action-wrap a.button .base-svg-iconset {
    display: contents;
}

/* List view keeps a compact button. */
.woocommerce ul.products.products-list-view li.product .product-action-wrap a.button:not(.kb-button) {
    width: auto;
    min-width: 180px;
    flex: 0 0 auto;
}

/* ==========================================================================
   Product card images: same 4:5 portrait frame for every product, image cropped to fit
   (also applies to the hover/secondary image).
   ========================================================================== */
.woocommerce ul.products li.product .product-thumbnail {
    aspect-ratio: 4 / 5;
}

.woocommerce ul.products li.product .product-thumbnail a.woocommerce-loop-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce ul.products li.product .product-thumbnail a.woocommerce-loop-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.woocommerce ul.products li.product .product-thumbnail a.woocommerce-loop-image-link img.secondary-product-image {
    position: absolute;
    top: 0;
    left: 0;
}

/* ==========================================================================
   Product card titles: always exactly 3 lines tall (longer titles are cut with "…")
   so prices and buttons line up across the grid.
   ========================================================================== */
.woocommerce ul.products:not(.products-list-view) li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    min-height: 4.2em;
    max-height: 4.2em;
}

/* ==========================================================================
   Mobile app-style bottom bar: Account | Wishlist | Search
   The real header elements are moved (not duplicated), so the search drawer,
   wishlist counter and login link keep working. Cart/menu stay in the header.
   ========================================================================== */
/* Extra top search icon (added by functions.php): phones only, tablets keep the original one in the header. */
.cosmika-mobile-search-top {
    display: none;
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    /* Wrappers collapse so the moved items leave no gap in the header.
       Logged-in users get ".header-mobile-account-in-wrap" instead of ".header-mobile-account-wrap". */
    #mobile-header .site-header-item:has(> .header-mobile-account-wrap),
    #mobile-header .site-header-item:has(> .header-mobile-account-in-wrap),
    #mobile-header .site-header-item:has(> .header-wishlist-wrap),
    #mobile-header .site-header-item:has(> .search-toggle-open-container) {
        display: contents;
    }

    /* Floating pill: the three real header items sit on top of one shared background.
       It's drawn on the header wrapper that contains the items (that wrapper has its own z-index),
       otherwise the pill would paint over the icons. */
    #mobile-header .site-main-header-wrap::before {
        content: "";
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 9998;
        height: 62px;
        border-radius: 20px;
        background: #111;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .12);
        pointer-events: none;
    }

    #mobile-header .header-mobile-account-wrap,
    #mobile-header .header-mobile-account-in-wrap,
    #mobile-header .header-wishlist-wrap,
    #mobile-header .search-toggle-open-container {
        position: fixed;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 9999;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: calc((100% - 24px) / 3);
        height: 62px;
        margin: 0;
        padding: 6px;
        background: transparent;
        border: 0;
        color: #fff;
    }

    #mobile-header .search-toggle-open-container {
        left: 12px;
    }

    /* Second search icon next to the cart (top header). */
    #mobile-header .cosmika-mobile-search-top {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-height: 0;
        align-self: center;
        margin: 0 10px 0 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: inherit;
        box-shadow: none;
        cursor: pointer;
    }

    #mobile-header .cosmika-mobile-search-top svg {
        width: 20px;
        height: 20px;
    }

    /* Smaller logo so the icons fit on both sides. */
    #mobile-header .mobile-site-branding img.custom-logo,
    #mobile-header .mobile-site-branding .custom-logo-link img {
        width: auto;
        max-width: 150px;
        max-height: 52px;
    }

    #mobile-header .header-wishlist-wrap {
        left: calc(12px + (100% - 24px) / 3);
    }

    #mobile-header .header-mobile-account-wrap,
    #mobile-header .header-mobile-account-in-wrap {
        left: calc(12px + (100% - 24px) / 3 * 2);
    }

    #mobile-header .header-mobile-account-wrap a,
    #mobile-header .header-mobile-account-wrap button,
    #mobile-header .header-mobile-account-in-wrap a,
    #mobile-header .header-mobile-account-in-wrap button,
    #mobile-header .header-wishlist-wrap a,
    #mobile-header .search-toggle-open-container button {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: #fff;
        box-shadow: none;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: background-color .2s ease, transform .15s ease;
    }

    #mobile-header .header-mobile-account-wrap a:active,
    #mobile-header .header-mobile-account-in-wrap a:active,
    #mobile-header .header-wishlist-wrap a:active,
    #mobile-header .search-toggle-open-container button:active {
        background: rgba(255, 255, 255, .12);
        transform: scale(.96);
    }

    /* Wishlist counter: small badge on the heart's top-right corner, so the heart stays visible. */
    #mobile-header .header-wishlist-wrap .header-wishlist-total {
        position: absolute;
        top: -2px;
        left: calc(50% + 6px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 18px;
        width: auto;
        height: 18px;
        margin: 0;
        padding: 0 4px;
        border: 2px solid #111;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        transform: none;
    }

    /* Labels under the icons. */
    #mobile-header .search-toggle-open-container button::after,
    #mobile-header .header-wishlist-wrap a::after,
    #mobile-header .header-mobile-account-wrap a::after,
    #mobile-header .header-mobile-account-in-wrap a::after {
        color: rgba(255, 255, 255, .75);
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: .02em;
    }

    #mobile-header .search-toggle-open-container button::after {
        content: "Αναζήτηση";
    }

    #mobile-header .header-wishlist-wrap a::after {
        content: "Αγαπημένα";
    }

    #mobile-header .header-mobile-account-wrap a::after,
    #mobile-header .header-mobile-account-in-wrap a::after {
        content: "Λογαριασμός";
    }

    #mobile-header .header-mobile-account-wrap svg,
    #mobile-header .header-mobile-account-in-wrap svg,
    #mobile-header .header-wishlist-wrap svg,
    #mobile-header .search-toggle-open-container svg {
        width: 21px;
        height: 21px;
        color: #fff;
    }

    /* Keep other bottom-fixed elements above the bar. */
    body #bt-scroll-up,
    body #bt-scroll-up-reader {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }

    body .woocommerce-notices-wrapper {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Top bar (inc/cosmika-topbar.php) - replaces the old tmcore-marquee row.
   Change --cosmika-topbar-bg to recolour the bar.
   ========================================================================== */
#masthead .site-top-header-wrap {
    display: none !important;
}

.cosmika-topbar {
    --cosmika-topbar-bg: #000;
    background: var(--cosmika-topbar-bg);
    color: #fff;
}

.cosmika-topbar__inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 10px 20px;
}

/* Phone link with a dashed line after the label. */
.cosmika-topbar__phone {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.cosmika-topbar__phone svg {
    width: 15px;
    height: 15px;
}

.cosmika-topbar__phone::after {
    content: "";
    width: 30px;
    height: 1px;
    margin-left: 16px;
    background: #fff;
}

.cosmika-topbar__phone:hover,
.cosmika-topbar__phone:focus {
    color: #fff;
    opacity: .8;
}

/* Rotating messages, one at a time. */
.cosmika-topbar__scroller {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 25px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.cosmika-topbar__scroller:active {
    cursor: grabbing;
}

.cosmika-topbar__track {
    display: flex;
}

.cosmika-topbar__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: center;
}

.cosmika-topbar__slide p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
    text-transform: uppercase;
}

.cosmika-topbar__slide a.cosmika-topbar__tel {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    -webkit-user-drag: none;
}

.cosmika-topbar__slide a.cosmika-topbar__tel:hover {
    opacity: 0.8;
}

/* Social icons (circle shape, no fill). */
.cosmika-topbar__social {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.cosmika-topbar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.cosmika-topbar__social svg {
    width: 17px;
    height: 17px;
}

.cosmika-topbar__social a:hover,
.cosmika-topbar__social a:focus {
    color: #fff;
    opacity: .8;
}

/* Outlined button. */
.cosmika-topbar__button {
    box-sizing: border-box;
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 11.25px 18.75px;
    border: 1px solid #484f56;
    border-radius: 2px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease;
}

.cosmika-topbar__button:hover,
.cosmika-topbar__button:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Tablet and mobile: only the rotating messages, like the reference site. */
@media (max-width: 1024px) {
    .cosmika-topbar__phone,
    .cosmika-topbar__social,
    .cosmika-topbar__button {
        display: none;
    }

    .cosmika-topbar__scroller {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .cosmika-topbar__slide p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ==========================================================================
   Free shipping bar + suggested products (inc/cosmika-free-shipping.php)
   Colours: change the two variables below.
   ========================================================================== */
.cosmika-fsb {
    --cosmika-fsb-color: #16a34a;
    --cosmika-fsb-color-light: #4ade80;
    box-sizing: border-box;
    margin: 16px 0;
    padding: 18px 18px 20px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    background: #f7f8f7;
    text-align: left;
}

.cosmika-fsb--cart {
    margin: 28px 0 0;
    padding: 26px 26px 28px;
}

/* Progress bar: track + coloured fill with the percentage inside, goal icon at the end. */
.cosmika-fsb__bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cosmika-fsb__track {
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e8e4;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08);
}

.cosmika-fsb__fill {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 54px;
    height: 100%;
    padding: 0 12px;
    border-radius: 999px;
    background-color: var(--cosmika-fsb-color);
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .18) 75%, transparent 75%),
        linear-gradient(90deg, var(--cosmika-fsb-color), var(--cosmika-fsb-color-light));
    background-size: 18px 18px, 100% 100%;
    animation: cosmika-fsb-grow .9s cubic-bezier(.22, .8, .3, 1), cosmika-fsb-stripes 1.2s linear infinite;
}

@keyframes cosmika-fsb-grow {
    from {
        width: 0;
    }
}

@keyframes cosmika-fsb-stripes {
    to {
        background-position: 18px 0, 0 0;
    }
}

.cosmika-fsb__percent {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

.cosmika-fsb__goal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
    color: #9aa39d;
}

.cosmika-fsb__goal svg {
    width: 17px;
    height: 17px;
}

.cosmika-fsb.is-complete .cosmika-fsb__goal {
    background: var(--cosmika-fsb-color);
    color: #fff;
}

/* Message (extra space above it). */
.cosmika-fsb__message {
    margin: 16px 0 0;
    padding-top: 4px;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.cosmika-fsb__amount {
    color: #111;
    font-weight: 800;
}

.cosmika-fsb.is-complete .cosmika-fsb__message strong {
    color: var(--cosmika-fsb-color);
}

/* Free gift bar, above or under the free shipping bar (lower goal first); same look, its own colour. */
.cosmika-fsb .cosmika-gift {
    --cosmika-fsb-color: #db2777;
    --cosmika-fsb-color-light: #f472b6;
}

.cosmika-fsb .cosmika-gift--top {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(0, 0, 0, .12);
}

.cosmika-fsb .cosmika-gift--bottom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(0, 0, 0, .12);
}

.cosmika-fsb .cosmika-gift .cosmika-fsb__goal {
    background: #fff;
    color: #9aa39d;
}

.cosmika-fsb .cosmika-gift.is-complete .cosmika-fsb__goal {
    background: var(--cosmika-fsb-color);
    color: #fff;
}

.cosmika-fsb .cosmika-gift .cosmika-fsb__message strong,
.cosmika-fsb .cosmika-gift .cosmika-fsb__message .cosmika-fsb__amount,
.cosmika-fsb .cosmika-gift .cosmika-fsb__message .cosmika-fsb__amount * {
    color: var(--cosmika-fsb-color);
}

.cosmika-gift__headline {
    display: block;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cosmika-gift__subline {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

/* Gift line in the cart / side cart. */
.cosmika-gift-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #db2777;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    vertical-align: middle;
}

.cosmika-gift-free {
    color: #db2777;
    font-weight: 700;
}

/* Gift list under the gift bar. */
/* "Full size, not samples" badge. */
.cosmika-gift__note {
    display: flex;
    justify-content: center;
    margin: 10px 0 0;
}

.cosmika-gift__note > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    background: #fdf2f8;
    color: #9d174d;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.cosmika-gift__note svg {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 50%;
    background: #db2777;
    color: #fff;
}

.cosmika-gift__list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    transition: opacity .2s ease;
}

.cosmika-gift__list.is-busy {
    opacity: .55;
    pointer-events: none;
}

.cosmika-gift__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cosmika-gift__item.is-chosen {
    border-color: #db2777;
    box-shadow: 0 0 0 1px #db2777 inset;
}

.cosmika-gift__thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f8f7;
}

.cosmika-gift__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmika-gift__list.is-locked .cosmika-gift__thumb img {
    filter: grayscale(.35);
}

.cosmika-gift__info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cosmika-gift__name {
    display: -webkit-box;
    overflow: hidden;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 2px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cosmika-gift__name:hover {
    color: #db2777;
}

.cosmika-gift__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
}

.cosmika-gift__price del {
    color: #888;
    font-weight: 400;
}

.cosmika-gift__price ins {
    color: #16a34a;
    font-weight: 800;
    text-decoration: none;
}

.cosmika-gift .cosmika-gift__choose,
.cosmika-gift__state {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
}

.cosmika-gift .cosmika-gift__choose {
    border: 1px solid #000;
    background: #000;
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.cosmika-gift .cosmika-gift__choose:hover,
.cosmika-gift .cosmika-gift__choose:focus-visible {
    background: #fff;
    color: #000;
}

.cosmika-gift .cosmika-gift__choose.is-loading {
    opacity: .5;
    cursor: wait;
}

.cosmika-gift .cosmika-gift__choose svg,
.cosmika-gift__state svg {
    width: 18px;
    height: 18px;
}

.cosmika-gift__state--chosen {
    background: #db2777;
    color: #fff;
}

.cosmika-gift__state--locked {
    background: #eef0ee;
    color: #9aa39d;
}

/* Cart page: gifts side by side. */
.cosmika-fsb--cart .cosmika-gift__list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.cosmika-fsb--cart .cosmika-gift__thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
}

/* "Suggestions" title with side lines. */
.cosmika-fsb__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #6b726d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cosmika-fsb__title::before,
.cosmika-fsb__title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(0, 0, 0, .1);
}

.cosmika-fsb__products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cosmika-fsb__product {
    margin: 0;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.cosmika-fsb__product:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.cosmika-fsb__thumb {
    display: block;
    overflow: hidden;
    background: #fff;
}

.cosmika-fsb__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmika-fsb__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.cosmika-fsb__price {
    display: block;
    margin-top: 3px;
    color: #111;
    font-size: 14px;
    font-weight: 800;
}

.cosmika-fsb .cosmika-fsb__add.button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .2s ease, color .2s ease;
}

.cosmika-fsb .cosmika-fsb__add.button:hover,
.cosmika-fsb .cosmika-fsb__add.button:focus {
    background: #000;
    color: #fff;
}

.cosmika-fsb .cosmika-fsb__add.button.loading {
    opacity: .6;
}

.cosmika-fsb .added_to_cart {
    display: none;
}

/* Side cart: compact rows. */
.cosmika-fsb--mini {
    flex: 0 0 auto;
    margin: 12px 14px;
    padding: 16px 14px 14px;
}

.cosmika-fsb--mini .cosmika-fsb__products {
    display: grid;
    gap: 8px;
}

.cosmika-fsb--mini .cosmika-fsb__product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.cosmika-fsb--mini .cosmika-fsb__thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 10px;
}

.cosmika-fsb--mini .cosmika-fsb__info {
    flex: 1 1 auto;
    min-width: 0;
}

.cosmika-fsb--mini .cosmika-fsb__name {
    font-size: 12px;
}

.cosmika-fsb--mini .cosmika-fsb__price {
    font-size: 13px;
}

.cosmika-fsb--mini .cosmika-fsb__add.button {
    padding: 7px 10px;
    font-size: 11px;
}

/* The drawer scrolls as a whole (items + bar) and the subtotal/buttons stay pinned at the bottom,
   so the item list is never squeezed. Short screens show 2 suggestions. */
/* The theme centres this scrolling column vertically; when it's taller than the screen the top
   (first products) overflows upwards and can't be scrolled to. Stack it from the top instead
   (the empty-cart message stays centred). */
#cart-drawer.popup-drawer .drawer-content .base-mini-cart-refresh:has(> ul.woocommerce-mini-cart) {
    justify-content: flex-start;
}

.base-mini-cart-refresh > ul.woocommerce-mini-cart {
    flex: 0 0 auto;
    overflow: visible;
}

.base-mini-cart-refresh > .widget_shopping_cart_footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    background: #fff;
}

@media (max-height: 780px) {
    .cosmika-fsb--mini .cosmika-fsb__product:nth-child(n+3) {
        display: none;
    }
}

/* Cart page: card grid. */
.cosmika-fsb--cart .cosmika-fsb__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cosmika-fsb--cart .cosmika-fsb__product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
}

.cosmika-fsb--cart .cosmika-fsb__thumb {
    aspect-ratio: 4 / 5;
}

.cosmika-fsb--cart .cosmika-fsb__info {
    flex: 1 1 auto;
    padding: 14px 14px 10px;
}

.cosmika-fsb--cart .cosmika-fsb__add.button {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
}

@media (max-width: 767px) {
    .cosmika-fsb--cart {
        padding: 18px 14px 20px;
    }

    .cosmika-fsb--cart .cosmika-fsb__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cosmika-fsb--cart .cosmika-fsb__info {
        padding: 10px 10px 8px;
    }

    .cosmika-fsb--cart .cosmika-fsb__add.button {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
    }
}

/* ==========================================================================
   Back In Stock Notifier (CWG) popup + form: match the site (black/white, rounded, Manrope).
   !important is used where the plugin prints its own colours from its settings.
   ========================================================================== */
.swal2-container:has(.cwginstock-subscribe-form) {
    background: rgba(0, 0, 0, .55) !important;
    padding: 16px;
}

.swal2-popup:has(.cwginstock-subscribe-form) {
    width: 440px !important;
    max-width: 100%;
    padding: 32px 26px 26px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    font-family: inherit;
}

.swal2-popup:has(.cwginstock-subscribe-form) .swal2-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #000;
    font-size: 26px;
    line-height: 1;
    transition: background-color .2s ease;
}

.swal2-popup:has(.cwginstock-subscribe-form) .swal2-close:hover,
.swal2-popup:has(.cwginstock-subscribe-form) .swal2-close:focus {
    background: #f2f2f2;
    color: #000;
    box-shadow: none;
}

.swal2-popup:has(.cwginstock-subscribe-form) .swal2-content,
.swal2-popup:has(.cwginstock-subscribe-form) .swal2-html-container {
    margin: 0;
    padding: 0;
    text-align: left;
}

/* The form itself (popup and inline on the product page). */
.cwginstock-subscribe-form .cwginstock-panel-primary {
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.cwginstock-subscribe-form .cwginstock-panel-heading {
    padding: 0 0 6px !important;
    border: 0 !important;
    background: transparent !important;
}

.cwginstock-subscribe-form .cwginstock-panel-heading h4 {
    margin: 0;
    color: #000 !important;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

/* Small envelope icon above the title. */
.swal2-popup .cwginstock-subscribe-form .cwginstock-panel-heading h4::before {
    content: "";
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.cwginstock-subscribe-form .cwginstock-panel-body {
    padding: 14px 0 0 !important;
}

.cwginstock-subscribe-form .row,
.cwginstock-subscribe-form [class*="col-md-"] {
    margin: 0;
    padding: 0;
}

.cwginstock-subscribe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.cwginstock-subscribe-form .form-group + .form-group,
.cwginstock-subscribe-form .form-group + input + input + input + .form-group {
    margin-top: 16px;
}

.cwginstock-subscribe-form input.cwgstock_name,
.cwginstock-subscribe-form input.cwgstock_email {
    box-sizing: border-box;
    width: 100% !important;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cwginstock-subscribe-form input.cwgstock_name:focus,
.cwginstock-subscribe-form input.cwgstock_email:focus {
    border-color: #000 !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.cwginstock-subscribe-form .cwgstock_button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px !important;
    border: 1px solid #000 !important;
    border-radius: 8px !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.cwginstock-subscribe-form .cwgstock_button:hover,
.cwginstock-subscribe-form .cwgstock_button:focus {
    background: #fff !important;
    color: #000 !important;
}

.cwginstock-subscribe-form .cwgstock_button:disabled,
.cwginstock-subscribe-form .cwgstock_button[disabled] {
    opacity: .55;
    cursor: wait;
}

/* Success / error message after submitting. */
.cwginstock-subscribe-form .cwgstock_output:not(:empty) {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.cwginstock-subscribe-form .cwgstock_output .cwginstocksuccess,
.cwginstock-subscribe-form .cwgstock_output .cwginstockerror {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
}

.cwginstock-subscribe-form .cwgstock_output .cwginstocksuccess {
    background: #ecfdf3;
    color: #15803d !important;
}

.cwginstock-subscribe-form .cwgstock_output .cwginstockerror {
    background: #fef2f2;
    color: #b91c1c !important;
}

/* ==========================================================================
   Brands slider [cosmika_brands_slider]: thin row of brand logos.
   ========================================================================== */
.cosmika-brands {
    --cosmika-brands-h: 76px;
    --cosmika-brands-w: 170px;
    --cosmika-brands-gap: 10px;
    position: relative;
    width: 100%;
}

/* Elementor containers are limited to the kit's 1140px, while the theme widens the classic sections
   to the site width: let the container holding the slider use the full width like the other sections. */
.e-con.e-con-boxed:has(.cosmika-brands) > .e-con-inner {
    max-width: 100%;
}

.cosmika-brands__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

/* Same heading + grey line as the other homepage sections ("Μόλις έφτασαν", "Οι προτάσεις μας"). */
.cosmika-brands .cosmika-brands__head .cosmika-brands__title {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: inherit;
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
}

.cosmika-brands .cosmika-brands__head .cosmika-brands__subtitle {
    margin: 15px 0 0;
    padding: 0;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
}

.cosmika-brands__nav {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.cosmika-brands:not(.has-overflow) .cosmika-brands__nav {
    visibility: hidden;
}

.cosmika-brands .cosmika-brands__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    color: #000;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.cosmika-brands .cosmika-brands__arrow svg {
    width: 16px;
    height: 16px;
}

.cosmika-brands .cosmika-brands__arrow:hover:not(:disabled),
.cosmika-brands .cosmika-brands__arrow:focus-visible {
    background: #000;
    color: #fff;
}

.cosmika-brands .cosmika-brands__arrow:disabled {
    opacity: .3;
    cursor: default;
}

/* Fade on the side that has more brands. */
.cosmika-brands__viewport {
    position: relative;
}

.cosmika-brands__viewport::before,
.cosmika-brands__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.cosmika-brands__viewport::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.cosmika-brands__viewport::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.cosmika-brands.has-overflow:not(.at-start) .cosmika-brands__viewport::before,
.cosmika-brands.has-overflow:not(.at-end) .cosmika-brands__viewport::after {
    opacity: 1;
}

.cosmika-brands__list {
    display: flex;
    gap: var(--cosmika-brands-gap);
    margin: 0;
    padding: 2px 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cosmika-brands__list::-webkit-scrollbar {
    display: none;
}

.cosmika-brands__list:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.cosmika-brands__item {
    flex: 0 0 var(--cosmika-brands-w);
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}

.cosmika-brands__card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--cosmika-brands-h);
    padding: 12px 18px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: #000;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cosmika-brands__card:hover,
.cosmika-brands__card:focus-visible {
    border-color: #000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    color: #000;
}

.cosmika-brands__logo {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 48px;
    object-fit: contain;
    transition: transform .25s ease;
}

.cosmika-brands__card:hover .cosmika-brands__logo {
    transform: scale(1.04);
}

/* Brands without a logo: the name, styled like a wordmark. */
.cosmika-brands__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .cosmika-brands {
        --cosmika-brands-h: 62px;
        --cosmika-brands-w: 132px;
        --cosmika-brands-gap: 8px;
    }

    .cosmika-brands__head {
        margin-bottom: 20px;
    }

    .cosmika-brands .cosmika-brands__head .cosmika-brands__title {
        font-size: 23px;
    }

    .cosmika-brands .cosmika-brands__head .cosmika-brands__subtitle {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.3;
    }

    .cosmika-brands .cosmika-brands__arrow {
        width: 32px;
        height: 32px;
    }

    .cosmika-brands__card {
        padding: 10px 12px;
    }

    .cosmika-brands__logo {
        max-height: 38px;
    }

    .cosmika-brands__name {
        font-size: 12px;
    }
}
/* ==========================================================================
   Single product: accepted payment methods (Viva Wallet) under the product details.
   ========================================================================== */
/* The theme's own payments block is replaced by this one. */
.single-product .summary .single-product-payments {
    display: none;
}

.cosmika-payments {
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
}

.cosmika-payments__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0 0 9px;
    color: #111;
    font-size: 13px;
    line-height: 1.3;
}

.cosmika-payments__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000;
    color: #fff;
}

.cosmika-payments__icon svg {
    width: 12px;
    height: 12px;
}

.cosmika-payments__title {
    font-weight: 700;
}

.cosmika-payments__by {
    color: #777;
    font-size: 12px;
}

.cosmika-payments__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cosmika-payments__logo {
    display: flex;
    width: 46px;
    height: 29px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    transition: transform .2s ease;
}

.cosmika-payments__logo:hover {
    transform: translateY(-1px);
}

.cosmika-payments .cosmika-payments__logo .base-svg-iconset {
    display: flex;
    width: 100%;
    height: 100%;
}

/* The theme sizes its icons to 1em (16px); these logos fill their badge. */
.cosmika-payments .cosmika-payments__logo svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}

.cosmika-payments__note {
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}
/* Desktop transparent header: the theme reserves 124px above page titles (cart, checkout, account…),
   but the real header is 162px (the custom top bar adds 62px), so titles slid under it.
   Reserve the full header height, then balance the space so the title text sits centered in the grey band. */
@media (min-width: 1025px) {
    body.transparent-header .entry-hero .entry-hero-container-inner {
        padding-top: calc(162px + 16px);
        padding-bottom: 8px;
    }
}

/* Gift notice at checkout: keep the text as one flowing line, with a visible cart link. */
.cosmika-gift-notice {
    display: block;
    line-height: 1.5;
}

.cosmika-gift-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}