﻿/* ============================================
   HOME PAGE - BEST SELLING PRODUCTS SLIDER
   Matches shop page card design exactly
   ============================================ */

/* ---------- Section ---------- */
.section.bg-white {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 14px;
}

    .section-title h2 {
        font-size: 30px;
        font-weight: 700;
        color: #1a2e1e;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }

    .section-title p {
        font-size: 15px;
        color: #7a8a7a;
        margin: 0;
    }

.section-divider {
    width: 60px;
    height: 3px;
    background: #2d5f3f;
    border-radius: 2px;
    margin: 0 auto 40px;
}

/* ---------- Slider Wrapper ---------- */
.hs-wrapper {
    position: relative;
    width: 100%;
    padding: 0 48px;
    box-sizing: border-box;
}

.hs-container {
    overflow: hidden;
    width: 100%;
}

.hs-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: stretch;
}

/* ---------- Each Slide ---------- */
.hs-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
}

/* ---------- Card (matches shop page p-card) ---------- */
.hs-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .hs-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(-4px);
    }

/* Image wrapper */
.hs-card__image-wrap {
    position: relative;
    width: 100%;
    padding-top: 85%;
    overflow: hidden;
    background: #f0f4f0;
}

.hs-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hs-card:hover .hs-card__img {
    transform: scale(1.06);
}

/* Badges */
.hs-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}

.hs-badge-sale {
    background: #f07b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.hs-card__oos {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Body */
.hs-card__body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hs-card__category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a9a8a;
    margin: 0 0 6px;
}

.hs-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e2d24;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.hs-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 14px;
}

.hs-price-current {
    font-size: 20px;
    font-weight: 800;
    color: #2d5f3f;
    letter-spacing: -0.5px;
}

.hs-price-original {
    font-size: 13px;
    color: #b0b8b0;
    text-decoration: line-through;
    font-weight: 500;
}

/* Action buttons */
.hs-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.hs-btn-cart {
    flex: 1;
    padding: 12px 12px;
    background: #2d5f3f;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    white-space: nowrap;
}

    .hs-btn-cart:hover:not(:disabled) {
        background: #1e4129;
        transform: translateY(-2px);
        box-shadow: 0 5px 16px rgba(45, 95, 63, 0.28);
    }

    .hs-btn-cart--disabled,
    .hs-btn-cart:disabled {
        background: #c5cec5;
        cursor: not-allowed;
        opacity: 0.7;
    }

.hs-btn-view {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f0f4f0;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    color: #4a6856;
    font-size: 15px;
}

    .hs-btn-view:hover {
        background: #2d5f3f;
        color: #fff;
        transform: scale(1.08);
    }

/* ---------- Nav Buttons ---------- */
.hs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1.5px solid #d8e4d8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #2d5f3f;
    font-size: 14px;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .hs-nav:hover:not(:disabled) {
        background: #2d5f3f;
        border-color: #2d5f3f;
        color: #fff;
        box-shadow: 0 4px 14px rgba(45, 95, 63, 0.25);
    }

    .hs-nav:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.hs-nav--prev {
    left: 0;
}

.hs-nav--next {
    right: 0;
}

/* ---------- Dots ---------- */
.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.hs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0dbd0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hs-dot--active {
    background: #2d5f3f;
    width: 24px;
    border-radius: 4px;
}

/* ---------- Toast ---------- */
.hs-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #1e4129;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

    .hs-toast i {
        color: #7ecf9a;
        font-size: 16px;
    }

.hs-toast--show {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .hs-wrapper {
        padding: 0 36px;
    }

    .hs-card__title {
        font-size: 14px;
    }

    .hs-price-current {
        font-size: 17px;
    }

    .hs-btn-cart {
        font-size: 12px;
        padding: 10px 10px;
    }

    .hs-btn-view {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .hs-wrapper {
        padding: 0 30px;
    }

    .hs-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .hs-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
