.ivy-shop-page,
.ivy-grid-block {
    width: 100%;
    margin: 0;
    padding: 28px 0 56px;
    background: #f6f6f8;
}

.ivy-shop-page__inner,
.ivy-grid-block {
    width: min(1600px, calc(100vw - 48px));
    max-width: none;
    margin: 0 auto;
}

.ivy-shop-page__bar {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ivy-shop-page__eyebrow {
    margin: 0 0 8px;
    color: #f59a00;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ivy-shop-page__title,
.ivy-grid-block__head h2 {
    margin: 0;
    color: #1d2432;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.ivy-shop-page__meta {
    margin: 10px 0 0;
    color: #5e6777;
    font-size: 15px;
}

.ivy-shop-page__desc {
    margin: 10px 0 0;
    color: #5e6777;
    max-width: 760px;
    line-height: 1.6;
}

.ivy-shop-page__search {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-width: min(100%, 420px);
}

.ivy-shop-page__search input {
    flex: 1 1 auto;
    min-height: 52px;
    border: 1px solid #e3e3e8;
    border-radius: 14px;
    padding: 0 16px;
    background: #fff;
    box-sizing: border-box;
}

.ivy-shop-page__search button,
.ivy-product-card__button,
.ivy-product-card__actions .button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #f59a00;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    box-sizing: border-box;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ivy-shop-page__search button:hover,
.ivy-product-card__button:hover,
.ivy-product-card__actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(245,154,0,.22);
    opacity: .96;
}

.ivy-shop-page__cats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}

.ivy-cat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: #263041;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0,0,0,.05);
}

.ivy-cat-pill.is-active,
.ivy-cat-pill:hover {
    background: #f59a00;
    color: #fff;
}

.ivy-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ivy-products-grid > * {
    min-width: 0;
}

.ivy-columns-3 .ivy-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ivy-columns-2 .ivy-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ivy-columns-1 .ivy-products-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.ivy-product-card {
    list-style: none;
    margin: 0;
    padding: 18px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.ivy-product-card__image-wrap {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    text-decoration: none;
}

.ivy-product-card__image-wrap img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.ivy-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.ivy-product-card__title {
    margin: 0 0 10px;
    min-height: 2.8em;
    font-size: 21px;
    line-height: 1.35;
}

.ivy-product-card__title a {
    color: #1d2432;
    text-decoration: none;
}

.ivy-product-card__title a:hover { color: #f59a00; }

.ivy-product-card__desc {
    min-height: 4.9em;
    max-height: 4.9em;
    overflow: hidden;
    margin: 0 0 14px;
    color: #6e7585;
    font-size: 15px;
    line-height: 1.6;
}

.ivy-product-card__price {
    color: #f59a00;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin: auto 0 14px;
}

.ivy-product-card__price del {
    opacity: .55;
    font-size: .72em;
}

.ivy-product-card__price ins { text-decoration: none; }

.ivy-product-card__actions { margin-top: auto; }
.ivy-product-card__actions .button,
.ivy-product-card__button { width: 100%; }

.ivy-shop-page__pagination { margin-top: 20px; margin-bottom: 0; padding-bottom: 4px; }
.ivy-shop-page__pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.ivy-shop-page__pagination a,
.ivy-shop-page__pagination span {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    text-decoration: none;
    color: #1d2432;
    box-shadow: 0 5px 12px rgba(0,0,0,.06);
    padding: 10px 12px;
}
.ivy-shop-page__pagination .current {
    background: #f59a00;
    color: #fff;
}

.ivy-shop-page__empty {
    background: #fff;
    border-radius: 22px;
    padding: 42px 24px;
    text-align: center;
}

/* Kill theme junk inside cards and shop wrappers. */
.ivy-product-card .star-rating,
.ivy-product-card .woocommerce-loop-product__rating,
.ivy-product-card .posted_in,
.ivy-product-card .product-categories,
.ivy-product-card .added_to_cart,
.ivy-product-card p:not(.price),
.ivy-product-card .excerpt,
.ivy-product-card .short-description,
.ivy-product-card .wd-entities-title + div,
.ivy-product-card .wd-entities-title + p,
.ivy-shop-forced-wide #secondary,
.ivy-shop-forced-wide .widget-area,
.ivy-shop-forced-wide .sidebar,
.ivy-shop-forced-wide .sidebar-container,
.ivy-shop-forced-wide .shop-sidebar,
.ivy-shop-forced-wide aside.widget-area {
    display: none !important;
}

.ivy-shop-forced-wide .ivy-shop-page,
.ivy-shop-forced-wide .ivy-grid-block {
    position: relative;
    z-index: 3;
}

@media (max-width: 1100px) {
    .ivy-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
    .ivy-shop-page__inner,
    .ivy-grid-block {
        width: calc(100vw - 28px);
    }
    .ivy-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 560px) {
    .ivy-products-grid,
    .ivy-columns-3 .ivy-products-grid,
    .ivy-columns-2 .ivy-products-grid,
    .ivy-columns-1 .ivy-products-grid { grid-template-columns: 1fr; }
    .ivy-shop-page__search { min-width: 100%; }
    .ivy-shop-page__search button { width: 100%; }
}

.ivy-shop-page__pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    min-width: 18px;
    padding: 10px 4px;
}

.ivy-shop-page__pagination .prev,
.ivy-shop-page__pagination .next {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .ivy-products-grid { gap: 20px; }
}
