/* Brand Colors */
:root {
    --reto-green: #0f3d22;
    --reto-red: #d62828;
}

.reto-navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    background:rgba(15,61,34,.88);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.navbar-brand, .nav-link {
    color: white !important;
}

body {
    font-family: "Mulish", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  padding-top: 50px;
    
}

.btn{
    border-radius: 12px !important;
    padding: 12px 22px;
    font-weight: 600;
    transition: .25s ease;
}

.btn-success {
    background-color: var(--reto-green);
    border-color: var(--reto-green);
}

.btn-success:hover {
    background-color: #166b2b;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition:transform .5s ease;
}

.product-card:hover img{
    transform:scale(1.06);
}


.carousel-item img {
max-height: 400px;
object-fit: cover;
}


.breadcrumb a {
color: var(--reto-green);
text-decoration: none;
}




.thumb-img:hover {
    border-color: var(--reto-green);
}


.hero-section{
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: url("../images/herox.webp")
        center center / cover no-repeat;
}



/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}


.hero-section .container {
    position: relative;
    z-index: 3;
}



@media (max-width: 768px){

    .hero-section{
        height: 75vh;
        min-height: 450px;

        background: url("../images/herox2.webp")
            center center / cover no-repeat;
    }

}


/* why choose reto */

/* WHY CHOOSE RETO */
.why-card {
    padding: 30px;
    border-radius: 16px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

/* Soft Background Colors */
.bg-soft-green { background: #f1f8f4; }
.bg-soft-blue { background: #f2f6fb; }
.bg-soft-orange { background: #fff6eb; }
.bg-soft-pink { background: #fff0f3; }
.bg-soft-lightblue { background: #eef9ff; }
.bg-soft-gray { background: #f6f6f6; }

/* Icon Colors */
.bg-green { background: #1f8f3a; }
.bg-blue { background: #2563eb; }
.bg-orange { background: #f59e0b; }
.bg-pink { background: #ec4899; }
.bg-lightblue { background: #0ea5e9; }
.bg-gray { background: #6b7280; }

/* footer */

.reto-footer {
    background: #0f3d22;
}

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

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.3s ease;
}

.footer-social:hover {
    background: var(--reto-green);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
}

/* legal */


.legal-page h1 {
    font-size: 2.2rem;
}

.legal-page h5 {
    margin-top: 2rem;
    font-weight: 600;
    color: #1f8f3a; /* Reto green */
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

.legal-page ul {
    padding-left: 1.2rem;
}

.legal-page a {
    color: var(--reto-green);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}


/* cookie */



.cookie-popup {
    position: fixed;
    inset: 0;
    display: none; 
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
}

.cookie-popup.show {
    display: flex;
}

/* Card */
.cookie-card {
    background: #ffffff;
    color: #111;
    width: 95%;
    max-width: 520px;
    margin-bottom: 30px;
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: auto;
}

/* Show animation */
.cookie-popup.show .cookie-card {
    transform: translateY(0);
    opacity: 1;
}

/* Text */
.cookie-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.cookie-text p {
    font-size: 14px;
    margin: 0;
    color: #555;
}

.cookie-text a {
    color: var(--reto-green);
    font-weight: 500;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

/* Actions */
.cookie-actions {
    margin-top: 15px;
    text-align: right;
}

/* Mobile full center */
@media (max-width: 576px) {
    .cookie-popup {
        align-items: center;
    }

    .cookie-card {
        margin-bottom: 0;
    }

    .cookie-actions {
        text-align: center;
    }
}

/* product page */

.product-hero {
    background: #f8fafc;
}


.stat-box {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.stat-box strong {
    display: block;
    font-size: 1.1rem;
    color: #0f3d22;
}

.stat-box span {
    font-size: 13px;
    color: #6b7280;
}

/* about us */

.about-hero {
    background: #ffffff !important;
    padding-bottom: 0px;
}

.about-stats {
    background: #ffffff;
}

.about-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.about-feature {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    height: 100%;
}

.about-cta {
    background: #0f3d22;
}

.about-hero h1{
        font-size: 25px;
    }

     .about-hero p{
        font-size: 16px;
    }

    .aboutx1{
        font-size: 20px;
    }

[data-aos] {
    will-change: transform, opacity;
}

.section-title {
    position: relative;
   
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--reto-red);
    transition: width 0.6s ease;
}

.section-title.aos-animate::after {
    width: 60px;
    
}

/* MAIN IMAGE SIZE */
#mainImage {
    width: 100%;
    height: 450px;
    object-fit: contain;
    
}

/* THUMBNAILS */
.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

/* ACTIVE THUMBNAIL RED LINE */
.active-thumb {
    border-bottom: 2px solid red;
}

/* ARROWS */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;

    /* HIDDEN BY DEFAULT */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* SHOW ON HOVER (DESKTOP) */
.image-box:hover .nav-arrow {
    opacity: 1;
    pointer-events: auto;
}

.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }

.image-box { 
    position: relative; 
    overflow: hidden;
   
}

html, body {
    overflow-x: hidden;
}

/*  */

/* FEATURED PRODUCT */
.featured-product {
    background: #f8fafc;
}

/* TABS */
.product-tabs {
    display: inline-flex;
    gap: 30px;
    font-weight: 500;
    color: #6b7280;
}

.product-tabs span {
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
}

.product-tabs .active {
    color: var(--reto-green);
}

.product-tabs .active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: var(--reto-green);
    border-radius: 2px;
}

/* IMAGE */
.featured-img {
    max-height: 380px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}


/* menu */


.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 10001;
}

.menu-toggle span {
    width: 26px;
    height: 1px;
    background: #fff;
    transition: 0.4s ease;
    border-radius: 1px;
}



@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
}

/* Slide Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, #0f3d22, #0c2e19);
    padding: 20px;
    transition: left 0.4s cubic-bezier(.77,0,.18,1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        20px 0 60px rgba(0,0,0,.35);
}

.mobile-menu.active {
    left: 0;
}

/* Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
}

/* Links */
.mobile-links {
    list-style: none;
    padding: 0;
}

.mobile-links li {
    opacity: 0;
    transform: translateX(-20px);
    margin-bottom: 22px;
    transition: 0.4s ease;
}

.mobile-menu.active .mobile-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-links li:nth-child(4) { transition-delay: 0.4s; }

.mobile-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    font-size:18px;
    letter-spacing:.3px;
}

.mobile-links a:hover {
    color: #d62828;
    padding-left: 8px;
}

/* Social Icons */
.mobile-socials {
    display: flex;
    gap: 15px;
}

.mobile-socials a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: 0.3s ease;
}

.mobile-socials a:hover {
    background: #d62828;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(214,40,40,0.4);
}

/* Overlay with blur */
.menu-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 9999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* #preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
} */

/* Main Text Wrapper */
.reto-text-loader {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* Letters */
.letter {
    display: inline-block;
    font-size: 90px;
    font-weight: 900;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-120px);
    animation: letterDrop 0.7s cubic-bezier(.17,.67,.83,.67) forwards;
}

/* Delay each letter */
.letter:nth-child(1) { animation-delay: 0.3s; }
.letter:nth-child(2) { animation-delay: 0.9s; }
.letter:nth-child(3) { animation-delay: 1.5s; }
.letter:nth-child(4) { animation-delay: 2.1s; }


@keyframes letterDrop {
    0% {
        opacity: 0;
        transform: translateY(-120px);
    }

    70% {
        opacity: 1;
        transform: translateY(15px); 
    }

    85% {
        transform: translateY(-6px); 
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Special R styling */
.r {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 55%,
        #d62828 55%,
        #d62828 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reveal animation */
@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.tagline {
    margin-top: 0px;
    font-size: 15px;
    font-style: italic;
    color: #cccccc;
    opacity: 0;
    animation: fadeTagline 1s ease forwards;
    animation-delay: 2.5s;
}

@keyframes fadeTagline {
    to {
        opacity: 1;
    }
}

/* Fade out entire preloader */
#preloader.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Screen shake on impact */
@keyframes machineImpact {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.impact {
    animation: machineImpact 0.25s ease-in-out;
}


.img-wrapper {
    position: relative;
    overflow: hidden;
    background: white;
}

/* Shimmer skeleton */
.img-loader {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e6e6e6 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in */
.fade-img {
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-link{
    text-decoration: none;
}


.nav-search {
    margin-left: 15px;
}

.nav-actions {
    gap: 10px;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}

/* Search bar */
.search-bar {
    position: fixed;
    top: 50px; 
    left: 0;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 9999; 
    backdrop-filter:blur(16px);
    background:rgba(255,255,255,.92);
   
}

.search-bar.active {
    transform: translateY(0);
}


.search-results {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius:10px;
    margin:4px;
}

.search-item:hover {
    background: #f4f6f8;
}

.search-thumb {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 4px;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #0f3d22 !important;
}


.related-link {
    display: block;
}

.related-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-link:hover .related-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.related-card img {
    transition: transform 0.4s ease;
}

.related-link:hover img {
    transform: scale(1.05);
}


@media (max-width: 768px) {
    .card-title{
        font-size: 13px;
    }

}


.footer-phone {
    color: #ffffff;
    text-decoration: none;
}

.footer-phone:hover {
    text-decoration: underline;
}

/* whatsapp live chat */

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: pulse 2s infinite;
    transition: transform 0.2s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
}

.wa-float i {
    font-size: 22px;
}

.wa-label {
    font-size: 14px;
    font-weight: 500;
}

/* Hide label on very small screens */
@media (max-width: 480px) {
    .wa-label {
        display: none;
    }
}

/* Pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}


.wa-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-width: 92vw;
    height: auto;
    max-height: 80vh;
    background: #ece5dd;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    z-index: 10;
}

/* Slide animation */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


@media (max-width: 576px) {
    .wa-panel {
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 75vh;
        border-radius: 12px;
    }
}


.wa-header {
    background: #075E54;
    color: white;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.wa-agents {
    padding: 10px;
}

.wa-agent {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.wa-agent:hover {
    background: #f0f0f0;
}

.wa-agent img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.online {
    font-size: 12px;
    color: #25D366;
}

.online span {
    width: 8px;
    height: 8px;
    background: #25D366;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
}


.wa-chat {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 300px;
}

.wa-chat-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #075E54;
    color: white;
    align-items: center;
}

.wa-chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}


.wa-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Chat bubbles */
.msg {
    max-width: 75%;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}


.msg.agent {
    background: white;
    align-self: flex-start;
}


.msg.user {
    background: #dcf8c6;
    align-self: flex-end;
}


.wa-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    gap: 8px;
    border-top: 1px solid #e5e5e5;
}

.wa-input input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 12px 14px;
    outline: none;

    font-size: 16px;

    background: white;
    appearance: none;
    -webkit-appearance: none;
}

.wa-input button {
    background: #25D366;
    border: none;
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .25s ease;
    flex-shrink: 0;
}

.wa-input button:hover {
    transform: scale(1.05);
}

/* BACK BUTTON */
.wa-back {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-right: 5px;
}


/* CATEGORY */

.category-card{
    display:flex;
    flex-direction:column;

    width:100%;
    height:100%;

    text-decoration:none;

    border-radius:18px;
    overflow:hidden;

    background:#fff;

    box-shadow:
        0 10px 30px rgba(0,0,0,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.category-card:hover{
    transform:translateY(-6px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

/* IMAGE AREA */

.category-img{
    height:220px;
    padding:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;
}

.category-img img{
    width:100%;
    height:100%;

    object-fit:contain;
}

/* TEXT AREA */

.category-name{
    padding:18px 16px 20px;

    font-size:15px;
    font-weight:600;

    color:#0c2e19;

    text-align:center;

    display:flex;
    flex-direction:column;
    justify-content:center;

    min-height:85px;
}

.category-name small{
    margin-top:6px;
    font-size:13px;
}

/* MOBILE */

@media (max-width:768px){

    .category-img{
        height:170px;
        padding:16px;
    }

    .category-name{
        min-height:75px;
        font-size:14px;
    }

}

/* product search */

.live-search-results{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    z-index:1000;
}

/* improvements */

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    section {
        padding-top: 55px;
        padding-bottom: 55px;
    }
}

.product-card{
    border:none !important;
    border-radius:18px !important;
    overflow:hidden;
    background:#fff;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
    box-shadow:
        0 4px 20px rgba(0,0,0,.04);
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:
        0 18px 50px rgba(0,0,0,.12);
}

@media (max-width:768px){

    *{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }

    .about-hero h1{
        font-size: 20px;
    }

     .about-hero p{
        font-size: 16px;
    }

    .aboutx1{
        font-size: 20px;
    }

}

::-webkit-scrollbar{
    width:3px;
}

::-webkit-scrollbar-track{
    background:#f3f4f6;
}

::-webkit-scrollbar-thumb{
    background:#0f3d22;
    border-radius:999px;
}

