:root {
    --rnt-green-900: #173b2d;
    --rnt-green-800: #214f3d;
    --rnt-green-700: #2e6553;
    --rnt-green-500: #4e7d6a;
    --rnt-olive: #d5c59a;
    --rnt-gold: #d7b86d;
    --rnt-cream: #f4efe6;
    --rnt-sand: #efe3cc;
    --rnt-text: #1f2c28;
    --rnt-muted: #5c665f;
    --rnt-white: #ffffff;
    --rnt-heading: var(--rnt-green-900);
    --rnt-heading-2: var(--rnt-green-800);
    --rnt-link: var(--rnt-green-700);
    --site-header-height: 96px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: var(--rnt-text);
    background: var(--rnt-white);
    line-height: 1.6;
    letter-spacing: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.site-header {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 14px rgba(23, 59, 45, 0.08);
    position: relative;
    top: auto;
    z-index: 20;
}

.site-header .container {
    min-height: 104px;
}

.site-brand {
    max-width: 420px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-brand img {
    height: 76px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.02));
}

.site-nav {
    gap: 0.3rem 1rem;
}

.site-nav a {
    color: var(--rnt-text);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.2;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--rnt-link);
}

.site-nav .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.1;
}

.site-nav .intranet-link {
    background: linear-gradient(135deg, #f2d77a, #d7a63a);
    border-color: #d7a63a;
    color: #1f2b2b;
    box-shadow: 0 8px 16px rgba(215, 166, 58, 0.24);
}

.site-nav .intranet-link:hover,
.site-nav .intranet-link:focus {
    background: linear-gradient(135deg, #e8c264, #c89125);
    border-color: #c89125;
    color: #1f2b2b;
    transform: translateY(-1px);
}

.site-header-right {
    margin-left: auto;
}

.site-user-bar {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

.site-user-bar .site-user-greeting {
    font-weight: 500;
    font-style: italic;
    color: var(--rnt-link);
}

.site-nav .site-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--rnt-heading);
    background: var(--rnt-cream);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .site-cart:hover,
.site-nav .site-cart:focus {
    background: var(--rnt-sand);
    color: var(--rnt-link);
}

.site-cart__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--rnt-gold);
    color: var(--rnt-heading);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.home-hero {
    margin-bottom: 0;
}

.home-hero .carousel-item {
    position: relative;
    height: calc(100vh - var(--site-header-height));
    min-height: 540px;
    overflow: hidden;
    background: #0d1f1a;
}

.home-hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.9);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 28, 23, 0.78) 0%, rgba(15, 28, 23, 0.35) 38%, rgba(15, 28, 23, 0.08) 100%);
}

.home-hero .carousel-caption {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 4.5rem;
    z-index: 10;
    width: min(680px, 78%);
    text-align: left;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--rnt-gold);
    background: rgba(10, 20, 17, 0.10);
}

.home-hero .carousel-indicators,
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    display: none;
}

.home-hero .carousel-inner:only-child ~ .carousel-control-prev,
.home-hero .carousel-inner:only-child ~ .carousel-control-next {
    display: none;
}

.home-hero .carousel-caption .eyebrow {
    margin: 0 0 0.5rem;
    color: var(--rnt-gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 700;
}

.home-hero .carousel-caption h1 {
    margin: 0;
    color: var(--rnt-white);
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(2rem, 3vw, 3.3rem);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.home-hero .carousel-caption p:last-child {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

#sobre,
#minicursos,
#livros,
#contato {
    background: var(--rnt-cream);
}

#sobre .sobre,
#categorias .categorias,
#cursos .cursos,
#minicursos .minicursos,
#palestras .palestras,
#livros .livros,
#contato .contato {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-heading {
    margin-bottom: 2.25rem;
    text-align: center;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 2.3vw, 2.3rem);
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 0.85rem auto 0;
    background: var(--rnt-gold);
    border-radius: 999px;
}

#sobre .lead,
#sobre p,
#cursos .card-text,
#minicursos .card-text,
#livros .card-text,
#contato label,
#contato .form-control,
#contato .form-select {
    color: var(--rnt-text);
}

.section-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--rnt-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.section-kicker {
    margin-bottom: 0.8rem;
    color: var(--rnt-link);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rnt-title {
    margin-bottom: 1.2rem;
    color: var(--rnt-heading);
    font-size: clamp(1.9rem, 2.6vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rnt-lead {
    max-width: 860px;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    color: var(--rnt-muted);
    line-height: 1.7;
}

.rnt-info-card {
    background: rgba(23, 59, 45, 0.04);
    border: 1px solid rgba(23, 59, 45, 0.08);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 16px 30px rgba(17, 34, 27, 0.04);
}

.rnt-info-block + .rnt-info-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(23, 59, 45, 0.12);
}

.rnt-info-block h3 {
    color: var(--rnt-heading-2);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.rnt-info-block p {
    margin-bottom: 0;
    color: var(--rnt-muted);
    line-height: 1.7;
}

.rnt-cta {
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(23, 59, 45, 0.12);
}

.rnt-cta h3 {
    margin-bottom: 1rem;
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rnt-cta .btn {
    white-space: normal;
    max-width: 100%;
}

#sobre .text-center p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.12rem;
    color: var(--rnt-muted);
}

#categorias {
    background: linear-gradient(135deg, rgba(18, 50, 40, 0.88), rgba(42, 83, 69, 0.87)), url('../img/bg.png') center/cover no-repeat;
}

.categorias .row {
    --bs-gutter-y: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(23, 59, 45, 0.06);
    border-radius: 1.1rem;
    height: 100%;
    padding: 1.75rem 1.25rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 26px rgba(17, 34, 27, 0.06);
}

.category-card img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
    opacity: 1;
}

.category-card h4 {
    color: var(--rnt-heading);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.28rem;
    line-height: 1.35;
}

.category-card p {
    color: var(--rnt-muted);
    margin-bottom: 1rem;
    min-height: 72px;
    line-height: 1.6;
}

.category-card .btn-secondary {
    background: var(--rnt-green-700);
    border: 1px solid var(--rnt-green-700);
    color: var(--rnt-white);
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.category-card .btn-secondary:hover,
.category-card .btn-secondary:focus {
    background: var(--rnt-green-900);
    border-color: var(--rnt-green-900);
    color: var(--rnt-white);
}

#cursos .card,
#minicursos .card {
    border: 1px solid rgba(23, 59, 45, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(19, 39, 31, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

#cursos .card:hover,
#minicursos .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 26px rgba(19, 39, 31, 0.09);
}

#cursos .card img,
#minicursos .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

#cursos .card-body,
#minicursos .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    padding: 1.25rem;
}

#cursos .card-body h4,
#minicursos .card-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rnt-heading);
    margin-bottom: 0.65rem;
}

#cursos .card-text,
#minicursos .card-text {
    color: var(--rnt-muted);
}

#cursos .btn-outline-secondary,
#minicursos .btn-outline-secondary {
    border-color: rgba(23, 59, 45, 0.28);
    color: var(--rnt-heading-2);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

#cursos .btn-outline-secondary:hover,
#cursos .btn-outline-secondary:focus,
#minicursos .btn-outline-secondary:hover,
#minicursos .btn-outline-secondary:focus {
    border-color: var(--rnt-green-700);
    background: var(--rnt-green-700);
    color: var(--rnt-white);
}

#palestras .row {
    --bs-gutter-y: 1.75rem;
}

.palestra-card {
    display: flex;
    gap: 1.1rem;
    height: 100%;
    background: var(--rnt-white);
    border: 1px solid rgba(23, 59, 45, 0.08);
    border-left: 4px solid var(--rnt-gold);
    border-radius: 1rem;
    padding: 1.4rem;
    box-shadow: 0 10px 20px rgba(19, 39, 31, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.palestra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 26px rgba(19, 39, 31, 0.1);
}

.palestra-card__date {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--rnt-green-500), var(--rnt-green-900));
    color: var(--rnt-white);
}

.palestra-card__day {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.palestra-card__month {
    margin-top: 0.2rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rnt-gold);
}

.palestra-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.palestra-card__body h4 {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--rnt-heading);
    margin-bottom: 1rem;
}

.palestra-card__resumo {
    margin-top: -0.4rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--rnt-muted);
}

.palestra-card__guest {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(23, 59, 45, 0.08);
    font-size: 0.9rem;
    color: var(--rnt-muted);
}

.palestra-card__guest-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--rnt-link);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#livros .row {
    --bs-gutter-y: 1.6rem;
}

#livros .book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 44, 34, 0.1);
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(18, 47, 38, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#livros .book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(18, 47, 38, 0.1);
}

#livros .book-cover {
    display: block;
    text-decoration: none;
    background: #fff;
}

#livros .book-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

#livros .book-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem 1rem 1.15rem;
}

#livros .book-title {
    margin: 0;
    color: var(--rnt-heading);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    min-height: 2.7rem;
}

#livros .book-meta {
    margin-top: auto;
}

#livros .book-price,
#livros .book-stock {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#livros .book-price {
    color: var(--rnt-heading);
}

#livros .book-stock {
    color: rgba(25, 48, 39, 0.72);
}

#livros .book-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
}

#livros .book-button.is-buy {
    background: var(--rnt-green-700);
    color: var(--rnt-white);
}

#livros .book-button.is-buy:hover,
#livros .book-button.is-buy:focus {
    background: var(--rnt-green-900);
    color: var(--rnt-white);
    text-decoration: none;
}

#livros .book-button.is-out {
    background: rgba(148, 155, 148, 0.13);
    border: 1px solid rgba(20, 44, 34, 0.12);
    color: rgba(25, 48, 39, 0.72);
    cursor: default;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    #livros .book-title {
        min-height: 0;
    }
}

#produto-detalhe .produto-detalhe {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.produto-breadcrumb {
    margin-bottom: 2rem;
    color: var(--rnt-muted);
    font-size: 0.85rem;
}

.produto-breadcrumb a {
    color: var(--rnt-link);
    font-weight: 600;
}

.produto-breadcrumb a:hover,
.produto-breadcrumb a:focus {
    color: var(--rnt-heading);
    text-decoration: underline;
}

.produto-hero {
    margin-bottom: 3rem;
}

.produto-hero__image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(19, 39, 31, 0.1);
}

.produto-hero__title {
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.produto-hero__subtitle {
    color: var(--rnt-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.produto-hero__price {
    color: var(--rnt-heading);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.produto-hero__author {
    color: var(--rnt-muted);
    margin-bottom: 1.5rem;
}

.produto-hero__stock {
    color: var(--rnt-muted);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.produto-hero__cta {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.produto-hero__cta.is-out {
    background: rgba(148, 155, 148, 0.13);
    border: 1px solid rgba(20, 44, 34, 0.12);
    color: rgba(25, 48, 39, 0.72);
    cursor: default;
    pointer-events: none;
}

.produto-frete {
    max-width: 460px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(23, 59, 45, 0.12);
}

.produto-frete__label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--rnt-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.produto-frete__group {
    margin-bottom: 0.6rem;
}

.produto-frete__icon {
    background: var(--rnt-white);
    border-color: rgba(23, 59, 45, 0.2);
    color: var(--rnt-link);
}

.produto-frete__group .form-control {
    border-color: rgba(23, 59, 45, 0.2);
}

.produto-frete__btn {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.produto-frete__link {
    color: var(--rnt-link);
    font-size: 0.85rem;
    font-weight: 600;
}

.produto-frete__link:hover,
.produto-frete__link:focus {
    color: var(--rnt-heading);
    text-decoration: underline;
}

.produto-frete__result {
    margin-top: 0.9rem;
}

.produto-frete__options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.produto-frete__options li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(23, 59, 45, 0.12);
    color: var(--rnt-heading);
    font-size: 0.9rem;
}

.produto-frete__options li:last-child {
    border-bottom: none;
}

.produto-frete__loading {
    color: var(--rnt-link);
    font-size: 0.85rem;
    margin: 0;
}

.produto-frete__error {
    color: #b3261e;
    font-size: 0.85rem;
    margin: 0;
}

.produto-tabs .nav-tabs {
    border-bottom-color: rgba(23, 59, 45, 0.15);
}

.produto-tabs .nav-link {
    color: var(--rnt-muted);
    font-weight: 700;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.1rem;
}

.produto-tabs .nav-link.active {
    color: var(--rnt-heading);
    background: none;
    border-bottom-color: var(--rnt-gold);
}

.produto-tab-content {
    padding-top: 2rem;
    color: var(--rnt-text);
}

.produto-tab-content h2 {
    color: var(--rnt-heading);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.produto-tab-content h3 {
    color: var(--rnt-heading-2);
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.9rem;
}

.produto-tab-content h4 {
    color: var(--rnt-heading-2);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.produto-tab-content p {
    color: var(--rnt-text);
    line-height: 1.7;
}

.produto-checklist {
    padding-left: 1.2rem;
    line-height: 1.7;
}

.produto-checklist ul {
    margin-top: 0.5rem;
}

.produto-note {
    color: var(--rnt-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.produto-info-table {
    max-width: 420px;
}

.produto-info-table th {
    color: var(--rnt-heading);
    font-weight: 700;
    width: 40%;
}

#categoria-detalhe .categoria-detalhe {
    padding-top: 3rem;
    padding-bottom: 5rem;
    max-width: 800px;
}

.categoria-hero {
    margin-bottom: 2.5rem;
}

.categoria-hero__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.categoria-hero__title {
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.categoria-hero__intro {
    color: var(--rnt-muted);
    line-height: 1.7;
}

.categoria-lista {
    margin: 0;
    padding: 0;
}

.categoria-lista__item {
    border-bottom: 1px solid rgba(23, 59, 45, 0.12);
}

.categoria-lista__item:first-child {
    border-top: 1px solid rgba(23, 59, 45, 0.12);
}

.categoria-lista__link {
    display: block;
    padding: 1rem 0;
    color: var(--rnt-link);
    font-weight: 600;
    text-decoration: none;
}

.categoria-lista__link:hover,
.categoria-lista__link:focus {
    color: var(--rnt-heading);
    text-decoration: underline;
}

.categoria-lista__group-title {
    margin: 2.5rem 0 0.5rem;
    color: var(--rnt-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.categoria-lista__group-title:first-of-type {
    margin-top: 0;
}

.categoria-lista__text {
    display: block;
    padding: 1rem 0;
    color: var(--rnt-muted);
}

.categoria-item-conteudo {
    color: var(--rnt-text);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.categoria-item-conteudo p {
    margin-bottom: 1.1rem;
}

.categoria-item-conteudo__vazio {
    color: var(--rnt-muted);
    font-style: italic;
}

.categoria-item-voltar {
    display: inline-block;
    color: var(--rnt-link);
    font-weight: 600;
    text-decoration: none;
}

.categoria-item-voltar:hover,
.categoria-item-voltar:focus {
    color: var(--rnt-heading);
    text-decoration: underline;
}

#carrinho .carrinho {
    padding-top: 3rem;
    padding-bottom: 5rem;
    max-width: 900px;
}

.carrinho__title {
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    margin-bottom: 2rem;
}

.cart-table {
    vertical-align: middle;
}

.cart-table th {
    color: var(--rnt-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    border-bottom-color: rgba(23, 59, 45, 0.15);
}

.cart-table td {
    border-bottom-color: rgba(23, 59, 45, 0.1);
}

.cart-table__remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #b23b3b;
    font-size: 1.1rem;
    line-height: 1;
}

.cart-table__remove a:hover,
.cart-table__remove a:focus {
    background: rgba(178, 59, 59, 0.1);
}

.cart-table__product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-table__product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-table__product a {
    color: var(--rnt-heading);
    font-weight: 700;
}

.cart-table__product a:hover,
.cart-table__product a:focus {
    color: var(--rnt-link);
    text-decoration: underline;
}

.cart-table__qty {
    width: 80px;
}

.cart-table__actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cart-summary {
    max-width: 420px;
    margin-left: auto;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(23, 59, 45, 0.12);
    border-radius: 1rem;
    background: var(--rnt-cream);
}

.cart-summary__title {
    color: var(--rnt-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(23, 59, 45, 0.12);
    color: var(--rnt-text);
}

.cart-summary__row--total {
    font-weight: 800;
    color: var(--rnt-heading);
    font-size: 1.1rem;
}

.cart-summary__frete {
    max-width: none;
    margin-top: 0;
    padding-top: 1rem;
}

.cart-summary__cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.25rem;
}

.cart-empty {
    color: var(--rnt-muted);
    font-size: 1.05rem;
}

.cart-empty a {
    color: var(--rnt-link);
    font-weight: 700;
}

.cart-empty a:hover,
.cart-empty a:focus {
    text-decoration: underline;
}

#grupo-whatsapp .grupo-whatsapp {
    padding-top: 3rem;
    padding-bottom: 5rem;
    max-width: 760px;
}

.grupo-whatsapp__form {
    margin-top: 2rem;
}

.grupo-whatsapp__form .form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.grupo-whatsapp__form .form-control,
.grupo-whatsapp__form .form-select {
    border: 1px solid rgba(30, 63, 47, 0.18);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    min-height: 48px;
    font-size: 1rem;
    padding: 0.9rem 1rem;
}

.grupo-whatsapp__submit {
    margin-top: 1.5rem;
}

#contato .contato {
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(244,239,230,0.88));
}

#contato form {
    max-width: 980px;
    margin: 0 auto;
}

#contato .form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

#contato .form-control,
#contato .form-select {
    border: 1px solid rgba(30, 63, 47, 0.18);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    min-height: 48px;
    font-size: 1rem;
    padding: 0.9rem 1rem;
}

#contato textarea.form-control {
    min-height: 140px;
}

#contato .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--rnt-green-700), var(--rnt-green-900));
    border-color: var(--rnt-green-900);
    color: var(--rnt-white);
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1.5rem;
}

#contato .btn-primary:hover,
.btn-primary:hover,
#contato .btn-primary:focus,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--rnt-green-800), var(--rnt-green-900));
    border-color: var(--rnt-green-900);
    box-shadow: 0 10px 18px rgba(18, 50, 40, 0.2);
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rnt-green-700), var(--rnt-green-900));
    color: var(--rnt-white);
    box-shadow: 0 12px 22px rgba(23, 59, 45, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: linear-gradient(135deg, var(--rnt-green-800), var(--rnt-green-900));
}

.site-footer {
    background: var(--rnt-green-900);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.4rem 0 1rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.35rem 0 0.15rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-socials img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 0.85rem;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
    :root {
        --site-header-height: 150px;
    }

    .site-brand img {
        height: 60px;
    }

    .site-header-right,
    .site-nav {
        width: 100%;
    }

    .site-nav a {
        font-size: 0.7rem;
    }

    .home-hero .carousel-item {
        height: calc(100vh - var(--site-header-height));
        min-height: 420px;
    }

    .home-hero .carousel-caption {
        width: min(92%, 620px);
        left: 1rem;
        right: 1rem;
        bottom: 2rem;
        padding: 1rem 1.1rem;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}

#checkout .checkout {
    padding-top: 3rem;
    padding-bottom: 5rem;
    max-width: 900px;
}

#checkout .checkout--narrow {
    max-width: 760px;
}

.checkout__title {
    color: var(--rnt-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    margin-bottom: 0.25rem;
}

.checkout__step {
    color: var(--rnt-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.checkout__login-hint {
    margin-bottom: 1.5rem;
}

.checkout__login-hint a {
    color: var(--rnt-link);
    font-weight: 700;
}

.checkout-form .form-label {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.checkout-form .form-control,
.checkout-form .form-select {
    border: 1px solid rgba(30, 63, 47, 0.18);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    min-height: 48px;
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

.checkout-form .form-check {
    margin-bottom: 0.6rem;
}

.checkout-form__cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.checkout-payment-summary {
    max-width: none;
    margin-bottom: 2rem;
}

.checkout-frete {
    margin: 1.5rem 0;
}

.checkout-pix__qrcode {
    margin: 1.5rem auto;
    display: block;
    border: 1px solid rgba(23, 59, 45, 0.12);
    border-radius: 1rem;
    padding: 0.5rem;
}

.checkout-pix__code {
    max-width: 420px;
    margin: 0 auto 1rem;
}

.checkout-pix__timer {
    color: var(--rnt-muted);
    font-weight: 700;
    margin-bottom: 1rem;
}


/* ==========================================================================
   Tema (claro / escuro / sistema)
   O atributo data-theme no <html> e definido por um script inline no <head>
   (src/index.html) e por assets/js/theme.js. Sem JS, vale o tema claro.
   ========================================================================== */

.theme-switcher .theme-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--rnt-cream);
    color: var(--rnt-heading);
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-switcher .theme-switcher__toggle:hover,
.theme-switcher .theme-switcher__toggle:focus {
    background: var(--rnt-sand);
    color: var(--rnt-link);
}

.theme-switcher .theme-switcher__toggle::after {
    display: none;
}

.theme-switcher .theme-icon {
    display: none;
}

.theme-switcher[data-theme-mode="on"] .theme-icon--on,
.theme-switcher[data-theme-mode="off"] .theme-icon--off,
.theme-switcher[data-theme-mode="system"] .theme-icon--system {
    display: block;
}

.theme-switcher .dropdown-menu {
    min-width: 11rem;
    padding: 0.4rem 0;
    border-radius: 0.8rem;
    font-size: 0.85rem;
}

.theme-switcher .dropdown-header {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.theme-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rnt-text);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-switcher .dropdown-item .theme-check {
    width: 1em;
    visibility: hidden;
}

.theme-switcher .dropdown-item.active,
.theme-switcher .dropdown-item.active:hover {
    background: var(--rnt-green-700);
    color: #fff;
}

.theme-switcher .dropdown-item.active .theme-check {
    visibility: visible;
}

[data-theme="dark"] {
    color-scheme: dark;
    --rnt-cream: #18231f;
    --rnt-sand: #26352e;
    --rnt-text: #e4ece7;
    --rnt-muted: #a9b8b0;
    --rnt-heading: #d9ebe1;
    --rnt-heading-2: #bcd9ca;
    --rnt-link: #7fc4a5;
    --dark-bg: #101815;
    --dark-surface: #18231f;
    --dark-surface-2: #1f2d27;
    --dark-border: rgba(255, 255, 255, 0.13);
}

[data-theme="dark"] body {
    background: var(--dark-bg);
    color: var(--rnt-text);
}

/* Header */
[data-theme="dark"] .site-header {
    background: rgba(16, 24, 21, 0.97);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* O logotipo e verde escuro sobre fundo transparente: vira monocromatico claro */
[data-theme="dark"] .site-brand img {
    filter: brightness(0) invert(0.92);
}

[data-theme="dark"] .site-nav .intranet-link,
[data-theme="dark"] .site-nav .intranet-link:hover,
[data-theme="dark"] .site-nav .intranet-link:focus {
    color: #1f2b2b;
}

[data-theme="dark"] .site-cart__badge {
    color: #173b2d;
}

[data-theme="dark"] .theme-switcher .dropdown-menu {
    background: var(--dark-surface-2);
    border-color: var(--dark-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .theme-switcher .dropdown-header {
    color: var(--rnt-muted);
}

[data-theme="dark"] .theme-switcher .dropdown-item:hover,
[data-theme="dark"] .theme-switcher .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-switcher .dropdown-item.active,
[data-theme="dark"] .theme-switcher .dropdown-item.active:hover {
    background: var(--rnt-green-700);
    color: #fff;
}

/* Secoes e cartoes da home */
[data-theme="dark"] #contato .contato {
    background: linear-gradient(180deg, rgba(16, 24, 21, 0.5), rgba(24, 35, 31, 0.88));
}

[data-theme="dark"] .rnt-info-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--dark-border);
    box-shadow: none;
}

[data-theme="dark"] .rnt-info-block + .rnt-info-block,
[data-theme="dark"] .rnt-cta,
[data-theme="dark"] .produto-frete,
[data-theme="dark"] .produto-frete__options li,
[data-theme="dark"] .categoria-lista__item,
[data-theme="dark"] .cart-summary__row {
    border-color: var(--dark-border);
}

[data-theme="dark"] .category-card,
[data-theme="dark"] #livros .book-card,
[data-theme="dark"] #cursos .card,
[data-theme="dark"] #minicursos .card {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .palestra-card {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    border-left-color: var(--rnt-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .palestra-card__guest {
    border-top-color: var(--dark-border);
}

[data-theme="dark"] #livros .book-stock {
    color: var(--rnt-muted);
}

[data-theme="dark"] #livros .book-button.is-out,
[data-theme="dark"] .produto-hero__cta.is-out {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--dark-border);
    color: var(--rnt-muted);
}

/* Botoes */
[data-theme="dark"] .btn-secondary {
    background: #2b3a34;
    border-color: #38493f;
    color: var(--rnt-text);
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .btn-secondary:focus {
    background: #38493f;
    border-color: #4a5f54;
    color: #fff;
}

[data-theme="dark"] .category-card .btn-secondary,
[data-theme="dark"] #livros .book-button.is-buy {
    background: #2e6553;
    border-color: #2e6553;
    color: #fff;
}

[data-theme="dark"] .category-card .btn-secondary:hover,
[data-theme="dark"] .category-card .btn-secondary:focus,
[data-theme="dark"] #livros .book-button.is-buy:hover,
[data-theme="dark"] #livros .book-button.is-buy:focus {
    background: #3a7d67;
    border-color: #3a7d67;
    color: #fff;
}

[data-theme="dark"] #cursos .btn-outline-secondary,
[data-theme="dark"] #minicursos .btn-outline-secondary {
    border-color: rgba(127, 196, 165, 0.45);
    color: var(--rnt-link);
}

[data-theme="dark"] #cursos .btn-outline-secondary:hover,
[data-theme="dark"] #cursos .btn-outline-secondary:focus,
[data-theme="dark"] #minicursos .btn-outline-secondary:hover,
[data-theme="dark"] #minicursos .btn-outline-secondary:focus {
    background: #2e6553;
    border-color: #2e6553;
    color: #fff;
}

/* Formularios */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] #contato .form-control,
[data-theme="dark"] #contato .form-select,
[data-theme="dark"] .grupo-whatsapp__form .form-control,
[data-theme="dark"] .grupo-whatsapp__form .form-select,
[data-theme="dark"] .checkout-form .form-control,
[data-theme="dark"] .checkout-form .form-select,
[data-theme="dark"] .produto-frete__icon,
[data-theme="dark"] .produto-frete__group .form-control {
    background-color: var(--dark-surface-2);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--rnt-text);
}

[data-theme="dark"] .produto-frete__icon {
    color: var(--rnt-link);
}

[data-theme="dark"] .form-control::placeholder {
    color: #7f8f87;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--dark-surface-2);
    border-color: var(--rnt-link);
    color: var(--rnt-text);
    box-shadow: 0 0 0 0.2rem rgba(127, 196, 165, 0.2);
}

[data-theme="dark"] .produto-frete__error {
    color: #ff8f86;
}

[data-theme="dark"] .form-check-input {
    background-color: var(--dark-surface-2);
    border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .form-check-input:checked {
    background-color: #2e6553;
    border-color: #2e6553;
}

/* Tabelas, abas, alertas */
[data-theme="dark"] .table {
    color: var(--rnt-text);
    border-color: var(--dark-border);
}

[data-theme="dark"] .table > :not(caption) > * > * {
    color: var(--rnt-text);
    background-color: transparent;
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .cart-table th {
    color: var(--rnt-heading);
}

[data-theme="dark"] .cart-summary {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

[data-theme="dark"] .checkout-pix__qrcode {
    background: #fff;
    border-color: var(--dark-border);
}

[data-theme="dark"] .produto-tabs .nav-tabs {
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .produto-tabs .nav-link:hover {
    color: var(--rnt-text);
}

[data-theme="dark"] .produto-tabs .nav-link.active {
    color: var(--rnt-heading);
    background: none;
}

[data-theme="dark"] .text-muted {
    color: var(--rnt-muted) !important;
}

[data-theme="dark"] .alert-success {
    background: rgba(46, 125, 84, 0.18);
    border-color: rgba(46, 125, 84, 0.5);
    color: #b7e4c7;
}

[data-theme="dark"] .alert-warning {
    background: rgba(215, 166, 58, 0.15);
    border-color: rgba(215, 166, 58, 0.45);
    color: #f1d48a;
}

[data-theme="dark"] .alert-danger {
    background: rgba(200, 70, 70, 0.16);
    border-color: rgba(200, 70, 70, 0.5);
    color: #ffb4ae;
}

[data-theme="dark"] .produto-hero__image {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}
