/* ============================================
   NGR Product Slider - Styles
   ============================================ */

/* --- Wrapper --- */
.ngr-product-slider-wrap {
    margin-bottom: 30px;
}

/* --- Header --- */
.ngr-slider-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.ngr-slider-header-text {
    flex: 1;
}

/* Alignment */
.ngr-align-center .ngr-slider-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ngr-align-right .ngr-slider-header {
    flex-direction: row-reverse;
}

.ngr-align-right .ngr-slider-header-text {
    text-align: right;
}

/* --- Sub Title --- */
.ngr-slider-sub-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #2d6a4f;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* --- Title --- */
.ngr-slider-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.25;
}

/* --- Nav Buttons --- */
.ngr-slider-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ngr-slider-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #374151;
    padding: 0;
}

.ngr-slider-nav button:hover {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
    transform: scale(1.05);
}

.ngr-slider-nav button:active {
    transform: scale(0.95);
}

.ngr-slider-nav button svg {
    width: 18px;
    height: 18px;
}

/* --- Product Card --- */
.ngr-product-card {
    position: relative;
}

.ngr-product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f0;
    margin-bottom: 14px;
}

.ngr-product-image a {
    display: block;
    line-height: 0;
}

.ngr-product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.ngr-product-card:hover .ngr-product-image img {
    transform: scale(1.06);
}

/* --- Badges --- */
.ngr-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    line-height: 1.4;
}

.ngr-badge-sale {
    background: #dc2626;
    color: #fff;
}

.ngr-badge-featured {
    background: #2d6a4f;
    color: #fff;
}

/* Khi có cả 2 badge */
.ngr-badge-featured + .ngr-badge-sale,
.ngr-badge-sale + .ngr-badge-featured {
    top: 38px;
}

/* Nếu chỉ có featured mà không có sale, featured ở vị trí top */
.ngr-product-image .ngr-badge:only-of-type {
    top: 10px;
}

/* --- Product Info --- */
.ngr-product-info {
    padding: 0 2px;
}

.ngr-product-name {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ngr-product-name:hover {
    color: #2d6a4f;
}

.ngr-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #2d6a4f;
    line-height: 1.4;
}

.ngr-product-price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
    margin-right: 4px;
}

.ngr-product-price ins {
    text-decoration: none;
    color: #dc2626;
    font-weight: 600;
}

/* --- Hide Flickity default nav (we use custom) --- */
.ngr-product-slider-row > .flickity-prev-next-button {
    display: none !important;
}

.ngr-product-slider-row > .flickity-page-dots {
    display: none !important;
}

/* --- Slider row fixes --- */
.ngr-product-slider-row .col {
    padding: 0 8px;
}

.ngr-product-slider-row .col-inner {
    padding-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 849px) {
    .ngr-slider-title {
        font-size: 22px;
    }

    .ngr-slider-sub-title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .ngr-slider-nav button {
        width: 36px;
        height: 36px;
    }

    .ngr-slider-nav button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 549px) {
    .ngr-slider-header {
        margin-bottom: 16px;
    }

    .ngr-slider-title {
        font-size: 20px;
    }

    .ngr-product-name {
        font-size: 14px;
    }

    .ngr-product-price {
        font-size: 14px;
    }

    .ngr-slider-nav button {
        width: 32px;
        height: 32px;
    }

    .ngr-slider-nav button svg {
        width: 14px;
        height: 14px;
    }
}
