/* Django CMS integration styles. The original V2 design remains in style.css. */

.cms-messages {
    padding-top: 24px;
}

.cms-message {
    margin: 0 0 12px;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.cms-message-success {
    border-color: #86a98f;
}

.cms-message-error {
    border-color: #d71920;
}

.cms-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cms-selected-product {
    display: block !important;
}

.cms-form-errors,
.errorlist {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 14px;
}

.errorlist {
    list-style: none;
    padding: 0;
}

.section-action {
    margin-top: 30px;
}

.legal-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 70px;
}

.product-detail-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}


.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 42px;
}

.product-category-nav .button {
    padding: 10px 16px;
}


/* B2B sales and transparency layer */
.product-sales-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.procurement-grid .feature-card,
.transparency-card {
    height: 100%;
}

.status-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-verified,
.status-available {
    color: #166534;
}

.status-declared,
.status-on_request {
    color: #92400e;
}

.status-to_confirm {
    color: #6b7280;
}

.status-not_available {
    color: #991b1b;
}

.transparency-value {
    font-size: 18px;
    font-weight: 700;
}

.evidence-note {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.product-procurement-section .section-heading,
.b2b-transparency-section .section-heading,
.quality-transparency-section .section-heading {
    max-width: 850px;
}

@media (max-width: 600px) {
    .product-sales-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-sales-actions .button {
        width: 100%;
        text-align: center;
    }
}


/* Multilingual navigation and RTL support */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex: 0 0 auto;
}

.language-trigger {
    height: 38px;
    min-width: 78px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--gray-700);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.language-trigger:hover,
.language-switcher.open .language-trigger {
    color: var(--black);
    background: #f5f6f7;
    border-color: #e6e8eb;
}

.language-trigger:focus-visible {
    color: var(--black);
    background: #fff;
    border-color: rgba(215, 25, 32, 0.45);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.10);
    outline: none;
}

.language-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-current {
    min-width: 19px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-align: center;
}

.language-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.language-switcher.open .language-chevron {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    width: 168px;
    padding: 6px;
    display: grid;
    gap: 2px;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid #e7e9ec;
    border-radius: 10px;
    box-shadow:
        0 18px 40px rgba(11, 15, 20, 0.12),
        0 2px 8px rgba(11, 15, 20, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(0.985);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 150ms ease,
        transform 150ms ease,
        visibility 150ms ease;
}

.language-switcher.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.language-option {
    position: relative;
    min-height: 40px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 28px 1fr 14px;
    align-items: center;
    gap: 7px;
    border-radius: 7px;
    color: var(--gray-700);
    transition:
        color 140ms ease,
        background 140ms ease;
}

.language-option:hover,
.language-option:focus-visible {
    color: var(--black);
    background: #f5f6f7;
    outline: none;
}

.language-option.current {
    color: var(--black);
    background: #f8f8f9;
}

.language-option.current::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.language-code {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.language-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.language-name[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.language-check {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
}

.language-option.current .language-check {
    opacity: 1;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .hero-v2-actions,
html[dir="rtl"] .product-category-nav,
html[dir="rtl"] .legal-actions,
html[dir="rtl"] .cta-inner,
html[dir="rtl"] .footer-inner {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .language-menu {
    right: auto;
    left: 0;
    transform-origin: top left;
}

html[dir="rtl"] .language-option {
    direction: ltr;
}

html[dir="rtl"] .language-option.current::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input[type="email"] {
    direction: ltr;
    text-align: left;
}

@media (max-width: 900px) {
    .language-switcher {
        margin-left: auto;
    }

    html[dir="rtl"] .language-switcher {
        margin-right: auto;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .header-inner {
        gap: 8px;
    }

    .language-trigger {
        min-width: 68px;
        height: 36px;
        padding: 0 8px;
        gap: 5px;
        border-color: #eceef0;
        background: #fff;
    }

    .language-icon {
        width: 16px;
        height: 16px;
    }

    .language-current {
        font-size: 10px;
    }

    .language-chevron {
        width: 11px;
        height: 11px;
    }

    .language-menu {
        width: 160px;
        top: calc(100% + 7px);
    }

    .language-option {
        min-height: 39px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .language-trigger,
    .language-chevron,
    .language-menu,
    .language-option {
        transition: none;
    }
}


/* About: corporate facts */
.company-facts-section {
    overflow: hidden;
}

.company-facts-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
    gap: 72px;
    align-items: end;
    margin-bottom: 52px;
}

.company-facts-intro h2 {
    margin-bottom: 0;
}

.company-facts-intro > p {
    margin: 0;
    max-width: 620px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.75;
}

.company-facts-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1px solid #dedede;
    border-left: 1px solid #dedede;
}

.company-fact {
    grid-column: span 4;
    min-height: 220px;
    padding: 32px;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    background: #fff;
}

.company-fact-value {
    margin: 0 0 28px;
    color: var(--accent);
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.company-fact h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.company-fact-detail {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.65;
}

html[dir="rtl"] .company-facts-intro,
html[dir="rtl"] .company-facts-grid {
    direction: rtl;
}

@media (max-width: 900px) {
    .company-facts-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 36px;
    }

    .company-fact {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .company-facts-grid {
        display: block;
        border-top: 1px solid #dedede;
    }

    .company-fact {
        min-height: 0;
        padding: 26px 22px;
    }

    .company-fact-value {
        margin-bottom: 18px;
        font-size: 25px;
    }
}

/* About facts: restrained premium B2B presentation */
.company-facts-section {
    background: #f7f7f5;
}

.company-facts-intro {
    align-items: start;
}

.company-facts-intro .eyebrow {
    margin-bottom: 14px;
}

.company-facts-intro h2 {
    max-width: 720px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.company-facts-intro > p {
    padding-top: 30px;
    color: #565656;
    font-size: 16px;
    line-height: 1.8;
}

.company-facts-grid {
    gap: 0;
    border: 0;
    border-top: 1px solid #cfcfca;
    border-bottom: 1px solid #cfcfca;
}

.company-fact {
    position: relative;
    min-height: 235px;
    padding: 36px 34px 34px;
    border: 0;
    border-right: 1px solid #d9d9d4;
    background: transparent;
}

.company-fact:nth-child(3n) {
    border-right: 0;
}

.company-fact:nth-child(n+4) {
    border-top: 1px solid #d9d9d4;
}

.company-fact-value {
    margin: 0 0 32px;
    color: #171717;
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.company-fact h3 {
    margin: 0 0 10px;
    color: #77776f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.company-fact-detail {
    max-width: 390px;
    color: #62625d;
    font-size: 14px;
    line-height: 1.65;
}

html[dir="rtl"] .company-fact {
    border-right: 0;
    border-left: 1px solid #d9d9d4;
}

html[dir="rtl"] .company-fact:nth-child(3n) {
    border-left: 0;
}

@media (max-width: 900px) {
    .company-facts-intro > p {
        padding-top: 0;
    }

    .company-fact,
    .company-fact:nth-child(3n) {
        border-right: 1px solid #d9d9d4;
    }

    .company-fact:nth-child(2n) {
        border-right: 0;
    }

    .company-fact:nth-child(n+3) {
        border-top: 1px solid #d9d9d4;
    }
}

@media (max-width: 600px) {
    .company-facts-grid {
        border-left: 0;
    }

    .company-fact,
    .company-fact:nth-child(2n),
    .company-fact:nth-child(3n) {
        padding: 26px 4px;
        border-right: 0;
        border-left: 0;
        border-top: 1px solid #d9d9d4;
    }

    .company-fact:first-child {
        border-top: 0;
    }
}


/* About facts: dark editorial presentation */
.company-facts-section {
    position: relative;
    overflow: hidden;
    background: #24351f;
    color: #fff;
}

.company-facts-section::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -45%;
    width: 42%;
    height: 145%;
    background: rgba(132, 170, 57, .08);
    transform: rotate(14deg);
    pointer-events: none;
}

.company-facts-section .container {
    position: relative;
    z-index: 1;
}

.company-facts-intro {
    display: block;
    max-width: 880px;
    margin: 0 auto 42px;
    text-align: center;
}

.company-facts-intro .eyebrow {
    margin-bottom: 13px;
    color: #8eaf3e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.company-facts-intro h2 {
    max-width: none;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.company-facts-intro > p {
    max-width: 760px;
    margin: 16px auto 0;
    padding: 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.75;
}

.company-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    border: 0;
}

.company-fact,
.company-fact:nth-child(n) {
    min-height: 230px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.065);
}

.company-fact-value {
    margin: 0 0 30px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.15vw, 33px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.company-fact h3 {
    margin: 0 0 10px;
    color: #9cbd4d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.company-fact-detail {
    max-width: 420px;
    margin: 0;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.65;
}

html[dir="rtl"] .company-facts-intro {
    text-align: center;
}

html[dir="rtl"] .company-fact,
html[dir="rtl"] .company-fact:nth-child(n) {
    border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 900px) {
    .company-facts-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .company-facts-intro {
        text-align: left;
    }

    html[dir="rtl"] .company-facts-intro {
        text-align: right;
    }

    .company-facts-grid {
        grid-template-columns: 1fr;
    }

    .company-fact,
    .company-fact:nth-child(n) {
        min-height: 0;
        padding: 26px 24px;
    }

    .company-fact-value {
        margin-bottom: 22px;
    }
}
