/* NexaCore V34: isolated homepage product-card architecture. */
.nx-home-v22 .nx-home-v22-product-grid,
.nx-home-v22 .nx-home-v22-product-grid--eight {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.nx-home-v22 .nx-home-product-card {
    --nx-home-card-media-size: 218px;
    display: grid;
    grid-template-rows: var(--nx-home-card-media-size) minmax(0, auto);
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e7e6e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(23, 23, 23, .025);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nx-home-v22 .nx-home-product-card:hover {
    border-color: #d8c299;
    box-shadow: 0 10px 20px rgba(23, 23, 23, .06);
    transform: translateY(-2px);
}

.nx-home-v22 .nx-home-product-card__media {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    place-items: center;
    padding: 14px;
    border-bottom: 1px solid #f0efec;
    background: #fafaf9;
}

.nx-home-v22 .nx-home-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.nx-home-v22 .nx-home-product-card__badge {
    position: absolute;
    top: 11px;
    inset-inline-start: 11px;
    z-index: 1;
    padding: 4px 7px;
    border-radius: 8px;
    background: #171717;
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
}

.nx-home-v22 .nx-home-product-card__content {
    display: grid;
    grid-template-rows: auto minmax(2.7em, auto) 19px auto;
    align-content: start;
    min-width: 0;
    min-height: 0;
    padding: 12px;
}

.nx-home-v22 .nx-home-product-card__brand {
    min-width: 0;
    margin: 0 0 4px;
    overflow: hidden;
    color: #86878b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nx-home-v22 .nx-home-product-card__title {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nx-home-v22 .nx-home-product-card__title a { color: inherit; text-decoration: none; }

.nx-home-v22 .nx-home-product-card__rating,
.nx-home-v22 .nx-home-product-card__rating-slot {
    min-width: 0;
    min-height: 14px;
    margin-top: 5px;
    color: #4f5053;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.nx-home-v22 .nx-home-product-card__rating { display: inline-flex; align-items: center; gap: 4px; }
.nx-home-v22 .nx-home-product-card__rating i { color: #c9a35e; }
.nx-home-v22 .nx-home-product-card__rating small { color: #87888c; font-size: 10px; font-weight: 600; }

.nx-home-v22 .nx-home-product-card__footer {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    margin-top: 2px;
}

.nx-home-v22 .nx-home-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.nx-home-v22 .nx-home-product-card__price strong {
    color: #171717;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.nx-home-v22 .nx-home-product-card__price del { color: #96979b; font-size: 11px; }

.nx-home-v22 .nx-home-product-card__availability {
    display: block;
    min-width: 0;
    color: #9b4c42;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.nx-home-v22 .nx-home-product-card__availability--in { color: #2f7a54; }

@media (min-width: 768px) and (max-width: 1199px) {
    .nx-home-v22 .nx-home-v22-product-grid,
    .nx-home-v22 .nx-home-v22-product-grid--eight {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .nx-home-v22 .nx-home-product-card { --nx-home-card-media-size: 196px; }
}

@media (max-width: 767px) {
    .nx-home-v22 .nx-home-v22-product-grid,
    .nx-home-v22 .nx-home-v22-product-grid--eight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .nx-home-v22 .nx-home-product-card { --nx-home-card-media-size: clamp(145px, 42vw, 170px); }
    .nx-home-v22 .nx-home-product-card__media { padding: 12px; }
    .nx-home-v22 .nx-home-product-card__content { padding: 10px; }
    .nx-home-v22 .nx-home-product-card__title { font-size: 12.5px; line-height: 1.3; }
    .nx-home-v22 .nx-home-product-card__price strong { font-size: 14px; }
    .nx-home-v22 .nx-home-product-card__availability { font-size: 10px; }
}

@media (max-width: 340px) {
    .nx-home-v22 .nx-home-v22-product-grid,
    .nx-home-v22 .nx-home-v22-product-grid--eight { gap: 8px; }

    .nx-home-v22 .nx-home-product-card__content { padding: 9px; }
    .nx-home-v22 .nx-home-product-card__brand { font-size: 9px; }
    .nx-home-v22 .nx-home-product-card__title { font-size: 12px; }
}

/* Our Products: self-contained alignment geometry, isolated from other homepage shelves. */
.nx-home-v22 .nx-home-v34-products-section .nx-home-v22-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 16px;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    border-color: #e7e6e2;
    border-radius: 12px;
    box-shadow: none;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__media {
    aspect-ratio: 1 / 1;
    padding: 16px;
    background: #fff;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__image {
    object-fit: contain;
    object-position: center;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__brand {
    min-height: 13px;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__title {
    min-height: calc(1.4em * 2);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__rating,
.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__rating-slot {
    display: inline-flex;
    flex: 0 0 14px;
    align-items: center;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__rating-slot {
    display: none;
    flex: 0 0 auto;
    margin-top: 0;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__footer {
    display: grid;
    grid-template-rows: auto auto;
    flex: 0 0 auto;
    gap: 3px;
    margin-top: 6px;
    padding-top: 0;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__price {
    align-content: start;
    min-height: 0;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__price strong {
    font-size: 15px;
    font-weight: 700;
}

.nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__availability {
    align-self: end;
    min-height: 1.3em;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

@media (hover: hover) and (min-width: 768px) {
    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card:hover {
        box-shadow: 0 6px 16px rgba(23, 23, 23, .055);
        transform: translateY(-2px);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .nx-home-v22 .nx-home-v34-products-section .nx-home-v22-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .nx-home-v22 .nx-home-v34-products-section .nx-home-v22-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__media {
        padding: 12px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__content {
        padding: 10px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__brand {
        min-height: 15px;
        font-size: 11px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__title {
        min-height: calc(1.4em * 3);
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__price strong {
        font-size: 14px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__availability {
        font-size: 11px;
    }

    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card__footer {
        margin-top: 6px;
    }
}

@media (hover: none) {
    .nx-home-v22 .nx-home-v34-products-section .nx-home-product-card:hover {
        box-shadow: none;
        transform: none;
    }
}

@media (max-width: 359px) {
    .nx-home-v22 .nx-home-v34-products-section .nx-home-v22-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
