.popup-action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-view-detail {
  flex: 1;
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px 0;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-view-detail:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}




/* Responsive */
@media (max-width: 480px) {
  .popup-action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-view-detail,
  .btn-add-cart {
    flex: none;
    width: 100%;
  }
}

.product-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    max-height: 80px;
    overflow-y: auto;
}

.product-description strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
    color: #e74c3c; /* Màu nổi bật */
}

/* CSS cho bảng */
        .table-3sfarm-container {
            overflow-x: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            background-color: white;
        }
        
        .table-3sfarm {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, sans-serif;
            min-width: 800px;
        }
        
        .table-3sfarm th,
        .table-3sfarm td {
            border: 1px solid #ddd;
            padding: 16px 20px;
            text-align: center;
            transition: background-color 0.2s;
        }
        
        .table-3sfarm thead {
            background: linear-gradient(to right, #28a745, #20c997); /* Gradient cho header */
            color: #fff;
            position: sticky;
            top: 0;
        }
        
        .table-3sfarm thead th {
            font-weight: 700;
            font-size: 16px;
            padding: 18px 20px;
            border-bottom-width: 2px;
        }
        
        .table-3sfarm tbody tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        
        .table-3sfarm tbody tr:hover {
            background-color: #e0f7e9;
            transform: scale(1.001);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .table-3sfarm td {
            font-size: 15px;
            color: #444;
        }
        
        /* Màu sắc riêng cho từng dòng */
        .table-3sfarm tr:nth-child(1) td:first-child {
            border-left: 4px solid #3498db;
        }
        
        .table-3sfarm tr:nth-child(2) td:first-child {
            border-left: 4px solid #2ecc71;
        }
        
        .table-3sfarm tr:nth-child(3) td:first-child {
            border-left: 4px solid #f39c12;
        }
        
        /* Highlight cho cột khuyến nghị */
        .recommended {
            position: relative;
        }
        
        .recommended::after {
            content: "✓ Khuyên dùng";
            position: absolute;
            top: -10px;
            right: 10px;
            background-color: #2ecc71;
            color: white;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 10px;
            font-weight: bold;
        }
        
        /* Responsive cho mobile */
        @media screen and (max-width: 992px) {
            .table-3sfarm th,
            .table-3sfarm td {
                padding: 14px 16px;
            }
            
            .header h1 {
                font-size: 24px;
            }
        }
        
        @media screen and (max-width: 768px) {
            .table-3sfarm-container {
                border-radius: 8px;
                box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            }
            
            .table-3sfarm {
                min-width: 100%;
            }
            
            .table-3sfarm thead {
                display: none;
            }
            
            .table-3sfarm, 
            .table-3sfarm tbody, 
            .table-3sfarm tr, 
            .table-3sfarm td {
                display: block;
                width: 100%;
            }
            
            .table-3sfarm tr {
                margin-bottom: 20px;
                border: 1px solid #ddd;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 2px 5px rgba(0,0,0,0.05);
                position: relative;
            }
            
            .table-3sfarm td {
                text-align: right;
                padding-left: 50%;
                padding-right: 15px;
                position: relative;
                border: none;
                border-bottom: 1px solid #eee;
            }
            
            .table-3sfarm td:last-child {
                border-bottom: none;
            }
            
            .table-3sfarm td::before {
                content: attr(data-label);
                position: absolute;
                left: 15px;
                width: 45%;
                text-align: left;
                font-weight: bold;
                color: #28a745;
            }
            
            /* Màu sắc cho mobile */
            .table-3sfarm tr:nth-child(1) {
                border-top: 4px solid #3498db;
            }
            
            .table-3sfarm tr:nth-child(2) {
                border-top: 4px solid #2ecc71;
            }
            
            .table-3sfarm tr:nth-child(3) {
                border-top: 4px solid #f39c12;
            }
            
            /* Ẩn badge "Khuyên dùng" trên mobile */
            .recommended::after {
                display: none;
            }
            
            /* Thêm label "Khuyên dùng" cho mobile */
            .table-3sfarm tr:nth-child(2) td:first-child::after {
                content: "✓ Khuyên dùng";
                position: absolute;
                left: 15px;
                top: -5px;
                background-color: #2ecc71;
                color: white;
                font-size: 11px;
                padding: 2px 8px;
                border-radius: 10px;
                font-weight: bold;
            }
        }
        
        @media screen and (max-width: 480px) {
            
            
            .table-3sfarm td {
                padding-left: 45%;
                padding-right: 12px;
                padding-top: 12px;
                padding-bottom: 12px;
                font-size: 14px;
            }
            
            .table-3sfarm td::before {
                font-size: 14px;
                width: 40%;
            }
        }
        
        /* Hiệu ứng in ấn */
        @media print {
            .table-3sfarm-container {
                box-shadow: none;
            }
            
            .table-3sfarm th {
                background-color: #f0f0f0 !important;
                color: #000 !important;
                -webkit-print-color-adjust: exact;
            }
        }

/* Custom 5-column Footer */
:root {
    --primary: #009b49;
    --secondary: #1b4332;
    --accent: #ffb703;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

.site-footer {
    background: var(--secondary);
    color: #d0d0d0;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-grid.columns-5 {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1.5fr;
}
.footer-grid.columns-4 {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
}
.footer-grid.columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.footer-grid.columns-2 {
    grid-template-columns: 1fr 1fr;
}
.footer-grid.columns-1 {
    grid-template-columns: 1fr;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    display: block;
}

.footer-logo i {
    color: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a:hover {
    color: var(--primary) !important;
}

.contact-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    outline: none;
}

.newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.newsletter button:hover {
    background: #007a3a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 10px;
    font-size: 24px;
    color: var(--white);
}

@media (max-width: 992px) {
    .footer-grid, 
    .footer-grid[class*="columns-"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .footer-col:first-child {
        grid-column: auto !important;
    }
}
@media (max-width: 768px) {
    .footer-grid, 
    .footer-grid[class*="columns-"] {
        grid-template-columns: 1fr !important;
    }
    .footer-col:first-child {
        grid-column: auto !important;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Robust Resets for Footer */
.site-footer ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.site-footer p {
    margin-top: 0;
}
.site-footer a {
    color: #d0d0d0 !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.3s;
}
.site-footer input, .site-footer button {
    font-family: inherit;
    box-sizing: border-box;
}
.site-footer a:hover {
    color: var(--primary) !important;
}
