.obcc-widget {
    --obcc-accent: #2a68ff;
    --obcc-radius: 8px;
    --obcc-card-height: 488px;
    --obcc-featured-image-height: 259px;
    --obcc-compact-image-width: 36.8%;
    --obcc-side-gap: 32px;
    --obcc-band-color: rgba(42, 104, 255, 0.78);
    --obcc-band-end-color: rgba(245, 245, 245, 0.78);
    --obcc-heading-plate-color: rgba(42, 104, 255, 0.22);
    --obcc-heading-plate-height: 10px;
    --obcc-heading-plate-bottom: 2px;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: visible;
    font-family: Inter, Arial, sans-serif;
}

.obcc-widget,
.obcc-widget * {
    box-sizing: border-box;
}

.obcc-widget--band::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -50px;
    z-index: 0;
    width: 100vw;
    height: 244px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--obcc-band-color) 0%, var(--obcc-band-end-color) 100%);
    pointer-events: none;
}

body.home .obcc-widget--band::before,
body.page-id-2789 .obcc-widget--band::before {
    background: linear-gradient(180deg, rgba(42, 104, 255, 0.78) 0%, rgba(245, 245, 245, 0.78) 100%);
}

.obcc-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1296px;
    margin-right: auto;
    margin-left: auto;
}

.obcc-heading {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 40px;
    color: #000;
    font-size: 33px;
    font-weight: 600;
    line-height: 36px;
}

.obcc-widget--heading-plate .obcc-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--obcc-heading-plate-bottom);
    z-index: -1;
    height: var(--obcc-heading-plate-height);
    background: var(--obcc-heading-plate-color);
    border-radius: 2px;
    pointer-events: none;
}

.obcc-grid {
    display: grid;
    grid-template-columns: minmax(300px, 525fr) minmax(420px, 746fr);
    gap: 26px;
    align-items: stretch;
}

.obcc-side {
    display: flex;
    flex-direction: column;
    gap: var(--obcc-side-gap);
    min-width: 0;
}

.obcc-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    color: inherit;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: var(--obcc-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.obcc-card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.obcc-card:hover {
    color: inherit;
    text-decoration: none !important;
    border-color: rgba(42, 104, 255, 0.32);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.obcc-card--featured {
    flex-direction: column;
    height: var(--obcc-card-height);
}

.obcc-card--compact {
    display: grid;
    grid-template-columns: minmax(150px, var(--obcc-compact-image-width)) 1fr;
    min-height: calc((var(--obcc-card-height) - var(--obcc-side-gap)) / 2);
}

.obcc-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f1f3f8;
}

.obcc-card--featured .obcc-card-media {
    width: 100%;
    height: var(--obcc-featured-image-height);
    flex: 0 0 var(--obcc-featured-image-height);
}

.obcc-card--compact .obcc-card-media {
    width: 100%;
    min-height: 100%;
}

.obcc-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.obcc-card:hover .obcc-card-media img {
    transform: scale(1.035);
}

.obcc-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 24px;
    background: #fff;
}

.obcc-card--featured .obcc-card-body {
    flex: 1 1 auto;
}

.obcc-card--compact .obcc-card-body {
    justify-content: flex-start;
}

.obcc-eyebrow {
    display: block;
    margin: 0 0 4px;
    color: #394452;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.obcc-card-title {
    display: block;
    margin: 0 0 12px;
    color: #09101d;
    font-size: 23px;
    font-weight: 600;
    line-height: 24px;
}

.obcc-card-sku {
    display: block;
    margin: -4px 0 8px;
    color: #8a929c;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
}

.obcc-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: #747d87;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
}

.obcc-card-stock.is-in-stock {
    color: #4f7f45;
}

.obcc-card-stock.is-out-of-stock {
    color: #747d87;
}

.obcc-card-stock__check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.obcc-card-stock__check::before {
    content: "";
    display: block;
    width: 8px;
    height: 5px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg) translate(1px, -1px);
}

.obcc-card-text {
    display: block;
    color: #394452;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
}

.obcc-card-text p {
    margin: 0 0 10px;
}

.obcc-card-text p:last-child {
    margin-bottom: 0;
}

.obcc-actions {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
}

.obcc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    background: var(--obcc-accent);
    border: 0;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color .2s ease, transform .2s ease;
}

.obcc-button:hover,
.obcc-button:focus {
    color: #fff;
    text-decoration: none !important;
    outline: none;
}

.obcc-button-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.obcc-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.obcc-icons > * {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.obcc-card-icon {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #858c94;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    transition: color .2s ease, transform .2s ease;
}

.obcc-card-icon:hover,
.obcc-card-icon:focus {
    color: var(--obcc-accent);
    text-decoration: none !important;
    outline: none;
    transform: translateY(-1px);
}

.obcc-card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.obcc-widget .added_to_cart,
.obcc-widget .wc-forward.added_to_cart {
    display: none !important;
}

.obcc-compare-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.obcc-compare::before {
    content: "\f128";
    font-family: "woodmart-font";
    font-size: 22px;
    line-height: 1;
    transform: translateY(1px);
}

.obcc-card:hover .obcc-button {
    transform: translateX(2px);
}

@media (max-width: 1200px) {
    .obcc-inner {
        padding-right: 24px;
        padding-left: 24px;
    }

    .obcc-grid {
        grid-template-columns: minmax(300px, .95fr) minmax(390px, 1.25fr);
    }
}

@media (max-width: 1024px) {
    .obcc-grid {
        grid-template-columns: 1fr;
    }

    .obcc-card--featured {
        height: auto;
        min-height: 0;
    }

    .obcc-card--featured .obcc-card-media {
        height: auto;
        flex-basis: auto;
        aspect-ratio: 16 / 8.1;
    }

    .obcc-card--compact {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .obcc-widget--band::before {
        bottom: -28px;
        height: 170px;
    }

    .obcc-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .obcc-heading {
        margin-bottom: 22px;
    }

    .obcc-grid,
    .obcc-side {
        gap: 16px;
    }

    .obcc-card {
        border-radius: var(--obcc-radius);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    }

    .obcc-card:hover {
        transform: none;
    }

    .obcc-card--featured {
        height: auto;
        min-height: 0;
    }

    .obcc-card--featured .obcc-card-media {
        width: 100%;
        height: auto;
        min-height: 0;
        flex-basis: auto;
        aspect-ratio: 16 / 9;
    }

    .obcc-card--compact {
        display: grid;
        grid-template-columns: minmax(112px, 38%) 1fr;
        min-height: 146px;
    }

    .obcc-card--compact .obcc-card-media {
        width: 100%;
        height: 100%;
        min-height: 146px;
        aspect-ratio: auto;
    }

    .obcc-card-body {
        padding: 16px;
    }

    .obcc-card-title {
        margin-bottom: 8px;
    }

    .obcc-card-sku {
        margin-bottom: 6px;
        font-size: 12px;
        line-height: 16px;
    }

    .obcc-card-stock {
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 16px;
    }

    .obcc-card-stock__check {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .obcc-card-text {
        display: block;
        max-height: 40px;
        overflow: hidden;
    }

    .obcc-card-text p {
        margin-bottom: 6px;
    }

    .obcc-actions {
        padding-top: 14px;
    }

    .obcc-card--compact .obcc-button {
        padding: 7px 10px;
    }

    .obcc-icons {
        gap: 10px;
    }
}

@media (max-width: 430px) {
    .obcc-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .obcc-card--compact {
        grid-template-columns: minmax(104px, 40%) 1fr;
        min-height: 132px;
    }

    .obcc-card--compact .obcc-card-media {
        min-height: 132px;
    }

    .obcc-card-body {
        padding: 14px;
    }

    .obcc-card--compact .obcc-card-text {
        max-height: 18px;
    }

    .obcc-card--compact .obcc-card-sku,
    .obcc-card--compact .obcc-card-stock {
        margin-bottom: 5px;
    }

    .obcc-card--compact .obcc-actions {
        gap: 6px;
        padding-top: 10px;
    }

    .obcc-card--compact .obcc-icons {
        gap: 8px;
    }
}
