/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;

    /* Colors - Matched to PeptidePrice.store */
    /* Light Mode */
    --bg-body: #f8fafc;
    /* Slate-50 */
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    /* Slate-900 */
    --text-secondary: #475569;
    /* Slate-600 */
    --text-muted: #94a3b8;
    /* Slate-400 */

    /* Branding */
    --primary-blue: #2563eb;
    /* Blue-600 */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --primary-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);

    --accent-orange: #f97316;
    /* Orange-500 */
    --accent-purple: #7e22ce;
    /* Purple-700 */
    --accent-green: #10b981;

    /* Badge Gradients */
    --badge-best: linear-gradient(to right, #fff7ed, #ffedd5);
    --text-best: #c2410c;
    /* Orange-700 */

    /* Deep Antigravity Shadows */
    --shadow-float: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 60px -12px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(to right, #ea580c, #dc2626, #ea580c);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    text-align: center;
    position: relative;
    z-index: 101;
}

.btn-join {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
    margin-left: 10px;
    color: white;
}

.btn-join:hover {
    background: white;
    color: #dc2626;
}

.btn-close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.8;
    margin-left: 10px;
}

/* Header & Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for better text readability */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: #eff6ff;
}

.nav-link.active {
    color: var(--primary-blue);
    background: #eff6ff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding-right: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 200;
    margin-top: 10px;
    border: 1px solid #f1f5f9;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    animation: slideUp 0.2s ease-out;
}

.dropdown-menu a {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-icon {
    font-size: 1.4rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: #f1f5f9;
}

.mobile-toggle {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 0;
    position: fixed;
    /* or absolute */
    width: 100%;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu.open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f8fafc;
}

.mobile-link:hover,
.mobile-link.active {
    background: #f8fafc;
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Hero Section */
/* --- Hero Section --- */
.hero-section {
    padding: 4rem 0 3rem 0;
    background: #fff;
    /* Clean white background */
}

/* Floating Icon Box */
.hero-icon-box {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    /* Light blue background */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #3b82f6;
    /* Blue icon */
    font-size: 1.8rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

/* Main Title */
.hero-title {
    font-size: 4.5rem;
    /* 72px */
    font-weight: 700;
    color: #111827;
    /* slate-900 */
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    text-align: center;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.25rem;
    /* 20px */
    color: #4b5563;
    /* slate-600 */
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: center;
}

/* Description Text */
.hero-description {
    font-size: 13px;
    color: #6b7280;
    /* slate-500 */
    line-height: 1.6;
    max-width: 672px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    text-align: center;
}

/* --- Hero Search Pill --- */
.search-hero-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Fully rounded pill */
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.search-hero-pill:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-hero-pill input {
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    width: 100%;
    margin-right: 1rem;
}

.search-hero-pill input::placeholder {
    color: #94a3b8;
}

.search-hero-pill ion-icon {
    font-size: 1.4rem;
    color: #3b82f6;
    /* Blue search icon */
}

/* --- Hero Action Buttons --- */
.hero-actions-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-hero-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    color: white;
    /* Ensure text stays white */
}

.btn-green {
    background: #22c55e;
    /* Green for Supplies - Tailwind green-500 */
}

.btn-orange {
    background: #f59e0b;
    /* Amber/Orange for Deals - Tailwind amber-500 */
}

.btn-purple {
    background: #a855f7;
    /* Purple for Reviews - Tailwind purple-500 */
}

.btn-dark-orange {
    background: #ea580c;
    /* Dark Orange for Research - Tailwind orange-600 */
}

/* Search Container Adjustment */
.search-container-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Minimal Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.5rem 0;
    flex-grow: 1;
    max-width: 350px;
    position: relative;
}

.search-box:focus-within {
    border-bottom-color: #3b82f6;
}

.search-icon {
    font-size: 1.2rem;
    color: #64748b;
    margin-right: 0.8rem;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    width: 100%;
    padding: 0;
}

.search-box input::placeholder {
    color: #94a3b8;
}

/* Region Button (Pill Shape) */
.region-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    /* Full Pill */
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
    /* Blue text */
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.region-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.region-btn ion-icon {
    font-size: 1rem;
    color: #3b82f6;
}

.flag-icon {
    font-style: normal;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: var(--bg-card);
    box-shadow: var(--shadow-float);
    font-size: 1.1rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    outline: none;
}

.search-input:focus {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

/* Card Grid & Layout (Existing) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    /* Slightly wider cards */
    gap: 2rem;
    padding: 1rem 0 4rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.category-badge {
    background: #eff6ff;
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Vendor List */
.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
}

.vendor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.vendor-item:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.vendor-info {
    display: flex;
    flex-direction: column;
}

.vendor-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.price-display {
    text-align: right;
}

.price-main {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.price-per-mg {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    font-weight: 500;
}

.best-value {
    color: var(--accent-orange);
    font-weight: 700;
}

.val-badge {
    display: inline-block;
    background: var(--badge-best);
    color: var(--text-best);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid #fed7aa;
}

.coupon-badge {
    background: #f3e8ff;
    color: var(--accent-purple);
    border: 1px solid #d8b4fe;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.coupon-badge:hover {
    background: #e9d5ff;
    transform: scale(1.05);
}

/* Action Button */
.btn-shop {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--primary-shadow);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.5);
    filter: brightness(1.1);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.cat-tab {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

/* --- Footer Design --- */
.site-footer {
    background: #0f172a;
    /* Slate 900 */
    color: #94a3b8;
    padding: 5rem 0 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
    margin-top: 0;
}

/* Top Section: Grid */
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo ion-icon {
    color: #3b82f6;
    /* Blue icon */
}

.footer-logo span {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col-brand p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 250px;
}

.footer-dots {
    display: flex;
    gap: 6px;
}

.footer-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-blue {
    background: #3b82f6;
}

.dot-purple {
    background: #a855f7;
}

.dot-green {
    background: #10b981;
}

/* Link Columns */
.footer-col-links h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li {
    margin-bottom: 0.8rem;
}

.footer-col-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 0.95rem;
}

.footer-col-links a:hover {
    color: #fff;
}

/* Bottom Section: Legal */
.footer-bottom-legal {
    text-align: center;
    border-top: none;
    /* No separator in screenshot */
    padding-top: 2rem;
}

.copyright-line {
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.legal-main-text {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
}

.legal-blocks {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.legal-blocks p {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
}

.legal-blocks strong {
    color: #cbd5e1;
}

.contact-line {
    color: #475569;
    font-size: 0.8rem;
    margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Advanced Reviews UI --- */

/* Controls Bar */
.review-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.rcb-search {
    position: relative;
    width: 300px;
}

.rcb-search ion-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.rcb-search input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.rcb-search input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rcb-right {
    display: flex;
    gap: 1rem;
}

.rcb-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Split Layout */
.reviews-layout-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.reviews-sidebar {
    width: 280px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    flex-shrink: 0;
}

.review-feed {
    flex: 1;
}

/* Sidebar Elements */
.rs-group {
    margin-bottom: 2rem;
}

.rs-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.r-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.r-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 10px;
}

.r-count {
    width: 30px;
    text-align: right;
    color: var(--text-muted);
}

.rs-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Review Cards */
.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rc-user-date {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.rc-user {
    display: flex;
    gap: 12px;
}

.rc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.rc-avatar.bg-blue {
    background: #3b82f6;
}

.rc-avatar.bg-purple {
    background: #8b5cf6;
}

.rc-meta {
    display: flex;
    flex-direction: column;
}

.rc-author {
    font-weight: 700;
    color: var(--text-dark);
}

.rc-badge-verified {
    font-size: 0.8rem;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.rc-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rc-product-line {
    background: #f8fafc;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: inline-block;
}

.rc-stars-static {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rc-body {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rc-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rc-helpful {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-vote {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-vote:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.btn-load-more {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: #e2e8f0;
}

/* Submit Form Modern */
.submit-container-focused {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.scf-left h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.guidelines-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    align-items: flex-start;
}

.guidelines-list ion-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modern-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-col label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input-modern:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Star Rating Selector */
.rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating-selector input {
    display: none;
}

.rating-selector label {
    display: flex;
    margin: 0;
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.1s;
}

.rating-selector label:hover,
.rating-selector label:hover~label,
.rating-selector input:checked~label {
    color: #fbbf24;
}

.rating-text {
    align-self: center;
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-upload-box {
    border: 2px dashed #cbd5e1;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-upload-box:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.file-upload-box ion-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

.form-row-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2rem;
}

.form-row-checkbox input {
    margin-top: 4px;
}

.form-row-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-submit-modern {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: transform 0.2s;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
}

.sort-dropdown {
    position: relative;
    min-width: 180px;
}

.sort-select {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    appearance: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 300px;
    justify-content: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-dropdown {
        width: 100%;
    }
}

/* Clean Minimal Card Design (from Image) */
.minimal-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    border: none;
}

.card-header-clean {
    margin-bottom: 2rem;
}

.card-header-clean .product-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-pill {
    display: inline-block;
    background: #eff6ff;
    /* Light Blue */
    color: #3b82f6;
    /* Blue Text */
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Inner Vendor Row */
.vendor-list-clean {
    background: #f8fafc;
    /* Very light gray bg for the list container */
    border-radius: 16px;
    padding: 1.5rem;
}

.vendor-row-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.vendor-row-clean:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vendor-row-clean:first-child {
    padding-top: 0;
}

/* Col 1: Vendor details */
.v-info-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.v-name-bold {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.v-unit {
    color: #94a3b8;
    font-size: 0.9rem;
}

.coupon-pill-small {
    display: inline-block;
    border: 1px solid #e9d5ff;
    /* Purple-200 */
    background: #faf5ff;
    /* Purple-50 */
    color: #a855f7;
    /* Purple-500 */
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    width: fit-content;
    cursor: pointer;
}

/* Col 2: Price */
.v-price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center alignment looks like the image */
    padding: 0 1.5rem;
    text-align: center;
}

.price-big {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-primary);
}

.best-val-tag {
    background: #fff7ed;
    /* Orange-50 */
    border: 1px solid #fed7aa;
    /* Orange-200 */
    color: #f97316;
    /* Orange-500 */
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin: 2px 0;
    line-height: 1;
}

.ppm-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.orange-text {
    color: #f97316;
}

/* Col 3: Action */
.v-action-col {
    margin-left: 10px;
}

.btn-shop-clean {
    background: #3b82f6;
    /* Blue-500 */
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-shop-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

/* --- NEW UI CONTROLS (Screenshot Implementation) --- */

/* 1. Top Action Buttons */
.top-action-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-supplies {
    background-color: #10b981;
}

/* Green */
.btn-deals {
    background-color: #f59e0b;
}

/* Orange */
.btn-reviews {
    background-color: #a855f7;
}

/* Purple */
.btn-research {
    background-color: #f97316;
}

/* Deep Orange */


/* 2. Promo Banner */
.promo-banner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 1rem;
    max-width: 900px;
}

.promo-banner {
    flex: 1;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    /* Blue Glow */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.banner-sub {
    font-size: 0.8rem;
    opacity: 0.9;
}

.banner-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

.banner-nav:hover {
    color: #3b82f6;
}


/* 3. Advanced Filters Toggle */
.adv-filter-toggle {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.adv-filter-toggle:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.adv-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s;
}

.adv-filter-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.adv-filter-content {
    background: white;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-top: none;
    margin-top: -20px;
    /* Overlap nicely */
    margin-bottom: 20px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.filter-placeholder {
    display: flex;
    gap: 20px;
    color: #64748b;
}


/* 4. Controls Toolbar */
.controls-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-weight: 700;
    color: #1e293b;
    margin-right: 5px;
}

.sort-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.2s;
}

.sort-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}

.sort-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}


/* View Group & Amazon */
.view-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-shop-amazon {
    background: #f97316;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: filter 0.2s;
}

.btn-shop-amazon:hover {
    filter: brightness(1.1);
}

.view-toggle {
    display: flex;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

.view-btn:hover:not(.active) {
    background: #f8fafc;
}


/* Status Bar */
.status-bar {
    background: #eff6ff;
    color: #1e40af;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* List View Layout */
.product-grid.layout-list .product-card {
    flex-direction: row;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

.product-grid.layout-list .card-header-clean {
    margin-bottom: 0;
    min-width: 250px;
}

.product-grid.layout-list .vendor-list-clean {
    flex: 1;
    padding: 0;
    background: none;
}

.product-grid.layout-list .vendor-row-clean {
    border-bottom: 1px solid #f1f5f9;
}

.product-grid.layout-list .vendor-row-clean:last-child {
    border-bottom: none;
}


/* --- NEW HERO DESIGN (Flask Icon & Clean Layout) --- */

/* 1. Flask Icon Box */
.flask-icon-box {
    width: 72px;
    /* Slightly larger */
    height: 72px;
    background: #eff6ff;
    /* Very Light Blue */
    color: #2563eb;
    /* Blue Icon */
    border-radius: 24px;
    /* More rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 2rem;
    /* More space below */
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.1);
}

/* 2. Typography */
.hero-title {
    font-size: 4rem;
    /* Massive, matching image */
    font-weight: 800;
    color: #0f172a;
    /* Slate 900 */
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #475569;
    /* Slate 600 */
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hero-disclaimer {
    font-size: 0.9rem;
    color: #64748b;
    /* Slate 500 */
    max-width: 850px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* 3. Search Group Layout */
.search-group-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Ensure same height */
    gap: 1.5rem;
    /* Larger gap */
    max-width: 850px;
    margin: 0 auto;
}

/* 4. Modern Search Input */
.search-box-modern {
    flex: 1;
    position: relative;
    max-width: 650px;
}

.search-box-modern input {
    width: 100%;
    padding: 1.4rem 3.5rem 1.4rem 2rem;
    /* Taller */
    border-radius: 16px;
    /* Matching image radius */
    border: 1px solid #cbd5e1;
    /* Slate 300 */
    font-size: 1.05rem;
    font-family: var(--font-primary);
    color: #0f172a;
    background: white;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.search-box-modern input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon-right {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    /* Blue Icon */
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. Region Flag Button */
.region-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0 1.5rem;
    border-radius: 16px;
    /* Match input */
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    color: #3b82f6;
    min-width: 100px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.region-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.flag-icon {
    font-size: 1.6rem;
    line-height: 1;
}

/* Tweak search placeholder color to match image soft gray */
.search-box-modern input::placeholder {
    color: #9ca3af;
    /* Gray 400 */
    opacity: 1;
}


/* --- PIXEL PERFECTION OVERRIDES --- */
.search-group-wrapper {
    gap: 12px !important;
}

.flask-icon-box {
    width: 80px !important;
    height: 80px !important;
    border-radius: 28px !important;
    font-size: 2.5rem !important;
}

.hero-title {
    letter-spacing: -0.04em !important;
}

.search-box-modern input {
    border-radius: 16px !important;
}

.region-btn {
    border-radius: 16px !important;
}


/* --- LIST VIEW FIX (For Classic Card) --- */
.product-grid.layout-list .product-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 1.5rem !important;
    gap: 2rem !important;
}

.product-grid.layout-list .card-header {
    margin-bottom: 0 !important;
    min-width: 280px !important;
    border-bottom: none !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.product-grid.layout-list .vendor-list {
    flex: 1 !important;
    width: 100% !important;
}

.product-grid.layout-list .vendor-item {
    border-bottom: 1px solid #eee !important;
    padding: 0.8rem 0 !important;
}

.product-grid.layout-list .vendor-item:last-child {
    border-bottom: none !important;
}


/* --- ADVANCED FILTER GRID (Screenshot Match) --- */
.adv-filter-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 2rem;
    margin-top: -10px;
    /* Connect to header */
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.filter-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.f-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.f-label ion-icon {
    font-size: 1.1rem;
    color: #64748b;
    /* Default icon color */
}

/* Select Inputs */
.f-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}

.f-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-select-sm {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.sep {
    color: #94a3b8;
}

.price-slider-visual {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    position: relative;
}

.price-slider-visual .fill {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #10b981);
    border-radius: 2px;
}

/* Toggles */
.toggle-group .toggle-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/* --- REFINED PRODUCT CARD (Typography & Alignment) --- */

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    /* Compact padding */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.card-header {
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.product-title ion-icon {
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.2s;
    min-width: 24px;
    /* Prevent icon squeeze */
}

.product-title ion-icon:hover {
    color: #ef4444;
}

.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.variant-pills .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    /* Prevent pill text wrap */
}

.variant-pills .pill:hover {
    border-color: #94a3b8;
    color: #334155;
    background: #f8fafc;
}

.variant-pills .pill.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.variant-pills .pill.gold {
    border-color: #fbbf24;
    color: #b45309;
    background: #fffbeb;
}

/* Prices Toolbar */
.card-prices-toolbar {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-highlight {
    color: #3b82f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.filter-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* Vendor List */
.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vendor-item-detailed {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    /* Adjusted logo width */
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vendor-item-detailed:last-child {
    border-bottom: none;
}

/* Logo Box */
.v-logo-box {
    width: 32px;
    /* Smaller Logo Box */
    height: 32px;
    border: none;
    /* No border for clean look */
    border-radius: 6px;
    padding: 0px;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.v-logo-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.trophy-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    color: #f59e0b;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #fef3c7;
}

/* Vendor Info */
.v-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    /* Important for preventing grid blowout */
}

.v-header {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    /* Prevent vendor name wrap */
    overflow: hidden;
    text-overflow: ellipsis;
}

.v-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* Allow wrap if absolutely needed but try to avoid */
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-weight: 700;
    white-space: nowrap;
}

.stock-status {
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    /* Prevent "In Stock" wrap */
}

.stock-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.coupon-pill-small,
.coupon-tag {
    background: #f3e8ff;
    color: #9333ea;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: 1px solid #e9d5ff;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}

.coupon-pill-small:hover {
    background: #e9d5ff;
}


/* Price & Actions */
.v-pricing-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-stack {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.price-old-row {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.p-final {
    font-size: 1.35rem;
    /* Adjusted for balance */
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-plus {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-plus:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4);
}

.btn-shop-blue {
    background: #2563eb;
    color: #fff;
    padding: 0 16px;
    height: 38px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
    /* Prevent "Shop" button wrap */
}

.btn-shop-blue:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.4);
}


/* Best Value Footer */
.card-footer-best-value {
    margin-top: 1rem;
    background: #fffbeb;
    /* Gold background */
    border-top: 1px solid #fef3c7;
    border-radius: 0 0 16px 16px;
    /* Match card radius */
    padding: 1.25rem 2rem;
    /* Spacious padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -32px -32px -32px;
    /* Pull to edges of card padding (32px) */
}

.best-val-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #78350f;
    font-size: 1rem;
    line-height: 1.2;
}

.trophy-gold {
    color: #d97706;
    font-size: 1.5rem;
}

.best-price-highlight {
    font-size: 1.25rem;
    font-weight: 800;
    color: #d97706;
}

.best-val-details {
    font-size: 0.85rem;
    color: #92400e;
    text-align: right;
    line-height: 1.3;
    font-weight: 500;
}

.btn-view-gold {
    background: #d97706;
    color: white;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3);
}

.btn-view-gold:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(217, 119, 6, 0.4);
}


.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-header {
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    /* Smaller Title */
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-title ion-icon {
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.product-title ion-icon:hover {
    color: #ef4444;
}

.cat-pill {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Prices Toolbar (Matches Reference Light Grey Bar) */
.card-prices-toolbar {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-highlight {
    color: #3b82f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Vendor List */
.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vendor-item-detailed {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 8px 0;
}

/* Logo Box */
.v-logo-box {
    width: 60px;
    height: 60px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
}

.v-logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.trophy-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    color: #f59e0b;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Vendor Info */
.v-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v-header {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.v-icons {
    margin-left: 8px;
    display: flex;
    gap: 4px;
    color: #64748b;
    font-size: 1rem;
}

.v-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-weight: 600;
}

.stock-status {
    color: #10b981;
    /* Green for In Stock */
    font-weight: 500;
}

.v-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

.coupon-pill-small {
    background: #f3e8ff;
    /* Light purple */
    color: #9333ea;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: 1px solid #e9d5ff;
}

/* Price & Actions */
.v-pricing-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.price-stack {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-old-row {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 4px;
}

.p-strike {
    text-decoration: line-through;
}

.p-off {
    color: #ef4444;
    font-weight: 600;
}

.p-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
    /* Green price matches reference */
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-plus {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #10b981;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-plus:hover {
    background: #059669;
}

.btn-shop-blue {
    background: #2563eb;
    color: #fff;
    padding: 0 16px;
    height: 36px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-shop-blue:hover {
    background: #1d4ed8;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .vendor-item-detailed {
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
    }

    .v-pricing-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
        margin-top: 8px;
    }

    .price-stack {
        align-items: flex-start;
        text-align: left;
    }
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* --- CARD & FAVORITES REFINEMENTS --- */

/* Favorite Button */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    transition: transform 0.2s;
    margin-left: 10px;
}

.btn-fav:hover {
    transform: scale(1.1);
}

.btn-fav ion-icon {
    display: block;
}

/* Shop Button - Pill Style */
.btn-shop.btn-shop-pill {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    /* Pill */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-shop.btn-shop-pill:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.5);
}

/* Refine Card Shadow/Rounding */
.product-card {
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    /* slightly more rounded */
    background: #fff;
    overflow: visible;
    /* Let elements pop if needed */
}


/* --- CARD LOGO & SMALL BUTTON --- */

.vendor-logo {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.btn-shop.btn-shop-sm {
    background: #3b82f6;
    color: white;
    padding: 0.35rem 0.85rem;
    /* Smaller padding */
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    /* Smaller Font */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    border: none;
    transition: all 0.2s;
}

.btn-shop.btn-shop-sm:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
}


/* --- DETAILED CARD DESIGN (Ref Match) --- */

.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
    display: flex;
    /* Flex layout for sticky footer */
    flex-direction: column;
}

.card-header {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    /* Tweak padding */
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cat-pill {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: capitalize;
}

/* Prices Toolbar */
.card-prices-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.5rem;
    /* Reduced padding */
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0px;
    /* Zero separation */
    border-radius: 6px;
    border-bottom: none;
    /* Seamless look */
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    gap: 10px;
}

/* Detailed Vendor Row */
/* Vendor Item Layout */
.vendor-item-detailed {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
    height: 52px;
    /* Fixed height for consistency */
}

.v-logo-box {
    width: 50px;
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.v-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trophy-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    color: #f59e0b;
    background: #fff;
    border-radius: 50%;
    font-size: 14px;
}

/* Vendor Info Column (Middle) */
.v-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
    /* Important for truncation */
}

/* HeaderRow: Title + Stars */
.v-header-row {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    margin-bottom: 0px;
    width: 100%;
    min-width: 0;
}

.v-header {
    font-size: 0.75rem;
    /* Reduced */
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 0 1 auto;
    min-width: 0;
    display: block;
    /* Ensure ellipsis works */
}

.star-rating {
    flex-shrink: 0;
    white-space: nowrap !important;
    display: flex;
    align-items: center;
}

/* Multi-Line Vendor Info (Ref Match) */
.v-info-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* Line 1: Name + Badges */
.v-line-1 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1px;
}

.vendor-name-bold {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-syringe {
    background: #f1f5f9;
    color: #64748b;
    /* Muted color */
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
}

.icon-warning {
    color: #f59e0b;
    font-size: 0.8rem;
}

/* Line 2: Stars + Stock */
.v-line-2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.star-text {
    color: #64748b;
    font-weight: 400;
    margin-left: 2px;
}

.dot-separator {
    color: #cbd5e1;
    font-size: 0.5rem;
}

.text-green {
    color: #10b981;
    font-weight: 600;
}

/* Line 3: Coupon + Flag */
.v-line-3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.coupon-pill-purple {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
    /* Subtle border */
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    cursor: pointer;
}

.icon-flag {
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Best Value Footer (Bottom of Card) */
.bv-footer-simple {
    margin-top: auto;
    /* Push to bottom */
    border-top: 1px solid #f1f5f9;
    padding: 10px 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0 0 20px 20px;
    /* Rounded bottom corners match card */
}

.bv-simple-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.icon-trophy-gold {
    color: #d97706;
    /* Gold color */
    font-size: 1rem;
}

.bv-simple-right {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-gold {
    color: #d97706;
    font-weight: 700;
    font-size: 0.9rem;
}

.weight-muted {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Right Side Pricing */
/* Price & Actions (Right) */
.v-pricing-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    margin-right: 4px;
}

.price-row-top {
    display: flex;
    gap: 4px;
    font-size: 0.7rem;
}

.p-strike {
    text-decoration: line-through;
    color: #94a3b8;
}

.p-off {
    color: #f97316;
    font-weight: 700;
}

.p-final {
    font-size: 1.1rem;
    /* Larger Green Price */
    font-weight: 800;
    color: #10b981;
    margin-top: -2px;
}

.p-per-mg {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: -2px;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.btn-plus {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-shop-blue {
    height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
    gap: 4px;
}

/* --- VARIANTS & FOOTER (New Requirement) --- */

.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
    /* Reduced bottom margin */
}

.variant-pills .pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    /* Slimmer */
    border-radius: 6px;
    font-size: 0.75rem;
    /* Smaller pill text */
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.variant-pills .pill:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.variant-pills .pill.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.variant-pills .pill.gold {
    border-color: #fbbf24;
    color: #d97706;
    background: #fffbeb;
}

.card-footer-best-value {
    margin-top: auto;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    background: #fffbeb;
    /* Light yellow bg for whole footer matching mock */
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -24px -24px -24px;
}

.best-val-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.trophy-gold {
    color: #d97706;
    font-size: 1.2rem;
}

.best-price-highlight {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d97706;
}

.best-val-details {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    line-height: 1.3;
}

.btn-view-gold {
    background: #d97706;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-gold:hover {
    background: #b45309;
}


/* --- 3-COLUMN LAYOUT (User Request: "3 in rows") --- */

/* Responsive Grid for 3 Columns on Large Screens */
@media (min-width: 1280px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
        /* Comfortable gap for 3 columns */
    }
}

/* 2 Columns on Tablet */
@media (min-width: 768px) and (max-width: 1279px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 Column on Mobile */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- FINAL REFERENCE MATCH --- */

/* 1. Multi-Line Vendor Info Container */
.v-info-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* Line 1: Name + Badges */
.v-line-1 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.vendor-name-bold {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-syringe {
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.icon-warning {
    color: #f59e0b;
    font-size: 0.9rem;
}

/* Line 2: Stars + Stock */
.v-line-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.star-text {
    color: #64748b;
    font-weight: 400;
    margin-left: 2px;
}

.dot-separator {
    color: #cbd5e1;
    font-size: 0.6rem;
}

.text-green {
    color: #10b981;
    font-weight: 600;
}

/* Line 3: Coupon + Flag */
.v-line-3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
}

.coupon-pill-purple {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    cursor: pointer;
}

.icon-flag {
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Right Side: Price Stack Override */
.p-final {
    font-size: 1.2rem !important;
    /* Larger Green Price */
    color: #10b981 !important;
    font-weight: 800 !important;
}

/* Simple Footer (Bottom of Card) */
.bv-footer-simple {
    margin-top: auto;
    /* Push to bottom */
    border-top: 1px solid #f1f5f9;
    padding: 12px 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.bv-simple-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.icon-trophy-gold {
    color: #d97706;
    font-size: 1.1rem;
}

.bv-simple-right {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-gold {
    color: #d97706;
    font-weight: 700;
    font-size: 1rem;
}

.weight-muted {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Button Fixes */
.btn-green-plus {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #10b981;
    color: white;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-green-plus:hover {
    background: #059669;
}

.btn-shop-blue-new {
    background: #2563eb;
    color: white;
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-shop-blue-new:hover {
    background: #1d4ed8;
}

/* --- USER PROVIDED REFERENCE CARD DESIGN (REFINED & COMPACT) --- */

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 12px 16px;
    /* Reduced from 20px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.heart-icon {
    color: #9ca3af;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.options-section {
    padding: 0 16px;
    /* Reduced padding */
    margin-bottom: 8px;
    /* Reduced bottom margin */
}

.option-group {
    display: flex;
    gap: 8px;
    /* Reduced gap */
    margin-bottom: 0;
}

.option-button {
    padding: 6px 12px;
    /* Thinner buttons */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
    /* 13px */
    color: #374151;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.option-button.selected {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.option-button.highlighted {
    border-color: #fbbf24;
    color: #d97706;
    /* Darker gold for text */
    position: relative;
    background-color: #fffbeb;
}

.option-button.highlighted::after {
    content: ' *';
    color: #d97706;
}

.filter-section {
    padding: 8px 16px;
    /* Compacted */
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background-color: #fafafa;
    /* Slight bg distinction */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8125rem;
}

.filter-tags {
    display: flex;
    gap: 12px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
}

.filter-tag.discounted {
    color: #2563eb;
    font-weight: 600;
}

.filter-tag.testing {
    color: #10b981;
}

.filter-tag svg {
    width: 14px;
    height: 14px;
}

.product-item {
    padding: 12px 16px;
    /* Reduced padding */
    display: flex;
    gap: 12px;
    /* Reduced gap */
    border-bottom: 1px solid #f1f5f9;
}

.product-logo {
    width: 48px;
    /* Smaller Logo Box */
    height: 48px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.product-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.trophy-icon {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #fbbf24;
    border-radius: 50%;
    padding: 3px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trophy-icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

.product-details {
    flex-grow: 1;
    min-width: 0;
    /* Text truncation fix */
}

.product-name {
    font-size: 0.9375rem;
    /* 15px */
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testing-score {
    background-color: #ecfdf5;
    color: #047857;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.product-meta {
    font-size: 0.75rem;
    /* 12px */
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-star {
    color: #fbbf24;
    width: 14px;
    height: 14px;
}

.in-stock {
    color: #10b981;
    font-weight: 500;
}

.coupon-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f3e8ff;
    color: #9333ea;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid #e9d5ff;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.original-price {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-percentage {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.75rem;
    margin-left: 4px;
}

.current-price {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 700;
    color: #111827;
    /* Dark text for contrast */
    line-height: 1.2;
}

.price-per-mg {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.product-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.add-button {
    background-color: #10b981;
    color: #fff;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.add-button svg {
    width: 18px;
    height: 18px;
}

.add-button:hover {
    background-color: #059669;
}

.shop-button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 0 12px;
    height: 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.shop-button svg {
    width: 16px;
    height: 16px;
}

.shop-button:hover {
    background-color: #1d4ed8;
}

.best-value-banner {
    background-color: #fffbeb;
    padding: 8px 16px;
    /* Compacted */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #fef3c7;
}

.best-value-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.best-value-trophy {
    color: #d97706;
    /* Darker gold */
    width: 18px;
    height: 18px;
}

.best-value-label {
    font-weight: 700;
    color: #451a03;
    font-size: 0.875rem;
}

.best-value-price {
    font-size: 1rem;
    font-weight: 800;
    color: #d97706;
}

.best-value-meta {
    font-size: 0.75rem;
    color: #78350f;
    margin-left: 4px;
    font-weight: 500;
}

.view-button {
    background-color: #ca8a04;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.view-button:hover {
    background-color: #a16207;
}

/* --- PROMO BANNER (CHRISTMAS) --- */
.promo-banner-gradient {
    /* Gradient: Red -> Green -> Red */
    background: linear-gradient(90deg, #dc2626 0%, #16a34a 30%, #16a34a 70%, #dc2626 100%);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    justify-content: center;
}

.promo-logo-box {
    background: white;
    padding: 4px;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-logo-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.promo-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.promo-headline {
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 4px;
}

.promo-arrow-left,
.promo-arrow-right {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.promo-arrow-left:hover,
.promo-arrow-right:hover {
    opacity: 1;
}

.star-icon {
    color: #fbbf24;
    font-size: 1.2rem;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.tree-icon,
.gift-icon {
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .promo-banner-gradient {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .promo-content {
        flex-direction: column;
        gap: 8px;
    }

    .star-icon {
        display: none;
    }

    .promo-arrow-left,
    .promo-arrow-right {
        display: none;
    }
}

/* --- PROMO SLIDER --- */
.promo-slider-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.promo-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.promo-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.promo-slide {
    min-width: 100%;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-sizing: border-box;
}

/* Reusing inner content styles from previous step, ensure flex behavior */
.promo-slide .promo-content {
    width: 100%;
    justify-content: center;
}

/* Arrows positioned absolute over the slider */
.promo-arrow-left,
.promo-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-arrow-left {
    left: 10px;
}

.promo-arrow-right {
    right: 10px;
}

.promo-arrow-left:hover,
.promo-arrow-right:hover {
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

/* --- LIST VIEW LAYOUT (Refined) --- */
.product-grid.layout-list {
    grid-template-columns: 1fr !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
}

.product-grid.layout-list .product-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem 2rem;
    gap: 0;
}

/* 1. Header & Heart: Top Left */
.product-grid.layout-list .card-header {
    width: auto;
    margin-bottom: 0.5rem;
    margin-right: auto;
    /* Push other top elements right */
    border-bottom: none;
    padding-bottom: 0;
}

/* 2. Options: Top Right */
.product-grid.layout-list .options-section {
    width: auto;
    margin-bottom: 0.5rem;
}

/* 3. Filter Bar: New Row, clearly separated */
.product-grid.layout-list .filter-section {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* 4. Vendor Items: Stacked Rows */
.product-grid.layout-list .product-item {
    width: 100%;
    margin-bottom: 0;
    padding: 1rem 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.product-grid.layout-list .product-item:last-of-type {
    border-bottom: none;
}

/* 5. Best Value: Bottom */
.product-grid.layout-list .best-value-banner {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 12px;
}

/* --- Retailer Reviews & Analytics (Reference Style) --- */

.reviews-tabs-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.reviews-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    gap: 1px;
}

.review-tab-btn {
    flex: 1;
    padding: 1rem;
    background: #f9fafb;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.review-tab-btn ion-icon {
    font-size: 1.1rem;
}

.review-tab-btn:hover {
    background: #f3f4f6;
    color: var(--text-dark);
}

.review-tab-btn.active {
    background: #fff;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.review-tab-content {
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-header-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tab-header-box .th-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.tab-header-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.tab-header-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Company Summary Grid */
.retailer-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.retailer-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.retailer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Rank #1 Style */
.retailer-card.rank-1 {
    background: #fffbeb;
    /* Light yellow */
    border: 1px solid #fcd34d;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rc-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.rc-rank {
    background: #fbbf24;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rc-rank-text {
    color: var(--text-muted);
    font-weight: 600;
}

.rc-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.rc-stars {
    color: #3b82f6;
    /* Blue stars */
    display: flex;
    gap: 2px;
}

.rc-score {
    font-weight: 800;
    font-size: 1.2rem;
    color: #22c55e;
    /* Green score */
}

.rc-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.rc-stat {
    background: #fff;
    padding: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.retailer-card.rank-1 .rc-stat {
    background: #ffffff;
    /* Or stay white on yellow bg */
}

.rc-stat strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.rc-stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rc-badge.gold {
    background: #fef3c7;
    color: #92400e;
}

.rc-verified {
    font-size: 0.85rem;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Category Winners Grid */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-column {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.cat-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.winner-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.winner-card:last-child {
    border-bottom: none;
}

.winner-card.gold {
    background: #fffbeb;
}

.winner-card.gold .wc-trophy {
    color: #f59e0b;
}

.winner-card.silver {
    background: #f8fafc;
}

.winner-card.silver .wc-trophy {
    color: #94a3b8;
}

.wc-trophy {
    font-size: 1.5rem;
}

.wc-content {
    flex: 1;
}

.wc-content h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-dark);
}

.wc-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #eab308;
    margin-bottom: 0.25rem;
}

.wc-stars span {
    color: var(--text-dark);
    font-weight: 700;
    margin-left: 4px;
}

.wc-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wc-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    color: #78350f;
    align-self: flex-start;
}

.winner-card.silver .wc-badge {
    color: #475569;
}

/* --- Calculator Replica Styles --- */
.calculator-page-wrapper {
    background: #ffffff;
    /* Page seems white/very light in screenshot */
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* 1. Header & Process Steps */
.calc-header-section {
    padding: 3rem 0;
}

.calc-top-icon {
    background: #dbeafe;
    /* Light blue circle */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.8rem;
}

.main-calc-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.calc-subtitle {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.process-steps-box {
    background: #f0f9ff;
    /* Light blue box bg */
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-top: 3rem;
    padding: 2rem;
    position: relative;
}

.process-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 2rem;
}

.steps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blue-circle {
    background: #3b82f6;
}

.green-circle {
    background: #22c55e;
}

.purple-circle {
    background: #a855f7;
}

.orange-circle {
    background: #f97316;
}

.step-label {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.3;
    font-weight: 600;
}

.step-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-top: -30px;
}

/* 2. Quick Start Templates */
.quick-start-section {
    margin-bottom: 3rem;
}

.qs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.qs-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.2s;
}

.qs-card:hover {
    border-color: #3b82f6;
    cursor: pointer;
}

.qs-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.pill-icon {
    background: #fee2e2;
    color: #ef4444;
}

.dna-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.blue-syringe {
    background: #eff6ff;
    color: #2563eb;
}

.star-icon {
    background: #fff7ed;
    /* Orange/Yellow tint */
    color: #ea580c;
}

.blend-icon {
    background: #fdf4ff;
    color: #c026d3;
}

.qs-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.qs-card p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.orb-separator {
    text-align: center;
    margin: 1.5rem 0;
}

.start-scratch {
    color: #6b7280;
    text-decoration: underline;
    font-size: 0.9rem;
}

.calc-accordion {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    flex-wrap: wrap;
}

.green-acc {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    font-weight: 600;
}

.white-acc {
    background: white;
    border: 1px solid #e5e7eb;
    display: block;
}

.guide-link {
    color: #22c55e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

/* 3. Main Split */
.calc-main-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.calc-left-visuals,
.calc-right-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Left Visuals */
.calc-left-visuals {
    flex: 0 0 350px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border: 1px solid #f3f4f6;
}

.visual-block {
    text-align: center;
    width: 100%;
}

.vb-img {
    width: 80px;
    height: 100px;
    margin: 0 auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.blue-flask-bg {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
    width: 70px;
    height: 90px;
}

.pink-canister-bg {
    background: linear-gradient(135deg, #f9a8d4 0%, #ec4899 100%);
    width: 70px;
    height: 90px;
}

.syringe-row-img {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
}

.syr-icon {
    background: #fb923c;
    border-radius: 4px;
    width: 12px;
}

.syr-small {
    height: 30px;
}

.syr-med {
    height: 45px;
}

.syr-large {
    height: 60px;
}

.vb-arrow-down {
    color: #ef4444;
    margin: 10px 0;
    font-size: 1.2rem;
}

.vb-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

/* Right Form */
.calc-right-form {
    flex: 1;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.autofill-header {
    background: #f1f5f9;
    padding: 1rem 2rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.real-calc-form {
    padding: 2rem;
}

.form-row-group {
    margin-bottom: 1.5rem;
}

.form-row-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dual-inputs {
    display: flex;
    gap: 1rem;
}

.input-main {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.input-opt {
    flex: 1.5;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.add-peptide-link {
    color: #3b82f6;
    font-size: 0.85rem;
    margin-top: 5px;
    cursor: pointer;
    border: 1px dashed #bfdbfe;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
}

.input-full {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.dose-input-group {
    display: flex;
    position: relative;
}

.input-dose {
    width: 100%;
    padding: 0.8rem;
    padding-right: 4rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.unit-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 1rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}

.select-full {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
}

.cycle-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    font-weight: 500;
}

.btn-calculate-red {
    width: 100%;
    background: #dc2626;
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-calculate-red:hover {
    background: #b91c1c;
}

/* 4. Footer Note */
.note-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #475569;
}

.note-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.red-warning {
    color: #dc2626;
    font-weight: 600;
    margin-top: 1rem;
}

/* Modal */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

.modal-header-res h1 {
    font-size: 4rem;
    color: #3b82f6;
    margin: 0;
}

.modal-stats {
    text-align: left;
    margin-top: 2rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
}

@media(max-width: 900px) {
    .calc-main-split {
        flex-direction: column;
    }

    .calc-left-visuals {
        width: 100%;
        flex: auto;
        flex-direction: row;
        justify-content: space-around;
    }
}

@media(max-width: 600px) {
    .calc-left-visuals {
        flex-direction: column;
    }

    .steps-row {
        flex-wrap: wrap;
    }
}

.calc-hero h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.calc-grid-clean {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Info smaller, Form wider */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

/* Left Info Box */
.calc-info-box {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e5e7eb;
}

.info-item h3 {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.info-item p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.info-icon {
    display: none;
    /* Reference is cleaner without big icons */
}

/* Right Form Box */
.calc-form-box {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    /* Stronger shadow */
    border: 1px solid #f3f4f6;
}

.calc-header-clean h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 2rem;
    font-weight: 800;
}

.calc-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper input,
.full-select {
    border-color: #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #111827;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    ring: 2px solid #eff6ff;
}

/* Inline Results */
.result-display-inline {
    background: #eff6ff;
    /* Light blue result bg */
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #dbeafe;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.res-big-label {
    display: block;
    font-size: 0.9rem;
    color: #1e3a8a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.res-big-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.res-big-unit {
    font-size: 1rem;
    color: #60a5fa;
    font-weight: 600;
}

.res-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bfdbfe;
    font-size: 0.9rem;
    color: #1e40af;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Stack */
@media (max-width: 768px) {
    .calc-grid-clean {
        grid-template-columns: 1fr;
    }
}

/* --- Sales Page Styles --- */
.sales-hero {
    padding: 3rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sh-content {
    max-width: 800px;
    margin: 0 auto;
}

.sh-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    /* Purple/Pink gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.sh-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.sh-stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sh-badge {
    background: #9333ea;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.sh-badge-outline {
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Calendar Mock */
.sales-calendar-mock {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Force Center */
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    width: 100%;
}

.sh-stats-row {
    display: flex;
    justify-content: center;
    /* Force Center */
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.cal-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    min-width: 140px;
    text-align: left;
}

.cal-item.active {
    border-color: #a855f7;
    background: #f3e8ff;
}

.cal-day {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.cal-deal {
    display: block;
    font-weight: 700;
    color: #1e293b;
}

/* Sales Feed */
.sales-feed-section {
    padding: 3rem 0;
    background: #f1f5f9;
    /* Light bg for feed */
}

/* Sale Card */
.sale-card {
    background: #111827;
    /* Dark bg */
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #1f2937;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.sc-brand {
    display: flex;
    gap: 1rem;
}

.sc-logo {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-logo img {
    max-width: 100%;
    max-height: 100%;
}

.sc-meta h3 {
    font-size: 1.1rem;
    margin: 0 0 0.2rem 0;
    color: white;
    font-weight: 700;
}

.badge-stackable {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.sc-verified {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.sc-verified ion-icon {
    color: #22c55e;
}

.sc-discount-badge {
    background: #ef4444;
    /* Red discount */
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    transform: rotate(2deg);
}

.sc-deal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.sc-deal-desc {
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Coupon Row */
.coupon-row {
    background: #1f2937;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border: 1px solid #374151;
}

.cp-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cp-label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.cp-code {
    font-family: monospace;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-copy {
    background: transparent;
    color: #a855f7;
    border: 1px solid #a855f7;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-copy:hover {
    background: #a855f7;
    color: white;
}

.sc-perks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sc-perks li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d1d5db;
    font-size: 0.9rem;
}

.sc-perks ion-icon {
    color: #fbbf24;
}

.btn-shop-sale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1rem;
    background: #9333ea;
    /* Purple main */
    color: white;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-shop-sale:hover {
    background: #7e22ce;
    color: white;
}

/* --- Mobile Responsiveness Fixes --- */
@media (max-width: 768px) {

    /* Hero Typography Sizing */
    .hero-title {
        font-size: 2.25rem !important;
        /* Scale down from 4.5rem/72px */
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .hero-description {
        font-size: 0.8rem;
        padding: 0 1.5rem;
    }

    /* Hero Search Pill */
    .search-hero-pill {
        flex-direction: row;
        /* Keep icon inside */
        margin: 0 1rem 1.5rem 1rem;
        padding: 0.6rem 1rem;
    }

    .search-hero-pill input {
        width: 100%;
        min-width: 0;
        /* Prevents overflow */
    }

    /* Hero Action Buttons */
    .hero-actions-row {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .btn-hero-action {
        flex: 1 1 calc(50% - 0.5rem);
        /* 2 columns */
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }

    /* Reviews Section Controls */
    .review-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        overflow-x: hidden;
    }

    .rcb-search {
        width: 100%;
    }

    /* Filter Bar Scroll (Review Tabs) */
    .reviews-tabs {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .review-tab-btn {
        flex: 0 0 auto;
    }

    /* Filters inside Reviews */
    .reviews-layout-split {
        flex-direction: column;
    }

    .reviews-sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Footer - Single Column */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col-brand p {
        margin: 0 auto 1.5rem auto;
    }

    /* Sort Group Horizontal Scroll (The User's Request) */
    .controls-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .sort-group {
        display: flex;
        /* Ensure flex */
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
    }

    .sort-group::-webkit-scrollbar {
        display: none;
    }

    .sort-btn {
        flex: 0 0 auto;
        /* Don't shrink */
    }

    .view-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Force Sales Hero Text Centering */
.sh-content {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sh-title,
.sh-subtitle {
    text-align: center !important;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Dark Theme Sales Event Cards --- */
.evt-card {
    background: #0f172a;
    /* Slate 900 - Dark Blue */
    border-radius: 16px;
    border: 1px solid #1e293b;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.evt-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Header */
.evt-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.evt-brand-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.evt-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.evt-logo img {
    max-width: 80%;
    max-height: 80%;
}

.evt-initial {
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: 700;
}

.evt-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evt-vendor-name {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.evt-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evt-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 4px;
}

.evt-tag-discount {
    background: rgba(139, 92, 246, 0.15);
    /* Purple tint */
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.evt-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
}

.evt-card.expanded .evt-toggle-btn {
    background: #334155;
    color: #fff;
    transform: rotate(180deg);
}

/* Body (Collapsible) */
.evt-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #151e32;
    /* Slightly lighter than header */
    border-top: 1px solid #1e293b;
}

.evt-card.expanded .evt-body {
    max-height: 600px;
    /* Arbitrary large height */
    padding: 1.5rem;
}

.evt-dates {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.evt-desc {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.evt-section-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evt-coupon-box {
    background: #0f172a;
    border: 1px dashed #475569;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-txt {
    color: #a78bfa;
    /* Light purple */
}

.ec-btn-copy {
    background: #7c3aed;
    /* Violet 600 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.ec-btn-copy:hover {
    background: #6d28d9;
}

.btn-evt-shop {
    display: flex;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    color: white;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-evt-shop:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.3);
}

.evt-card {
    position: relative;
}

/* Force Calculator Text Centering (Global) */
.calc-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
}

.main-calc-title,
.calc-subtitle {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: block;
}

.process-steps-box {
    margin-left: auto;
    margin-right: auto;
}

/* Loader Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin-loader {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* --- Minimal Card & Grid Styles (Restored) --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.product-card.minimal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card.minimal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.category-pill {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.vendor-list-clean {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vendor-row-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 0.75rem;
    border-radius: 10px;
}

.v-info-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vendor-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    /* Changed to contain to show full logo */
    border: 1px solid #f1f5f9;
    background: #fff;
}

.v-name-bold {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.v-unit {
    color: #94a3b8;
    font-size: 0.8rem;
}

.v-price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.price-big {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.best-val-tag {
    font-size: 0.65rem;
    color: #ea580c;
    border: 1px solid #ea580c;
    background: #fff7ed;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 700;
    margin: 2px 0;
    text-transform: uppercase;
}

.ppm-text {
    font-size: 0.75rem;
    color: #64748b;
}

.ppm-text.orange-text {
    color: #ea580c;
    font-weight: 600;
}

.v-action-col {
    margin-left: 0.5rem;
}

.btn-shop-clean {
    background: #3b82f6;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: inline-block;
}

.btn-shop-clean:hover {
    background: #2563eb;
    color: white;
}

.coupon-pill-small {
    background: #f3e8ff;
    color: #9333ea;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px dashed #d8b4fe;
    cursor: pointer;
    display: inline-block;
    margin-top: 2px;
}

/* Make sure container is responsive */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .vendor-row-clean {
        flex-wrap: wrap;
        gap: 10px;
    }

    .v-action-col {
        width: 100%;
    }

    .btn-shop-clean {
        width: 100%;
        text-align: center;
    }
}
/* REVIEWS PAGE STYLES (Synced) */
.reviews-page-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 4rem;
    font-family: 'Inter', sans-serif;
}
.rp-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}
.rp-icon-box {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}
.rp-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}
.rp-subtitle {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.rp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.rp-main-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 600px;
}
.rp-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    padding: 0 1.5rem;
    gap: 2rem;
    flex-wrap: wrap; 
}
.rp-tab {
    background: none;
    border: none;
    padding: 1.25rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.rp-tab:hover {
    color: #334155;
}
.rp-tab.active {
    color: #2563eb;
    font-weight: 600;
}
.rp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}
.rp-filter-bar {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}
.rp-filter-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}
.rp-filter-title ion-icon {
    color: #8b5cf6;
}
.rp-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: end;
}
@media (max-width: 768px) {
    .rp-filter-grid { grid-template-columns: 1fr; }
}
.rp-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.rp-select-wrapper {
    position: relative;
}
.rp-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    appearance: none;
    background: white;
    cursor: pointer;
}
.rp-select:focus {
    outline: 2px solid #2563eb;
    border-color: #2563eb;
}
.rp-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
}
.rp-checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}
.rp-checkbox-group label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}
.rp-content-area {
    padding: 2rem;
    background: #fff;
}
.review-card {
    border: 1px solid #f1f5f9;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s;
}
.review-card:hover { border-color: #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

