/* =============================================
   Raíz Sana — style.css
   Fuentes: Playfair Display (display) + DM Sans (body)
============================================= */

/* =============================================
   VARIABLES
============================================= */
:root {
    --green-deep:   #04471c;
    --green-mid:    #058c42;
    --green-light:  #cad2c5;
    --charcoal:     #2f3e46;
    --cream:        #f7f4ef;
    --cream-dark:   #ede9e2;
    --white:        #ffffff;
    --font-display: 'DM Sans', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --radius-pill:  999px;
    --radius-card:  16px;
    --shadow-card:  0 2px 12px rgba(4,71,28,.08);
    --shadow-hover: 0 12px 32px rgba(4,71,28,.14);
}

/* =============================================
   BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVBAR
============================================= */
.navbar-rs {
    background: var(--white);
    border-bottom: 1px solid rgba(4,71,28,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar-rs .brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-rs .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--green-deep);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.navbar-rs .brand-icon i { color: white; font-size: 1.1rem; }

.navbar-rs .brand-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--green-deep);
    letter-spacing: -.5px;
    line-height: 1;
}

/* Search bar */
.navbar-search {
    position: relative;
    flex: 1;
    max-width: 520px;
}

.navbar-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: .95rem;
    pointer-events: none;
}

.navbar-search input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 2px solid var(--green-light);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .9rem;
    background: #fafaf8;
    color: var(--charcoal);
    outline: none;
    transition: border-color .2s, background .2s;
}

.navbar-search input:focus {
    border-color: var(--green-mid);
    background: var(--white);
}

/* Cart button */
.btn-cart {
    background: var(--green-deep);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.btn-cart:hover  { background: #033a16; color: var(--white); }
.btn-cart:active { transform: scale(.98); }

.btn-cart .cart-badge {
    background: #e53935;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =============================================
   HOW TO BUY BANNER
============================================= */
.how-to-buy {
    background: linear-gradient(135deg, rgba(4,71,28,.06) 0%, rgba(5,140,66,.06) 100%);
    border: 1.5px solid rgba(5,140,66,.2);
    border-radius: var(--radius-card);
}

.how-to-buy .step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.step-green { background: var(--green-deep); color: white; }
.step-wa    { background: #25d366; color: white; }

/* =============================================
   CATEGORY PILLS
============================================= */
.cat-pill {
    border: 2px solid #dde5db;
    background: var(--white);
    color: var(--charcoal);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: white;
}

.cat-pills-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.cat-pills-wrap::-webkit-scrollbar { display: none; }

/* =============================================
   FILTERS BAR
============================================= */
.filters-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-bar select,
.filters-bar input[type=number] {
    border: 1.5px solid #dde5db;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: .85rem;
    background: var(--white);
    color: var(--charcoal);
    outline: none;
    transition: border-color .2s;
}

.filters-bar select:focus,
.filters-bar input:focus { border-color: var(--green-mid); }

.filters-bar .price-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filters-bar .price-range input { width: 90px; }

.btn-reset {
    border: 1.5px solid #dde5db;
    background: var(--white);
    border-radius: 10px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: .85rem;
    color: #888;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.btn-reset:hover { border-color: var(--green-mid); color: var(--green-deep); }

/* =============================================
   SECTION TITLES
============================================= */
.rs-section-title {
    font-family: var(--font-display);
    color: var(--green-deep);
    letter-spacing: -.5px;
}

/* =============================================
   PRODUCT CARDS
============================================= */
.product-card-rs {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1.5px solid rgba(4,71,28,.07);
    box-shadow: var(--shadow-card);
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-rs:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-rs .product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cream-dark);
    overflow: hidden;
    flex-shrink: 0;
}

.product-card-rs .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card-rs:hover .product-image-wrap img { transform: scale(1.04); }

.product-card-rs .product-image-wrap .swiper { height: 100%; }
.product-card-rs .product-image-wrap .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.product-badge-rs {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green-deep);
    color: white;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: .3px;
    z-index: 2;
}

.product-card-rs .product-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-rs .product-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card-rs .product-desc {
    font-size: .82rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.4;
    flex: 1;
}

.product-card-rs .product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-deep);
    margin-bottom: 12px;
    line-height: 1;
}

.product-card-rs .product-price small {
    font-size: .7rem;
    font-weight: 500;
    color: #aaa;
    display: block;
    margin-top: 2px;
}

.btn-add-cart {
    width: 100%;
    background: var(--green-deep);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .15s, transform .1s;
}

.btn-add-cart:hover  { background: #033a16; }
.btn-add-cart:active { transform: scale(.99); }

/* =============================================
   EMPTY / LOADING STATES
============================================= */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.empty-products i { font-size: 3rem; margin-bottom: 12px; display: block; }

/* =============================================
   BENEFITS
============================================= */
.benefit-item {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-card);
    transition: background .2s, transform .2s;
}

.benefit-item:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.benefit-item .bi {
    font-size: 2.2rem;
    color: var(--green-deep);
    margin-bottom: 14px;
    display: block;
}

.benefit-item h3 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: .85rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* =============================================
   TESTIMONIALS
============================================= */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-align: center;
    border: 1.5px solid rgba(4,71,28,.06);
}

.testimonial-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green-light);
    margin: 0 auto 14px;
    display: block;
}

.testimonial-card .stars i { color: #f5a623; font-size: .9rem; }

.testimonial-card .quote {
    font-size: .88rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin: 12px 0;
}

.testimonial-card .author {
    font-weight: 700;
    font-size: .9rem;
    color: var(--green-deep);
}

/* =============================================
   FOOTER
============================================= */
.footer-rs {
    background: var(--green-deep);
    color: rgba(255,255,255,.85);
}

.footer-rs .footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: white;
}

.footer-rs a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .88rem;
    transition: color .15s;
}

.footer-rs a:hover { color: white; }

.footer-rs .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: inline-grid;
    place-items: center;
    transition: background .15s;
}

.footer-rs .social-btn:hover { background: var(--green-mid); }

.footer-rs .copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}

/* =============================================
   MODAL DETALLE PRODUCTO
============================================= */
.modal-product-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.quantity-input-rs {
    border: 2px solid var(--green-light);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color .2s;
}

.quantity-input-rs:focus { border-color: var(--green-mid); }

.modal-price-rs {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-deep);
}

.btn-add-cart-modal {
    background: var(--green-deep);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.btn-add-cart-modal:hover { background: #033a16; }

/* =============================================
   CART OFFCANVAS
============================================= */
.cart-item-rs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0ec;
}

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

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--cream-dark);
}

.cart-item-name  { font-weight: 600; font-size: .88rem; color: var(--green-deep); }
.cart-item-qty   { font-size: .8rem; color: #999; }
.cart-item-price { font-weight: 700; font-size: .92rem; color: var(--charcoal); margin-left: auto; }

.cart-item-remove {
    color: #ccc;
    cursor: pointer;
    font-size: .9rem;
    transition: color .15s;
    border: none;
    background: none;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-remove:hover { color: #e53935; }

.cart-total-rs {
    border-top: 2px solid var(--green-deep);
    padding-top: 16px;
    margin-top: 8px;
}

.cart-total-label { font-weight: 600; font-size: .95rem; }
.cart-total-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-deep); font-weight: 700; }

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.btn-whatsapp:hover { background: #1ebe5a; }

/* =============================================
   PERFECT SCROLLBAR
============================================= */
.ps__thumb-y { background-color: var(--green-mid) !important; }

/* =============================================
   SWIPER
============================================= */
.swiper-pagination-bullet-active { background: var(--green-deep) !important; }

/* =============================================
   ANIMACIONES
============================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .4s ease both; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .modal-product-image { height: 260px; }
    .navbar-search { max-width: 100%; }
}