/**
 * CMS Source - Main Content Layout
 * @version 1.0.0
 */

/* =========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================= */
#main-content {
    min-height: calc(100vh - var(--header-height) - var(--footer-min-height));
    padding-top: 0px;
    padding-bottom: var(--spacing-12);
}

/* =========================================================================
   PAGE LAYOUTS
   ========================================================================= */
.page-layout {
    display: grid;
    gap: var(--spacing-8);
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.page-layout--with-sidebar {
    grid-template-columns: 1fr 300px;
}

.page-layout--sidebar-left {
    grid-template-columns: 260px 1fr;
}

@media (max-width: 1024px) {
    .page-layout--with-sidebar,
    .page-layout--sidebar-left {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   PAGE HEADER (Gradient Banner Style)
   ========================================================================= */
.page-header {
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #FFD570 0%, #ffd85f 100%);
    width: 100%;
}

.page-header .container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.page-header .page-title {
    font-size: var(--section-title-font-size, 2.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    /* Bryndan Write par défaut ; admin peut override via --section-title-font-family.
       text-shadow NON override ici → reset.css (h1,h2) applique le 4-corner stroke + drop shadow
       via les tokens --heading-stroke / --heading-drop-shadow définis par section sur .page-header.
       -webkit-text-stroke reste "unset" par défaut (Bryndan fusionne les traits de plume avec
       un stroke natif) ; admin peut le forcer pour les polices sans-serif via --section-title-stroke. */
    font-family: var(--section-title-font-family, var(--font-family-heading));
    -webkit-text-stroke: var(--section-title-stroke, unset);
    color: var(--section-title-color, var(--section-header-text, inherit));
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
}

.page-description {
    color: var(--text-secondary);
    max-width: 65ch;
    line-height: var(--line-height-relaxed);
    text-align: center;
    margin: 0 auto;
}

.page-header .page-description {
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Page header icon (global) */
.page-header .header-icon {
    margin-bottom: 0.75rem;
    opacity: 0.9;
    font-size: 2.75rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

/* Page header action buttons */
.page-header .header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Page headers with gradient backgrounds (colored banners) */
.financement-header,
.soutenir-header,
.adhesion-header,
.don-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
}

.events-header {
    background: var(--section-header-bg, linear-gradient(135deg, #6a0572 0%, #8b0e9e 50%, #720880 100%));
    color: white;
}

.discussions-header {
    background: var(--section-header-bg, linear-gradient(135deg, #5e7a57 0%, #A8BBA3 50%, #4d6b46 100%));
    color: white;
}

.shop-header,
.posts-header-banner {
    background: var(--section-header-bg, linear-gradient(135deg, #A8BBA3 0%, #c4d4c0 50%, #8fa889 100%));
    color: white;
}

.marche-header {
    background: var(--section-header-bg, linear-gradient(135deg, #8ec5d6 0%, #A3E4F9 50%, #7bb8ca 100%));
    color: white;
}

.publier-header {
    background: linear-gradient(135deg, #7a9975 0%, #A8BBA3 50%, #6b8c65 100%);
    color: white;
}

.members-header {
    background: var(--section-header-bg, linear-gradient(135deg, #e8942e 0%, #ffd963 50%, #d48820 100%));
    color: white;
}

.resources-header {
    background: linear-gradient(135deg, #6b8f65 0%, #A8BBA3 50%, #5e7a57 100%);
    color: white;
}

.wiki-header {
    background: var(--section-header-bg, linear-gradient(135deg, #5e7a57 0%, #A8BBA3 50%, #4a6a43 100%));
    color: white;
}

/* =========================================================================
   TITRES DE SECTION — couleur interne nuancée + trait blanc hérité
   Chaque section définit un --heading-color distinct du blanc pur pour
   que le trait blanc du h1 (4 text-shadow d'1px, cf. reset.css) reste
   visible à l'intérieur du glyphe. Sans override, reset.css applique
   var(--heading-color) = primary-darker (vert sombre) qui fonctionne
   sur fond clair mais pas sur gradient coloré. Ici on pousse un crème
   chaud (groupe sage), un jaune proche (groupe orange events) ou un
   sand-cream (groupe terracotta/secondary) pour garder la lisibilité
   tout en rappelant la palette du fond.
   ========================================================================= */

/* Fond sage/vert primaire → crème chaud */
.discussions-header,
.shop-header,
.posts-header-banner,
.publier-header,
.resources-header,
.wiki-header,
.feed-header,
.marketplace-header,
.crowdfunding-header {
    --heading-color: #FFF2C5;
    --heading-stroke: rgba(255, 255, 255, 0.95);
    --heading-drop-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Fond orange-gold (community + members) → crème doux */
.community-header,
.members-header {
    --heading-color: #FFF8E0;
    --heading-stroke: rgba(255, 255, 255, 0.95);
    --heading-drop-shadow: 0 3px 10px rgba(156, 74, 0, 0.35);
}

/* Fond violet vif (events) → lime-jaune pâle */
.events-header {
    --heading-color: #E6F5A8;
    --heading-stroke: rgba(255, 255, 255, 0.95);
    --heading-drop-shadow: 0 3px 10px rgba(58, 3, 64, 0.4);
}

/* Fond bleu pastel (marche) → crème chaud + stroke bleu pour contraste */
.marche-header {
    --heading-color: #FFE4A3;
    --heading-stroke: rgba(7, 94, 145, 0.85);
    --heading-drop-shadow: 0 3px 10px rgba(7, 94, 145, 0.3);
}

/* Fond terracotta/secondaire (dons, adhésion, financement) → sand-cream */
.financement-header,
.soutenir-header,
.adhesion-header,
.don-header {
    --heading-color: #FFE9C7;
    --heading-stroke: rgba(255, 255, 255, 0.95);
    --heading-drop-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Couleur de titre personnalisée par section — chaque page header reçoit
   sa propre teinte accordée à son fond spécifique. L'admin peut toujours
   override via --section-title-color (settings site). Le trait blanc du h1
   (4 text-shadow d'1px, cf. reset.css) reste visible grâce à ces teintes
   chaudes qui évitent le blanc pur. */

/* Groupe terracotta (fond #B87C4C → #8b5a2e) — cream/miel chauds */
.financement-header .page-title {
    color: var(--section-title-color, #76BA3E);
}
.soutenir-header .page-title {
    color: var(--section-title-color, #FFE2A8);
}
.adhesion-header .page-title {
    color: var(--section-title-color, #FFDCAB);
}
.don-header .page-title {
    color: var(--section-title-color, #FFEBC2);
}

/* Violet vif (fond #780782 → #9110a4) — lime stimulant */
.events-header .page-title {
    color: var(--section-title-color, #A0C51C);
}

/* Groupe sage vert (fond #A8BBA3 → #5e7a57) — teintes cream/doré variées */
.discussions-header .page-title {
    color: var(--section-title-color, #FFE8B8);
}
.shop-header .page-title {
    color: var(--section-title-color, #FFE3A0);
}
.posts-header-banner .page-title {
    color: var(--section-title-color, #937637);
}
.marche-header .page-title {
    color: var(--section-title-color, #FFBA22);
}
.publier-header .page-title {
    color: var(--section-title-color, #FFE5A8);
}
.panier-header .page-title {
    color: var(--section-title-color, #FFE89C);
}
.members-header .page-title {
    color: var(--section-title-color, #FFA026);
}
.resources-header .page-title {
    color: var(--section-title-color, #8f7564);
}
.wiki-header .page-title {
    color: var(--section-title-color, #AF9047);
}
.feed-header .page-title {
    color: var(--section-title-color, #FFE8B0);
}
.community-header .page-title {
    color: var(--section-title-color, #FFA026);
}
.marketplace-header .page-title {
    color: var(--section-title-color, #FFE3A0);
}

/* Crowdfunding header — fond vert #8fb83e→#9bc54a, titre orange */
.crowdfunding-header .page-title {
    color: var(--section-title-color, #ff9321);
}

/* Section-specific text color overrides from admin settings */
.posts-header-banner,
.marketplace-header,
.events-header,
.community-header,
.discussions-header,
.crowdfunding-header,
.feed-header,
.members-header,
.marche-header,
.wiki-header {
    color: var(--section-header-text, white);
}

/* Description uniforme sur tous les headers de section (blanc 500 20px + padding top)
   + text-shadow savamment dosée par famille chromatique pour la visibilité */
.financement-header .page-description,
.soutenir-header .page-description,
.adhesion-header .page-description,
.don-header .page-description,
.events-header .page-description,
.discussions-header .page-description,
.shop-header .page-description,
.posts-header-banner .page-description,
.marche-header .page-description,
.publier-header .page-description,
.panier-header .page-description,
.members-header .page-description,
.resources-header .page-description,
.wiki-header .page-description,
.feed-header .page-description,
.community-header .page-description,
.marketplace-header .page-description,
.crowdfunding-header .page-description {
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    padding: 10px 0 0 0;
}

/* Text-shadow ajustée à chaque famille chromatique */
.financement-header .page-description,
.soutenir-header .page-description,
.adhesion-header .page-description,
.don-header .page-description {
    text-shadow: #8b4516 1px 0 10px;
}

.events-header .page-description {
    text-shadow: #3a0340 1px 0 10px;
}

.discussions-header .page-description,
.shop-header .page-description,
.posts-header-banner .page-description,
.publier-header .page-description,
.panier-header .page-description,
.resources-header .page-description,
.wiki-header .page-description,
.feed-header .page-description,
.marketplace-header .page-description {
    text-shadow: #3d5a38 1px 0 10px;
}

.community-header .page-description,
.members-header .page-description {
    text-shadow: #9c4a00 1px 0 10px;
}

.marche-header .page-description {
    text-shadow: #075e91 1px 0 10px;
}

.crowdfunding-header .page-description {
    text-shadow: #3d6b12 1px 0 10px;
}

/* Common header button styles */
.page-header .btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.page-header .btn-outline-light:hover {
    background: white;
    color: #059669;
}

.page-header .btn-light {
    background: white;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
    padding: var(--spacing-12) 0;
}

.section--bg {
    background: var(--bg-primary);
}

.section--alt {
    background: var(--bg-tertiary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-10);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-3);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto;
}

/* =========================================================================
   CONTENT AREA
   ========================================================================= */
.content-area {
    min-width: 0; /* Fix pour grid overflow */
}

/* =========================================================================
   SIDEBAR
   ========================================================================= */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-6));
    height: fit-content;
}

@media (max-width: 1024px) {
    .sidebar {
        position: static;
    }
}

.sidebar-widget {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-6);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--border-color);
}

/* =========================================================================
   GRID LAYOUTS
   ========================================================================= */
.grid {
    display: grid;
    gap: var(--spacing-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================================
   FLASH MESSAGES
   ========================================================================= */
.flash-container {
    position: fixed;
    top: calc(var(--header-height) + var(--spacing-4));
    right: var(--spacing-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    max-width: 400px;
    width: calc(100% - var(--spacing-8));
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid var(--success);
}

.flash-error {
    background: var(--danger-light);
    color: var(--danger-dark);
    border: 1px solid var(--danger);
}

.flash-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid var(--warning);
}

.flash-info {
    background: var(--info-light);
    color: var(--info-dark);
    border: 1px solid var(--info);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.empty-state {
    text-align: center;
    padding: var(--spacing-12) var(--spacing-4);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-4);
}

.empty-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.empty-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-6);
}

/* =========================================================================
   LOADING STATE
   ========================================================================= */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: var(--border-radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    padding: var(--spacing-16) 0;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-4);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--spacing-8);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-10) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* =========================================================================
   CONTENT PROSE
   ========================================================================= */
.prose {
    max-width: 65ch;
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--text-primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--primary-dark);
}

.prose ul,
.prose ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: var(--spacing-4);
    margin: var(--spacing-6) 0;
    font-style: italic;
    color: var(--text-muted);
}

.prose img {
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-6) 0;
}

.prose pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--spacing-4);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--spacing-6) 0;
}

.prose code {
    background: var(--bg-tertiary);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose table {
    width: 100%;
    margin: var(--spacing-6) 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: var(--spacing-3);
    border: 1px solid var(--border-color);
    text-align: left;
}

.prose th {
    background: var(--bg-secondary);
    font-weight: var(--font-weight-semibold);
}

.prose hr {
    margin: var(--spacing-8) 0;
}

/* =========================================================================
   RIGHT SIDEBAR (Facebook + Social Icons + Advertising)
   ========================================================================= */
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height, 160px) + 20px);
    max-height: calc(100vh - var(--header-height, 160px) - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.sidebar-right .sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
}

.sidebar-right .sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-right .sidebar-section__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-sage, #A8BBA3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Facebook icon color */
.sidebar-facebook .bi-facebook { color: #1877F2; }

/* Social icons — round circles, official SVG, official colors */
.sidebar-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sidebar-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-social-icons a:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar-social-icons svg {
    width: 20px;
    height: 20px;
}

/* Official brand colors per network */
.social-icon--facebook  { background: #1877F2; }
.social-icon--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon--tiktok    { background: #000000; }
.social-icon--whatsapp  { background: #25D366; }
.social-icon--twitter   { background: #000000; }
.social-icon--pinterest { background: #BD081C; }
.social-icon--mastodon  { background: #6364FF; }
.social-icon--mix       { background: #FF8126; }
.social-icon--youtube   { background: #FF0000; }
.social-icon--linkedin  { background: #0A66C2; }

/* Advertising / Affiliation */
.sidebar-ad { text-align: center; }
.sidebar-ad__label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.sidebar-ad img {
    width: 100%;
    border-radius: 8px;
    transition: opacity 0.2s;
}
.sidebar-ad a:hover img { opacity: 0.9; }

/* Facebook Page Plugin — card only, no padding, border-radius via overflow */
.sidebar-facebook {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
}

/* ── Featured Post Widget ── */
.sidebar-featured-post {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
}
.sidebar-featured-post__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.sidebar-featured-post__card:hover { transform: translateY(-2px); }
.sidebar-featured-post__image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 16/9;
}
.sidebar-featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-featured-post__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #2d3748;
    line-height: 1.3;
}
.sidebar-featured-post__excerpt {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.sidebar-featured-post__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #9ca3af;
}
.sidebar-featured-post__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Featured Product Widget ── */
.sidebar-featured-product {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
}
.sidebar-featured-product__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.sidebar-featured-product__card:hover { transform: translateY(-2px); }
.sidebar-featured-product__image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 1;
}
.sidebar-featured-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-featured-product__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #2d3748;
    line-height: 1.3;
}
.sidebar-featured-product__price {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.sidebar-featured-product__price--current {
    font-weight: 700;
    color: var(--color-sage-dark, #6b8f71);
}
.sidebar-featured-product__price--sale {
    font-weight: 700;
    color: #dc2626;
}
.sidebar-featured-product__price--old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.82rem;
    margin-right: 0.4rem;
}
.sidebar-featured-product__rating {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.78rem;
    color: #f59e0b;
    margin-bottom: 0.3rem;
}
.sidebar-featured-product__rating span {
    color: #9ca3af;
    margin-left: 0.25rem;
}
.sidebar-featured-product__stock {
    font-size: 0.78rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive: hide right sidebar on tablet (3-column rules in module CSS files) */
@media (max-width: 1200px) {
    .sidebar-right { display: none; }
}

