/**
 * MR USBY Child Theme Custom CSS
 * Modern & Simple Aesthetic - Iteration 3
 */

/* Import Outfit (Modern/Elegant) and Inter (Clean Body) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Brand Colors */
    --color-purple: #BFA2DB;
    --color-cyan-1: #85D0CC;
    --color-pink: #E8B3C7;
    --color-cyan-2: #88CBC3;
    --color-yellow: #F3F74A;

    --color-primary: #1a1a1a;
    --color-secondary: #ffffff;
    --color-accent: var(--color-cyan-2);
    --color-text: #4a4a4a;

    /* Subtle Backgrounds */
    --bg-gradient-soft: linear-gradient(135deg, #f9f9fa 0%, #f1f2f6 100%);

    --border-radius: 12px;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --header-height: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    overflow-x: hidden;
    background-color: #fdfdfd;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Brand Color Application to Headings */
h1 span,
h2 span {
    color: var(--color-purple);
}

/* Utility for colored words */
#wrapper .breadcrumb {
    background: transparent;
    font-family: var(--font-heading);
}

/* Buttons & Links */
a {
    color: var(--color-primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--color-purple);
    text-decoration: none;
}

.btn-primary,
.btn-primary.disabled {
    background-color: var(--color-purple);
    border-color: var(--color-purple);
    font-family: var(--font-heading);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-cyan-2);
    border-color: var(--color-cyan-2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 203, 195, 0.4);
}

/* --- Utils --- */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.align-center {
    align-items: center;
}

/* --- Full Width Overrides --- */
#wrapper .container {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
}

@media (min-width: 1400px) {
    #wrapper .container {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* --- Navigation --- */
.mrusby-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mrusby-main-header {
    padding: 10px 0;
}

/* Branding the Menu */
.header-nav .top-menu a[data-depth="0"] {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.header-nav .top-menu a[data-depth="0"]:hover {
    color: var(--color-purple);
    border-bottom: 2px solid var(--color-yellow);
}

/* --- Top Trust Bar --- */
.mrusby-trust-bar-top {
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-pink) 50%, var(--color-cyan-1) 100%);
    padding: 8px 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.mrusby-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mrusby-trust-item strong {
    margin-right: 4px;
    color: #fff;
}

/* --- Hero Carousel (Large / Imposing) --- */
.mrusby-hero-carousel {
    margin-bottom: 50px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.mrusby-hero-slide {
    position: relative;
    width: 100%;
}

.mrusby-hero-img {
    width: 100%;
    height: auto;
    /* Mobile */
    display: block;
    object-position: center;
}

@media (min-width: 992px) {
    .mrusby-hero-img {
        height: 750px;
        /* Increased Height as requested */
        object-fit: cover;
    }
}

.mrusby-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Content over image */
.mrusby-hero-content-wrapper {
    z-index: 2;
    pointer-events: none;
}

.mrusby-hero-content {
    pointer-events: auto;
    max-width: 650px;
    padding-left: 20px;
    padding-right: 20px;
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 992px) {
    .mrusby-hero-content {
        padding-left: 50px;
    }
}

.mrusby-hero-content h1,
.mrusby-hero-content h2 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    font-size: 2.5rem;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {

    .mrusby-hero-content h1,
    .mrusby-hero-content h2 {
        font-size: 3.5rem;
    }
}

/* Responsive scale for mobile if needed */
@media (max-width: 768px) {

    .mrusby-hero-content h1,
    .mrusby-hero-content h2 {
        font-size: 1.5rem;
    }

    .mrusby-hero-content .lead {
        display: none;
    }

    .mrusby-btn-hero {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

.mrusby-hero-content .lead {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    color: #f8f9fa;
    font-size: 1.2rem;
    font-weight: 400;
}

.mrusby-btn-hero {
    background: var(--color-yellow);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
}

.mrusby-btn-hero:hover {
    background: #fff;
    color: var(--color-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- Banner Centering & Sizing (Natural / Distortion Fix) --- */
.banner,
.ps_banner,
#displayHome .banner {
    display: flex !important;
    justify-content: center !important;
    margin: 30px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.banner img,
.ps_banner img {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    /* Force full width */
    height: auto !important;
    /* Natural height everywhere - Fixes distortion */
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
    object-position: center;
}

/* Allow full width if requested, but keep height auto */
.banner img.img-fluid {
    width: 100% !important;
    height: auto !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Product Grid & Card --- */
#products .product-miniature,
.featured-products .product-miniature,
.product-accessories .product-miniature {
    margin-bottom: 30px;
    padding: 10px;
}

.product-miniature {
    background: #fff;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    overflow: hidden;
    /* For hover effects */
}

.product-miniature:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-pink);
    /* Subtle brand border on hover */
    transform: translateY(-5px);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 50px;
}

.product-title a {
    color: var(--color-primary);
}

.product-title a:hover {
    color: var(--color-purple);
}

.product-price-and-shipping {
    font-family: var(--font-heading);
    color: var(--color-cyan-2);
    font-weight: 700;
    font-size: 1.1rem;
}

.regular-price {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
}

/* --- Footer Full Width (Correct Approach) --- */
#footer {
    background: #fff !important;
    border-top: 5px solid var(--color-yellow) !important;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Ensure the container inside aligns correctly */
#footer .container {
    background: transparent;
}

/* --- Cart Button (Over Image, Compact) --- */
.product-miniature .thumbnail-container {
    position: relative;
    overflow: hidden;
}

.mrusby-add-to-cart {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: auto;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    width: auto;
}

.product-miniature:hover .mrusby-add-to-cart {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mrusby-add-to-cart .btn {
    width: auto;
    height: 35px;
    /* Compact height */
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-purple);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--color-purple);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mrusby-add-to-cart .btn i {
    margin: 0;
    font-size: 18px;
    color: var(--color-purple);
}

.mrusby-add-to-cart .btn:hover {
    background: var(--color-purple);
    color: #fff;
    border-color: var(--color-purple);
}

.mrusby-add-to-cart .btn:hover i {
    color: #fff;
}


/* --- Floating Buttons (Fixed Positioning Force) --- */
.mrusby-fab-container {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2147483647 !important;
    /* Max Z-Index */
}

.mrusby-fab {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.mrusby-fab:hover {
    transform: scale(1.1);
    color: #fff;
}

.mrusby-fab.whatsapp {
    background-color: #25D366;
}

.mrusby-fab.contact {
    background-color: var(--color-cyan-2);
}

.mrusby-fab i {
    font-size: 28px;
}


/* --- Splash Screen (Fixed Positioning Force) --- */
.mrusby-splash-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2147483647 !important;
    /* Max Z-Index */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mrusby-splash-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- Footer --- */
.mrusby-footer {
    background: #fff;
    border-top: 5px solid var(--color-yellow);
    /* Brand accent */
    padding: 60px 0;
}

.mrusby-footer h4 {
    color: var(--color-purple);
    margin-bottom: 20px;
    font-weight: 700;
}

.mrusby-whatsapp-btn {
    background: #25D366;
    color: #fff;
    font-family: var(--font-heading);
    padding: 12px 25px;
    border-radius: 50px;
}

/* --- Mobile Bar --- */
.mrusby-mobile-bar {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

.mrusby-bar-item {
    color: #888;
    font-family: var(--font-heading);
    font-size: 11px;
}

.mrusby-bar-item i {
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--color-purple);
}

.mrusby-bar-item.active {
    color: var(--color-cyan-2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Splash Screen - Modal styling
   ========================================= */
.mrusby-splash-overlay{
  visibility: hidden;
}

.mrusby-splash-overlay.show{
  visibility: visible;
}

.mrusby-splash-modal{
  background: #fff;
  width: min(92vw, 520px);
  border-radius: 22px;
  padding: 22px 18px;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35);
}

.mrusby-close-btn{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.mrusby-splash-content h2{
  margin-top: 4px;
  margin-bottom: 10px;
  color: var(--color-purple);
  font-weight: 800;
}

.mrusby-splash-skip{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 576px){
  .mrusby-splash-modal{
    padding: 18px 14px;
    border-radius: 18px;
  }
  .mrusby-splash-content h2{
    font-size: 1.2rem;
  }
}

/* =========================================
   #carousel - Parallax smoothing (scroll effect)
   ========================================= */
#carousel .carousel-item img{
  transition: transform 140ms linear;
  will-change: transform;
}

/* =========================================
   #carousel como HERO principal (Full Width Real)
   ========================================= */

/* 1. Estrategia "Breakout": Romper el contenedor de Bootstrap
   Se aplica tanto en móvil como en escritorio para evitar el efecto "encajonado" */
.page-home #carousel {
    width: 100vw !important; /* Ancho total de la ventana */
    max-width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2. Ajuste de Alturas y Comportamiento de Imágenes */
.page-home #carousel .carousel-inner,
.page-home #carousel .carousel-item,
.page-home #carousel .carousel-item figure {
    width: 100% !important;
    margin: 0 !important;
}

/* Imagen base: Cubrir el área sin deformarse */
.page-home #carousel .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Llena el espacio recortando los bordes si es necesario */
    object-position: center center !important; /* Siempre enfoca el centro de la imagen */
    display: block !important;
}

/* --- RESPONSIVE: MÓVIL (Menos de 768px) --- */
@media (max-width: 767px) {
    .page-home #carousel .carousel-inner,
    .page-home #carousel .carousel-item,
    .page-home #carousel .carousel-item figure {
        /* Reducimos la altura en móvil para evitar el zoom excesivo */
        height: 50vh !important; 
        min-height: 280px !important;
        background-color: #fdfdfd;
    }
    .page-home #carousel .carousel-item img {
        object-fit: contain !important; /* Muestra toda la imagen, sin cortar */
        object-position: center center !important;
    }
}

/* --- RESPONSIVE: TABLET (768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .page-home #carousel .carousel-inner,
    .page-home #carousel .carousel-item,
    .page-home #carousel .carousel-item figure {
        height: 500px !important;
    }
}

/* --- RESPONSIVE: DESKTOP (Más de 992px) --- */
@media (min-width: 992px) {
    .page-home #carousel .carousel-inner,
    .page-home #carousel .carousel-item,
    .page-home #carousel .carousel-item figure {
        height: 700px !important; /* Altura imponente para escritorio */
    }
}

/* Parche de seguridad para scroll horizontal indeseado */
body, html {
    overflow-x: hidden !important;
}