/* ============================================================
   SLIDER - NUT MUA NGAY (thuocsile.com)
   ============================================================ */

/* Wrapper để căn chỉnh nút */
.btn-mua-ngay-wrap {
    margin-top: 18px;
    display: inline-block;
}

/* Nút Mua ngay - nổi bật, có điểm nhấn */
.btn-mua-ngay {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;

    /* Gradient nổi bật xanh lá - vàng cam */
    background: linear-gradient(135deg, #27ae60 0%, #f39c12 100%);

    /* Shadow rực rỡ */
    box-shadow:
        0 6px 20px rgba(39, 174, 96, 0.55),
        0 2px 6px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.25);

    /* Animation */
    transition: all 0.32s cubic-bezier(.4,0,.2,1);
}

/* Hiệu ứng lấp lánh chạy qua nút */
.btn-mua-ngay::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: none;
    animation: btn-shine 2.5s infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0%   { left: -75%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

/* Vòng ripple khi hover */
.btn-mua-ngay::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.9);
}

.btn-mua-ngay:hover::after {
    opacity: 1;
    transform: scale(1.04);
}

/* Hover state */
.btn-mua-ngay:hover {
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #2ecc71 0%, #e67e22 100%);
    box-shadow:
        0 10px 32px rgba(39, 174, 96, 0.65),
        0 4px 12px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-3px) scale(1.04);
}

/* Active/click */
.btn-mua-ngay:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 3px 10px rgba(39, 174, 96, 0.4),
        0 1px 4px rgba(0,0,0,0.15);
}

/* Nhãn "HOT" badge phụ */
.btn-mua-ngay .btn-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(231,76,60,0.5);
    animation: badge-pulse 1.2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.12); }
}

/* ============================================================
   HOAT CHAT - SCROLLBAR
   ============================================================ */

.hoat-chat-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d5e8dc;
    border-radius: 8px;
    padding: 8px 6px;
    background: #f6fcf8;
    scrollbar-width: thin;
    scrollbar-color: #27ae60 #e8f5e9;
}

.hoat-chat-scroll::-webkit-scrollbar {
    width: 7px;
}

.hoat-chat-scroll::-webkit-scrollbar-track {
    background: #e8f5e9;
    border-radius: 4px;
}

.hoat-chat-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #27ae60, #1e8449);
    border-radius: 4px;
}

.hoat-chat-scroll::-webkit-scrollbar-thumb:hover {
    background: #1a7a3c;
}

/* ============================================================
   CATEGORY PAGINATION
   ============================================================ */

.category-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px auto !important;
    list-style: none !important;
}

.category-pagination li {
    display: inline-block !important;
    margin: 0 !important;
}

.category-pagination li a,
.category-pagination li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a5740 !important;
    background-color: #fff !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.category-pagination li a:hover {
    background-color: #1a5740 !important;
    color: #fff !important;
    border-color: #1a5740 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(26, 87, 64, 0.2) !important;
}

.category-pagination li.active a,
.category-pagination li.active span,
.category-pagination li a.current {
    background-color: #1a5740 !important;
    color: #fff !important;
    border-color: #1a5740 !important;
}

/* ============================================================
   PRODUCT DETAIL - FIXED IMAGE SIZE
   ============================================================ */

/* Khung chứa ảnh chính - cố định chiều cao */
.product-page-product-wrap.jqzoom-stage .clearfix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

/* Ảnh chính chi tiết sản phẩm */
.product-detail-main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Danh sách thumbnail */
.jqzoom-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.jqzoom-list li {
    flex: 0 0 auto;
}

.jqzoom-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    transition: border-color 0.2s ease;
}

.jqzoom-list li a:hover {
    border-color: #27ae60;
}

/* Ảnh thumbnail cố định */
.product-detail-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* RESPONSIVE IMAGE ADJUSTMENTS FOR MOBILE DEVICE SCREENS */
@media (max-width: 767px) {
    .product-page-product-wrap.jqzoom-stage .clearfix {
        height: 280px !important;
    }
    .product-detail-main-img {
        height: 280px !important;
    }
}

/* ============================================================
   NEWS WIDGET (HOMEPAGE SIDEBAR)
   ============================================================ */

.news-widget-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2f0e6;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.05);
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.news-widget-header {
    background: linear-gradient(135deg, #1a5740 0%, #27ae60 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.news-widget-header-icon {
    font-size: 16px;
}

.news-widget-header-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-widget-body {
    padding: 8px 16px 0 16px;
    display: flex;
    flex-direction: column;
}

.news-widget-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #e2f0e6;
    gap: 12px;
}

.news-widget-item:last-child {
    border-bottom: none;
}

.news-widget-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-widget-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-widget-item-title:hover {
    color: #27ae60;
}

.news-widget-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888888;
    font-size: 11px;
}

.news-widget-item-img-wrap {
    width: 80px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.news-widget-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-widget-item:hover .news-widget-item-img-wrap img {
    transform: scale(1.1);
}

/* Categories widget at the bottom of the news list */
.news-widget-categories {
    background-color: #f9fbf9;
    border-top: 1px solid #e2f0e6;
    padding: 12px 16px 16px 16px;
}

.news-widget-categories-header {
    font-size: 12px;
    font-weight: 700;
    color: #1a5740;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-widget-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.news-widget-category-tag {
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-widget-category-tag:hover {
    color: #ffffff;
    background-color: #27ae60;
    border-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.2);
}


