/* ============================================================
   PRODUTOS NATURAIS TIAGO ROCHA - main.css
   Component styles: products, hero, sections, footer, etc.
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.tr-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.tr-hero__slide {
    position: relative;
    min-height: 520px;
    text-decoration: none;
    color: inherit;
    display: block;
    display: flex;
    align-items: center;
}

.tr-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tr-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(200,155,42,0.08) 0%, transparent 70%);
}

.tr-hero .tr-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.tr-hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0;
}

.tr-hero__text {
    color: var(--white);
}

.tr-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,155,42,0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.tr-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.tr-hero__title span {
    color: var(--gold-light);
}

.tr-hero__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.tr-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.tr-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tr-hero__badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.tr-hero__badges span i {
    color: var(--gold-light);
}

.tr-hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-hero__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    object-fit: cover;
}

.tr-hero__img-placeholder {
    width: 300px;
    height: 340px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

.tr-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.tr-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}

.tr-hero__dot--active,
.tr-hero__dot:hover {
    background: var(--gold);
    transform: scale(1.3);
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.tr-categories-strip {
    background: var(--white);
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
}

.tr-categories-strip__scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.tr-categories-strip__scroll::-webkit-scrollbar {
    display: none;
}

.tr-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.tr-cat-item:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

.tr-cat-item__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cat-color, var(--green)) 12%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cat-color, var(--green));
    transition: background var(--transition), transform var(--transition);
    border: 2px solid color-mix(in srgb, var(--cat-color, var(--green)) 20%, white);
}

.tr-cat-item:hover .tr-cat-item__icon {
    background: color-mix(in srgb, var(--cat-color, var(--green)) 20%, white);
    transform: scale(1.08);
}

.tr-cat-item__label {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-mid);
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.tr-cat-item:hover .tr-cat-item__label {
    color: var(--green);
}

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.tr-section {
    padding: 72px 0;
}

.tr-section__view-all {
    text-align: center;
    margin-top: 40px;
}

/* ============================================================
   OFFERS / COUNTDOWN
   ============================================================ */
.tr-offers {
    background: var(--white);
}

.tr-offers__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.tr-offers__header .tr-section-title {
    margin-bottom: 0;
    text-align: left;
}

.tr-offers__countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.tr-offers__countdown i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.tr-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tr-countdown__block {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.tr-countdown__block strong {
    font-size: 1.3rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}

.tr-countdown__block em {
    font-size: 0.72rem;
    font-style: normal;
    opacity: 0.75;
}

.tr-countdown__sep {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2px;
    opacity: 0.7;
}

/* ============================================================
   WOOCOMMERCE PRODUCT CARDS OVERRIDE
   ============================================================ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.tr-product-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
    position: relative;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--green);
}

/* Product image area */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: block;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Product badges */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
    margin: 0;
}

/* Product info */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 14px 6px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Star rating */
.woocommerce ul.products li.product .star-rating {
    padding: 0 14px 6px;
    font-size: 0.75rem;
    color: var(--gold);
}

.woocommerce ul.products li.product .star-rating::before {
    color: var(--mid-gray);
}

/* Price */
.woocommerce ul.products li.product .price {
    padding: 0 14px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-primary);
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    text-align: center;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: var(--gold-hover);
    transform: none;
}

.woocommerce ul.products li.product .button.loading::after {
    border-color: var(--white) transparent var(--white) transparent;
}

.woocommerce ul.products li.product .button.added {
    background: var(--green);
}

/* Discount badge overlay */
.tr-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Product quick view button */
.tr-quick-view-btn {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    color: var(--green);
    border: 2px solid var(--green);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    cursor: pointer;
    z-index: 3;
}

.woocommerce ul.products li.product:hover .tr-quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   TRUST BADGES STRIP
   ============================================================ */
.tr-trust-strip {
    background: var(--off-white);
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tr-trust-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
}

.tr-trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 160px;
    min-width: 160px;
}

.tr-trust-badge__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.tr-trust-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr-trust-badge__text strong {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.tr-trust-badge__text span {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.tr-stats-bar {
    background: var(--green);
    padding: 48px 0;
}

.tr-stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
}

.tr-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 180px;
    text-align: center;
    flex-direction: column;
}

.tr-stat__number {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.tr-stat__separator {
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.tr-stat__label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tr-stat__label i {
    color: var(--gold-light);
    font-size: 0.95rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tr-testimonials {
    background: var(--off-white);
}

.tr-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tr-testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.tr-testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tr-testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: var(--gold);
    font-size: 0.9rem;
}

.tr-testimonial-card__text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-mid);
    font-style: italic;
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
}

.tr-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.tr-testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--green);
}

.tr-testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-testimonial-card__avatar--placeholder {
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-gray);
    font-size: 1.5rem;
}

.tr-testimonial-card__author strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tr-testimonial-card__author span {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============================================================
   ABOUT DR. SECTION
   ============================================================ */
.tr-about-dr {
    background: var(--white);
}

.tr-about-dr__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.tr-about-dr__image {
    position: relative;
}

.tr-about-dr__img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.tr-about-dr__img-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--off-white), var(--light-gray));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--mid-gray);
    border: 2px dashed var(--border-color);
}

.tr-about-dr__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.tr-about-dr__badge strong {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
}

.tr-about-dr__badge span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    opacity: 0.9;
}

.tr-about-dr__content p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tr-about-dr__stats {
    display: flex;
    gap: 32px;
    margin: 28px 0;
}

.tr-about-dr__stat {
    text-align: center;
}

.tr-about-dr__stat strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green);
}

.tr-about-dr__stat span {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tr-about-dr__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ============================================================
   BLOG + INSTAGRAM SECTION
   ============================================================ */
.tr-blog-instagram {
    padding: 72px 0;
}

.tr-blog-instagram__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Recent posts */
.tr-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tr-recent-post-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.tr-recent-post-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--green);
}

.tr-recent-post-card__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tr-recent-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-recent-post-card__content {
    flex: 1;
    min-width: 0;
}

.tr-recent-post-card__date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.tr-recent-post-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.tr-recent-post-card h3 a {
    color: var(--text-dark);
}

.tr-recent-post-card h3 a:hover {
    color: var(--green);
}

/* Instagram grid */
.tr-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tr-instagram-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--light-gray);
}

.tr-instagram-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-gray);
    font-size: 2rem;
    background: var(--light-gray);
    transition: background var(--transition);
}

.tr-instagram-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,77,43,0.7);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.tr-instagram-item:hover .tr-instagram-item__overlay {
    opacity: 1;
}

.tr-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tr-instagram-item:hover img {
    transform: scale(1.08);
}

/* ============================================================
   BOTTOM TRUST SECTION
   ============================================================ */
.tr-bottom-trust {
    background: var(--white);
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

.tr-bottom-trust__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tr-bottom-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tr-bottom-trust__item > i {
    font-size: 2rem;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 3px;
}

.tr-bottom-trust__item strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tr-bottom-trust__item span {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tr-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.8);
}

/* Newsletter */
.tr-footer__newsletter {
    background: var(--green);
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tr-footer__newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.tr-footer__newsletter-text {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
}

.tr-footer__newsletter-text > i {
    font-size: 2rem;
    color: var(--gold-light);
    flex-shrink: 0;
}

.tr-footer__newsletter-text strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tr-footer__newsletter-text span {
    font-size: 0.85rem;
    opacity: 0.85;
}

.tr-footer__newsletter-form {
    display: flex;
    gap: 0;
    flex: 1 1 400px;
    max-width: 520px;
}

.tr-footer__newsletter-form input[type="email"] {
    flex: 1;
    padding: 13px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-right: none;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 0.9rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.tr-footer__newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.55);
}

.tr-footer__newsletter-form input[type="email"]:focus {
    border-color: var(--gold-light);
    background: rgba(255,255,255,0.18);
}

.tr-footer__newsletter-form .tr-btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    white-space: nowrap;
}

/* Main footer */
.tr-footer__main {
    padding: 56px 0 40px;
}

.tr-footer__columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* Brand column */
.tr-footer__logo img {
    max-height: 70px;
}

.tr-footer__logo-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.tr-footer__logo-text span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}

.tr-footer__logo-text strong {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--white);
}

.tr-footer__tagline {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
}

.tr-footer__social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tr-footer__social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}

.tr-footer__social-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.tr-footer__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}

.tr-footer__whatsapp:hover {
    background: #1da851;
    color: var(--white);
}

.tr-footer__whatsapp i {
    font-size: 1.1rem;
}

/* Footer columns */
.tr-footer__col-title {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.tr-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr-footer__menu li a,
.tr-footer__menu a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition), padding-left var(--transition);
}

.tr-footer__menu li a::before,
.tr-footer__menu a::before {
    content: '›';
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
}

.tr-footer__menu li a:hover,
.tr-footer__menu a:hover {
    color: var(--white);
    padding-left: 6px;
}

/* Contact info */
.tr-footer__contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
}

.tr-footer__contact-item i {
    color: var(--gold-light);
    width: 16px;
    flex-shrink: 0;
}

.tr-footer__contact-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}

.tr-footer__contact-item a:hover {
    color: var(--white);
}

/* Payment icons */
.tr-footer__payment {
    margin-top: 24px;
}

.tr-footer__payment h4 {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}

.tr-footer__payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tr-payment-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.tr-payment-badge:hover {
    background: rgba(255,255,255,0.2);
}

.tr-payment-badge--pix {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 7px 10px;
}

.tr-payment-badge--boleto {
    font-size: 1rem;
}

/* Security seals */
.tr-footer__seals {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tr-footer__seal {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.tr-footer__seal i {
    color: var(--gold-light);
}

/* Footer bottom bar */
.tr-footer__bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.tr-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tr-footer__bottom-social {
    display: flex;
    gap: 8px;
}

.tr-footer__bottom-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.tr-footer__bottom-social-link:hover {
    background: var(--gold);
    color: var(--white);
}

.tr-footer__copyright {
    text-align: center;
}

.tr-footer__copyright p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.tr-footer__copyright strong {
    color: rgba(255,255,255,0.75);
}

.tr-footer__cnpj {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.tr-back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), background var(--transition), transform var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 990;
}

.tr-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.tr-back-to-top:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */
.tr-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 995;
    text-decoration: none;
}

.tr-whatsapp-float:hover {
    background: #1da851;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ============================================================
   BLOG LAYOUT (index.php)
   ============================================================ */
.tr-main {
    padding: 40px 0;
    min-height: 60vh;
}

.tr-blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.tr-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.tr-blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.tr-blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tr-blog-card__thumb {
    position: relative;
    overflow: hidden;
}

.tr-blog-card__thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tr-blog-card:hover .tr-blog-card__thumb img {
    transform: scale(1.05);
}

.tr-blog-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
}

.tr-blog-card__category a {
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
}

.tr-blog-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-blog-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.tr-blog-card__meta time,
.tr-blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tr-blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.tr-blog-card__title a {
    color: var(--text-dark);
}

.tr-blog-card__title a:hover {
    color: var(--green);
}

.tr-blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Sidebar */
.tr-blog-sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.tr-blog-sidebar .widget__title {
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

/* Pagination */
.tr-pagination {
    margin-top: 40px;
}

.tr-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tr-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tr-pagination .page-numbers:hover,
.tr-pagination .page-numbers.current {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

/* No results */
.tr-no-results {
    text-align: center;
    padding: 64px 24px;
}

.tr-no-results__icon {
    font-size: 4rem;
    color: var(--mid-gray);
    margin-bottom: 24px;
}

.tr-no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tr-no-results p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Placeholder when WC not active */
.tr-products-placeholder {
    background: var(--off-white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 64px 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
}

/* ============================================================
   WOOCOMMERCE SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product {
    padding: 40px 0;
}

.woocommerce div.product .product_title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.woocommerce div.product .price {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 20px;
}

.woocommerce div.product .price del {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
}

.woocommerce div.product form.cart .button {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--transition);
}

.woocommerce div.product form.cart .button:hover {
    background: var(--gold-hover);
}

/* ============================================================
   WOOCOMMERCE CART / CHECKOUT
   ============================================================ */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.woocommerce-checkout #payment #place_order {
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    border: none;
    padding: 16px 32px;
    cursor: pointer;
    transition: background var(--transition);
}

.woocommerce-checkout #payment #place_order:hover {
    background: var(--gold-hover);
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    .tr-footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .tr-about-dr__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tr-about-dr__badge {
        bottom: -10px;
        right: 20px;
    }

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

    .tr-hero__content {
        grid-template-columns: 1fr;
        padding: 48px 0;
        text-align: center;
    }

    .tr-hero__subtitle {
        max-width: 100%;
    }

    .tr-hero__actions {
        justify-content: center;
    }

    .tr-hero__badges {
        justify-content: center;
    }

    .tr-hero__image {
        display: none;
    }

    .tr-blog-layout {
        grid-template-columns: 1fr;
    }

    .tr-blog-instagram__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

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

    .tr-section {
        padding: 48px 0;
    }

    .tr-blog-grid {
        grid-template-columns: 1fr;
    }

    .tr-offers__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tr-footer__newsletter-inner {
        flex-direction: column;
    }

    .tr-footer__newsletter-form {
        width: 100%;
        max-width: 100%;
    }

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

    .tr-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .tr-bottom-trust__inner {
        grid-template-columns: 1fr;
    }

    .tr-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .tr-about-dr__stats {
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .tr-hero__title {
        font-size: 1.8rem;
    }

    .tr-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tr-hero__actions .tr-btn {
        text-align: center;
        justify-content: center;
    }

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

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

    /* Newsletter mobile */
    .tr-footer__newsletter {
        padding: 24px 0;
    }
    .tr-footer__newsletter-form {
        flex-direction: column;
        gap: 8px;
    }
    .tr-footer__newsletter-form input[type="email"] {
        border-right: 2px solid rgba(255,255,255,0.3);
        border-radius: var(--radius-md);
        width: 100%;
    }
    .tr-footer__newsletter-form .tr-btn {
        border-radius: var(--radius-md);
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================================
   CART DRAWER
   ============================================================ */

/* Overlay */
.tr-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity .3s ease;
}
.tr-cart-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Drawer */
.tr-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.tr-cart-drawer.is-open {
    transform: translateX(0);
}

/* Prevent body scroll when drawer is open */
body.tr-drawer-open {
    overflow: hidden;
}

/* Header */
.tr-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: var(--green, #1e4d2b);
    color: #fff;
    flex-shrink: 0;
}
.tr-cart-drawer__title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tr-cart-drawer__count {
    background: var(--gold, #c89b2a);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tr-cart-drawer__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .2s;
    line-height: 1;
}
.tr-cart-drawer__close:hover {
    background: rgba(255,255,255,.15);
}

/* Body — scrollable */
.tr-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* Items list */
.tr-cart-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tr-cart-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
}
.tr-cart-drawer__item-img img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
}
.tr-cart-drawer__item-info {
    flex: 1;
    min-width: 0;
}
.tr-cart-drawer__item-name {
    font-size: .88rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}
.tr-cart-drawer__item-name:hover {
    color: var(--green, #1e4d2b);
}
.tr-cart-drawer__item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}
.tr-cart-drawer__item-qty {
    font-size: .78rem;
    color: #777;
}
.tr-cart-drawer__item-price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--green, #1e4d2b);
}
.tr-cart-drawer__remove {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: .85rem;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color .2s;
}
.tr-cart-drawer__remove:hover {
    color: #d32f2f;
}

/* Empty state */
.tr-cart-drawer__empty {
    text-align: center;
    padding: 48px 20px;
    color: #888;
}
.tr-cart-drawer__empty p {
    margin: 0 0 8px;
    font-size: .95rem;
}

/* Footer */
.tr-cart-drawer__foot {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tr-cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}
.tr-cart-drawer__total-value {
    font-size: 1.15rem;
    color: var(--green, #1e4d2b);
}
.tr-btn--block {
    display: block;
    width: 100%;
    text-align: center;
}
.tr-cart-drawer__view-cart {
    text-align: center;
    font-size: .82rem;
    color: #666;
    text-decoration: underline;
    display: block;
}
.tr-cart-drawer__view-cart:hover {
    color: var(--green, #1e4d2b);
}

/* Header cart button (now a <button>, keep same visual) */
.tr-header__action-btn--cart {
    border: none;
    cursor: pointer;
}

/* Carrinho: esconde label text, mantém só ícone + badge */
.tr-header__action-btn--cart .label {
    display: none;
}

@media (max-width: 480px) {
    .tr-cart-drawer {
        width: 100vw;
    }
}

/* ============================================================
   HOMEPAGE SECTIONS — classes geradas por front-page.php
   ============================================================ */

/* ---- HERO SLIDER ---- */
.tr-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #1a1a1a;
}
.tr-hero__track {
    position: relative;
    min-height: 520px;
}
.tr-hero__slide {
    display: none;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    position: relative;
}
.tr-hero__slide--active {
    display: flex;
}
.tr-hero__slide--placeholder {
    display: flex;
    background: linear-gradient(135deg, var(--green, #1e4d2b) 0%, var(--green-dark, #163d22) 100%);
}
.tr-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}
.tr-text-claro .tr-hero__overlay { background: rgba(0,0,0,0.45); }
.tr-text-escuro .tr-hero__overlay { background: rgba(255,255,255,0.25); }
.tr-hero .tr-container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 80px 0;
}
.tr-hero__content {
    max-width: 640px;
}
.tr-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px;
    display: block;
}
.tr-text-claro .tr-hero__title { color: #fff; }
.tr-text-escuro .tr-hero__title { color: #111; }
.tr-hero__title-highlight {
    display: block;
    color: var(--gold, #c89b2a);
}
.tr-hero__sub {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 32px;
}
.tr-text-claro .tr-hero__sub { color: rgba(255,255,255,0.85); }
.tr-text-escuro .tr-hero__sub { color: rgba(0,0,0,0.75); }
.tr-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* Dots */
.tr-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.tr-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.tr-hero__dot--active,
.tr-hero__dot:hover {
    background: #fff;
}

/* ---- STRIP DE CATEGORIAS ---- */
.tr-cat-strip {
    background: var(--white, #fff);
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    padding: 20px 0;
}
.tr-cat-strip__track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    justify-content: center;
}
.tr-cat-strip__track::-webkit-scrollbar { display: none; }
.tr-cat-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    max-width: 110px;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--text-dark, #1a1a1a);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    transition: color .2s;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.tr-cat-strip__item:hover { color: var(--green, #1e4d2b); }
.tr-cat-strip__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f0f4f1;
    border: 1.5px solid #d8e6da;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .2s;
    flex-shrink: 0;
}
.tr-cat-strip__item:hover .tr-cat-strip__icon {
    border-color: var(--green, #1e4d2b);
    background: #e2ede5;
    transform: translateY(-2px);
}
.tr-cat-strip__icon img,
.tr-cat-strip__icon svg {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.tr-cat-strip__icon svg {
    display: block;
    stroke: var(--green, #1e4d2b);
}
.tr-cat-strip__icon i {
    font-size: 1.4rem;
    color: var(--green, #1e4d2b);
}

/* ---- SEÇÕES GENÉRICAS DE PRODUTOS ---- */
.tr-home-section {
    padding: 56px 0;
}
.tr-home-section + .tr-home-section {
    padding-top: 0;
}
.tr-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.tr-section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--green, #1e4d2b);
    margin: 0;
}
.tr-section-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green, #1e4d2b);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.tr-section-link:hover { opacity: 0.7; }

/* Ofertas countdown */
.tr-ofertas-head-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tr-ofertas-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
}
.tr-ofertas-countdown strong {
    background: var(--green, #1e4d2b);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}

/* ---- CARROSSEL DE PRODUTOS (home-query.php) ---- */
.tr-carousel {
    position: relative;
    padding: 0 28px;
}
.tr-carousel__track {
    display: flex;
    gap: 16px;
    overflow: hidden;
    padding-bottom: 4px;
}
.tr-carousel__track::-webkit-scrollbar { display: none; }
.tr-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--green, #1e4d2b);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background .2s, color .2s, box-shadow .2s;
}
.tr-carousel__btn:hover {
    background: var(--green, #1e4d2b);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30,77,43,0.25);
}
.tr-carousel__btn:disabled {
    opacity: 0.4;
}
.tr-carousel__prev { left: 4px; }
.tr-carousel__next { right: 4px; }

/* ---- CARD DE PRODUTO ---- */
.tr-product-grid { /* mantém compatibilidade */ }

.tr-product-card {
    background: var(--white, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    /* exibe exatamente 4 cards: (100% - 3 gaps de 16px) / 4 */
    flex: 0 0 calc((100% - 48px) / 4);
    width: calc((100% - 48px) / 4);
}
.tr-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--green, #1e4d2b);
}
.tr-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 30px;
    z-index: 2;
    letter-spacing: .03em;
}
.tr-product-card__img-wrap {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    position: relative;
}
.tr-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: opacity .4s ease, transform .4s ease;
}
.tr-product-card__img-primary {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.tr-product-card__img-hover {
    opacity: 0;
    transform: scale(1.04);
    z-index: 2;
}
.tr-product-card:hover .tr-product-card__img-wrap.has-hover-img .tr-product-card__img-primary {
    opacity: 0;
}
.tr-product-card:hover .tr-product-card__img-wrap.has-hover-img .tr-product-card__img-hover {
    opacity: 1;
    transform: scale(1);
}
/* sem segunda imagem: só zoom */
.tr-product-card:hover .tr-product-card__img-wrap:not(.has-hover-img) .tr-product-card__img-primary {
    transform: scale(1.06);
}
.tr-product-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.tr-product-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tr-product-card__name:hover { color: var(--green, #1e4d2b); }
.tr-product-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green, #1e4d2b);
}
.tr-product-card__price del {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 400;
    margin-right: 4px;
}
.tr-product-card__price ins {
    text-decoration: none;
}
.tr-product-card__btn {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 9px 14px;
    background: var(--green, #1e4d2b);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    transition: background .2s;
    letter-spacing: .03em;
}
.tr-product-card__btn:hover {
    background: var(--green-dark, #163d22);
    color: #fff;
}
.tr-no-products {
    color: #888;
    font-style: italic;
    padding: 24px 0;
}

/* ---- TRUST STRIP ---- */
.tr-trust-strip {
    background: var(--off-white, #f8f8f5);
    padding: 32px 0;
    border-top: 1px solid var(--border-color, #e8e8e8);
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}
.tr-trust-strip__inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.tr-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-dark, #1a1a1a);
}
.tr-trust-item i {
    font-size: 1.5rem;
    color: var(--green, #1e4d2b);
    flex-shrink: 0;
}
.tr-trust-item strong {
    display: block;
    font-weight: 700;
}

/* ---- STATS BAR ---- */
.tr-stats-bar {
    background: var(--green, #1e4d2b);
    padding: 40px 0;
}
.tr-stats-bar__inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.tr-stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: #fff;
}
.tr-stats-bar__item i {
    font-size: 1.8rem;
    color: var(--gold, #c89b2a);
    margin-bottom: 4px;
}
.tr-stats-bar__item strong {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}
.tr-stats-bar__item span {
    font-size: 0.82rem;
    opacity: 0.8;
}

/* ---- DEPOIMENTOS ---- */
.tr-depoimentos {
    padding: 56px 0;
    background: var(--off-white, #f8f8f5);
}
.tr-depoimentos__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.tr-dep-card {
    background: #fff;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: var(--radius-md, 10px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tr-dep-card__stars {
    color: var(--gold, #c89b2a);
    font-size: 1rem;
    letter-spacing: 2px;
}
.tr-dep-card__texto {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-dark, #1a1a1a);
    flex: 1;
    margin: 0;
    font-style: italic;
}
.tr-dep-card__autor {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tr-dep-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tr-dep-card__avatar i { color: var(--green, #1e4d2b); }
.tr-dep-card__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ---- SEÇÃO SOBRE ---- */
.tr-sobre {
    padding: 72px 0;
}
.tr-sobre__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.tr-sobre__foto img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.tr-sobre__foto-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 220px;
    border: 2px dashed #ccc;
    border-radius: 16px;
    color: #aaa;
    font-size: .85rem;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.tr-sobre__foto-placeholder:hover { border-color: var(--green, #1e4d2b); color: var(--green, #1e4d2b); }
.tr-sobre__foto-placeholder i { font-size: 2rem; }
.tr-sobre__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--green, #1e4d2b);
    margin: 0 0 20px;
}
.tr-sobre__content p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 28px;
}
.tr-sobre__diferenciais {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}
.tr-sobre__dif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
}
.tr-sobre__dif-item i {
    color: var(--green, #1e4d2b);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---- BLOG SECTION ---- */
.tr-blog-section {
    padding: 56px 0;
    background: var(--off-white, #f8f8f5);
}
.tr-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.tr-blog-card {
    background: #fff;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    border: 1px solid var(--border-color, #e8e8e8);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.tr-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.tr-blog-card__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.tr-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}
.tr-blog-card:hover .tr-blog-card__img img { transform: scale(1.05); }
.tr-blog-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tr-blog-card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.tr-blog-card__body h3 a {
    color: var(--text-dark, #1a1a1a);
    text-decoration: none;
}
.tr-blog-card__body h3 a:hover { color: var(--green, #1e4d2b); }
.tr-blog-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green, #1e4d2b);
    text-decoration: none;
    margin-top: auto;
}
.tr-blog-card__link:hover { text-decoration: underline; }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.tr-woo-main,
.tr-single-main {
    padding: 32px 0 64px;
    min-height: 60vh;
}

/* Breadcrumb */
.tr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tr-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.tr-breadcrumb a:hover { color: var(--green, #1e4d2b); }
.tr-breadcrumb span:last-child { color: var(--text-dark, #1a1a1a); font-weight: 500; }

/* Layout principal */
.tr-single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}

/* Galeria */
.tr-single-gallery__main {
    position: relative;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    border: 1px solid var(--border-color, #e8e8e8);
    background: #f9f9f9;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tr-single-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.tr-single-gallery__main:hover .tr-single-gallery__img {
    transform: scale(1.05);
}
.tr-single-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    z-index: 2;
}
.tr-single-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.tr-single-gallery__thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 2px solid var(--border-color, #e8e8e8);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f5f5f5;
    transition: border-color .2s;
    flex-shrink: 0;
}
.tr-single-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tr-single-gallery__thumb.is-active,
.tr-single-gallery__thumb:hover {
    border-color: var(--green, #1e4d2b);
}

/* Info */
.tr-single-info__cat {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--green, #1e4d2b);
    margin-bottom: 8px;
}
.tr-single-info__cat a {
    color: inherit;
    text-decoration: none;
}
.tr-single-info__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text-dark, #1a1a1a);
    line-height: 1.2;
    margin: 0 0 14px;
}
.tr-single-info__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tr-single-info__rating .star-rating { color: var(--gold, #c89b2a); }
.tr-single-info__reviews {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
}
.tr-single-info__reviews:hover { color: var(--green, #1e4d2b); }
.tr-single-info__price {
    margin-bottom: 14px;
}
.tr-single-info__price-from {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}
.tr-single-info__price .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green, #1e4d2b);
}
.tr-single-info__price del {
    font-size: 1rem;
    color: #bbb;
    font-weight: 400;
}
.tr-single-info__price ins {
    text-decoration: none;
}
.tr-single-info__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
}
.tr-single-info__stock--in {
    background: #e8f5e9;
    color: #2e7d32;
}
.tr-single-info__stock--out {
    background: #fce4e4;
    color: #c62828;
}
.tr-single-info__short-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 20px;
    border-left: 3px solid var(--green, #1e4d2b);
    padding-left: 14px;
}

/* Add to cart */
.tr-single-add-to-cart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tr-single-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color, #e8e8e8);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}
.tr-qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-dark, #1a1a1a);
    transition: background .2s;
    flex-shrink: 0;
}
.tr-qty-btn:hover { background: #e8e8e8; }
.tr-qty-input {
    width: 52px;
    height: 48px;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.tr-qty-input::-webkit-outer-spin-button,
.tr-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tr-single-add-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
}
.tr-btn--green {
    background: var(--green, #1e4d2b);
    color: #fff;
    border-radius: var(--radius-md, 10px);
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
.tr-btn--green:hover { background: var(--green-dark, #163d22); color: #fff; }
.tr-btn--lg { padding: 14px 32px; font-size: 1rem; }

/* Sobre o Produto — botões de linha */
.tr-sobre-produto {
    margin-bottom: 20px;
}
.tr-sobre-produto__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
    margin: 0 0 12px;
}
.tr-info-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 8px;
    transition: background .2s, border-color .2s;
}
.tr-info-row:hover {
    background: var(--off-white, #f8f8f5);
    border-color: #bbb;
}
.tr-info-row__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tr-info-row__left i {
    font-size: 1.1rem;
    color: #3b5bdb;
    width: 20px;
    text-align: center;
}
.tr-info-row > .fa-chevron-right {
    font-size: 0.78rem;
    color: #3b5bdb;
}

/* Drawer direito (Descrição / Ficha Técnica) */
.tr-info-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.tr-info-drawer.is-open { display: block; }
.tr-info-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.tr-info-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 95vw;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.tr-info-drawer.is-open .tr-info-drawer__panel {
    transform: translateX(0);
}
.tr-info-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--green, #1e4d2b);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tr-info-drawer__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .2s;
}
.tr-info-drawer__close:hover { background: rgba(255,255,255,0.15); }
.tr-info-drawer__body {
    padding: 24px 20px;
    overflow-y: auto;
    flex: 1;
}

/* Tabela de atributos */
.tr-attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.tr-attr-table tr { border-bottom: 1px solid #f0f0f0; }
.tr-attr-table tr:last-child { border-bottom: none; }
.tr-attr-table th {
    text-align: left;
    padding: 8px 12px 8px 0;
    font-weight: 600;
    color: #555;
    width: 40%;
    vertical-align: top;
}
.tr-attr-table td {
    padding: 8px 0;
    color: var(--text-dark, #1a1a1a);
}

/* Trust mini */
.tr-single-trust {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color, #e8e8e8);
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.tr-single-trust__item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}
.tr-single-trust__item i { color: var(--green, #1e4d2b); font-size: 1rem; }

/* Meta */
.tr-single-meta {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tr-single-meta p { margin: 0; }
.tr-single-meta strong { color: var(--text-dark, #1a1a1a); }
.tr-single-meta a { color: #888; text-decoration: none; }
.tr-single-meta a:hover { color: var(--green, #1e4d2b); }

/* Tabs */
.tr-single-tabs {
    margin-bottom: 56px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}
.tr-single-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    background: var(--off-white, #f8f8f5);
}
.tr-tab-btn {
    padding: 14px 28px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.tr-tab-btn.is-active,
.tr-tab-btn:hover {
    color: var(--green, #1e4d2b);
    border-bottom-color: var(--green, #1e4d2b);
    background: #fff;
}
.tr-tab-panel {
    display: none;
    padding: 32px;
}
.tr-tab-panel.is-active { display: block; }
.tr-single-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
}
.tr-single-desc h2, .tr-single-desc h3 { color: var(--green, #1e4d2b); margin-top: 24px; }
.tr-single-desc ul, .tr-single-desc ol { padding-left: 20px; }
.tr-single-desc li { margin-bottom: 6px; }

/* Related products */
.tr-related-section { border-top: 1px solid var(--border-color, #e8e8e8); padding-top: 40px; }

/* Responsive */
@media (max-width: 860px) {
    .tr-single-product { grid-template-columns: 1fr; gap: 28px; }
    .tr-single-gallery__main { max-width: 420px; margin: 0 auto; }
    .tr-single-add-btn { min-width: 160px; }
}

/* ---- BTN GOLD OUTLINE ---- */
.tr-btn--gold-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--gold, #c89b2a);
    color: var(--gold, #c89b2a);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md, 10px);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.tr-btn--gold-outline:hover {
    background: var(--gold, #c89b2a);
    color: #fff;
}

/* ================================================================
   RESPONSIVE — todos os tamanhos
   ================================================================ */

/* --- 1024px: tablet landscape --- */
@media (max-width: 1024px) {
    .tr-container { padding: 0 20px; }

    /* Carrossel: 3 cards */
    .tr-product-card {
        flex: 0 0 calc((100% - 32px) / 3);
        width: calc((100% - 32px) / 3);
    }

    /* Single product */
    .tr-single-product { gap: 36px; }

    /* Sobre */
    .tr-sobre__inner { gap: 36px; }
}

/* --- 768px: tablet portrait --- */
@media (max-width: 768px) {
    /* Container */
    .tr-container { padding: 0 16px; }

    /* Seções gerais */
    .tr-home-section { padding: 40px 0; }
    .tr-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tr-section-title { font-size: 1.2rem; }

    /* Carrossel: 2 cards */
    .tr-carousel { padding: 0 16px; }
    .tr-product-card {
        flex: 0 0 calc((100% - 16px) / 2);
        width: calc((100% - 16px) / 2);
    }
    .tr-carousel__btn { width: 32px; height: 32px; font-size: 0.75rem; }
    .tr-carousel__prev { left: 0; }
    .tr-carousel__next { right: 0; }

    /* Hero */
    .tr-hero, .tr-hero__track, .tr-hero__slide { min-height: 380px; }
    .tr-hero .tr-container { padding: 48px 16px; }
    .tr-hero__title { font-size: 1.8rem; }
    .tr-hero__sub { font-size: 0.92rem; }

    /* Cat strip */
    .tr-cat-strip__item { min-width: 76px; max-width: 90px; font-size: 0.75rem; }
    .tr-cat-strip__icon { width: 56px; height: 56px; border-radius: 12px; }

    /* Trust strip */
    .tr-trust-strip { padding: 24px 0; }
    .tr-trust-strip__inner { gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
    .tr-trust-item { font-size: 0.82rem; gap: 8px; }
    .tr-trust-item i { font-size: 1.2rem; }

    /* Stats */
    .tr-stats-bar { padding: 28px 0; }
    .tr-stats-bar__inner { gap: 20px; }
    .tr-stats-bar__item strong { font-size: 1.1rem; }

    /* Depoimentos */
    .tr-depoimentos { padding: 40px 0; }
    .tr-depoimentos__track { grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Sobre */
    .tr-sobre { padding: 40px 0; }
    .tr-sobre__inner { grid-template-columns: 1fr; gap: 24px; }
    .tr-sobre__foto { display: none; }
    .tr-sobre__diferenciais { grid-template-columns: 1fr 1fr; }

    /* Blog */
    .tr-blog-section { padding: 40px 0; }
    .tr-blog-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    /* Single product */
    .tr-single-product { grid-template-columns: 1fr; gap: 24px; }
    .tr-single-gallery__main { max-width: 400px; margin: 0 auto; }
    .tr-single-info__title { font-size: 1.4rem; }
    .tr-single-info__price .price { font-size: 1.5rem; }
    .tr-single-add-btn { min-width: 140px; font-size: 0.9rem; }

    /* Tabs produto */
    .tr-tab-btn { padding: 12px 16px; font-size: 0.85rem; }
    .tr-tab-panel { padding: 20px 16px; }

    /* Drawer info */
    .tr-info-drawer__panel { width: 100%; max-width: 100%; }

    /* Woo main */
    .tr-woo-main, .tr-single-main { padding: 20px 0 48px; }

    /* Footer */
    .tr-footer__columns { grid-template-columns: 1fr 1fr !important; gap: 28px; }
}

/* --- 576px: mobile grande --- */
@media (max-width: 576px) {
    /* Hero */
    .tr-hero, .tr-hero__track, .tr-hero__slide { min-height: 320px; }
    .tr-hero .tr-container { padding: 36px 16px; }
    .tr-hero__title { font-size: 1.5rem; }
    .tr-hero__cta { padding: 10px 20px; font-size: 0.88rem; }

    /* Carrossel: 2 cards (menores) */
    .tr-carousel { padding: 0 12px; }
    .tr-product-card {
        flex: 0 0 calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);
    }
    .tr-carousel__track { gap: 12px; }

    /* Card produto */
    .tr-product-card__body { padding: 10px 10px 12px; gap: 6px; }
    .tr-product-card__name { font-size: 0.8rem; }
    .tr-product-card__price { font-size: 0.9rem; }
    .tr-product-card__btn { padding: 8px 10px; font-size: 0.78rem; }
    .tr-product-card__img-wrap { aspect-ratio: 1/1; }

    /* Trust strip */
    .tr-trust-strip__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    /* Stats: 2 colunas */
    .tr-stats-bar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Depoimentos: 1 coluna */
    .tr-depoimentos__track { grid-template-columns: 1fr; }

    /* Blog: 1 coluna */
    .tr-blog-grid { grid-template-columns: 1fr; }

    /* Sobre diferenciais */
    .tr-sobre__diferenciais { grid-template-columns: 1fr; }

    /* Breadcrumb */
    .tr-breadcrumb { font-size: 0.75rem; gap: 6px; }

    /* Single product */
    .tr-single-info__title { font-size: 1.2rem; }
    .tr-single-add-to-cart { flex-direction: column; gap: 10px; }
    .tr-single-qty { align-self: flex-start; }
    .tr-single-add-btn { width: 100%; }
    .tr-single-trust { gap: 12px; }
    .tr-single-trust__item { font-size: 0.75rem; }
    .tr-single-gallery__thumbs { gap: 8px; }
    .tr-single-gallery__thumb { width: 56px; height: 56px; }

    /* Ofertas countdown */
    .tr-ofertas-head-left { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Section head */
    .tr-section-head { margin-bottom: 16px; }

    /* Footer */
    .tr-footer__columns { grid-template-columns: 1fr !important; }
}

/* --- 480px: mobile padrão --- */
@media (max-width: 480px) {
    .tr-container { padding: 0 12px; }

    /* Topbar */
    .tr-topbar { display: none; }

    /* Hero */
    .tr-hero, .tr-hero__track, .tr-hero__slide { min-height: 260px; }
    .tr-hero__title { font-size: 1.3rem; }
    .tr-hero__sub { display: none; }
    .tr-hero__dots { bottom: 10px; }

    /* Cat strip */
    .tr-cat-strip { padding: 14px 0; }
    .tr-cat-strip__icon { width: 48px; height: 48px; border-radius: 10px; }
    .tr-cat-strip__item { min-width: 68px; font-size: 0.75rem; }

    /* Carrossel: 2 cards pequenos */
    .tr-carousel__track { gap: 10px; }
    .tr-product-card {
        flex: 0 0 calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
    }

    /* Stats: 1 coluna */
    .tr-stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tr-stats-bar__item strong { font-size: 1rem; }
    .tr-stats-bar__item i { font-size: 1.4rem; }

    /* Trust: 2 colunas */
    .tr-trust-strip__inner { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Add to cart full width */
    .tr-single-add-to-cart { flex-direction: column; }
    .tr-single-add-btn { width: 100%; justify-content: center; }

    /* Tabs nav scroll */
    .tr-single-tabs__nav { overflow-x: auto; flex-wrap: nowrap; }
    .tr-tab-btn { white-space: nowrap; flex-shrink: 0; }

    /* Sobre */
    .tr-home-section { padding: 32px 0; }
    .tr-depoimentos { padding: 32px 0; }
    .tr-sobre { padding: 32px 0; }
    .tr-blog-section { padding: 32px 0; }
}

/* --- 360px: mobile pequeno --- */
@media (max-width: 360px) {
    .tr-hero__title { font-size: 1.15rem; }
    .tr-product-card__name { font-size: 0.75rem; }
    .tr-product-card__btn { font-size: 0.72rem; padding: 7px 8px; }
    .tr-single-gallery__thumb { width: 48px; height: 48px; }
    .tr-cat-strip__icon { width: 44px; height: 44px; }
    .tr-cat-strip__item { min-width: 60px; }
    .tr-stats-bar__inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PÁGINA DE LOJA / CATEGORIA (ARCHIVE)
   ============================================================ */

/* Hero da loja/categoria */
.tr-archive-hero {
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    position: relative;
    overflow: hidden;
}
.tr-archive-hero--has-bg {
    background-size: cover;
    background-position: center;
    padding: 48px 0 40px;
    color: #fff;
}
.tr-archive-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.tr-archive-hero--has-bg .tr-container { position: relative; z-index: 1; }
.tr-archive-hero--has-bg .tr-breadcrumb,
.tr-archive-hero--has-bg .tr-breadcrumb a,
.tr-archive-hero--has-bg .tr-breadcrumb span { color: rgba(255,255,255,.85); }

.tr-archive-hero__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--green, #1e4d2b);
    margin: 8px 0 0;
    line-height: 1.2;
}
.tr-archive-hero--has-bg .tr-archive-hero__title { color: #fff; }

.tr-archive-hero__desc {
    margin: 8px 0 0;
    color: var(--text-light, #777);
    font-size: .9rem;
    max-width: 600px;
}
.tr-archive-hero--has-bg .tr-archive-hero__desc { color: rgba(255,255,255,.9); }

/* Layout: sidebar + conteúdo */
.tr-archive-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 32px 0 48px;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.tr-archive-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tr-sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    padding: 20px;
}
.tr-sidebar-widget__title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-dark, #1a1a1a);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green, #1e4d2b);
}
.tr-sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tr-sidebar-cats li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-mid, #444);
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.tr-sidebar-cats li a:hover { background: #f0f7f0; color: var(--green, #1e4d2b); }
.tr-sidebar-cats li.is-active a {
    background: #e4f0e6;
    color: var(--green, #1e4d2b);
    font-weight: 700;
}
.tr-sidebar-cats li a i { font-size: .8rem; color: var(--green, #1e4d2b); opacity: .7; }
.tr-sidebar-cats__count {
    margin-left: auto;
    background: #eee;
    color: #777;
    font-size: .72rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
}
.tr-sidebar-cats li.is-active .tr-sidebar-cats__count { background: var(--green, #1e4d2b); color: #fff; }

/* Filtro de preço */
.tr-price-filter__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.tr-price-filter__field label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-light, #777);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tr-price-filter__field input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    font-size: .85rem;
    box-sizing: border-box;
}
.tr-price-filter__field input:focus {
    outline: none;
    border-color: var(--green, #1e4d2b);
}
.tr-price-filter__clear {
    display: block;
    margin-top: 8px;
    font-size: .78rem;
    color: var(--text-light, #777);
    text-decoration: underline;
    text-align: center;
}

/* ---- BARRA DE CONTROLES ---- */
.tr-archive-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}
.tr-archive-bar__count {
    font-size: .85rem;
    color: var(--text-light, #777);
    margin: 0;
}
.tr-archive-bar__sort select,
.woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 8px;
    font-size: .85rem;
    font-family: var(--font-primary);
    color: var(--text-dark, #1a1a1a);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23444' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.tr-archive-bar__sort select:focus,
.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--green, #1e4d2b);
}
.woocommerce-ordering { margin: 0; }

/* ---- GRID DE PRODUTOS ---- */
.tr-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* Reset do flex fixo do carrossel para funcionar no grid */
.tr-shop-grid .tr-product-card {
    flex: none;
    width: 100%;
    min-width: 0;
}
.tr-shop-grid .tr-product-card__img-wrap {
    aspect-ratio: 1 / 1;
}
.tr-shop-grid .tr-product-card__name {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    min-height: 3.8em;
}
.tr-shop-grid .tr-product-card__price {
    font-size: 1.05rem;
}
.tr-shop-grid .tr-product-card__btn {
    font-size: 0.82rem;
    padding: 10px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- PAGINAÇÃO ---- */
.tr-archive-pagination { margin-top: 36px; }
.tr-archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.tr-archive-pagination .page-numbers li a,
.tr-archive-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e8e8e8);
    color: var(--text-mid, #444);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.tr-archive-pagination .page-numbers li a:hover {
    background: #f0f7f0;
    border-color: var(--green, #1e4d2b);
    color: var(--green, #1e4d2b);
}
.tr-archive-pagination .page-numbers li span.current {
    background: var(--green, #1e4d2b);
    border-color: var(--green, #1e4d2b);
    color: #fff;
}
.tr-archive-pagination .page-numbers li span.dots {
    border: none;
    background: none;
}

/* ---- VAZIO ---- */
.tr-archive-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light, #777);
}
.tr-archive-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 16px; }
.tr-archive-empty h3 { font-size: 1.2rem; color: var(--text-dark, #1a1a1a); margin: 0 0 8px; }
.tr-archive-empty p { margin: 0 0 20px; }

/* fora de estoque */
.tr-product-card__out-of-stock {
    display: block;
    text-align: center;
    font-size: .78rem;
    color: #999;
    padding: 9px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 6px;
}

/* Mobile sidebar filter toggle button */
.tr-sidebar-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 12px;
    background: var(--green, #1e4d2b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background .2s;
    min-height: 44px;
}
.tr-sidebar-filter-toggle:hover { background: var(--green-dark, #163d22); }
.tr-sidebar-filter-toggle i { font-size: 1rem; }

/* ---- RESPONSIVO ---- */
@media (max-width: 1024px) {
    .tr-archive-layout { grid-template-columns: 210px 1fr; gap: 20px; }
    .tr-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .tr-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* Show the Filtrar toggle button */
    .tr-sidebar-filter-toggle { display: flex; }

    .tr-archive-layout { grid-template-columns: 1fr; }
    .tr-archive-sidebar {
        position: static;
        /* Hidden by default on mobile, shown via toggle */
        display: none;
    }
    .tr-archive-sidebar.is-open { display: flex; }

    .tr-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tr-archive-hero { padding: 20px 0 16px; }
    .tr-archive-hero__title { font-size: 1.3rem; }

    /* Stack archive bar on mobile */
    .tr-archive-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tr-archive-bar__sort select,
    .woocommerce-ordering select { width: 100%; }
}
@media (max-width: 480px) {
    .tr-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* Product card smaller text but no smaller than 12px */
    .tr-shop-grid .tr-product-card__name { font-size: 0.82rem; }
    .tr-shop-grid .tr-product-card__price { font-size: 0.9rem; }
    .tr-shop-grid .tr-product-card__btn { font-size: 0.78rem; padding: 10px 8px; min-height: 40px; }
}

/* ============================================================
   HEADER V2 — COMPACTO COLORIDO
   ============================================================ */
.tr-header--v2 {
    background: var(--hv2-bg, #1a3fd4);
    color: var(--hv2-text, #fff);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.tr-hv2-top {
    padding: 10px 0;
}

.tr-hv2-top__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Left */
.tr-hv2-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tr-hv2-toggle { display: none; }

.tr-hv2-logo {
    color: var(--hv2-text, #fff);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: nowrap;
}
.tr-hv2-logo img,
.tr-hv2-logo .custom-logo { max-height: 48px; width: auto; }

/* Center search */
.tr-hv2-search {
    flex: 1;
    min-width: 0;
}
.tr-hv2-search form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 44px;
}
.tr-hv2-search form i {
    position: absolute;
    left: 14px;
    color: #999;
    font-size: .95rem;
    pointer-events: none;
}
.tr-hv2-search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px 0 38px;
    font-size: .9rem;
    height: 100%;
    background: transparent;
    color: #333;
    font-family: var(--font-primary);
}
.tr-hv2-search button[type="submit"] {
    background: none;
    border: none;
    width: 0;
    padding: 0;
    display: none;
}

/* Right actions */
.tr-hv2-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Ícone de busca mobile V2 (oculto no desktop) */
.tr-hv2-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: var(--hv2-text, #fff);
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}
.tr-hv2-search-btn:hover { opacity: .8; }

/* Overlay de busca mobile V2 */
.tr-hv2-mobile-search {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--hv2-bg, #1a3fd4);
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    z-index: 20;
}
.tr-hv2-mobile-search.is-open {
    display: flex;
}
.tr-hv2-mobile-search form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 0 14px;
    height: 44px;
}
.tr-hv2-mobile-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #333;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    padding: 0;
}
.tr-hv2-mobile-search input[type="search"]::placeholder {
    color: #aaa;
}
.tr-hv2-mobile-search-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--hv2-text, #fff);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.tr-hv2-mobile-search-close:hover { background: rgba(255,255,255,0.25); }

.tr-hv2-account {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hv2-text, #fff);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .15s;
    white-space: nowrap;
}
.tr-hv2-account:hover { background: rgba(255,255,255,.15); }
.tr-hv2-account i { font-size: 1.5rem; }
.tr-hv2-account__text { display: flex; flex-direction: column; line-height: 1.3; }
.tr-hv2-account__text small { font-size: .72rem; font-weight: 400; opacity: .9; }
.tr-hv2-account__text strong { font-size: .82rem; font-weight: 700; }

.tr-hv2-cart {
    background: none;
    border: none;
    color: var(--hv2-text, #fff);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .15s;
    position: relative;
}
.tr-hv2-cart:hover { background: rgba(255,255,255,.15); }
.tr-hv2-cart .tr-cart-icon-wrap { display: inline-flex; position: relative; }
.tr-hv2-cart i { font-size: 1.6rem; }
.tr-hv2-cart .tr-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #22c55e;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--hv2-bg, #1a3fd4);
    line-height: 1;
}

/* Nav bar v2 */
.tr-hv2-nav {
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.12);
}
.tr-hv2-nav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
}
.tr-header--v2 .tr-navbar__all-cats {
    background: rgba(255,255,255,.12);
    color: var(--hv2-text, #fff);
    border: none;
    font-size: .82rem;
    padding: 10px 16px;
    gap: 8px;
    border-radius: 0;
}
.tr-header--v2 .tr-navbar__all-cats:hover { background: rgba(255,255,255,.22); }
.tr-header--v2 .tr-navbar__menu { flex: 1; display: flex; justify-content: center; }
.tr-header--v2 .tr-navbar__menu ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.tr-header--v2 .tr-navbar__menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--hv2-text, #fff);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    opacity: .9;
    transition: background .15s, opacity .15s;
}
.tr-header--v2 .tr-navbar__menu li a:hover {
    background: rgba(255,255,255,.12);
    opacity: 1;
}
.tr-header--v2 .tr-navbar__menu li.menu-item-promo a { color: #ffd700; }

/* Hide topbar in v2 */
.tr-header--v2 ~ .tr-topbar,
body:has(.tr-header--v2) .tr-topbar { display: none; }

/* Responsive v2 */
@media (max-width: 768px) {
    /* Show hamburger toggle on mobile */
    .tr-hv2-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        background: rgba(255,255,255,0.15);
        color: var(--hv2-text, #fff);
        border-radius: 8px;
        font-size: 1.2rem;
        cursor: pointer;
        flex-shrink: 0;
        transition: background .15s;
    }
    .tr-hv2-toggle:hover { background: rgba(255,255,255,0.25); }

    /* Hide account text, keep icon */
    .tr-hv2-account__text { display: none; }
    .tr-hv2-account i { font-size: 1.35rem; }
    .tr-hv2-account { min-height: 44px; min-width: 44px; justify-content: center; }
    .tr-hv2-cart { min-height: 44px; min-width: 44px; }
    .tr-hv2-cart i { font-size: 1.35rem; }

    /* Nav bar hidden on mobile, toggled via hamburger */
    .tr-hv2-nav { display: none; }

    /* When nav is open via JS toggle (is-open class on header or nav) */
    .tr-hv2-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        background: var(--hv2-bg, #1a3fd4);
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    /* Stack nav items vertically on mobile */
    .tr-header--v2 .tr-hv2-nav__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .tr-header--v2 .tr-navbar__all-cats { display: none; }
    .tr-header--v2 .tr-navbar__menu {
        display: flex !important;
        flex-direction: column;
    }
    .tr-header--v2 .tr-navbar__menu ul {
        flex-direction: column;
        width: 100%;
    }
    .tr-header--v2 .tr-navbar__menu li a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* Make header--v2 relative so overlay and nav dropdown position correctly */
    .tr-header--v2 { position: relative; }

    /* Busca mobile V2: esconde barra inline, mostra ícone */
    .tr-header--v2 .tr-hv2-search { display: none; }
    .tr-hv2-search-btn { display: flex; }
}
@media (max-width: 576px) {
    .tr-hv2-top__inner { gap: 8px; }
    .tr-hv2-left { gap: 6px; }
    .tr-hv2-search input[type="search"] { font-size: 0.85rem; }
}

/* ============================================================
   COMPATIBILIDADE — oculta elementos legados de plugins/temas
   removidos que possam cobrir o conteúdo da home
   ============================================================ */
[class*="dio-"],
[class*="diogenes-"] {
    display: none !important;
}

/* ============================================================
   MINHA CONTA (MY ACCOUNT)
   ============================================================ */

.tr-myaccount-wrap {
    background: #f5f7f5;
    min-height: 60vh;
    padding: 36px 0 60px;
}

.tr-myaccount-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.tr-myaccount-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Perfil */
.tr-myaccount-profile {
    background: var(--green, #1e4d2b);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}
.tr-myaccount-profile__avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.4);
    object-fit: cover;
}
.tr-myaccount-profile__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tr-myaccount-profile__info strong {
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tr-myaccount-profile__info span {
    font-size: .75rem;
    opacity: .8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navegação */
.tr-myaccount-nav {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e8e8e8);
    overflow: hidden;
}
.tr-myaccount-nav ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.tr-myaccount-nav__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-mid, #444);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
    position: relative;
}
.tr-myaccount-nav__item a:hover {
    background: #f0f7f0;
    color: var(--green, #1e4d2b);
}
.tr-myaccount-nav__item.is-active a {
    background: #e4f0e6;
    color: var(--green, #1e4d2b);
    font-weight: 700;
}
.tr-myaccount-nav__item a i:first-child {
    width: 18px;
    text-align: center;
    color: var(--green, #1e4d2b);
    font-size: .9rem;
}
.tr-myaccount-nav__item.is-active a i:first-child { color: var(--green, #1e4d2b); }
.tr-myaccount-nav__arrow {
    margin-left: auto;
    font-size: .7rem;
    opacity: .4;
}
.tr-myaccount-nav__item--logout {
    border-top: 1px solid var(--border-color, #e8e8e8);
    margin-top: 4px;
    padding-top: 4px;
}
.tr-myaccount-nav__item--logout a { color: #c0392b; }
.tr-myaccount-nav__item--logout a i:first-child { color: #c0392b; }
.tr-myaccount-nav__item--logout a:hover { background: #fdf0f0; color: #c0392b; }

/* Trust badges sidebar */
.tr-myaccount-trust {
    background: #fff;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tr-myaccount-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    color: var(--text-light, #777);
}
.tr-myaccount-trust__item i { color: var(--green, #1e4d2b); font-size: .9rem; }

/* ---- CONTENT ---- */
.tr-myaccount-content {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e8e8e8);
    padding: 28px 28px 32px;
    min-height: 400px;
}

/* Boas-vindas */
.tr-myaccount-welcome {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}
.tr-myaccount-welcome h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
    margin: 0 0 6px;
}
.tr-myaccount-welcome p { margin: 0; color: var(--text-light, #777); font-size: .9rem; }

/* Stats */
.tr-myaccount-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.tr-myaccount-stat {
    background: #f5f7f5;
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-dark, #1a1a1a);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tr-myaccount-stat:hover {
    border-color: var(--green, #1e4d2b);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.tr-myaccount-stat i {
    font-size: 1.5rem;
    color: var(--green, #1e4d2b);
    width: 36px;
    text-align: center;
}
.tr-myaccount-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
}
.tr-myaccount-stat span { font-size: .75rem; color: var(--text-light, #777); }

/* Section */
.tr-myaccount-section { margin-bottom: 28px; }
.tr-myaccount-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green, #1e4d2b);
}
.tr-myaccount-section__head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #1a1a1a);
}
.tr-myaccount-section__link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--green, #1e4d2b);
    text-decoration: none;
}

/* Order cards */
.tr-myaccount-orders { display: flex; flex-direction: column; gap: 12px; }
.tr-myaccount-order-card {
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.tr-myaccount-order-card:hover {
    border-color: var(--green, #1e4d2b);
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.tr-myaccount-order-card__head {
    background: #f5f7f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
}
.tr-myaccount-order-card__number {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a1a);
}
.tr-myaccount-order-card__body {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tr-myaccount-order-card__info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.tr-myaccount-order-card__info span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--text-light, #777);
}
.tr-myaccount-order-card__info i { color: var(--green, #1e4d2b); font-size: .8rem; }

/* Status badges */
.tr-order-status {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tr-order-status--completed { background: #e4f0e6; color: #1e4d2b; }
.tr-order-status--processing { background: #fff3cd; color: #856404; }
.tr-order-status--on-hold { background: #e8f0fe; color: #1a3fd4; }
.tr-order-status--cancelled { background: #fde8e8; color: #c0392b; }
.tr-order-status--pending { background: #f5f5f5; color: #666; }
.tr-order-status--refunded { background: #f0e8fe; color: #6b3fd4; }

/* Empty state */
.tr-myaccount-empty-orders {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light, #777);
}
.tr-myaccount-empty-orders i { font-size: 2.5rem; color: #ddd; display: block; margin-bottom: 12px; }
.tr-myaccount-empty-orders p { margin: 0 0 16px; }

/* WooCommerce override — remove default styling inside content */
.tr-myaccount-content .woocommerce-MyAccount-content p:first-child { margin-top: 0; }
.tr-myaccount-content table.woocommerce-orders-table,
.tr-myaccount-content table.woocommerce-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tr-myaccount-content table th { background: #f5f7f5; color: var(--green, #1e4d2b); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--green, #1e4d2b); }
.tr-myaccount-content table td { padding: 12px 14px; border-bottom: 1px solid var(--border-color, #e8e8e8); vertical-align: middle; }
.tr-myaccount-content table tr:last-child td { border-bottom: none; }
.tr-myaccount-content table tr:hover td { background: #fafafa; }
.tr-myaccount-content .woocommerce-Button,
.tr-myaccount-content .button { background: var(--green, #1e4d2b); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s; }
.tr-myaccount-content .woocommerce-Button:hover,
.tr-myaccount-content .button:hover { background: #163d22; color: #fff; }
.tr-myaccount-content .woocommerce-form input[type="text"],
.tr-myaccount-content .woocommerce-form input[type="email"],
.tr-myaccount-content .woocommerce-form input[type="password"],
.tr-myaccount-content .woocommerce-form input[type="tel"] { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color, #e8e8e8); border-radius: 8px; font-size: .9rem; box-sizing: border-box; margin-bottom: 4px; }
.tr-myaccount-content .woocommerce-form input:focus { outline: none; border-color: var(--green, #1e4d2b); }
.tr-myaccount-content .woocommerce-form label { font-size: .82rem; font-weight: 600; color: var(--text-dark, #1a1a1a); display: block; margin-bottom: 4px; }
.tr-myaccount-content .woocommerce-address-fields h3,
.tr-myaccount-content .woocommerce-EditAccountForm h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark, #1a1a1a); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--green, #1e4d2b); }

/* Responsive */
@media (max-width: 860px) {
    .tr-myaccount-layout { grid-template-columns: 220px 1fr; gap: 18px; }
    .tr-myaccount-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    /* Sidebar stacks above content */
    .tr-myaccount-layout { grid-template-columns: 1fr; }
    .tr-myaccount-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .tr-myaccount-profile { flex: 1 1 100%; }
    .tr-myaccount-nav { flex: 1 1 100%; }
    .tr-myaccount-trust { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 14px; }
    .tr-myaccount-stats { grid-template-columns: repeat(2, 1fr); }
    .tr-myaccount-content { padding: 20px 16px 24px; }

    /* Touch-friendly nav items */
    .tr-myaccount-nav__item a {
        min-height: 44px;
        padding: 12px 18px;
    }

    /* Order card info stacks */
    .tr-myaccount-order-card__info { gap: 10px; }
    .tr-myaccount-order-card__info span { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    /* Stats: 2 columns */
    .tr-myaccount-stats { grid-template-columns: 1fr 1fr; }
    .tr-myaccount-stat { padding: 14px 12px; }
    .tr-myaccount-stat i { font-size: 1.2rem; width: 28px; }
    .tr-myaccount-stat strong { font-size: 0.95rem; }

    /* Order card stacks */
    .tr-myaccount-order-card__body { flex-direction: column; align-items: flex-start; }
    .tr-myaccount-order-card__info { flex-direction: column; gap: 6px; }

    /* WooCommerce table scroll on mobile */
    .tr-myaccount-content table.woocommerce-orders-table,
    .tr-myaccount-content table.woocommerce-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tr-myaccount-content { padding: 16px 12px 20px; }
}

/* ============================================================
   SINGLE PRODUCT — additional mobile fixes
   ============================================================ */
@media (max-width: 576px) {
    /* Gallery thumbs: horizontal scroll row instead of wrap */
    .tr-single-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .tr-single-gallery__thumbs::-webkit-scrollbar { display: none; }
    .tr-single-gallery__thumb { flex-shrink: 0; }

    /* Add to cart: full width */
    .tr-single-add-to-cart { flex-direction: column; gap: 10px; }
    .tr-single-qty { align-self: flex-start; }
    .tr-single-add-btn { width: 100%; justify-content: center; }

    /* Info drawer panel: full width */
    .tr-info-drawer__panel { width: 100%; max-width: 100%; }

    /* Trust badges: wrap to 2-column grid on mobile */
    .tr-single-trust {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
