:root {
    --color-blue: #164e85;
    --color-top: #293557;
    --color-heading: #285e98;
    --color-surface: #f3f4f6;
    --color-text: #555;
    --color-teal: #368c80;
    --color-lime: #a7d400;
    --bd-heading: #3c92a8;
    --bd-text: #4d555c;
    --bd-muted: #7d858c;
    --bd-card-text: #424a51;
    --bd-card-caption: #879099;
    --bd-search-placeholder: #929aa2;
    --bg: linear-gradient(to bottom, #D9D5C8, #C7C2B2);
    --sider-width: 280px;
}

* {
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
body{
    margin: 0;
}
.ripple:hover {
    animation: ripple-loop 1.2s ease-out infinite;
}
@keyframes ripple-loop {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.bd-page {
    margin: 0;
    background: var(--bg);
    color: var(--color-text);
    font-family: "Noto Sans SC", Arial, sans-serif;
}

.bd-container {
    position: relative;
    width: 1200px;
    margin: 20px auto;
}

.bd-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 20px;
    background: white;
    border-radius: 10px 10px 0 0;
    color: #000;
}

.bd-brand {
    font-family: "Supermercado", "Noto Sans SC", sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 50px;
}

.bd-brand small {
    display: block;
    font-family: Inter, "Noto Sans SC", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    color: #30363b;
}

.bd-search {
    display: flex;
    align-items: center;
    width: 200px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    background: #fff;
    border:solid 1px #CBD1D6;
}

.bd-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--color-text);
    font: inherit;
}

.bd-search input::placeholder {
    color: var(--bd-search-placeholder);
}

.bd-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    height: 40px;
    padding: 0 95px;
    background: linear-gradient(to bottom, #555A59, #444948);
}

@media (max-width:700px) {
    .bd-nav {
        padding: 0 20px 0 40px;
    }
}

.bd-menu-button {
    position: absolute;
    top: -2px;
    left: 0;
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 40px;
}

.index-category-sidebar {
    display: none;
    position: absolute;
    top: 140px;
    left: 0;
    z-index: 10;
    width: 300px;
    padding: 10px;
    border: 1px solid #d8dde1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(37, 43, 49, .16);
    transform: translateX(-150%);
    transition: transform .3s ease;
}

.index-category-sidebar.category-sidebar--open {
    transform: translateX(0);
}

.index-category-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-category-sidebar li {
    height: 40px;
    border: 1px solid #e3e6e8;
    border-radius: 10px;
}

.index-category-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 10px;
    color: #252b31;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.index-category-sidebar span {
    color: #7b848c;
}


.bd-nav a {
    color: #fff;
    font-family: Inter, "Noto Sans SC", sans-serif;
    font-size: 15px;
    line-height: 18px;
    padding-top: 11px;
    text-decoration: none;
}

.bd-directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-top: 20px;
}

.bd-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: white;
}

.bd-card__title {
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-bottom: 0;
    background: url("https://www.figma.com/api/mcp/asset/080a9048-e4eb-47a8-a55e-c803309b305f.svg") center / 100% 100% no-repeat;
    color: var(--bd-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.bd-card__desc {
    margin: 12px 20px 13px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    color: var(--bd-card-caption);
}

.bd-card__list {
    flex: 1;
    margin: 0 20px;
    padding: 0;
    border-top: 1px solid #d4e1ee;
    list-style: none;
}

.bd-card__list li {
    display: flex;
    position: relative;
    align-items: center;
    gap: 10px;
    height: 36px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    color: var(--bd-card-text);
}
.bd-card__list li a {

    transition: color .3s;
}
.bg-card__icon {
    position: absolute;
    right: 0;
    opacity: .5;
    transition: transform .3s, opacity .3s;
}
.bd-card__list li:hover img{
    transform: scale(1.2);
    opacity: 1;
}
.bd-card__list li:hover a{
    color: red;
}

.bd-card__list li::before {
    width: 18px;
    height: 18px;
    background: url("https://www.figma.com/api/mcp/asset/ddf4f145-c9c5-4913-8184-c6d05a26ccf2.svg") center / 18px 18px no-repeat;
    content: "";
}

.bd-card__list li:nth-child(2)::before { background-image: url("https://www.figma.com/api/mcp/asset/75817ccd-7cdf-4db3-99ca-380b09f70def.svg"); }
.bd-card__list li:nth-child(3)::before { background-image: url("https://www.figma.com/api/mcp/asset/f1503ac3-1cee-413e-ad89-c791cb849028.svg"); }
.bd-card__list li:nth-child(4)::before { background-image: url("https://www.figma.com/api/mcp/asset/af39b1ee-a02e-4154-98d7-be10be6afb9e.svg"); }
.bd-card__list li:nth-child(5)::before { background-image: url("https://www.figma.com/api/mcp/asset/7735a70b-1a45-4843-9c88-6752f6f5f93d.svg"); }
.bd-card__list li:nth-child(6)::before { background-image: url("https://www.figma.com/api/mcp/asset/1076c152-4eb7-4f1f-aec6-40ab29bc74d4.svg"); }
.bd-card__list li:nth-child(7)::before { background-image: url("https://www.figma.com/api/mcp/asset/4e2d050f-5d1d-4230-8ab7-fb04718bc240.svg"); }
.bd-card__list li:nth-child(8)::before { background-image: url("https://www.figma.com/api/mcp/asset/9dd8f21a-848c-46b7-9f0a-be211aec8086.svg"); }
.bd-card__list li:nth-child(9)::before { background-image: url("https://www.figma.com/api/mcp/asset/953717cc-3cc1-41f7-b03b-398e638dcb31.svg"); }
.bd-card__list li:nth-child(10)::before { background-image: url("https://www.figma.com/api/mcp/asset/a512765f-3cb9-4198-8a73-88a13641743e.svg"); }
.bd-card__list li:nth-child(11)::before { background-image: url("https://www.figma.com/api/mcp/asset/ce3651ac-b728-40e4-8a8f-b7cdc515dda4.svg"); }
.bd-card__list li:nth-child(12)::before { background-image: url("https://www.figma.com/api/mcp/asset/2c4a9c50-7b33-4bfe-8890-ab4d877f7282.svg"); }

.bd-card__list a,
.bd-card__more {
    color: var(--bd-card-text);
    text-decoration: none;
}

.bd-card__more {
    display: block;
    height: 40px;
    margin: 0 20px 20px;
    border-radius: 10px;
    background: #526C83;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

.bd-about {
    height: 400px;
    margin-top: 20px;
    padding: 30px;
    background: #fff;
    text-align: center;
}

.bd-about h1,
.bd-about h2 {
    margin: 20px 0 10px;
    color: var(--bd-heading);
    font-size: 20px;
    line-height: 30px;
}

.bd-about h1 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4e1ee;
}

.bd-about h2 {
    padding-top: 10px;
    border-top: 1px solid #d4e1ee;
    font-size: 18px;
}

.bd-about p {
    max-width: 700px;
    margin: 10px auto;
    font-size: 14px;
    line-height: 20px;
    color: var(--bd-text);
}

.bd-about p:last-child {
    color: var(--bd-muted);
}

.bd-footer {
    height: 40px;
    margin-top: 20px;
    background: #4D4A4B;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
}

.scrollspy-btn-fixed {
    position: fixed;
    z-index: 20;
    right: 20px;
    top: 200px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(41, 53, 87, .22);
    cursor: pointer;
}

.scrollspy-btn-circles,
.scrollspy-btn-arrow {
    position: absolute;
    inset: 0;
}

.scrollspy-btn-circle,
.scrollspy-btn-progress-bar {
    fill: none;
    stroke: #d5dee6;
}

.scrollspy-btn-progress-bar {
    stroke: var(--bd-heading);
    stroke-linecap: round;
    stroke-dasharray: 125.664;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset .2s ease;
}

.scrollspy-btn-arrow {
    top: 50%;
    left: 50%;
    width: 11px;
    height: 18px;
    transform: translate(-50%, -50%);
    fill: var(--color-top);
    transition: transform .2s ease;
}

.scrollspy-btn-to-top .scrollspy-btn-arrow {
    transform: translate(-50%, -50%) rotate(180deg);
}

body.history-modal-open {
    overflow: hidden;
}

body.favorites-modal-open {
    overflow: hidden;
}

.favorites-modal {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 20px;
    background: rgba(27, 33, 38, .42);
}

.favorites-modal[hidden] {
    display: none;
}

.favorites-modal__panel {
    width: min(552px, calc(100% - 32px));
    min-height: 360px;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.favorites-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    border-bottom: 2px solid #ededed;
}

.favorites-modal__header h2 {
    margin: 0;
    color: #050505;
    font-size: 16px;
    line-height: 24px;
}

.favorites-modal__close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.favorites-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    border-bottom: 2px solid #f0f0f0;
}

.favorites-modal__item a {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #0969d9;
}

.favorites-modal__icon {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: #252525;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.favorites-modal__item strong {
    overflow: hidden;
    margin-left: 14px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-modal__remove {
    flex: 0 0 auto;
    height: 30px;
    margin-left: 14px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: #ff5359;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.favorites-modal__empty {
    margin: 20px 0;
    color: #7a7d80;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 700px) {
    .favorites-modal__panel {
        min-height: 0;
        padding: 14px;
    }

    .favorites-modal__item {
        min-height: 60px;
    }

    .favorites-modal__item strong {
        margin-left: 14px;
    }
}

.history-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 10px;
    background: rgba(27, 33, 38, .42);
}

.history-modal[hidden] {
    display: none;
}

.history-modal__panel {
    width: min(360px, calc(100% - 20px));
    overflow: hidden;
    border: 2px solid #d3d7da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.history-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 20px;
    border-bottom: 1px solid #edf0f2;
}

.history-modal__header h2 {
    margin: 0;
    color: #4b9b09;
    font-size: 16px;
    line-height: 20px;
}

.history-modal__clear {
    height: 30px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #f3f3f3;
    color: #161616;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.history-modal__item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e4e8eb;
    background: #f7f9fa;
}

.history-modal__item:hover {
    background: #eff5ff;
}

.history-modal__icon {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 9px;
    background: #ff941d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.history-modal__copy {
    display: grid;
    gap: 5px;
    margin-left: 8px;
}

.history-modal__copy strong {
    color: #1266c9;
    font-size: 14px;
    font-weight: 400;
}

.history-modal__copy time {
    color: #7a7d80;
    font-size: 12px;
}

.history-modal__empty,
.history-modal__status {
    margin: 0;
    padding: 10px 20px;
    color: #7a7d80;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 700px) {
    .history-modal {
        padding-top: 10px;
    }

    .history-modal__header {
        height: 30px;
        padding: 0 20px;
    }

    .history-modal__header h2 {
        font-size: 14px;
    }

    .history-modal__clear {
        height: 20px;
        font-size: 12px;
    }


    .history-modal__icon {
        width: 50px;
        height: 50px;
    }
}

.category-footer {
    height: 70px;
    background: #555152;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.category-footer a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 80px;
    text-decoration: none;
}

@media (max-width: 1239px) {
    .bd-container {
        width: calc(100% - 40px);
    }

    .bd-directory {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:1000px) {
    .index-category-sidebar {
        display: block;
    }
}

@media (max-width: 700px) {
    .bd-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bd-container {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .bd-header__top {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .bd-brand {
        font-size: 28px;
        line-height: 40px;
    }

    .bd-directory {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }
}
