/* ============================================================
   BEAUTY & SMART SHOPPING ANALYZER CSS
   Inspired by Beauty ChanhTuoi - Modern Cosmetic Analyzer & Deal Hunter
   Part of TimDealNgon.com
   ============================================================ */

:root {
    --beauty-primary: #f43f5e;
    --beauty-primary-hover: #e11d48;
    --beauty-primary-light: #ffe4e6;
    --beauty-primary-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #d946ef 100%);
    
    --beauty-safe: #10b981;
    --beauty-safe-bg: #ecfdf5;
    --beauty-safe-border: #a7f3d0;
    
    --beauty-med: #f59e0b;
    --beauty-med-bg: #fffbeb;
    --beauty-med-border: #fde68a;
    
    --beauty-hazard: #ef4444;
    --beauty-hazard-bg: #fef2f2;
    --beauty-hazard-border: #fecaca;
    
    --beauty-accent: #6366f1;
    --beauty-dark: #0f172a;
    --beauty-text: #1e293b;
    --beauty-muted: #64748b;
    --beauty-bg-subtle: #f8fafc;
    --beauty-card-bg: #ffffff;
    --beauty-border: #e2e8f0;
    
    --beauty-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --beauty-shadow-hover: 0 20px 30px -10px rgba(244, 63, 94, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    --beauty-radius: 16px;
    --beauty-radius-sm: 8px;
}

/* ==========================================
   1. HERO ANALYZER SECTION
   ========================================== */
.beauty-hero {
    position: relative;
    padding: 48px 0 64px;
    background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.06), transparent 50%),
                #ffffff;
    border-bottom: 1px solid var(--beauty-border);
    overflow: hidden;
}

.beauty-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #fff1f2;
    color: var(--beauty-primary);
    border: 1px solid #fecdd3;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.beauty-hero-badge svg {
    color: var(--beauty-primary);
}

.beauty-hero-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: var(--beauty-dark);
    line-height: 1.25;
    margin-bottom: 14px;
    max-width: 820px;
}

.beauty-hero-title span {
    background: var(--beauty-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.beauty-hero-desc {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--beauty-muted);
    max-width: 760px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Analyzer Input Card */
.analyzer-box-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--beauty-radius);
    padding: 24px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08), 0 5px 15px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    backdrop-filter: blur(10px);
}

.analyzer-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.analyzer-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--beauty-dark);
}

.analyzer-input-helper {
    font-size: 13px;
    color: var(--beauty-muted);
}

.analyzer-textarea {
    width: 100%;
    min-height: 130px;
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--beauty-dark);
    background: #fdfdfd;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.analyzer-textarea:focus {
    background: #ffffff;
    border-color: var(--beauty-primary);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

/* Sample Pills */
.sample-pills-row {
    margin: 16px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sample-pills-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--beauty-muted);
    margin-right: 4px;
}

.sample-pill-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sample-pill-btn:hover {
    color: var(--beauty-primary);
    background: #fff1f2;
    border-color: #fecdd3;
    transform: translateY(-1px);
}

/* Action Buttons */
.analyzer-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn-beauty-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: var(--beauty-primary-gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px -4px rgba(244, 63, 94, 0.4);
    transition: all 0.25s ease;
}

.btn-beauty-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(244, 63, 94, 0.5);
    color: #ffffff;
}

.btn-beauty-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--beauty-muted);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-beauty-clear:hover {
    background: #f1f5f9;
    color: var(--beauty-dark);
}

/* ==========================================
   2. ANALYSIS RESULT DASHBOARD
   ========================================== */
#analysisResultContainer {
    margin-top: 36px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Matched Product Banner */
.matched-product-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
    border: 1.5px solid #fecdd3;
    border-radius: var(--beauty-radius);
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.08);
}

.matched-prod-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #fed7aa;
    flex-shrink: 0;
}

.matched-prod-info {
    flex: 1;
}

.matched-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--beauty-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.matched-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--beauty-dark);
    margin: 3px 0 8px;
}

.matched-deal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.matched-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--beauty-primary);
}

.matched-original {
    font-size: 13.5px;
    color: #94a3b8;
    text-decoration: line-through;
}

.matched-discount {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 6px;
}

.btn-snatch-deal {
    margin-left: auto;
    padding: 8px 18px;
    background: #e11d48;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-snatch-deal:hover {
    background: #be123c;
    transform: translateY(-1px);
}

/* 3-Column Summary Cards */
.analysis-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.summary-card {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: var(--beauty-radius);
    padding: 22px;
    box-shadow: var(--beauty-shadow);
    display: flex;
    flex-direction: column;
}

.card-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--beauty-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

/* EWG Dial Card */
.ewg-dial-card .dial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dial-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--beauty-dark);
    text-transform: uppercase;
}

.dial-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dial-status.safe {
    background: #ecfdf5;
    color: #059669;
}

.dial-status.moderate {
    background: #fffbeb;
    color: #d97706;
}

.dial-status.warning {
    background: #fef2f2;
    color: #dc2626;
}

.dial-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid currentColor;
}

.score-circle.safe {
    background: #f0fdf4;
    color: #10b981;
}

.score-circle.moderate {
    background: #fffbeb;
    color: #f59e0b;
}

.score-circle.warning {
    background: #fef2f2;
    color: #ef4444;
}

.score-num {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.score-scale {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

.dial-details {
    flex: 1;
}

.progress-bar-wrap {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.progress-fill.low { background: #10b981; }
.progress-fill.med { background: #f59e0b; }
.progress-fill.high { background: #ef4444; }

.progress-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pl-item.low { color: #059669; }
.pl-item.med { color: #d97706; }
.pl-item.high { color: #dc2626; }

/* Safety Indicators & Skin Fit */
.safety-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.safety-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.safety-tag.good {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.safety-tag.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.safety-tag.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.skin-compatibility {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.compat-label {
    font-weight: 600;
    color: #475569;
}

.compat-val {
    font-weight: 700;
    color: #0f172a;
}

/* Benefits Chips */
.benefits-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.benefit-chip {
    padding: 6px 12px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.summary-tip-text {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-top: auto;
    background: #fdfaf5;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

/* ==========================================
   3. INGREDIENT DETAIL TABLE
   ========================================== */
.ingredients-table-card {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: var(--beauty-radius);
    padding: 24px;
    box-shadow: var(--beauty-shadow);
}

.table-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.table-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--beauty-dark);
}

.table-filter-pills {
    display: flex;
    gap: 8px;
}

.tbl-filter-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tbl-filter-btn.active, .tbl-filter-btn:hover {
    background: var(--beauty-dark);
    color: #ffffff;
    border-color: var(--beauty-dark);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.beauty-ingredients-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

.beauty-ingredients-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.beauty-ingredients-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.beauty-ingredients-table tr:hover td {
    background: #fdfaf6;
}

.col-num {
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}

.ing-name-en {
    display: block;
    color: var(--beauty-dark);
    font-size: 14px;
    font-weight: 700;
}

.ing-name-vi {
    display: block;
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.table-warning-note {
    font-size: 11.5px;
    color: #dc2626;
    background: #fef2f2;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.col-cat {
    color: #475569;
    font-size: 13px;
}

.ewg-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.ewg-pill.score-low {
    background: #d1fae5;
    color: #065f46;
}

.ewg-pill.score-med {
    background: #fef3c7;
    color: #92400e;
}

.ewg-pill.score-high {
    background: #fee2e2;
    color: #991b1b;
}

.benefit-desc {
    color: #334155;
    line-height: 1.4;
}

/* ==========================================
   4. SIDE-BY-SIDE COMPARISON SECTION
   ========================================== */
.beauty-section {
    padding: 60px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--beauty-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--beauty-muted);
}

.compare-selector-card {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: var(--beauty-radius);
    padding: 24px;
    box-shadow: var(--beauty-shadow);
    margin-bottom: 30px;
}

.compare-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.compare-select-wrap {
    flex: 1;
    min-width: 260px;
}

.compare-select-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--beauty-dark);
    margin-bottom: 6px;
}

.compare-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: var(--beauty-dark);
    outline: none;
    cursor: pointer;
}

.compare-vs-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--beauty-primary-gradient);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
    margin-top: 22px;
}

.btn-compare-action {
    margin-top: 22px;
    padding: 12px 24px;
    background: var(--beauty-dark);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compare-action:hover {
    background: var(--beauty-primary);
}

/* Comparison Table */
.compare-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: var(--beauty-radius);
    overflow: hidden;
    box-shadow: var(--beauty-shadow);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th, .compare-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: top;
}

.compare-col-head {
    text-align: center !important;
    background: #f8fafc;
}

.compare-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.compare-head-brand {
    font-size: 12px;
    font-weight: 700;
    color: var(--beauty-primary);
    text-transform: uppercase;
}

.compare-head-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--beauty-dark);
    margin-top: 2px;
}

.price-highlight {
    font-size: 16px;
    font-weight: 800;
    color: var(--beauty-primary);
}

.price-highlight .old-p {
    font-size: 13px;
    font-weight: normal;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.compare-score {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    background: #f1f5f9;
}

.active-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 12px;
    margin: 2px 4px 2px 0;
}

.compare-voucher-box {
    background: #fff1f2;
    border: 1px dashed #fecdd3;
    border-radius: 8px;
    padding: 10px;
}

.compare-voucher-box code {
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 800;
    color: #e11d48;
}

.compare-voucher-box p {
    font-size: 11.5px;
    color: #475569;
    margin: 4px 0 8px;
}

.btn-compare-deal {
    display: inline-block;
    padding: 6px 14px;
    background: #e11d48;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
}

/* ==========================================
   5. PRODUCT DEALS & CATALOG GRID
   ========================================== */
.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.catalog-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-filter-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-filter-btn.active, .catalog-filter-btn:hover {
    background: var(--beauty-primary);
    color: #ffffff;
    border-color: var(--beauty-primary);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.catalog-search-wrap {
    position: relative;
    min-width: 260px;
}

.catalog-search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    font-size: 13.5px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
}

.catalog-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Product Cards Grid */
.beauty-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-item-card {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: var(--beauty-radius);
    overflow: hidden;
    box-shadow: var(--beauty-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.product-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--beauty-shadow-hover);
    border-color: #fecdd3;
}

.prod-card-top {
    position: relative;
    padding: 20px 16px 12px;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.prod-badge-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
}

.prod-badge-ewg {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 800;
    background: #dcfce7;
    color: #15803d;
    padding: 3px 8px;
    border-radius: 6px;
}

.prod-img {
    height: 150px;
    object-fit: contain;
}

.prod-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-brand {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--beauty-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.prod-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--beauty-dark);
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.prod-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.prod-mini-tag {
    font-size: 11px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.prod-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
}

.prod-sale-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--beauty-primary);
}

.prod-origin-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.prod-discount-pill {
    font-size: 11px;
    font-weight: 800;
    background: #fee2e2;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
}

.prod-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-check-ing {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-check-ing:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-buy-voucher {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--beauty-primary-gradient);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
    transition: all 0.2s ease;
}

.btn-buy-voucher:hover {
    box-shadow: 0 6px 14px rgba(244, 63, 94, 0.4);
    transform: translateY(-1px);
}

/* ==========================================
   6. INGREDIENT GLOSSARY / DICTIONARY
   ========================================== */
.ingredient-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.glossary-card {
    background: #ffffff;
    border: 1px solid var(--beauty-border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--beauty-shadow);
    display: flex;
    flex-direction: column;
}

.glossary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.glossary-ewg {
    font-size: 11px;
    font-weight: 800;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 4px;
}

.glossary-cat {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.glossary-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--beauty-dark);
}

.glossary-sub {
    font-size: 12px;
    color: var(--beauty-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.glossary-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.glossary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.g-tag {
    font-size: 11px;
    background: #f8fafc;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* ==========================================
   7. EDUCATIONAL & SEO GUIDE
   ========================================== */
.beauty-guide-section {
    background: #fdfaf7;
    border-top: 1px solid var(--beauty-border);
    border-bottom: 1px solid var(--beauty-border);
    padding: 50px 0;
}

.guide-box {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: var(--beauty-radius);
    padding: 28px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.guide-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-item p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
}

/* Responsive queries */
@media (max-width: 768px) {
    .analyzer-box-card {
        padding: 16px;
    }
    .matched-product-alert {
        flex-direction: column;
        text-align: center;
    }
    .btn-snatch-deal {
        margin: 8px auto 0;
    }
    .analysis-summary-grid {
        grid-template-columns: 1fr;
    }
    .dial-body {
        justify-content: center;
    }
    .compare-form-row {
        flex-direction: column;
    }
    .compare-select-wrap {
        width: 100%;
    }
    .compare-vs-badge {
        margin: 0;
    }
    .btn-compare-action {
        width: 100%;
        margin-top: 8px;
    }
}
