@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600&family=IBM+Plex+Sans:wght@300;400&display=swap');

/* ── Section ── */
.lls-section {
    background: #ffffff;
    padding: 60px 20px;
    position: relative;
    font-family: 'IBM Plex Sans', sans-serif;
    box-sizing: border-box;
}

/* ── Title ── */
.lls-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: #2c2822;
    text-align: center;
    margin: 0 0 36px;
}

/* ── Slider Wrap ── */
.lls-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lls-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.lls-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

/* ── Slide — 5 visible ── */
.lls-slide {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 0;
    display: flex;
}

/* ── Card ── */
.lls-card {
    background: #ffffff;
    border: 0.5px solid #e8e3dc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.lls-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.09);
}

/* ── Image — fixed equal height for all cards ── */
.lls-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 220px;       /* fixed equal height across all cards */
    flex-shrink: 0;
}

.lls-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crops to fill, never stretches */
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.lls-card:hover .lls-img-wrap img {
    transform: scale(1.04);
}

/* Hover overlay */
.lls-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,40,34,0.28);
    color: #ffffff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lls-card:hover .lls-view-overlay {
    opacity: 1;
}

/* ── Info block ── */
.lls-info {
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    background: #ffffff;
}

/* ── Top row: Name LEFT · Price RIGHT ── */
.lls-top-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.lls-name {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2822;
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lls-name:hover { color: #7a7267; }

.lls-price {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #7a7267;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.lls-price .woocommerce-Price-amount {
    font-family: 'IBM Plex Sans', sans-serif !important;
    color: #7a7267 !important;
    font-size: 12px !important;
}

/* ── Description ── */
.lls-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #9a9088;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Add to Cart ── */
.lls-cart-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 0.5px solid #c9bfb0;
    color: #2c2822;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin-top: auto;
    box-sizing: border-box;
}

.lls-cart-btn:hover,
.lls-cart-btn:focus {
    background: #2c2822;
    color: #ffffff;
    border-color: #2c2822;
    text-decoration: none;
}

.lls-cart-btn.loading::after { content: '...'; }

/* ── Arrows ── */
.lls-arrow {
    background: #ffffff;
    border: 0.5px solid #e8e3dc;
    color: #2c2822;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.lls-arrow:hover {
    background: #2c2822;
    color: #ffffff;
    border-color: #2c2822;
}

/* ── Dots ── */
.lls-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.lls-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9bfb0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.lls-dot.active {
    background: #2c2822;
    transform: scale(1.3);
}

/* ── Loading ── */
.lls-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lls-spinner {
    width: 26px;
    height: 26px;
    border: 1.5px solid #e8e3dc;
    border-top-color: #2c2822;
    border-radius: 50%;
    animation: lls-spin 0.7s linear infinite;
}

@keyframes lls-spin { to { transform: rotate(360deg); } }

/* ── No products ── */
.lls-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #9a9088;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    width: 100%;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .lls-slide       { flex: 0 0 calc((100% - 48px) / 4); }
    .lls-img-wrap    { height: 200px; }
}

@media (max-width: 900px) {
    .lls-slide       { flex: 0 0 calc((100% - 32px) / 3); }
    .lls-img-wrap    { height: 190px; }
}

@media (max-width: 640px) {
    .lls-section     { padding: 40px 12px; }
    .lls-slide       { flex: 0 0 calc((100% - 16px) / 2); }
    .lls-img-wrap    { height: 180px; }
    .lls-arrow       { width: 28px; height: 28px; font-size: 13px; }
}

@media (max-width: 380px) {
    .lls-slide       { flex: 0 0 100%; }
    .lls-img-wrap    { height: 240px; }
}
