/* =============================================
   Real People Real Results — Front-end Styles
   ============================================= */

.rr-section {
    padding: 56px 0 48px;
    background: #fff;
}

.rr-heading {
    text-align: center;
    margin-bottom: 36px;
    padding: 0 20px;
}

.rr-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.2;
}

.rr-heading p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* =============================================
   CAROUSEL — arrows are INSIDE, overlaid on top
   ============================================= */
.rr-carousel-wrap {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* This clips the cards but NOT the arrows (arrows are siblings, not children) */
.rr-track-outer {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.rr-track {
    display: flex;
    gap: 14px;
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* =============================================
   CARD
   ============================================= */
.rr-card {
    flex: 0 0 calc(20% - 11.2px);
    min-width: 160px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.09);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.rr-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    transform: translateY(-4px);
}

/* =============================================
   VIDEO AREA
   ============================================= */
.rr-video-wrap {
    position: relative;
    aspect-ratio: 9/16;
    background: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
}

.rr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rr-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.22);
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.rr-play-overlay.hidden { opacity: 0; }

.rr-play-overlay svg {
    width: 46px;
    height: 46px;
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.rr-loading-ring {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 4;
}

.rr-loading-ring.visible { opacity: 1; }

.rr-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rr-spin 0.65s linear infinite;
}

@keyframes rr-spin { to { transform: rotate(360deg); } }

.rr-sound-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
    padding: 0;
}

.rr-video-wrap:hover .rr-sound-btn { opacity: 1; }

.rr-sound-btn svg {
    width: 15px;
    height: 15px;
    color: #fff;
    pointer-events: none;
}

/* =============================================
   PRODUCT INFO
   ============================================= */
.rr-info {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.rr-product-name {
    font-size: 0.81rem;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.rr-product-name:hover { color: #0073aa; text-decoration: underline; }

.rr-price {
    font-size: 0.87rem;
    font-weight: 700;
    color: #111;
}

.rr-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.rr-price del { color: #999; font-weight: 400; }

.rr-atc-btn {
    width: 100%;
    padding: 9px 0;
    margin-top: auto;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s;
}

.rr-atc-btn:hover:not(:disabled)  { background: #005a87; }
.rr-atc-btn:active:not(:disabled) { transform: scale(0.97); }
.rr-atc-btn:disabled              { background: #aaa; cursor: not-allowed; }
.rr-atc-btn.loading               { opacity: 0.65; pointer-events: none; }
.rr-atc-btn.added                 { background: #28a745 !important; }

/* =============================================
   ARROWS — overlaid ON TOP of the track-outer
   No overflow dependency at all
   ============================================= */
.rr-arrow {
    position: absolute !important;
    /* vertically centered on video portion (roughly 65% of card height) */
    top: 32% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: box-shadow 0.2s, opacity 0.2s !important;
    padding: 0 !important;
    /* Arrows sit on the edges of track-outer, slightly overlapping */
    margin: 0 !important;
}

.rr-arrow:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

.rr-arrow svg {
    width: 18px !important;
    height: 18px !important;
    color: #111 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Position: just inside the left/right edge of carousel */
.rr-arrow.prev {
    left: 24px !important;
}

.rr-arrow.next {
    right: 24px !important;
}

.rr-arrow.disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* =============================================
   DOTS
   ============================================= */
.rr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.rr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.rr-dot.active {
    background: #0073aa;
    transform: scale(1.35);
}

/* =============================================
   CART TOAST
   ============================================= */
.rr-cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    max-width: 320px;
    pointer-events: none;
}

.rr-cart-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.rr-cart-toast .rr-toast-icon { font-size: 1.3rem; flex-shrink: 0; }

.rr-cart-toast .rr-toast-text { flex: 1; line-height: 1.4; }

.rr-cart-toast .rr-toast-text small {
    display: block;
    font-weight: 400;
    color: #aaa;
    font-size: 0.74rem;
}

.rr-cart-toast .rr-view-cart-btn {
    background: #fff;
    color: #111;
    border: none;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.2s;
}

.rr-cart-toast .rr-view-cart-btn:hover { background: #eee; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .rr-card { flex-basis: calc(25% - 10.5px); }
}

@media (max-width: 820px) {
    .rr-card { flex-basis: calc(33.333% - 9.3px); }
}

@media (max-width: 560px) {
    .rr-card { flex-basis: calc(50% - 7px); }
    .rr-arrow { width: 34px !important; height: 34px !important; }
    .rr-arrow.prev { left: 16px !important; }
    .rr-arrow.next { right: 16px !important; }
}

@media (max-width: 360px) {
    .rr-card { flex-basis: 100%; }
}
