 /* === Design System Import === */ /* === Pagination Centering === */ .pagination, nav.pagination, .wp-pagenavi, .page-numbers { display: flex !important; justify-content: center !important; align-items: center !important; gap: 8px; padding: 40px 0; } .page-numbers a, .page-numbers span, .wp-pagenavi a, .wp-pagenavi span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #ead9cf; background: #fff; color: #766864; font: 600 0.85rem/1 'DM Sans', sans-serif; text-decoration: none; transition: all 0.3s ease; } .page-numbers.current, .wp-pagenavi .current { background: #b92f63; color: #fff; border-color: #b92f63; } .page-numbers a:hover, .wp-pagenavi a:hover { border-color: #b92f63; color: #b92f63; } /* === Product Card Improvements === */ .product-card, .related-card, .rp-product-card { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease; border-radius: 16px; overflow: hidden; position: relative; } .product-card:hover, .related-card:hover, .rp-product-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 60px rgba(185, 47, 99, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06); border-color: #b92f63; } .product-card .product-image, .related-card .related-card-img, .rp-product-card img { transition: transform 0.6s ease; } .product-card:hover .product-image img, .related-card:hover .related-card-img img, .rp-product-card:hover img { transform: scale(1.06); } .product-card .quick-view { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; background: rgba(255, 250, 244, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(185, 47, 99, 0.2); border-radius: 24px; padding: 8px 20px; font: 600 0.8rem/1 'DM Sans', sans-serif; color: #b92f63; cursor: pointer; transition: all 0.3s ease; z-index: 5; } .product-card:hover .quick-view { opacity: 1; transform: translateX(-50%) translateY(0); } .product-card .quick-view:hover { background: #b92f63; color: #fff; } /* === Rating Display === */ .rating-badge, .hero-rating .rating-num, .stat-val, .rp-rating { background: linear-gradient(135deg, #b92f63, #d4476e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; } .rating-bar, .dist-bar { height: 8px; border-radius: 4px; background: #ede3da; overflow: hidden; position: relative; } .rating-bar-fill, .dist-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b92f63, #d4476e); transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); position: relative; } .rating-bar-fill::after, .dist-fill::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%); animation: shimmer 2s infinite; } .verdict-badge, .badge-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font: 700 0.75rem/1 'DM Sans', sans-serif; letter-spacing: 0.04em; text-transform: uppercase; background: linear-gradient(135deg, rgba(185, 47, 99, 0.1), rgba(185, 47, 99, 0.05)); color: #b92f63; border: 1px solid rgba(185, 47, 99, 0.15); } /* === Skeleton Screens === */ .skeleton { background: linear-gradient(90deg, #f5ede6 25%, #faf3ec 50%, #f5ede6 75%); background-size: 400% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: 8px; color: transparent !important; user-select: none; pointer-events: none; } .skeleton * { visibility: hidden; } .skeleton-text { height: 1em; margin-bottom: 8px; border-radius: 4px; } .skeleton-title { height: 1.5em; width: 70%; margin-bottom: 12px; border-radius: 6px; } .skeleton-image { height: 200px; border-radius: 12px; } .skeleton-rating { height: 1.2em; width: 120px; border-radius: 4px; } .skeleton-button { height: 40px; width: 140px; border-radius: 20px; } @keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } } /* === Image Lazy Loading === */ img[loading="lazy"], img.lazy-load { opacity: 0; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1); } img[loading="lazy"].loaded, img.lazy-load.loaded, img[loading="lazy"][src]:not([src=""]) { opacity: 1; } img.loaded { opacity: 1 !important; } .fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); } .fade-in.visible { opacity: 1; transform: translateY(0); } @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* === Orphaned text fix === */ .rvi-product > article { font-size: 0; word-spacing: 0; letter-spacing: 0; } .rvi-product > article > * { font-size: var(--rp-body, 1rem); word-spacing: normal; letter-spacing: normal; } /* === Pros text fix === */ .rp-proscons-panel.rp-pros li { overflow: visible !important; text-overflow: initial !important; display: block !important; -webkit-line-clamp: unset !important; white-space: normal !important; max-height: none !important; height: auto !important; } /* === Site header styles for product pages === */ .site-header { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); height: 72px; background: rgba(255, 250, 244, 0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .site-header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06); } .brand { display: flex; align-items: center; text-decoration: none; } .brand-logo { width: 38px; height: 38px; object-fit: contain; } .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; } .nav-links a { font-size: 0.875rem; font-weight: 600; color: #766864; position: relative; padding: 4px 0; text-decoration: none; transition: color 0.3s; } .nav-links a::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #b92f63; border-radius: 1px; transition: width 0.3s; } .nav-links a:hover, .nav-links a.active { color: #17100f; } .nav-links a:hover::after, .nav-links a.active::after { width: 100%; } .skip-link { position: absolute; top: -100px; left: 16px; background: #b92f63; color: #fff; padding: 12px 24px; border-radius: 0 0 12px 12px; font-weight: 600; z-index: 10000; transition: top 0.3s; } .skip-link:focus { top: 0; } /* === Mobile header nav === */ @media (max-width: 768px) { .mobile-menu-btn { display: block; } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(255, 250, 244, 0.98); backdrop-filter: blur(20px); padding: 24px; border-bottom: 1px solid #ead9cf; box-shadow: 0 20px 60px rgba(23, 16, 15, 0.12); gap: 0; } .nav-links.active { display: flex; } .nav-links a { padding: 16px 0; border-bottom: 1px solid rgba(234, 217, 207, 0.4); font-size: 1rem; } .nav-links a:last-child { border-bottom: none; } .nav-links a::after { display: none; } .nav-action { display: none; } } /* === Mobile header nav === */ @media (max-width: 768px) { .mobile-menu-btn { display: block; } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(255, 250, 244, 0.98); backdrop-filter: blur(20px); padding: 24px; border-bottom: 1px solid #ead9cf; box-shadow: 0 20px 60px rgba(23, 16, 15, 0.12); gap: 0; } .nav-links.active { display: flex; } .nav-links a { padding: 16px 0; border-bottom: 1px solid rgba(234, 217, 207, 0.4); font-size: 1rem; } .nav-links a:last-child { border-bottom: none; } .nav-links a::after { display: none; } .nav-action { display: none; } } /* === REVEUI VISUAL FIXES (auto-injected) === */ /* Nav gap fix */ .revuei-home .hero { padding-top: 80px !important; } /* Progress bar z-index above sticky header */ .rev-progress { z-index: 10001; } /* Trending card glassmorphism */ .trending-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; background: rgba(255,255,255,0.25); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 8px 32px rgba(0,0,0,0.08); transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; } .trending-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(185,47,99,0.15); border-color: rgba(185,47,99,0.2); } .trending-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,250,244,0.6) 0%, rgba(244,232,223,0.4) 100%); z-index: -1; } .trending-card-content { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; } .trending-card-brand { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #B92F63; } .trending-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: #17100F; margin: 0; } .trending-card-rating { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; } .trending-card-stars { color: #E2B36D; letter-spacing: 1px; } .trending-card-ingredients { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .trending-card-ingredients span { background: rgba(185,47,99,0.08); color: #B92F63; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; } .trending-card-price { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #17100F; margin-top: 8px; } .trending-card-cta { font-size: .85rem; font-weight: 600; color: #B92F63; margin-top: 8px; transition: letter-spacing .3s; } .trending-card:hover .trending-card-cta { letter-spacing: .03em; } .trending-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } /* Score ring */ .rv-prod-card { background: linear-gradient(135deg, #fff, #fffaf7); border: 1px solid #EAD9CF; border-radius: 20px; padding: 32px; margin: 24px auto; max-width: 480px; box-shadow: 0 4px 24px rgba(0,0,0,.06); } .rv-prod-score-row { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; } .rv-score-ring { position: relative; width: 100px; height: 100px; flex-shrink: 0; } .rv-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .rv-score-ring-track { fill: none; stroke: #f4e8df; stroke-width: 8; } .rv-score-ring-fill { fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); } .rv-score-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: #17100F; } .rv-prod-score-info { flex: 1; } .rv-prod-score-label { font-weight: 700; font-size: 1.1rem; color: #17100F; } .rv-prod-score-desc { font-size: .85rem; color: #766864; margin-top: 4px; } /* Dimension bars */ .rv-prod-bars-title { font-weight: 700; font-size: .95rem; color: #17100F; margin-bottom: 12px; } .rv-bars { display: flex; flex-direction: column; gap: 10px; } .rv-bar-row { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 12px; font-size: .85rem; } .rv-bar-track { height: 8px; background: #f4e8df; border-radius: 4px; overflow: hidden; } .rv-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #B92F63, #E2B36D); border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); } .rv-bar-value { text-align: right; font-weight: 600; color: #17100F; font-size: .82rem; } .rv-section-note { font-size: .72rem; color: #766864; font-style: italic; margin-top: 8px; } /* Ingredient concentration bars */ .rv-ing-section { margin: 24px auto; max-width: 480px; } .rv-ing-title { font-weight: 700; font-size: 1.05rem; color: #17100F; margin-bottom: 16px; } .rv-conc-list { display: flex; flex-direction: column; gap: 10px; } .rv-conc-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 12px; font-size: .85rem; } .rv-conc-track { height: 8px; background: #f4e8df; border-radius: 4px; overflow: hidden; } .rv-conc-fill { height: 100%; width: 0; border-radius: 4px; transition: width .8s cubic-bezier(.4,0,.2,1); } .rv-conc-fill[data-level="high"] { background: linear-gradient(90deg, #2d6657, #8AB6A2); } .rv-conc-fill[data-level="med"] { background: linear-gradient(90deg, #B92F63, #E2B36D); } .rv-conc-fill[data-level="low"] { background: #ddd; } .rv-conc-val { text-align: right; font-weight: 600; color: #17100F; } /* Donut chart */ .rv-donut-section { margin: 24px auto; max-width: 480px; text-align: center; } .rv-donut-title { font-weight: 700; font-size: 1.05rem; color: #17100F; margin-bottom: 16px; } .rv-donut-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; } .rv-donut-svg { width: 140px; height: 140px; } .rv-donut-center { font-size: .5rem; font-weight: 700; fill: #17100F; } .rv-donut-center-sub { font-size: .3rem; fill: #766864; } .rv-donut-legend { display: flex; flex-direction: column; gap: 6px; text-align: left; } .rv-donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; } .rv-donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } /* Ingredient pairing matrix */ .rv-matrix-section { margin: 24px auto; max-width: 480px; } .rv-matrix-title { font-weight: 700; font-size: 1.05rem; color: #17100F; margin-bottom: 16px; } .rv-matrix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; } .rv-matrix-cell { background: #f4e8df; border-radius: 10px; padding: 10px; text-align: center; font-size: .75rem; font-weight: 600; color: #17100F; transition: transform .2s; } .rv-matrix-cell:hover { transform: scale(1.05); } .rv-matrix-pair { font-size: .68rem; color: #766864; margin-top: 2px; } /* Responsive */ @media (max-width: 768px) { .trending-cards { grid-template-columns: 1fr; } .rv-prod-score-row { flex-direction: column; text-align: center; } .rv-bar-row { grid-template-columns: 80px 1fr 36px; } .rv-conc-row { grid-template-columns: 100px 1fr 50px; } } 