/* =============================================================================
   Minako – all custom CSS in one place (loaded after style.css).
   Merged from: Customizer "Additional CSS", Elementor custom CSS and snippets.
   Once this file is deployed, those places can be emptied (see notes in the README).
   ========================================================================== */

/* ---- Elementor template 60 (header icon) ---- */
.elementor-60 .elementor-element.elementor-element-7a66820 .elementor-icon svg {
    width: auto;
    height: auto;
    position: relative;
    display: block;
}

/* ---- Mobile header ---- */
@media only screen and (max-width: 600px) {
    #sticky-header > div > div > div > div.mobile-menu > nav > div.nav-logo > a > img {
        display: none;
    }

    .menu-area { background: white !important; }
    .menu-area .mobile-nav-toggler { color: black; }
    .header-action .header-search a,
    .header-action .header-cart a {
        font-size: 20px;
        color: black;
        line-height: 1;
    }
}

/* ---- Misc ---- */
.details-rating { display: none; }
.navbar-wrap > ul > li > a::before { background: #b3bde0; }

#slick-slide00 > div > div > div > div > h4 > svg {
    display: none !important;
}
body > main > div > section.elementor-section.elementor-top-section.elementor-element.elementor-element-8a2fba0.elementor-section-full_width.elementor-section-height-default.elementor-section-height-default > div > div > div > div > div > section > div > div > div > div > div > div > div > div > h4 > svg {
    display: none !important;
}

/* ---- Menus: lowercase + capitalised first letter ---- */
.navbar-wrap ul li a { text-transform: lowercase; }
.navbar-wrap ul li a::first-letter { text-transform: uppercase; }
.navbar-wrap ul li .sub-menu li a { text-transform: lowercase; }
.navbar-wrap ul li .sub-menu li a::first-letter { text-transform: uppercase; }

.mobile-menu .navigation li > a { text-transform: lowercase; }
.mobile-menu .navigation li > a::first-letter { text-transform: uppercase; }
.mobile-menu .navigation li ul li > a { text-transform: lowercase; }
.mobile-menu .navigation li ul li > a::first-letter { text-transform: uppercase; }

/* ---- Related products / shop ---- */
.related-products-wrap .rel-title::first-letter { text-transform: uppercase; }
.related-products-wrap .rel-title { text-transform: lowercase; }

.shop-content .shop-item-cat a { font-size: 14px; }

@media (min-width: 992px) {
    .col-lg-3 { width: 33%; }
}


/* =============================================================================
   SIDE CART
   Colours follow the theme variables (set from the Customizer) with a Minako blue fallback.
   ========================================================================== */
:root {
    --minako-cart-accent: var(--tg-primary-color, #2f4190);
    --minako-cart-text: #1f2a44;
    --minako-cart-muted: #6b7280;
    --minako-cart-line: #e6e9f2;
}

html.minako-cart-open,
html.minako-cart-open body {
    overflow: hidden;
}

/* Overlay */
.minako-side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 48, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 100000;
}
.minako-side-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.minako-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--minako-cart-text);
    box-shadow: -12px 0 40px rgba(10, 18, 48, .18);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .35s;
    z-index: 100001;
    outline: none;
}
.minako-side-cart.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), visibility 0s;
}

.minako-side-cart__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--minako-cart-accent);
    color: #fff;
}
.minako-side-cart__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.minako-side-cart__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s ease;
}
.minako-side-cart__close:hover,
.minako-side-cart__close:focus-visible {
    background: rgba(255, 255, 255, .3);
}

.minako-side-cart__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
/* WooCommerce replaces .widget_shopping_cart_content on every refresh – keep the layout on the wrapper. */
.minako-side-cart .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Items */
.minako-side-cart .woocommerce-mini-cart {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: 8px 24px;
    list-style: none;
}
.minako-side-cart .woocommerce-mini-cart-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--minako-cart-line);
    transition: opacity .2s ease;
}
.minako-side-cart .woocommerce-mini-cart-item.is-removing {
    opacity: .35;
    pointer-events: none;
}
.minako-side-cart .mini-cart-thumb {
    flex: 0 0 72px;
}
.minako-side-cart .mini-cart-thumb img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f5fb;
}
.minako-side-cart .min-cart-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 26px;
}
.minako-side-cart .mini-cart-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.minako-side-cart .mini-cart-title a {
    color: var(--minako-cart-text);
    text-decoration: none;
}
.minako-side-cart .mini-cart-title a:hover {
    color: var(--minako-cart-accent);
}
.minako-side-cart .min-cart-price,
.minako-side-cart .min-cart-price .quantity {
    font-size: 14px;
    color: var(--minako-cart-muted);
}
.minako-side-cart .min-cart-price .amount {
    color: var(--minako-cart-accent);
    font-weight: 700;
}
.minako-side-cart .mini-cart-remove {
    position: absolute;
    top: 14px;
    right: 0;
}
.minako-side-cart .mini-cart-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f3f9;
    color: var(--minako-cart-muted);
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.minako-side-cart .mini-cart-remove a.remove:hover {
    background: #dc3545;
    color: #fff;
}

/* Totals + buttons (pinned to the bottom) */
.minako-side-cart .woocommerce-mini-cart__total {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 18px 24px 8px;
    border-top: 1px solid var(--minako-cart-line);
    font-size: 17px;
    color: var(--minako-cart-text);
}
.minako-side-cart .woocommerce-mini-cart__total strong {
    font-weight: 700;
}
.minako-side-cart .woocommerce-mini-cart__total .amount {
    color: var(--minako-cart-accent);
    font-weight: 700;
}
.minako-side-cart .woocommerce-mini-cart__buttons {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 8px 24px 24px;
}
.minako-side-cart .woocommerce-mini-cart__buttons a.button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--minako-cart-accent) !important; /* !important: the theme/WooCommerce .button styles win otherwise */
    border-radius: 6px;
    background: transparent !important;
    color: var(--minako-cart-accent) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.minako-side-cart .woocommerce-mini-cart__buttons a.button:hover {
    background: var(--minako-cart-accent) !important;
    color: #fff !important;
}
.minako-side-cart .woocommerce-mini-cart__buttons a.button.checkout {
    background: var(--minako-cart-accent) !important;
    color: #fff !important;
}
.minako-side-cart .woocommerce-mini-cart__buttons a.button.checkout:hover {
    filter: brightness(1.12);
}

/* Empty cart */
.minako-side-cart .woocommerce-mini-cart__empty-message {
    margin: 0;
    padding: 56px 24px;
    text-align: center;
    color: var(--minako-cart-muted);
    font-size: 16px;
}

/* Header trigger – desktop badge safety (position relative so the count sits on the icon) */
.header-action .header-cart > a.minako-cart-trigger {
    position: relative;
}

/* =============================================================================
   MOBILE HEADER (< 768px): logo left, round icon buttons right
   [cart] [search] [menu] – same 42px size, soft blue tint, brand-blue burger, soft shadow.
   ========================================================================== */
.minako-cart-mobile .mini-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: var(--minako-cart-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

@media (max-width: 767px) {
    .menu-area {
        background: #fff !important;
        box-shadow: 0 4px 18px rgba(41, 66, 148, .12);
        padding: 8px 0 !important;
    }
    .menu-area .col-12 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .menu-area .menu-wrap {
        order: 0;
        flex: 1 1 auto;
        min-width: 0;
    }
    .menu-area .logo img {
        max-width: 110px !important;
        height: auto;
    }

    /* burger (+ the search circle that header 2 puts inside it) */
    .menu-area .mobile-nav-toggler {
        order: 3;
        float: none !important;
        display: flex !important;
        align-items: center;
        gap: 10px !important;
        margin: 0 !important;
        font-size: 0;
    }
    .menu-area .mobile-nav-toggler > i.fa-bars {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--minako-cart-accent);
        color: #fff !important;
        font-size: 18px !important;
    }
    .menu-area .mobile-nav-toggler .header-search a {
        width: 42px !important;
        height: 42px !important;
        background: #eef1fa !important;
        color: var(--minako-cart-accent) !important;
        font-size: 16px;
    }

    /* header 3 prints the search circle next to the toggler instead of inside it */
    .menu-area .col-12 > .header-search {
        order: 2;
    }
    .menu-area .col-12 > .header-search a {
        width: 42px !important;
        height: 42px !important;
        background: #eef1fa !important;
        color: var(--minako-cart-accent) !important;
        font-size: 16px;
    }

    /* cart */
    .minako-cart-mobile {
        order: 2;
        position: relative;
        float: none !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 50%;
        background: #eef1fa;
        color: var(--minako-cart-accent) !important;
        font-size: 18px;
        line-height: 1;
    }
    .minako-cart-mobile i {
        line-height: 1;
    }

    /* header 1 keeps search + cart inside the menu bar on mobile: same round buttons */
    .menu-area .menu-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .menu-area .header-action {
        margin: 0 !important;
    }
    .menu-area .header-action .list-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
    }
    .menu-area .header-action .list-wrap > li {
        margin: 0 !important;
        padding: 0;
    }
    .menu-area .header-action .header-cart > a,
    .menu-area .header-action .header-search > a {
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0 !important;
        border-radius: 50%;
        background: #eef1fa;
        color: var(--minako-cart-accent) !important;
        font-size: 18px !important;
        line-height: 1;
    }
    .menu-area .header-action .header-cart .mini-cart-count {
        top: -5px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        border-radius: 8px;
        background: var(--minako-cart-accent);
        color: #fff;
        font-size: 10px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .minako-side-cart__head,
    .minako-side-cart .woocommerce-mini-cart,
    .minako-side-cart .woocommerce-mini-cart__total,
    .minako-side-cart .woocommerce-mini-cart__buttons {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .minako-side-cart,
    .minako-side-cart-overlay {
        transition: none;
    }
}

/* The side cart opens after an AJAX add, so hide WooCommerce's inline "View cart" link in product loops. */
.woocommerce a.added_to_cart.wc-forward { display: none !important; }
