.lil-native-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.lil-native-grid.swiper {
    display: block;
    overflow: hidden;
    position: relative;
}

.lil-native-grid.swiper .swiper-wrapper {
    display: flex;
}

.lil-native-grid.swiper .swiper-slide {
    flex-shrink: 0;
    height: auto;
}

.lil-native-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.lil-native-img {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aspect ratios */
.ratio-1-1 .lil-native-img { aspect-ratio: 1 / 1; height: auto; }
.ratio-4-5 .lil-native-img { aspect-ratio: 4 / 5; height: auto; }
.ratio-3-4 .lil-native-img { aspect-ratio: 3 / 4; height: auto; }

.lil-native-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.lil-native-img .lil-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover behaviors */
.hover-second_image .lil-native-card:hover .lil-native-img .lil-primary-img {
    opacity: 0;
}

.hover-second_image .lil-native-card:hover .lil-native-img .lil-hover-img {
    opacity: 1;
    transform: scale(1.03);
}

.hover-zoom .lil-native-card:hover .lil-native-img img {
    transform: scale(1.06);
}

.hover-fade .lil-native-card:hover .lil-native-img img {
    opacity: 0.85;
}

.lil-native-info {
    padding: 16px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lil-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: #8E8E93;
    letter-spacing: 1px;
}

.lil-native-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.star-rating {
    font-family: star;
    font-size: 1em;
    line-height: 1;
    height: 1em;
    width: 5.4em;
    position: relative;
    margin: 0 auto;
}

.star-rating::before {
    content: "\73\73\73\73\73";
    color: #d3d3d3;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    left: 0;
    position: absolute;
    color: #ffb800;
}

.lil-native-price {
    font-size: 14px;
    color: #8E8E93;
    font-weight: 500;
}

.lil-native-price del {
    opacity: 0.6;
    margin-right: 6px;
}

.lil-native-price ins {
    text-decoration: none;
    font-weight: 700;
    color: #111;
}

.lil-color-swatches {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
}

.lil-swatch {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swatch-circle .lil-swatch { border-radius: 50%; }
.swatch-rounded_square .lil-swatch { border-radius: 6px; }
.swatch-square .lil-swatch { border-radius: 0; }

.lil-swatch:hover, .lil-swatch.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.lil-swatch:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.lil-swatch.out-of-stock-swatch {
    opacity: 0.4;
}

.lil-native-btn {
    display: inline-block;
    margin-top: 8px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lil-native-btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.btn-style-filled {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-style-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-style-text_only {
    background: transparent;
    color: #000;
    border: none;
    text-decoration: underline;
}

.lil-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 1px;
    z-index: 2;
}

.lil-badge-sale { background: #000; }
.lil-badge-new { background: #111111; }
.lil-badge-stock { background: #ffffff; color: #111111; }

/* v3: refined customization helpers */
.lil-selected-color {
    font-size: 11px;
    color: #6b6b6b;
    line-height: 1.35;
    margin: 2px 0 0;
}

.lil-selected-color .lil-color-prefix {
    margin-right: 4px;
}

.lil-color-swatches {
    flex-wrap: wrap;
}

.lil-swatch {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.lil-btn-wrapper {
    width: 100%;
}

.lil-native-btn {
    box-sizing: border-box;
    text-align: center;
}

/* Badge stack prevents Sale / New / Low Stock from overlapping. */
.lil-badge-stack {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.lil-badge-stack .lil-badge {
    position: static;
    display: inline-flex;
    align-self: flex-start;
    white-space: nowrap;
}

.badge-top-left .lil-badge-stack { top: 12px; left: 12px; align-items: flex-start; }
.badge-top-right .lil-badge-stack { top: 12px; right: 12px; align-items: flex-end; }
.badge-bottom-left .lil-badge-stack { bottom: 12px; left: 12px; align-items: flex-start; }
.badge-bottom-right .lil-badge-stack { bottom: 12px; right: 12px; align-items: flex-end; }

.badge-top-right .lil-badge-stack .lil-badge,
.badge-bottom-right .lil-badge-stack .lil-badge {
    align-self: flex-end;
}
