/* -------------------------------------------------------------
   MODULOBOIS - MODERN CUSTOM CSS
   Topic: Wood Habitat & Construction Magazine
   Colors: Primary #6B4F3A, Secondary #7A8B5A, Accent/Wood #8A6B4A
------------------------------------------------------------- */

:root {
    --primary: #6B4F3A;
    --primary-hover: #5A4230;
    --primary-light: #E8DDCB;
    --secondary: #7A8B5A;
    --secondary-dark: #6A7A4C;
    --wood: #8A6B4A;
    --wood-light: #EFE6D6;
    --wood-dark: #4A3424;
    --dark: #2E2A26;
    --dark-muted: #5C544B;
    --light: #F4EFE6;
    --white: #FFFFFF;
    --border: #DED4C4;
    --success: #15803D;
    --success-light: #DCFCE7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    min-height: calc(100vh - 350px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--wood);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--wood-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-icon i {
    width: 18px;
    height: 18px;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* Scroll animation support */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.4rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
}

.logo-text span {
    color: var(--wood);
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--dark-muted);
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- HERO BANNER --- */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #EEF1E6 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 520px;
}

.hero-content {
    padding: 40px 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--wood-light);
    color: var(--wood-dark);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--dark-muted);
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-img-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- CARDS FOR CHANNELS --- */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.channel-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.channel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.channel-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(30, 41, 59, 0.85);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--dark-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tool-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- TECHNICAL TABLES --- */
.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin: 32px 0;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tech-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.tech-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tr:nth-child(even) {
    background-color: var(--light);
}

/* --- WIDGET & WIZARDS --- */
.wizard-box {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: var(--border);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-muted);
    z-index: 2;
    transition: var(--transition);
}

.step-indicator.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.step-indicator.done {
    border-color: var(--success);
    background-color: var(--success);
    color: var(--white);
}

.wizard-step-content {
    display: none;
}

.wizard-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

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

.option-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--white);
}

.option-card:hover {
    border-color: var(--secondary-dark);
    background-color: var(--primary-light);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-card i {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.option-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wizard-results {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 32px;
    border-left: 5px solid var(--primary);
}

/* --- INTERACTIVE CALCULATOR (PAGES COEUR) --- */
.calculator-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 40px 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media(max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.calc-inputs {
    padding: 40px;
    background-color: var(--white);
}

.calc-outputs {
    padding: 40px;
    background-color: var(--primary-light);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.calc-title i {
    width: 24px;
    height: 24px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.result-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--wood);
}

.result-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin: 8px 0;
}

.result-label {
    font-size: 0.85rem;
    color: var(--dark-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-explanation {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

.price-estimate {
    margin-top: auto;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--success);
}

.price-val {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--success);
}

/* --- ARTICLES AND CONTENT --- */
.article-header {
    background-color: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--dark-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    font-weight: 500;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta span i {
    width: 16px;
    height: 16px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
}

.article-content p {
    margin-bottom: 1.6rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
}

.article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.pro-tip {
    background-color: var(--wood-light);
    border-left: 5px solid var(--wood);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 32px 0;
}

.pro-tip-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--wood-dark);
    margin-bottom: 8px;
}

.pro-tip-title i {
    width: 20px;
    height: 20px;
}

/* --- SPLIT SCREEN & RICH LAYOUTS --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin: 60px 0;
}

@media(max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.split-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* FAQ section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-answer {
    color: var(--dark-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark);
    color: var(--white);
    padding-top: 80px;
    border-top: 8px solid var(--primary);
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
}

@media(max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 24px;
}

.brand-tagline {
    color: #8A8175;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.scierie-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 119, 182, 0.15);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8A8175;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.atelier-text {
    font-style: italic;
    color: #8A8175;
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 3px solid var(--wood);
    padding-left: 16px;
}

.atelier-sig {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--wood-light);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-bottom {
    background-color: #1F1B17;
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    font-size: 0.85rem;
    color: #5C544B;
    border-top: 1px solid #2E2A26;
}

@media(max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-bottom-links a {
    color: #5C544B;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

.footer-bottom-links .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #2E2A26;
}

/* --- MOBILE NAVIGATION --- */
@media(max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        padding: 100px 32px 32px 32px;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
    }

    body.menu-open .main-nav {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 24px;
    }

    .header-actions {
        display: none;
    }
}

/* =============================================================
   AFFILIATION & PARTNERS SYSTEM
   ============================================================= */

.aff-widget {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.aff-widget:hover {
    border-color: var(--secondary-dark);
}

.aff-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.aff-widget-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0;
}

.aff-widget-header h4 i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.aff-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--success-light);
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
}

.aff-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

@media(max-width: 576px) {
    .aff-products-grid {
        grid-template-columns: 1fr;
    }
}

.aff-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.aff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.aff-card-img {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.aff-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.aff-card:hover .aff-card-img img {
    transform: scale(1.05);
}

.aff-merchant-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

/* Marchands thématiques */
.aff-merchant-badge.leroymerlin {
    background-color: #15803D;
}
.aff-merchant-badge.castorama {
    background-color: #5A4230;
}
.aff-merchant-badge.manomano {
    background-color: #6B4F3A;
}
.aff-merchant-badge.scieriedirecte {
    background-color: var(--wood);
}

.aff-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aff-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aff-product-desc {
    font-size: 0.85rem;
    color: var(--dark-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.5;
}

.aff-card-pricing {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.aff-price-info {
    display: flex;
    flex-direction: column;
}

.aff-unit-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.aff-unit-label {
    font-size: 0.75rem;
    color: var(--dark-muted);
}

.aff-calc-recommendation {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.aff-rec-qty {
    background-color: var(--wood-light);
    color: var(--wood-dark);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.aff-rec-total {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    margin-top: 4px;
}

.aff-buy-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.aff-buy-btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.aff-buy-btn i {
    width: 16px;
    height: 16px;
}

/* =============================================================
   LOCAL DIRECTORY & GEOLOCATION STYLES
   ============================================================= */

.search-box-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    max-width: 650px;
    margin: 24px auto 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-icon {
    width: 24px;
    height: 24px;
    color: var(--dark-muted);
    margin-left: 12px;
}

#geo-search-input {
    flex-grow: 1;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    padding: 12px 0;
}

#geo-search-input::placeholder {
    color: #8A8175;
}

.search-suggestions {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--primary-light);
}

.suggestion-item strong {
    color: var(--primary);
}

.status-card {
    background: var(--white);
    border-left: 5px solid var(--primary);
}

.geo-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease-out;
}

.geo-detail-item {
    display: flex;
    flex-direction: column;
}

.geo-detail-item .label {
    font-size: 0.75rem;
    color: var(--dark-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.geo-detail-item strong {
    font-size: 1.1rem;
    color: var(--dark);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-control {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition);
}

.input-with-unit .form-control:focus {
    border-color: var(--primary);
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    font-weight: 700;
    color: var(--dark-muted);
}

.tax-results-box {
    background-color: #ECE4D6;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.tax-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.tax-result-row .tax-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wood);
}

.scierie-pro-card {
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.scierie-badge-local {
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scierie-advisor-quote {
    background-color: #EEF1E6;
    border-left: 4px solid #A8843C;
    padding: 16px;
    border-radius: var(--radius-sm);
}

.scierie-contact-bar .btn-outline {
    border-color: var(--border);
    color: var(--dark);
}

.scierie-contact-bar .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.department-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.dept-group {
    background-color: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.dept-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dept-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-muted);
    font-size: 0.95rem;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}

.dept-link:hover, .dept-link.active-dept {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.dept-code {
    background-color: #DED4C4;
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

.dept-link:hover .dept-code, .dept-link.active-dept .dept-code {
    background-color: var(--primary);
    color: var(--white);
}

.active-dept {
    border-left: 3px solid var(--primary);
}

.hidden {
    display: none !important;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
}