/*
Theme Name: Đồ Nên Mua
Theme URI: https://donenmua.com
Author: AI Assistant & Nguyen Minh Tam
Description: Theme Affiliate tối ưu SEO, tốc độ cao, thiết kế riêng cho donenmua.com (Mô hình so sánh giá).
Version: 1.0
Text Domain: donenmua
*/

/* Tailwind CSS được load qua CDN trong header.php để tiện sử dụng nhanh */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom HOT Badge for Menu */
.menu-badge-hot {
    margin-left: 0.375rem;
    background-image: linear-gradient(to right, #ef4444, #f97316);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Fix layout conflicts on Coupon Page (Bootstrap vs Tailwind) */
.at-coupon-page header, 
.at-coupon-page footer {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    position: relative !important;
    line-height: normal !important;
    font-family: "Inter", sans-serif !important;
    color: #0f172a !important; /* slate-900 */
}

.at-coupon-page header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background-color: white !important;
    border-bottom: 1px solid #e2e8f0 !important; /* border-slate-200 */
}

.at-coupon-page header *, 
.at-coupon-page footer * {
    box-sizing: border-box !important;
    line-height: inherit !important;
}

.at-coupon-page header a,
.at-coupon-page footer a {
    color: inherit !important;
    text-decoration: none !important;
}

.at-coupon-page header a:hover,
.at-coupon-page footer a:hover {
    text-decoration: none !important;
}

.at-coupon-page header .text-blue-600 { color: #2563eb !important; }
.at-coupon-page header .bg-blue-600 { background-color: #2563eb !important; }
.at-coupon-page header .bg-slate-100 { background-color: #f1f5f9 !important; }
.at-coupon-page header .text-slate-600 { color: #475569 !important; }
.at-coupon-page header .text-slate-900 { color: #0f172a !important; }
.at-coupon-page header .border-slate-200 { border-color: #e2e8f0 !important; }

/* Ensure Tailwind container works on coupon page */
.at-coupon-page .max-w-7xl {
    max-width: 80rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.at-coupon-page .container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Fix Bootstrap's global impact on body */
.at-coupon-page body {
    padding: 0 !important;
    margin: 0 !important;
    background-color: #f8fafc !important; /* bg-slate-50 */
}

/* Fix Bootstrap's link styles */
.at-coupon-page a:not(.btn):not(.page-link) {
    text-decoration: none !important;
}

.at-coupon-page a:hover:not(.btn):not(.page-link) {
    text-decoration: underline !important;
}
