:root {
    --primary-red: #d12428;
    --primary-green: #95ca31;
    --bg-cream: #fdfcf8;
    --text-charcoal: #2d3436;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--primary-red);
}

.btn-success {
    background-color: var(--primary-green);
}

.btn-primary:hover,
.btn-success:hover {
    opacity: 0.9;
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

.condition-tag {
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.condition-tag.active {
    background-color: var(--primary-green) !important;
    color: white !important;
}

.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(209, 36, 40, 0.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
/* Article Rich Content Styling */
.article-content {
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--text-charcoal);
}

.article-content h1 { font-size: 2em; }
.article-content h2 { font-size: 1.75em; }
.article-content h3 { font-size: 1.5em; }
.article-content h4 { font-size: 1.25em; }

.article-content p {
    margin-bottom: 1.25em;
}

.article-content strong {
    font-weight: 700;
    color: var(--text-charcoal);
}

.article-content em {
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.25em;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content a {
    color: var(--primary-red);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.article-content a:hover {
    opacity: 0.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 4px;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

.article-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
}