/* Mobile Category Layout Fix - For Option 2 Integration */
/* Add this small CSS patch to fix the truncated discount tag issue */

/* Fix mobile category-info layout */
@media (max-width: 768px) {
    .category-info {
        height: 25% !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        padding: 12px 15px !important;
        gap: 8px !important;
    }
    
    .category-main {
        width: 100% !important;
        position: relative !important;
    }
    
    .category-title {
        font-size: 1.0rem !important;
        font-weight: 900 !important;
        color: #10038c !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Mobile discount tag styling */
    .discount-tag {
        display: inline-block !important;
        background: #e74c3c !important;
        color: white !important;
        padding: 3px 8px !important;
        border-radius: 10px !important;
        font-size: 0.7rem !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .category-subtitle {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin: 0 !important;
        text-shadow: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        /*text-overflow: ellipsis !important;*/
    }
    
    .category-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .guarantee {
        font-size: 0.75rem !important;
        color: #666 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
    }
    
    .view-all-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        font-weight: bold !important;
        background: #e74c3c !important;
        color: white !important;
        border-radius: 15px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        position: absolute !important;
        top: 30px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    .category-info {
        height: 25% !important;
        padding: 10px 12px !important;
        gap: 6px !important;
    }
    
    .category-title {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .discount-tag {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    .category-subtitle {
        font-size: 0.8rem !important;
    }
    
    .guarantee {
        font-size: 0.7rem !important;
    }
    
    .view-all-btn {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* Floating Icons Above Existing Back-to-Top Button */
.floating-icons-container {
    position: fixed;
    right: 20px;
    bottom: 75px; /* Position above existing back-to-top button (15px + existing button height) */
    z-index: 1199; /* Below existing back-to-top button (1200) */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.floating-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .floating-icons-container {
        right: 15px;
        bottom: 65px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .floating-icons-container {
        right: 10px;
        bottom: 55px;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
    }
}