/*
Theme Name: GeneratePress Affiliate Child
Description: A lean, custom directory for affiliate stores.
Template: generatepress
Version: 1.0.0
Author: You
*/

/* ==========================================================================
   Store Directory Custom Styles
   ========================================================================== */

/* Basic styling for our future Store Cards so they look great out of the box */
.store-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.single-stores .store-profile-wrapper {
    margin-top: -80px;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.store-card img {
    max-width: 140px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.store-offer-badge {
    background: #e6f7ff;
    color: #007cba;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.store-button {
    display: block;
    background: #007cba;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.store-button:hover {
    background: #005a87;
    color: #ffffff;
}

/* --- Featured Store Highlighting --- */

.featured-store-card {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
    position: relative; 
    overflow: visible !important; /* <-- THIS IS THE MAGIC FIX */
}

.featured-store-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: #FFD700;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap; /* <-- Prevents the text from awkwardly wrapping */
}