/* ============================================
   PRODUCT CATEGORIES - MODERN CARD DESIGN
   Clean, professional layout with hover effects
   ============================================ */

/* Category Section */
.home-heading {
    margin-bottom: 24px;
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-heading h3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home-heading h3::after {
    /* This pseudo-element was for the old border-bottom style,
       and is no longer needed with the new badge design. */
    content: none;
}

.home-heading h3 img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

/* Feature Card - Product Card */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #2563eb;
}

/* Feature Content */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Name */
.feature-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-name a:hover {
    color: #2563eb;
}

/* Product Description */
.feature-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.feature-desc i {
    color: #2563eb;
    margin-right: 8px;
}

/* Labels - Stock, Sold, etc */
.label-text {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.label-text.feat {
    background: #dbeafe;
    color: #1e40af;
}

.label-text.order {
    background: #d1fae5;
    color: #065f46;
}

.label-text.off {
    background: #fee2e2;
    color: #991b1b;
}

.label-text b {
    margin-left: 4px;
}

/* Price */
.feature-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 16px 0;
}

.feature-price del {
    font-size: 1rem;
    color: #9ca3af;
    margin-right: 8px;
    font-weight: 400;
}

.feature-price span {
    color: #2563eb;
}

/* Buttons */
.btn-more,
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    gap: 8px;
}

.btn-more {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-more:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-buy {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Product Disabled State */
.product-disable {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(50%);
}

/* Rating */
.feature-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.feature-rating i {
    color: #d1d5db;
    font-size: 1rem;
}

.feature-rating i.active {
    color: #fbbf24;
}

.feature-rating a {
    color: #6b7280;
    font-size: 0.875rem;
    margin-left: 8px;
    text-decoration: none;
}

.feature-rating a:hover {
    color: #2563eb;
}

/* ============================================
   BOX_4 STYLE - Premium Product Cards
   ============================================ */

.product-box4 {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-box4:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #2563eb;
}

.product-head-box4 {
    background: #f9fafb;
    color: #1f2937;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.product-head-box4 img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    background: white;
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.product-head-box4 h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    line-height: 1.3;
}

.product-body-box4 {
    padding: 15px;
    flex: 1;
    min-height: 120px;
}

.product-body-box4 p {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.8;
    padding: 2px 0;
}

.product-footer-box4 {
    padding: 14px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    width: 100%;
}

.border-end-box4 {
    flex: 0 0 25%;
    border-right: 1px solid #e5e7eb;
    padding: 0 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.border-end-box4:last-child {
    border-right: none;
}

.price-box4 {
    flex: 0 0 50% !important;
    padding: 0 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    overflow: visible !important;
}

.product-footer-box4 strong {
    display: block;
    font-size: 0.65rem;
    color: #374151;
    margin-bottom: 0;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-footer-box4 img {
    width: 32px;
    height: auto;
    border-radius: 4px;
    margin-top: 0;
}


.price-box4 span {
    display: none;
}

.price-box4 strong {
    display: block;
    font-size: 1rem;
    color: #f59e0b;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: visible;
}

.proce-box4-not-discount {
    font-size: 1rem !important;
    color: #f59e0b !important;
}

/* Badge trong footer */
.product-footer-box4 .badge {
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-top: 0;
}

.product-footer-box4 .bg-primary {
    background: #3b82f6 !important;
    color: white;
}

.product-buttons-box4 {
    padding: 15px;
    display: flex;
    flex-direction: row;
    /* Chuyển về nằm ngang */
    gap: 10px;
}

.more-btn-box4,
.buy-btn-box4 {
    flex: 1;
    /* Chia đều 50-50 */
    width: 50% !important;
    padding: 10px 8px !important;
    /* Tăng padding ngang để chữ không bị sát */
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    /* Giảm size chữ để vừa "MUA NGAY" */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* Giảm gap giữa icon và text */
    text-decoration: none !important;
    box-sizing: border-box;
    white-space: nowrap;
    /* Giữ chữ trên 1 dòng */
    line-height: 1.2;
}

.more-btn-box4 {
    background: #fff !important;
    color: #f59e0b !important;
    border: 1.5px solid #f59e0b !important;
}

.buy-btn-box4 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    border: none !important;
}

.buy-btn-box4:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   CATEGORY BUTTONS
   ============================================ */

.custom-button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.custom-button-list li {
    margin: 0;
}

.btn-category-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-category-home:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.btn-category-home.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-category-home img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============================================
   PAGINATION
   ============================================ */

.bottom-paginate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.page-info {
    color: #6b7280;
    font-weight: 600;
    margin: 0;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination a {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .home-heading h3 {
        font-size: 1.25rem;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-price {
        font-size: 1.25rem;
    }

    .btn-more,
    .btn-buy {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .custom-button-list {
        gap: 8px;
    }

    .btn-category-home {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .product-buttons-box4 {
        flex-direction: column;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.product-box4 {
    animation: fadeInUp 0.4s ease forwards;
}

/* Stagger animation for multiple cards */
.feature-card:nth-child(1),
.product-box4:nth-child(1) {
    animation-delay: 0.05s;
}

.feature-card:nth-child(2),
.product-box4:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3),
.product-box4:nth-child(3) {
    animation-delay: 0.15s;
}

.feature-card:nth-child(4),
.product-box4:nth-child(4) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(5),
.product-box4:nth-child(5) {
    animation-delay: 0.25s;
}

.feature-card:nth-child(6),
.product-box4:nth-child(6) {
    animation-delay: 0.3s;
}

/* ============================================
   PREMIUM WALLET CARD (SIDEBAR)
   ============================================ */

.card-wallet-home {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px !important;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.card-wallet-home:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.my-wallet p {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-wallet h3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2));
}

/* Sidebar Wallet Box Premium */
.wallet-card-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 10px 0;
}

.wallet-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 18px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wallet-card:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-color: #f59e0b;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
    transform: translateX(4px);
}

.wallet-card p {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wallet-card h3 {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0;
}

.user-form-social {
    padding: 0;
    list-style: none;
    margin: 0;
}

.user-form-social li {
    margin-bottom: 12px;
}

.user-form-social .facebook,
.user-form-social .google {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s;
}

.user-form-social .facebook {
    background: #FF9800;
    color: white;
}

.user-form-social .google {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.user-form-social .facebook:hover {
    background: #F57C00;
    transform: translateY(-2px);
}

.user-form-social .google:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}