
.hh-shop-grid {
    position: relative;
    width: calc(100% - 32px);
    margin: 0 auto;
    box-sizing: border-box;
    background: #fffcf7;
}

.hh-shop-grid__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #eee8de;
    border-radius: 9px;
    background: #fff;
}

.hh-shop-grid__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hh-shop-grid__filter {
    min-height: 40px;
    padding: 0 20px;
    border: 1px solid #eee8de;
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.hh-shop-grid__filter:hover {
    color: #6f7f55;
    transform: translateY(-1px);
}

.hh-shop-grid__filter.is-active {
    background: #6f7f55;
    border-color: #6f7f55;
    color: #fff;
}

.hh-shop-grid__sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #666;
    font-size: 14px;
}

.hh-shop-grid__sort {
    min-width: 180px;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid #eee8de;
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-size: 14px;
    cursor: pointer;
}

.hh-shop-grid__count {
    margin: 0 0 17px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.hh-shop-grid__products {
    display: grid;
    gap: 20px;
    transition: opacity .2s ease;
}

.hh-shop-grid.is-loading .hh-shop-grid__products {
    opacity: .3;
    pointer-events: none;
}

.hh-shop-grid__card {
    overflow: hidden;
    border: 1px solid #eee8de;
    border-radius: 8px;
    background: #fffcf7;
    transition: transform .22s ease, box-shadow .22s ease;
}

.hh-shop-grid__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(59, 48, 34, .08);
}

.hh-shop-grid__image-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.hh-shop-grid__image {
    overflow: hidden;
    background: #f3eee5;
}

.hh-shop-grid__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.hh-shop-grid__card:hover .hh-shop-grid__image img {
    transform: scale(1.03);
}

.hh-shop-grid__sale {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #6f7f55;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.hh-shop-grid__content {
    padding: 15px 15px 16px;
}

.hh-shop-grid__title {
    margin: 0 0 7px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.hh-shop-grid__title a {
    color: inherit;
    text-decoration: none;
}

.hh-shop-grid__price {
    min-height: 22px;
    margin-bottom: 14px;
    color: #6f7f55;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.hh-shop-grid__price del {
    margin-right: 6px;
    opacity: .5;
    font-weight: 400;
}

.hh-shop-grid__price ins {
    text-decoration: none;
}

.hh-shop-grid__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #6f7f55;
    border-radius: 5px;
    background: #6f7f55;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity .2s ease, transform .2s ease;
    box-sizing: border-box;
}

.hh-shop-grid__button:hover {
    color: #fff;
    opacity: .92;
    transform: translateY(-1px);
}

.hh-shop-grid__button--outline {
    background: transparent !important;
    color: #6f7f55 !important;
}

.hh-shop-grid__bag {
    font-size: 18px;
    line-height: 1;
}

.hh-shop-grid__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.hh-shop-grid__page {
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid #eee8de;
    border-radius: 5px;
    background: #fff;
    color: #555;
    cursor: pointer;
}

.hh-shop-grid__page:hover {
    color: #6f7f55;
}

.hh-shop-grid__page.is-active {
    background: #6f7f55;
    border-color: #6f7f55;
    color: #fff;
}

.hh-shop-grid__empty {
    padding: 34px;
    border: 1px solid #eee8de;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-align: center;
}

.hh-shop-grid__loading {
    position: absolute;
    top: 145px;
    left: 50%;
    z-index: 10;
    display: none;
    gap: 6px;
    transform: translateX(-50%);
}

.hh-shop-grid.is-loading .hh-shop-grid__loading {
    display: flex;
}

.hh-shop-grid__loading span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6f7f55;
    animation: hh-shop-bounce .9s infinite alternate;
}

.hh-shop-grid__loading span:nth-child(2) { animation-delay: .15s; }
.hh-shop-grid__loading span:nth-child(3) { animation-delay: .3s; }

@keyframes hh-shop-bounce {
    to { transform: translateY(-8px); opacity: .45; }
}

@media (max-width: 900px) {
    .hh-shop-grid__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hh-shop-grid__sort-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .hh-shop-grid__sort {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 260px;
    }
}

@media (max-width: 767px) {
    .hh-shop-grid {
        width: calc(100% - 20px);
    }

    .hh-shop-grid__toolbar {
        padding: 15px;
    }

    .hh-shop-grid__filters {
        width: 100%;
    }

    .hh-shop-grid__filter {
        flex: 1 1 calc(50% - 5px);
        padding: 0 12px;
    }

    .hh-shop-grid__sort-wrap {
        display: block;
    }

    .hh-shop-grid__sort-wrap span {
        display: block;
        margin-bottom: 7px;
    }

    .hh-shop-grid__sort {
        width: 100%;
        max-width: none;
    }

    .hh-shop-grid__image {
        height: 300px !important;
    }
}


/* v1.1 interaction fixes */
.hh-shop-grid__image-link,
.hh-shop-grid__title-link {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.hh-shop-grid__image-link {
    width: 100%;
}

.hh-shop-grid__title-link {
    display: inline;
}

.hh-shop-grid__card .added_to_cart.wc-forward {
    display: none !important;
}

.hh-shop-grid__button.is-adding {
    opacity: .65;
    pointer-events: none;
}

.hh-shop-grid__button.is-added {
    opacity: 1;
}

.hh-shop-grid__button.is-added .hh-shop-grid__bag {
    transform: scale(1.12);
}


.hh-shop-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: calc(100vw - 32px);
    padding: 14px 16px;
    border: 1px solid #dfe4d5;
    border-radius: 9px;
    background: #fffdf9;
    color: #3d4435;
    box-shadow: 0 18px 48px rgba(44, 48, 38, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.hh-shop-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hh-shop-toast__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #6f7f55;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.hh-shop-toast__text {
    font-size: 14px;
    line-height: 1.35;
}

.hh-shop-toast__link {
    margin-left: 5px;
    color: #6f7f55;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hh-shop-toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .hh-shop-toast__link {
        margin-left: auto;
    }
}
