/* ==========================================================================
   Casavoltio – global typography, header universes nav, mega menu, premium icons
   ========================================================================== */

/* 1. One typography everywhere (WoodMart defaults → Inter / Manrope) */
html:root {
    --wd-text-font: "Inter", Arial, Helvetica, sans-serif;
    --wd-title-font: "Manrope", "Inter", Arial, sans-serif;
    --wd-entities-title-font: "Inter", Arial, Helvetica, sans-serif;
    --wd-alternative-font: "Inter", Arial, Helvetica, sans-serif;
    --wd-header-el-font: "Inter", Arial, Helvetica, sans-serif;
    --wd-widget-title-font: "Manrope", "Inter", Arial, sans-serif;
    --wd-primary-color: #0057D9;
    --wd-link-color-hover: #0047B3;
}

body,
button,
input,
select,
textarea,
.whb-header,
.wd-nav,
.wd-nav .nav-link-text,
.whb-top-bar,
.wd-tools-element .wd-tools-text,
.wd-dropdown,
.wd-toolbar,
.wd-sticky-btn {
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

.whb-top-bar .wd-nav > li > a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

/* 2. Header universes nav (desktop) */
@media (min-width: 1025px) {
    .whb-header-bottom .whb-header-bottom-inner {
        min-height: 58px;
    }

    #menu-store-universos {
        align-items: center;
        gap: 4px;
    }

    #menu-store-universos > li > a {
        height: 42px;
        padding: 0 14px !important;
        border-radius: 999px;
        color: #1D1D1F;
        font: 600 14.5px/1 "Inter", Arial, sans-serif;
        letter-spacing: -0.005em;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    #menu-store-universos > li > a .nav-link-text {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        gap: 9px;
    }

    #menu-store-universos > li > a .nav-link-text::before {
        content: "";
        position: static !important;
        display: block !important;
        flex: none;
        width: 20px;
        height: 20px;
        margin: 0 !important;
        background: currentColor;
        opacity: 0.88;
        -webkit-mask: var(--cv-ico) center / contain no-repeat;
        mask: var(--cv-ico) center / contain no-repeat;
        transform: none !important;
    }

    #menu-store-universos > li > a .nav-link-text::after {
        content: none !important;
    }

    #menu-store-universos > li.menu-item-has-children > a::after {
        content: "" !important;
        position: static !important;
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        margin: 0 0 0 6px !important;
        border: 0 !important;
        background: currentColor !important;
        opacity: 0.45;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 0.2s ease;
    }

    #menu-store-universos > li:hover > a,
    #menu-store-universos > li:focus-within > a {
        background: #F2F4F7;
        color: #0057D9;
    }

    #menu-store-universos > li.menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
        opacity: 0.8;
    }

    #menu-store-universos > li.current-menu-item > a,
    #menu-store-universos > li.current-menu-ancestor > a {
        color: #0057D9;
    }

    /* icons per universe */
    #menu-item-12918 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M13.2 2.6 5 13.6h6.2l-1.4 7.8 8.2-11h-6.2z'/%3E%3C/svg%3E"); }
    #menu-item-12915 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4.8' width='16' height='10.7' rx='1.8'/%3E%3Cpath d='M2.5 18.8h19'/%3E%3C/svg%3E"); }
    #menu-item-12916 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='17.5' r='2.4'/%3E%3Ccircle cx='18.5' cy='17.5' r='2.4'/%3E%3Cpath d='M7.9 17.5h8.2M15.2 4.5h2.5l.8 10.6M14 4.5h3.2'/%3E%3C/svg%3E"); }
    #menu-item-12917 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.8' y='4.5' width='18.4' height='12' rx='2'/%3E%3Cpath d='M9 20.2h6M12 16.5v3.7'/%3E%3C/svg%3E"); }
    #menu-item-12919 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.6V4.5a1 1 0 0 1 1-1h8.1l8 8a1.4 1.4 0 0 1 0 2l-7.1 7.1a1.4 1.4 0 0 1-2 0z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
    #menu-item-14761 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2'/%3E%3Cpath d='M6 9.5h12M9 5.3v1.8M9 12.3v3'/%3E%3C/svg%3E"); }
    .cv-nav-packs { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='4' rx='1'/%3E%3Cpath d='M5 12v8.5h14V12M12 8v12.5M12 8C10.6 5 7 4.6 7 6.6 7 8 9.5 8 12 8zm0 0c1.4-3 5-3.4 5-1.4C17 8 14.5 8 12 8z'/%3E%3C/svg%3E"); }
    #menu-item-12920 { --cv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.6'/%3E%3C/svg%3E"); }

    #menu-item-12919 > a {
        color: #626873;
    }

    #menu-item-12920 > a {
        border: 1.5px solid #DCE1E8;
        color: #101A2E;
    }

    #menu-item-12920 > a:hover {
        border-color: #0057D9;
        background: #FFFFFF !important;
    }

    /* 3. Mega menu */
    .whb-header .store-mega {
        display: grid !important;
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 26px;
        align-items: stretch;
        padding: 6px 0;
    }

    .whb-header .store-mega__intro {
        position: relative;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        min-height: 260px;
        padding: 26px !important;
        border: 0 !important;
        border-radius: 22px;
        background: linear-gradient(155deg, #101A2E 0%, #173465 100%);
        color: #FFFFFF;
    }

    .whb-header .store-mega__intro::after {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -90px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 87, 217, 0.55), rgba(0, 87, 217, 0) 70%);
        pointer-events: none;
    }

    .whb-header .store-mega__intro > * {
        position: relative;
        z-index: 1;
    }

    .whb-header .store-mega__eyebrow {
        margin: 0 0 10px !important;
        color: #9CC1FF !important;
        font: 700 11.5px/1.2 "Inter", sans-serif !important;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .whb-header .store-mega__title {
        margin: 0 !important;
        color: #FFFFFF !important;
        font: 800 22px/1.2 "Manrope", sans-serif !important;
        letter-spacing: -0.02em;
    }

    .whb-header .store-mega__text {
        margin: 10px 0 20px;
        color: rgba(255, 255, 255, 0.74);
        font-size: 14px;
        line-height: 1.55;
    }

    .whb-header .store-mega__all {
        display: inline-flex !important;
        align-items: center;
        align-self: flex-start;
        gap: 8px;
        margin-top: auto !important;
        padding: 11px 18px !important;
        border-radius: 999px;
        background: #FFFFFF;
        color: #101A2E !important;
        font: 600 14px/1 "Inter", sans-serif !important;
        text-decoration: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .whb-header .store-mega__all:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .whb-header .store-mega__all svg {
        width: 16px;
        height: 16px;
    }

    .whb-header .store-mega__cats {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 14px;
        align-content: start;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .whb-header .store-mega__cats > li {
        margin: 0;
    }

    .whb-header .store-mega__cat {
        display: flex !important;
        flex-direction: column;
        height: 100%;
        padding: 10px 10px 14px;
        border: 1px solid #E3E7EE;
        border-radius: 18px;
        background: #FFFFFF;
        text-decoration: none !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .whb-header .store-mega__cat:hover {
        border-color: #0057D9;
        box-shadow: 0 14px 30px rgba(16, 26, 46, 0.12);
        transform: translateY(-2px);
    }

    .whb-header .store-mega__media {
        display: block;
        overflow: hidden;
        border-radius: 14px;
        background: #F2F4F7;
    }

    .whb-header .store-mega__cat:hover .store-mega__media img {
        transform: scale(1.04);
    }

    .whb-header .store-mega__media img {
        transition: transform 0.3s ease;
    }

    .whb-header .store-mega__name {
        margin-top: 12px;
        padding: 0 4px;
        color: #1D1D1F !important;
        font: 600 15px/1.3 "Inter", sans-serif !important;
    }

    .whb-header .store-mega__from {
        margin-top: 4px;
        padding: 0 4px;
        color: #0057D9 !important;
        font: 600 13.5px/1.3 "Inter", sans-serif !important;
    }
}

/* 5. Product card summary (2 lines, fixed height keeps cards aligned) */
.store-pcard .store-pcard__desc {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 6px 0 10px;
    overflow: hidden;
    color: #626873;
    font: 400 13.5px/1.45 "Inter", Arial, sans-serif;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .store-pcard .store-pcard__desc {
        font-size: 13px;
    }
}

/* Product page: summary sentence leads the short description */
.woocommerce-product-details__short-description .cv-summary {
    margin: 0 0 12px;
    color: #1D1D1F;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
}
