/* =========================
   1. USER'S GRID & CARD DESIGN (UNTOUCHED)
   ========================= */

/* CONTAINER & GRID */
.rc-container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.rc-car-grid-native {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; /* EXACT 5px GAP */
    margin-bottom: 80px;
}

/* CARD BASE */
.rc-native-card {
    position: relative;
    border-radius: 15px;
    transition: all 0.2s ease;
    padding: 3px; 
    padding-bottom:15px;
    background: transparent;
}

/* Grey Background on Hover */
.rc-native-card:hover {
    background: #F6F6F6;
}

/* IMAGE AREA & HOVER */
.rc-native-card .post-thumbnail {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Dark Overlay on Hover */
.rc-native-card .post-thumbnail::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.rc-native-card:hover .post-thumbnail::before {
    background: rgba(0,0,0,0.15); /* Slight dark overlay */
}

/* Ensure background image fits and zooms */
.sh-ratio-content {
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.rc-native-card:hover .sh-ratio-content {
    transform: scale(1.03); /* Subtle zoom */
}

/* --- HOVER BUTTON CONTAINER --- */
/* Kept your positioning logic, updated z-index to ensure button visibility */
.post-thumbnail-rating {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 10;
}

/* --- THE BUTTON STYLE (GILLION REPLICA) --- */
.rc-gillion-btn {
    color: #858585 !important;
    background-color: #fff !important;
    border-width: 0px !important;
    border-radius: 8px !important;
    text-align: center;
    font-size: 12px;
    line-height: 50px !important; /* Exact Gillion Line Height */
    padding: 0 20px !important;
    transition: 0.3s all cubic-bezier(0.18, 0.27, 0.14, 1.53);
    display: block;
    position: absolute;
    z-index: 100;
    
    /* Animation Start State */
    bottom: -50px; 
    left: 7px;
    right: 7px;
    overflow: hidden;
    opacity: 0;
    font-weight: normal;
    pointer-events: auto; /* Re-enable clicks */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Optional shadow for better visibility */
}

/* Hover State (Slide Up) */
.rc-native-card:hover .rc-gillion-btn {
    bottom: 10px; /* Slide up to visible area */
    opacity: 1;
}

/* Button Hover State */
.rc-gillion-btn:hover {
    color: #333 !important;
}

/* The Icon (Simple Line Icons) */
.rc-gillion-btn::before {
    content: "\e04f"; /* Bag Icon */
    font-family: 'simple-line-icons';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 20px;
    margin-right: 8px;
    position: relative;
    display: inline-block;
    bottom: -3px;
}

/* Hide theme's default overlay */
.post-overlay { display: none !important; }


/* INFO AREA TYPOGRAPHY */

/* Row A: Title + Rating */
.rc-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -1px;
}

.woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #292929 !important;
    margin: 0 !important;
    padding-right: 10px;
    flex: 1;
    line-height: 1;
}

.rc-native-info{
    padding: 0 10px;
}

/* Rating */
.rc-native-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #292929;
    white-space: nowrap;
}
.rc-native-rating i { color: #FFC107; font-size: 12px; }
.rc-native-rating .count { color: #999; font-weight: 400; font-size: 10px; }

/* Date */
.rc-native-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

/* Row C: Price + Wishlist */
.rc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.rc-price-row .price {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #292929 !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* =========================
   SVG HEART ANIMATION
   ========================= */

.sh-product-wishlist-add {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 30px;
    cursor: pointer;
    transition: transform 0.1s;
    
    /* Defines the "grey" outline color */
    color: #ccc; 
}


/* SVG Base Style */
.sh-product-wishlist-add svg {
    width: 21px;
    height: 18px;
    transition: transform 0.2s;
}

.sh-product-wishlist-add svg path {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Hover State */
.sh-product-wishlist-add:hover {
    color: #888; /* Darker grey on hover */
    transform: scale(1.1);
}

/* --- ACTIVE / FILLED STATE --- */
.sh-product-wishlist-add.is-active,
.sh-product-wishlist-add[data-status="added"],
.sh-product-wishlist-add.active {
    color: #f36161 !important; /* Set text color to Red for the stroke */
    animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Fill the SVG when active */
.sh-product-wishlist-add.is-active svg path,
.sh-product-wishlist-add[data-status="added"] svg path,
.sh-product-wishlist-add.active svg path {
    fill: #f36161; /* The RED fill */
    stroke: #f36161; /* The RED stroke */
}





/* RESPONSIVE */
@media (max-width: 1024px) {
    .rc-car-grid-native { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 600px) {
    .rc-car-grid-native { grid-template-columns: repeat(1, 1fr); }
}

/* =========================
   2. ADDED STRUCTURE STYLES (HERO & HEADINGS)
   ========================= */

/* HERO & HEADINGS FROM PREVIOUS STEP */
.rc-hero {
    display: flex;
    align-items: center;
    gap: 180px; 
    padding: 40px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
}
.rc-hero-content { flex: 1; }

.rc-hero h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 41px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1d1d1f;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.rc-hero p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.rc-hero-image { flex: 1; }
.rc-hero-image img { width: 100%; height: auto;}

/* Hero Buttons */
.rc-hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.rc-btn-primary {
    background: #1d1d1f;
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.2s;
}
.rc-btn-primary:hover { background: #333; transform: translateY(-2px); color: #fff; }

/* Social Icons */
.rc-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.2s;
    font-size: 20px;
}
.social-btn:hover { color: #fff; transform: translateY(-2px); }
.social-btn.discord:hover { background: #5865F2; }
.social-btn.youtube:hover { background: #FF0000; }
.social-btn.instagram:hover { background: #E1306C; }

/* Section Headings */
.rc-section { margin-bottom: 50px; }
.rc-section-head { margin-bottom: 25px; }

.rc-section-head h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.rc-section-head p { font-size: 16px; color: #666; margin-bottom: 15px; }

.rc-link-btn {
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.rc-link-btn:hover { border-color: #1d1d1f; }

/* Load More Button */
.rc-btn-secondary {
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}
.rc-btn-secondary:hover { background: #333; color: #fff; border-color: #333; }
.rc-center-btn { text-align: center; margin-top: 40px; }

/* Premium Divider */
.rc-section-divider {
    text-align: center;
    margin: 80px 0 55px 0;
    position: relative;
}
.rc-section-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: #e0e0e0;
    z-index: 0;
}
.rc-divider-text {
    background: #fff;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Features Grid */
.rc-info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 100px; padding-top: 60px; border-top: 1px solid #f0f0f0;
}
.rc-info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #1d1d1f; }
.rc-info-card p { font-size: 14px; color: #666; line-height: 1.6; }



/* =========================
   ISOLATED CUSTOM BUTTON STYLES
   ========================= */

/* 1. CONTAINER FIX: Override theme centering ONLY for our cards */
.rc-native-card .post-thumbnail-rating {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    display: block !important;
    pointer-events: none; /* Allow clicks to pass through empty space */
    z-index: 10;
    margin: 0 !important;
}

/* 2. CUSTOM BUTTON (Renamed & Isolated) */
.rc-custom-home-btn {
    position: absolute !important;
    display: block !important;
    
    /* Position & Size */
    left: 10px !important;
    right: 10px !important;
    width: auto !important; /* Stretches button */
    bottom: -60px !important; /* Hidden below card */
    
    /* Design */
    background-color: #ffffff !important;
    color: #858585 !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    
    /* Text */
    height: 45px !important;
    line-height: 40px !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    
    /* Transitions */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    pointer-events: auto; /* Re-enable clicks */
    z-index: 100;
}

/* 3. HOVER STATE: Slide Up */
.rc-native-card:hover .rc-custom-home-btn {
    bottom: 10px !important;
    opacity: 1 !important;
}

/* Button Hover */
.rc-custom-home-btn:hover {
    color: #1d1d1f !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* The Icon */
.rc-custom-home-btn::before {
/*    content: "\e04f"; 
    font-family: 'simple-line-icons';
    font-size: 18px;
    margin-right: 8px;
    position: relative;
    top: 3px;
    display: inline-block;
    color: inherit;*/
    content: none !important; /* Removes the bag/download icon */
    display: none !important;
}


/* =========================
   FIX FOR HUGE ICONS
   ========================= */

/* 1. Force Cart Icon Size */
.rc-btn-icon {
    width: 25px !important;
    height: 18px !important;
    min-width: 15px !important;
    margin-right: 8px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* 2. Force Star Icon Size */
.rc-star-icon {
    width: 25px 
    height: 18px 
    min-width: 12px 
    margin-right: 4px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* 3. Keep Text Centered */
.rc-custom-home-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 4. Placeholder Color (Before Image Loads) */
.rc-lazy-bg {
    background-color: #f0f0f0; 
}

.rc-trust-section {
    padding: 60px 0 120px 0; 
    text-align: center;
}

.rc-trust-header {
    max-width: 800px;
    margin: 0 auto 50px auto; /* Centers the header and adds space below it */
}

.rc-trust-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #111;
}

.rc-trust-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Social Icons */
.rc-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.rc-social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.rc-social-icons a:hover {
    transform: translateY(-3px);
}

.rc-social-icons img {
    width: 100%;
    height: auto;
}

/* 4-Column Grid */
.rc-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Equal Columns */
    gap: 60px;
    margin: 0 auto;
    padding: 0 20px;
}

.rc-feature-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform:uppercase;
    text-align:center;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    letter-spacing:1.4px;
}



.rc-feature-box p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    text-align:center;
}

/* Responsive: 2 Columns on Tablet, 1 on Mobile */
@media (max-width: 992px) {
    .rc-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .rc-features-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rc-feature-box h3::after {
        left: 50%;
        transform: translateX(-50%); /* Center the underline on mobile */
    }
}

/* =========================
   RESPONSIVE HEADER (HERO) FIXES
   ========================= */

/* 1. Tablet View (Screens smaller than 1200px) */
@media (max-width: 1200px) {
    .rc-hero {
        gap: 60px; /* Reduce the huge 180px gap */
        padding: 50px 20px; /* Ensure content doesn't touch edges */
    }
    
    .rc-hero h1 {
        font-size: 36px; /* Slightly smaller title */
    }
}

/* 2. Mobile View (Screens smaller than 768px) */
@media (max-width: 768px) {
    .rc-hero {
        flex-direction: column-reverse; /* Stack items: Image on Top, Text on Bottom */
        gap: 30px;
        padding: 40px 20px;
        text-align: center; /* Center align text for mobile */
        height: auto; /* Allow height to grow */
    }

    .rc-hero-content {
        width: 100%;
        padding: 0 10px;
    }

    .rc-hero-image {
        width: 100%;
        max-width: 400px; /* Limit image size on mobile */
        margin: 0 auto;
    }

    .rc-hero h1 {
        font-size: 32px; /* Mobile friendly font size */
        margin-bottom: 15px;
    }

    .rc-hero p {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Center the Buttons */
    .rc-hero-buttons {
        justify-content: center;
        flex-wrap: wrap; /* Allow buttons to stack if screen is very small */
        gap: 15px;
    }

    .rc-btn-primary {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%; /* Full width button on mobile */
        max-width: 250px;
    }

    /* Center Social Icons */
    .rc-social-icons {
        justify-content: center;
        margin-top: 10px;
    }
}